VXI and VME

cancel
Showing results for 
Search instead for 
Did you mean: 

trigger

Using C++ VISA 3.6, I'm looking for a program to send a trigger from one controller and recieve it on a second controller. The program below

is a attempt to generate a external trigger and is not working.

Two problems

1) API Command viSetAttribute (instr, VI_ATTR_TRIG_ID, VI_TRIG_TTL0); does not support VI_TRIG_PANEL_OUT.

2) Using an example program below from NI, the code below does not send a trigger to the backplan line TTLTRG0* P2-A23

 

status = viOpen (defaultRM, "VXI0::0::BACKPLANE", VI_NULL, VI_NULL, &instr);

status = viSetAttribute (instr, VI_ATTR_TRIG_ID, VI_TRIG_TTL0);

status = viAssertTrigger (instr, VI_TRIG_PROT_ON);

getchar();

status = viAssertTrigger (instr, VI_TRIG_PROT_OFF);

getchar();

status = viClose (instr);

status = viClose (defaultRM);

0 Kudos
Message 1 of 1
(6,623 Views)