Delta Electronics PCI-DMC-B01 Computer Hardware User Manual


 
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 29-11
29.10 _DMC_01_rm_04da_set_output_offset_value
FORMAT
I16 PASCAL _DMC_01_rm_04da_set_output_offset_value (U16 CardNo, U16 NodeID,
U16 SlotID, U16 ChannelNo, I16 Value)
Purpose
Sets the DA offset value.
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
SetValue I16 Selection
Value is +127 ~ -128
1 Step of Value = 38.14μv
Adjust the offset of the channel by -16 LSBs to
+15.875 LSBs in increments of 1/8 LSB
Number Definition
127 Offset Adjustment: +15.875 LSBs (4.844mv)
126 Offset Adjustment: +15.75 LSBs (4.806mv)
… ……
0 No Adjustment (default)
… ……
-127 Offset Adjustment: -15.875 LSBs(- 4.844mv)
-128 Offset Adjustment: -16 LSBs(- 4.882mv)
Example
U16 CardNo = 0;
U16 NodeID = 1;
U16 SlotId = 0;
U16 ChannelNo = 0;
I16 Value = 0xf; //Set offset as 0xf
I16 status = _DMC_01_rm_04da_set_output_offset_value (CardNo, NodeID, SlotID,
ChannelNo, Value);