05-30-2017 11:14 AM
Hello,
I am working with NI 6612 PCIe and C#. I am aware of the possible internal routes of my card. I managed to connect my DIO-lines physically and could successful monitor a signal signal I generated on Oscilloscope. Basically, I had some sort of this:
CTR0 Out => Pulsetrain => physical wire => CTR2 src=> Read (e.g. Count edges)
Now my problem is how to address the internal routes of my card properly. I would like to be able to monitor any digital signal I have created but without any physical wire.
Thank you in advance
Solved! Go to Solution.
05-31-2017 04:09 AM
Hi nmzs,
You can do this using NI-MAX:
http://digital.ni.com/public.nsf/allkb/E539D226A643C1CE8625715E007C23C8
Let us know if it helps.
Bart
05-31-2017 04:26 AM - edited 05-31-2017 04:30 AM
Hi,
If you want to connect two counters with each other like in your example, you can use the CountEdgesTerminal property for an edge count channel like this:
Task myTask = new Task(); CIChannel CIChn = myTask.CIChannels.CreateCountEdgesChannel("Dev2 / ctr1", "Count Edges", CICountEdgesActiveEdge.Rising, 0, CICountEdgesCountDirection.Up); CIChn.CountEdgesTerminal = "/Dev2/Ctr0InternalOutput";
The property name for the input signal depends on you task type so it will not always be CountEdgesTerminal.
In my example the internal counter output signal Ctr0InternalOutput will be connected to the input of counter 1.
Here you can also find more detailed information about how to export and connect signals as an alternative. It's written for LabVIEW but the approach is the same.
In .NET the method to connect signals is called DaqSystem.Local.ConnectTerminals(...)