Download GPH-3300
Transcript
GPH-3300 Help for Linux 6.3 outputda.c This sample program performes one analog output update. 1. Specify the device number to control. 2. Specify the output voltage, and one analog output data will be updated. 3. An operation as step 2 will be continued until the output voltage greater than the full scale voltage is specified. The following table shows the analog output update conditions. Configure them according to your board. Parameter Setting Number of channels 1 Channel and range Channel 1, +/-5 V 6.4 file.c This sample program performs the analog output update from the specified file. 1. Write 1024 binary data to the test.dat file by using the DaWriteFile function. 2. Specify the device number to control. 3. Analog output data from the test.dat file will be updated as a non-overlapped operation. The following table shows the analog output update conditions. Configure them according to your board. Parameter Setting Number of channels 1 Data transfer mode Default value of the board Number of repeat 100 Analog output update rate 1000 Hz Channel and range Channel 1, +/-5 V Copyright 2002, 2003 Interface Corporation. All rights reserved. 111