Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01
3-104 Revised March, 2012
7) If the Mode option in Fig. 3.136 is selected, execute the following procedure:
/*First, reset Offset to 0 */
rt = _DMC_01_rm_04da_set_output_offset_value(gDMCCardNo,DANodeID,SlotID,
ChannelDA,0);
/* Next, Output Disable */
rt = _DMC_01_rm_04da_set_output_enable(gDMCCardNo,DANodeID,SlotID,
ChannelDA,0);
/* Set DA selection mode */
rt = _DMC_01_rm_04da_set_output_range(gDMCCardNo,DANodeID,SlotID,
ChannelDA,DAmode);
If the Apply option in Fig. 3.136 is selected, execute the following procedure:
/* Set DA output value */
rt = _DMC_01_rm_04da_set_output_value(gDMCCardNo,DANodeID,SlotID,
ChannelDA,AppValue);
If the Error Handle option in Fig. 3.137 is checked, execute the following procedure:
/* Enable Error Handle*/
rt =_DMC_01_rm_04da_set_output_error_handle(gDMCCardNo,DANodeID,SlotID,
ChannelDA,1);
If the Over Range option in Fig. 3.137 is checked, execute the following procedure:
\/* Enable Over Range*/
rt =_DMC_01_rm_04da_set_output_overrange(gDMCCardNo,DANodeID,SlotID,
ChannelDA,1);
If Set Offset option in Fig. 3.137 is selected, execute the following procedure:
/* Set the entered Offset value in DA */
rt =_DMC_01_rm_04da_set_output_offset_value(gDMCCardNo,DANodeID,SlotID,
ChannelDA,offset);
If Clear Error option in Fig. 3.137 is selected, execute the following procedure:
/* Clear Error status */
rt =_DMC_01_rm_04da_set_output_error_clear(gDMCCardNo,DANodeID,SlotID,
ChannelDA,1);
If the Conversion Time option in Fig. 3.138 is selected, execute the following
procedure:
/* Set Conversion Time mode*/
rt =_DMC_01_set_04ad_conversion_time(gDMCCardNo,ADNodeID,SlotID,mode);
If the Mode option in Fig. 3.139 is selected, execute the following procedure: