Demo Device Operation Sample


Appearance

Explanation

It is a demo device sample that shows how to use the demo functions.
Only one channel, one bit, or one port can be set and acquired.

Parameters

Sample Name

./aiodemoctrl

Using Channel

Any one channel

Using Bit

Any one bit

Using Port

Any one port

Step to Use

  1. [Please input device name : ] is shown, then input the device name set by Configuration Tool (config).
    Used function: AioInit

  2. The command numbers of demo device functions are displayed. Please input a command number.

  3. Select a demo device function and input the parameters to use.
    Used function: AioGetDemoAo AioSetDemoAi AioSetDemoAiType
    AioGetDemoDoBit AioGetDemoDoByte AioSetDemoDiBit AioSetDemoDiByte
    AioSetDemoAiStartExtTrigger AioGetDemoAiStartExtTrigger
    AioSetDemoAiStopExtTrigger AioGetDemoAiStopExtTrigger
    AioSetDemoAiClockExtTrigger AioGetDemoAiClockExtTrigger
    AioSetDemoAoStartExtTrigger AioGetDemoAoStartExtTrigger
    AioSetDemoAoStopExtTrigger AioGetDemoAoStopExtTrigger
    AioSetDemoAoClockExtTrigger AioGetDemoAoClockExtTrigger
    AioDemoReset

  4. Enter "q" to perform termination processing of the device, and exit the sample.
    Used function: AioExit

The Other Used Functions

AioGetErrorString