www.vtiinstruments.com
EX1629 Programming
83
VTEX1629_LXI_OUTPUT,
VTEX1629_LXI_INTERNAL );
result = vtex1629_set_lxibus_configuration( master_vi,
VTEX1629_LXI_LINE_SEVEN,
VTEX1629_LXI_OUTPUT,
VTEX1629_LXI_INTERNAL );
/* Configure DIO bank 0 as inputs on the master device. */
result = vtex1629_set_dio_bank0_direction( master_vi,
VTEX1629_DIO_DIRECTION_IN );
/* Configure the sample clock on the master to output on LXI0. */
result = vtex1629_set_sample_clock_source( master_vi,
VTEX1629_SAMP_CLK_MODE_MASTER,
VTEX1629_LXI_LINE_ZERO,
VTEX1629_LXI_LINE_ZERO );
/* Configure the synch source on the master to output on LXI1. */
result = vtex1629_set_synch_source( master_vi,
VTEX1629_SYNC_MODE_MASTER,
VTEX1629_LXI_LINE_ONE,
VTEX1629_LXI_LINE_ONE );
/* Configure the trigger timer on the master to trigger every 5
seconds. */
result = vtex1629_set_trigger_timer( master_vi, 5 );
/* Configure the trigger pattern to generate an event based on the
timer. */
result = vtex1629_set_pattern_trig_configuration( master_vi,
trigLxiLines,
trigDioLines,
VI_TRUE,
VTEX1629_LXI_LINE_TWO,
VTEX1629_LXI_LINE_TWO );
/* Configure the trigger source on the master as a pattern trigger.
*/
result = vtex1629_set_trigger_source( master_vi,
VTEX1629_TRIG_SRC_PATTERN );
/* Configure the ARM pattern to generate an event on LXI3 when DIO0
and 3 are high and DIO 1 and 2 are low. */
result = vtex1629_set_pattern_arm_configuration( master_vi,
armLxiLines,
armDioLines,
VI_FALSE,
VTEX1629_LXI_LINE_THREE,
VTEX1629_LXI_LINE_THREE );
/* Configure the ARM source on the master as a pattern ARM. */
result = vtex1629_set_arm_source( master_vi,
VTEX1629_TRIG_SRC_PATTERN );
/* Configure the LXI trigger bus lines on the slave device. Lines 0 -
3 are external inputs while lines 4 - 7 are outputs that remain
within the device. */
result = vtex1629_set_lxibus_configuration( slave_vi,
VTEX1629_LXI_LINE_ZERO,
VTEX1629_LXI_INPUT,
VTEX1629_LXI_INTERNAL_EXTERNAL );
Содержание EX1629
Страница 310: ...VTI Instruments Corp 310 EX1629 Command Set...
Страница 342: ...VTI Instruments Corp 342 EX1629 Onboard Memory...