Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 30-3
30.2 _DMC_01_get_04ad_input_range
FORMAT
I16 _DMC_01_get_04ad_input_range (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno,
U16 *range)
Purpose
Retrieves the current AD Input range.
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
Range U16 Number Unit
Get return parameter. Value is 0 ~ 3
Number Definition
0 Input range: -10V~10V
1 Input range: 0V~10V
2 Input range: -5V~5V
3 Input range: 0V~5V
Example
U16 CardNo = 0;
U16 NodeID = 1;
U16 SlotID = 0;
U16 channelno = 1;
U16 range;
I16 status = _DMC_01_get_04ad_input_range (CardNo, NodeID, SlotID, channelno, &range);