Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 30-11
30.10 _DMC_01_set_04ad_average_mode
FORMAT
I16 _DMC_01_set_04ad_average_mode (U16 CardNo, U16 NodeID, U16 SlotID,
U16 channelno, U16 mode)
Purpose
Sets AD average mode.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
NodeID U16 Number Unit Node ID is between 0~63
SlotID U16 Number Unit 0
ChannelNo U16 Number Unit Channel ID is between 0~3
Mode U16 Number Unit
Input value 0~5
Number
Set frequency of
average value
0 0
1 2
2 4
3 8
4 16
5 32
Example
U16 CardNo = 0;
U16 NodeID = 1;
U16 SlotID = 0;
U16 channelno = 1;
U16 mode = 1;
I16 status = _DMC_01_set_04ad_average_mode(CardNo, NodeID, SlotID, channelno,
mode);