VTI Instruments Corp.
82
EX1629 Programming
NOTE
Master/Slave configuration requires the use of LXI Trigger Bus Cables, terminators, and, possibly,
LXI Trigger Bus hubs, switches, or repeaters. Please talk to your application engineer for further
information.
Sample Code
ViStatus result = VI_SUCCESS;
ViInt16 trigLxiLines[4] = {0,0,0,0};
ViInt16 trigDioLines[4] = {0,0,0,0};
ViInt16 armLxiLines[4] = {0,0,0,0};
ViInt16 armDioLines[4] = {0,0,0x09,0x06};
/* Configure the master system to acquire 100 samples. */
result = vtex1629_set_sample_count( master_vi, 0, 100 );
/* Configure the slave system to acquire 100 samples. */
result = vtex1629_set_sample_count( slave_vi, 0, 100 );
/* Reset the trigger system on the slave device to return it to its
default configuration. The slave devices should be reset first to
switch them back to using their internal sample clock oscillators
before changing the configuration of the master.*/
result = vtex1629_reset_trigger_arm( slave_vi );
/* Reset the trigger system on the master device. */
result = vtex1629_reset_trigger_arm( master_vi );
/* Configure the LXI trigger bus lines on the master device. Lines 0
- 3 are external outputs while lines 4 - 7 are outputs that remain
within the device. */
result = vtex1629_set_lxibus_configuration( master_vi,
VTEX1629_LXI_LINE_ZERO,
VTEX1629_LXI_OUTPUT,
VTEX1629_LXI_INTERNAL_EXTERNAL );
result = vtex1629_set_lxibus_configuration( master_vi,
VTEX1629_LXI_LINE_ONE,
VTEX1629_LXI_OUTPUT,
VTEX1629_LXI_INTERNAL_EXTERNAL );
result = vtex1629_set_lxibus_configuration( master_vi,
VTEX1629_LXI_LINE_TWO,
VTEX1629_LXI_OUTPUT,
VTEX1629_LXI_INTERNAL_EXTERNAL );
result = vtex1629_set_lxibus_configuration( master_vi,
VTEX1629_LXI_LINE_THREE,
VTEX1629_LXI_OUTPUT,
VTEX1629_LXI_INTERNAL_EXTERNAL );
result = vtex1629_set_lxibus_configuration( master_vi,
VTEX1629_LXI_LINE_FOUR,
VTEX1629_LXI_OUTPUT,
VTEX1629_LXI_INTERNAL );
result = vtex1629_set_lxibus_configuration( master_vi,
VTEX1629_LXI_LINE_FIVE,
VTEX1629_LXI_OUTPUT,
VTEX1629_LXI_INTERNAL );
result = vtex1629_set_lxibus_configuration( master_vi,
VTEX1629_LXI_LINE_SIX,
Содержание EX1629
Страница 310: ...VTI Instruments Corp 310 EX1629 Command Set...
Страница 342: ...VTI Instruments Corp 342 EX1629 Onboard Memory...