08-24-2017 02:34 PM
Hello,
I have found a few examples addressing this problem but they are VIs and I am implementing this solution in C# so they are not entirely applicable. I would like to drive a digital output terminal high when my counter reaches an arbitrary value. How can I do this?
08-25-2017 09:02 AM
Hello b!tmaster,
I have found a few examples in C# using counters and digital events which you may be able to adapt to your application.
"NI-DAQmx: Counter Measurements - Count Digital Events - Buffered Finite with External Clock in .NET"
http://www.ni.com/example/30831/en/
"DAQmx - Count Digital Events with Pause Trigger - C#.NET and Visual Basic"
http://www.ni.com/example/29916/en/
Another observation is that, if you can open the LabVIEW examples, you can adapt the architecture of the examples to your application. This is because the DAQmx calls are similar between LabVIEW and other languages.
08-25-2017 10:38 AM
Jordans,
I will check that stuff out thanks.
08-29-2017 01:38 PM
This isn't exactly a solution but I ended up using the default ctr0 output terminal (P1.0) for the device I am using (NI USB-6218 BNC) instead of triggering a digital output.