This is a sample that inputs temperature for the specified number of channels.
Sample specification |
※This is the initial value of the sample program. |
Program name |
./ssi_multi |
Sensor type |
Type K |
Specified channel (Channel No.) |
4 |
Temperature unit |
Celsius |
1. Specify the program name [./ssi_multi], run the program, and a CUI (Character User Interface) menu like the one above will be displayed.
Appearance may vary depending on software version.
2. Initialize device
・Specify the device name by selecting the [1 : SsiInit] command.
Notify the device driver to start using the specified device.
After specifying the device name, SsiInit will run and the CUI menu will be displayed again.
・Select the [2: Number of Channels Set] command to specify the number of channels to be controlled, starting from channel 0.
The specified channels will be used commonly for [3: SsiSetSensorType] to [7: SsiInputTemperature].
・Select the [3: SsiSetSensorType] command to specify the sensor type.
Please specify the number of the connected sensor type.
・Select the [4: SsiGetSensorType] command to get the currently set sensor type.
・Select the [5: SsiSetTemperatureUnit] command to specify the temperature unit.
Temperature unit that can be specified are 0: Celsius, 1: Fahrenheit.
・Select the [6: SsiGetTemperatureUnit] command to get the temperature unit.
3. Temperature input
・Select the [7: SsiMultiInputTemperature] command to input the temperatures and display the input temperatures and input status.
4. Exit device
・Select the command [8:SsiExit] to notify the device driver that the use of the current device is complete.
You can acquire data from a different device (e.g. SSI001, etc.) without terminating the program.
After SsiExit is executed, the CUI menu will be displayed again.
5. Exit program
・Select the command [q : Quit] to terminate the program.