Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 39-3
39.2 _DMC_01_get_compare_channel_position
FORMAT
I16 PASCAL _DMC_01_get_compare_channel_position (U16 CardNo,
U16 compare_Channel, I32 *position)
Purpose
Reads current value of Position counter for that Channel.
Parameters
Name Data Type Unit Description
CardNo U16
Number
Unit
CardNo is between 0~15
Compare_Channel U16
Number
Unit
Channel No is 0~1
Position I32*
Number of
pulses
Read positive value
Example
U16 CardNo = 0;
U16 Compare_channel = 0;
I32 Position = 100000;
I16 status = _DMC_01_get_compare_channel_position (CardNo, compare_channel,
&position);