
3020-XX-UM
ProDAQ 3020 USB2.0 VXIbus Slot-0 Interface User Manual
Page 44 of 60
Copyright, © 2003 Bustec Production Ltd.
panel input, multiple lines can be mapped to the front panel output. When calling
viMapTrigger multiple times with the same destination line and different source lines, the
destination line will be asserted when any of the source lines is asserted. To select the
active level of the front panel output, see 2.6.3: Configuring the Front Panel I/O.
Figure 36 - Mapping Trigger Lines
#include <visa.h>
main (int argc, char **argv)
{
ViStatus status;
ViSession rm_session;
ViSession instr_session;
ViChar descr[256];
/* open a session to the resource manager */
if ((status = viOpenDefaultRM (&rm_session)) != VI_SUCCESS)
{
/* error handling as shown in the previous examples !*/
}
/* open a session to the instrument */
if ((status = viOpen (rm_session, “VXI0::0::BACKPLANE”,
VI_NULL, VI_NULL, &instr_session)) != VI_SUCCESS)
{
/* error handling as shown in the previous examples !*/
}
/* mapping the front panel input to trigger line TTL1 */
if ((status = viMapTrigger (instr_session,
VI_TRIG_PANEL_IN, VI_TRIG_TTL1, VI_NULL)) != VI_SUCCESS)
{
/* error handling as shown in the previous examples !*/
}
/* mapping the front panel input also to trigger line ECL0 */
if ((status = viMapTrigger (instr_session,
VI_TRIG_PANEL_IN, VI_TRIG_ECL0, VI_NULL)) != VI_SUCCESS)
{
/* error handling as shown in the previous examples !*/
}
/* mapping trigger line TTL6 to the front panel output */
if ((status = viMapTrigger (instr_session,
VI_TRIG_TTL6, VI_TRIG_PANEL_OUT, VI_NULL)) != VI_SUCCESS)
{
/* error handling as shown in the previous examples !*/
}
/* close the sessions to the instrument and the resource manager */
viClose (instr_session);
viClose (rm_session);
}
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com