09-12-2010 04:31 PM
I am using NI DAQ PC-6225 and using it to read Analog voltages and digital inputs using a C program
I want to add additional functionality to compare a Analog voltage in a C program against a threshold value and trigger a digital output whenever the threshold is exceeded.
The documentation gets pretty confusing and when I use the DAQmxCfgAnlgEdgeStartTrig funciton it did not work.
I am hoping to find a pointer to an example that will let me set this up.
your help is appreciated.
ManRaob
09-12-2010
07:17 PM
- last edited on
02-10-2025
10:56 AM
by
Content Cleaner
As you can see from the specs, your board does not support analog triggering.
09-13-2010 12:24 AM
Thanks. Any other options to achieve the result with this board?
Best
ManRo
09-13-2010 03:17 AM
How about using a simple discrete comparator and a software controlled analog reference plus a digital output for power/enable?
The LM393 is an old standard... or use the LT1394
09-13-2010 07:35 AM
Thanks Henrik. That is an option.
I have 22 systems in the lab and was hoping for a software solution to get this done.
ManRoab
09-13-2010 11:24 AM
The software solution would be to read x number of samples, compare each to your threshold, and doing the DAQmx Write of the digital output under software control. There, of course, would be some lag in this since you would have to wait until x number of samples are acquired.