Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy, rather than export, a Counter output?

Hi,

In DAQmx (in C++), using an E-Series board, I have exported a Counter output to an RTSI line. This works fine. However, perhaps to be expected, the signal disappears from the Ctr0 output. For debugging and logging purposes, I would like to retain a copy of the original Counter pulse, while Exporting it to the RTSI line.

 

Is there a way to copy, say, a control signal? i.e. set up a 1-to-2 terminal routing?

 

Specifically, I want /Dev/Ctr0 to still be accessible on PFI6 and the SAME signal to be copied/routed/exported to an RTSI line.

 

Thanks for any advice.

 

 - Per

 

0 Kudos
Message 1 of 3
(5,544 Views)

Hi Per,

 

Yes, you can do this using DAQmx connect terminals.

 

int32 DAQmxConnectTerms (const char sourceTerminal[], const char destinationTerminal[], int32 signalModifiers);

 

You can locate this in the DAQmx C reference help by searching "route terminals".

 

Regards,

 

Greg H.

 

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(5,536 Views)

Per,

 

One thing I forgot to mention is if you do connect the terminals, you should disconnect them at the end of your program.  If you do not do this then your device will continue to have these terminals connected until you disconnect them or reset your device.

 

Regards,

 

Greg H.

Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(5,533 Views)