12-05-2012 03:15 PM
Hello, I am using a USB 6229 Board. I am trying to count a square wave signal with a counter input. My problem: my signal is wired to PFI15, I am not sure how to change my counter source to PFI15. In MAX I connect a function generator to PFI15 and select that channel as my source and see the counter change, I am not sure how to do this in .NET
Thanks JWilson
12-06-2012
05:12 PM
- last edited on
11-14-2024
08:26 AM
by
Content Cleaner
Hello,
Since it seems like you are able to do what you wanted to in MAX, I would suggest creating a task in MAX and calling it in Visual Studio using the following line of code: DaqSystem.Local.GetSavedTaskInfo("cDAQtask");
You also may want to look at the counter example that is shipped with DAQmx found at the following path:
<Documents>\National Instruments\NI-DAQ\Examples\DotNET4.0\Counter\Count Digital Events\CountDigEvents
I have also found some useful material for you in regards to using DAQmx in the .NET framework and included links below.
Changing the Input Terminal for a Counter Measurement with NI-DAQmx: https://www.ni.com/docs/en-US/bundle/ni-daqmx/page/countersigcon.html
Using NI-DAQmx in Text Based Programming Environments: https://www.ni.com/en/support/documentation/supplemental/21/using-ni-daqmx-in-text-based-programming...