Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

mirror output 6602

I'd like to mirror the output of one of the general purpose couters on the 6602 on another pin. One of the other counter outputs would be fine, or one of the digital io pins would work too. I'm using Visual C++ /DAQ. I don't see an easy way to do this. Any suggestions?
Thanks
0 Kudos
Message 1 of 6
(4,091 Views)
If you are using DAQmx, the function woudl be DAQmxExport Signal

DAQmxExportSignal
int32 DAQmxExportSignal (TaskHandle taskHandle, int32 signalID, const char outputTerminal[]);


Your signal ID would be DAQmx_Val_CounterOutputEvent and your outputTerminal would be a PFI line

You can read more about this function in the NI-DAQmx C Function Reference Help found in your Start Menu under Programs >> National Instruments >> NI-DAQ

-Sal
0 Kudos
Message 2 of 6
(4,083 Views)
Hi !

I got approx. the same problem here, except, that I´d like to mirror the output in the TraditionalDAQ interface. Any suggestions warmly appreciated!

Thanks in advance!
Zorniki
0 Kudos
Message 3 of 6
(3,962 Views)
Hi zorniki-

This routing can be done relatively easily in Traditional NI-DAQ using the Select_Signal function. An explanation of this function and its use can be found here: How Do I Internally Route a Signal from One Counter to Another on the PCI-6602 board?

The function itself and pin names are explained in greater detail in the Traditional NI-DAQ Function Reference Help located at Start>Programs>National Instruments>NI-DAQ on your start menu.

Thanks,
Tom W
National Instruments
Message 4 of 6
(3,943 Views)
Hi Tom!

Thanks for the quick response! Is it also possible to route the output to any digital I/O? Can the divider for the output also be 1 ?

What I´d need also is a way to select one of the Timer outputs and route it to one and the same digital I/O pin. Is that possible?

Best regards!
Zorniki
0 Kudos
Message 5 of 6
(3,934 Views)
Hi Zorniki-

Yes, you can route counter signals to DIO lines by using the DIO lines in the appropriate PFI context.

In the Traditional NI-DAQ Function Reference Help I mentioned before, search in the index for "Select Signal Parameter Discussion for 606X devices" (the 606X is entered incorrectly in the index of the help file, but the article actually refers to 66XX cards). This article gives the proper syntax for using PFIx as a parameter in Select_Signal.

You can then use Select_Signal twice to route the counter signal to the virtual RTSI bus and then retrieve it and assign to the PFI line. The procedure to accomplish this is listed in the same help file for Select_Signal with this example provided:


---
Example

To send a signal from your E Series device to the RTSI bus, set signal to the appropriate RTSI bus line and source to indicate the signal from your device. To send the analog input start trigger on to RTSI line 3, use the following call:

Select_Signal(deviceNum, ND_RTSI_3, ND_IN_START_TRIGGER, ND_LOW_TO_HIGH);

Example

To receive a signal from the RTSI bus and use it as a signal on your E Series device, set signal to indicate the appropriate E Series device signal and source to the appropriate RTSI line. To use low-to-high transitions of the signal present on the RTSI line 4 as your scan clock, use the following call:

Select_Signal(deviceNum, ND_IN_SCAN_START, ND_RTSI_4, ND_LOW_TO_HIGH);
---


Regards,
Tom W
National Instruments
0 Kudos
Message 6 of 6
(3,922 Views)