User's Manual

Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01
39-16 Revised March, 2012
39.14 _DMC_01_channel1_position_compare_table_level
FORMAT
I16 PASCAL _DMC_01_channel1_position_compare_table_level (U16 CardNo, I32*
pos_table, U32* level_table, U32 table_size)
Purpose
Sets Compare2 to custom Compare data.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
Pos_table I32* Number Unit
Calculate the Pos_Table for compare based on the
given data
Level_table U32* Number Unit Set Level_table for Compare
Table_size U32 Number Unit Size of Pos_table to Compare
Example
U16 CardNo = 0;
I32 Pos_table[4] ={1000,2000,3000,4000};
U32 Level_table[4] ={1,0,0,0};
U32 Table_size =50000;
I16 status = _DMC_01_channel1_position_compare_table_level (CardNo, pos_table,
level_table, table_size);