Simple Analog Output


Appearance

 

Overview

This is a sample for simple output of single channel and multiple channels.

This sample program requires selection of a device with an analog output function.

Sample specification

※This is the initial value of the sample program.
Please note that it is different from the initial value of the driver.

Program name

AoSimple

Range

0 (±10V)

Specified channel: Channel No.

0

Multiple channels: Number of channels

1

 

Step to Use

1. Specify the desired program name, run the program, and a CUI(Character User Interface) menu that looks like the one above will appear.
    Appearance may vary depending on software version.

 

2. Initialize

  ・When selecting the command [1: AioInit], you can specify the device name.
    Notifies the device driver to start using the specified device.
    When specifying the device name, AioInit will be executed and the CUI menu will be displayed again.
    

  ・When selecting the command [2 : AioSetAoRangeAll], you can specify the range.
    When specifying the range, AioSetAoRangeAll will be executed and the CUI menu will be displayed again.

    Depending on the device used, the setting may not be effective unless the output range is changed with the jumper pin on the device.
    

 

3. Channel simple output processing

  ・Every time you select the command [3 : AioSingleAoEx] or [4 : AioMultiAoEx], the specified output value will be output from the device.

  ・When outputting only one specified channel,

    When selecting the command [3 : AioSingleAoEx], you can specify the channel number and the output data.
    When specifying the channel number and the output data, AioSingleAoEx will be executed and the specified value will be output from the specified channel number of the target device.
     

  ・When outputting multiple channels,

    When selecting the command [4 : AioMultiAoEx], the specified value will be output from the specified channel number of the target device.
    When specifying the number of channels and the output data, AioMultiAoEx will be executed and the specified value will be output from the specified channel number of the target device.

    The starting channel No. is fixed at 0ch. For example, if 3 channels are specified, data will be output from 0ch to 2ch.
    

  ・When the signal from the device is output, the CUI menu will be displayed again.

 

4. Exit

  ・When selecting the command [5 : AioExit], it will notify the device driver that the use of the current device is complete.
    Data can be output from different devices (e.g. AIO001, etc.) without terminating the program.
    When AioExit is executed, the CUI menu will be displayed again.
    

  ・To output data again, select the command [1 : AioInit] and specify a new device name to perform device initialization processing.

 

5. Processing to terminate the program

  ・When selecting the command [q : Quit], the program will terminate.