09-08-2009 12:03 PM
I just wanted to setup the DAQmx Start Trigger.vi using the analog window, but I get Error-200077.
Why do I get this error?
(When you run the vi attachec, you must use controls to selectd physical channels.)
09-08-2009 12:37 PM
09-08-2009 01:15 PM
For the vi attached previously, I was using a virtual DAQ device. I created the device using MAX. What I really want to do is use an analog input line like a digital input line (i.e. if the analog input is above 2.2V then set a variable to 1, and if the analog input is less than 0.8V then set the variable to 0.)
09-08-2009 01:59 PM
You will need to software time the acquisition since I don't see the benefit of hardware timing it. Attached is a solution (replace the boolean with the number constant).
09-08-2009 02:31 PM
Thanks, that will work for the problem I mentioned. I should have mentioned that time is critical in my case. I was trying to use the "analog window" of the DAQmx Start Trigger.vi b/c I was hoping it would be fast.
This is just a portion of the code for the project. This task we've been discussing needs to be done (along w/ some other tasks) in a timed loop executing at 1kHz. I will try to see what results I can get by modifying the code.
Is there a reason you chose to include a 50ms wait?
09-08-2009 03:30 PM
Well, but why would you use the start trigger if you wanted to acquire the data continuously from the beginning. That's something I didn't understand.
The application should be able to work at 1Khz since you are using the DAQmx API to acquire only a single point.
No, there is no reason for the 50ms wait. You can choose whatever wait you want.