gpioTool#
- シングルエンドまたは差動信号を受信するように入力ラインを設定できます。
- プルアップまたはプルダウンモードで動作するように入力ラインを設定できます。
- 出力信号を反転するかどうかを指定できます。
The gpioTool is included in the Framegrabber SDK and in the pylon Software Suite.
ツールを起動するには:
- Open a command line.
- If you're using the Framegrabber SDK, change to the
bindirectory of your Framegrabber SDK installation: cd /D %BASLER_FG_SDK_DIR%\bin. -
If you're using pylon, change to the bin directory of your pylon installation:
- Windows: %programfiles%\Basler\pylon[version]\Runtime\x64\pylonCXP\bin
- Linux:/opt/pylon/lib/pylonCXP/bin
-
以下のオプションを使用してgpioToolを起動します。
オプション#
次のオプションが使用できます。
gpioTool -b [board_index]
-g
-v
-s [bank]:[settings]
-h
-b [board_index]
Specify which board (frame grabber or trigger board) in your system you want to address. This parameter is mandatory for all options except -h.
The value range of [board_index] is the index numbers of all boards installed in your system. If you only have one board in your system, set [board_index] to 0.
-b [board_index] -g
Show the current GPIO bank settings of the board specified.
-b [board_index] -v
Show the current GPIO bank settings with verbose output.
-b [board_index] -s [bank]:[settings]
Configure the GPIO bank on the board specified.
[bank] specifies the index number of the GPIO bank.
[settings] configures the settings. See below.
-h
Show help.
設定#
For the [settings] part in -b [board_index] -s [bank]:[settings], the following settings are available:
| 設定 | 値 | 結果 |
|---|---|---|
[signal] | se | シングルエンド信号を受信するように入力ラインを設定します。 |
[signal] | ds | 差動信号を受信するように入力ラインを設定します。 |
[pull-up-down] | pu | プルアップモードで動作するように入力ラインを設定します。a |
[pull-up-down] | pd | プルダウンモードで動作するように入力ラインを設定します。b |
[inversion] | ni | 出力ラインの反転を無効にします。 |
[inversion] | in | 出力ラインの反転を有効にします。 |
You must enter the settings in the following format: [signal],[pull-up-down],[inversion]. Example: ds,pu,ni
Alternatively, you can set [settings] to default. This resets the configuration of a GPIO bank.
例#
gpioTool -b 0 -s 0:ds,pu,ni
This command configures the board as follows:
-b 0: Configure the GPIOs on board 0.-s: Start the actual configuration.0:: Configure GPIO bank 0 (front GPIO).ds,pu,ni: Configure the front GPIO to receive differential signals (ds), to work in pull-up mode (pu), and to send the outgoing signals not inverted (ni).
設定のリセット#
To reset a board and GPIO bank to the default settings, start the gpioTool with [settings] set to default:
gpioTool -b [board_index] -s [bank]:default
例: gpioTool -b 0 -s 0:default
Resetting to DIP Switch Settings#
You can reset a board to the current DIP switch settings. This overrides the software configuration.
To reset a board to DIP switch settings, start the gpioTool with [settings] set to dip-switch:
gpioTool -b [board_index] -s [bank]:dip-switch
例: gpioTool -b 0 -s 0:dip-switch