DAQmx and State Machines.
Greetings,
I'm having a little trouble working with DAQmx and State Machines.
What I'm trying to do is as follows:
Turn on a digital output to fire an air cylinder.
Start a timer.
Begin acquiring data from a load cell.
When the timer is done, turn off the digital output.
Start a timer
When that timer is done stop acquisition.
"Cycle" is complete. Save data etc.
Unfortunately there's no reed switch on this cylinder. So the operation is going to be time/load based.
The feedback from the load cell also needs to serve as an emergency stop if the load exceeds a given value. As well as a Pass/Fail criteria should the load be above or below a given value.
I've had problems in the past with two DAQmx tasks happening at the same time and I'm hoping someone with experience has some tips for me.
I'm envisioning my load cell DAQ happening in a loop parallel to my main state diagram loop. I'm assuming I'll have to use a continuous acquisition if I want to monitor for an overload situation. If I use this method, I'm not sure how I'll be able to keep/save/display the data relevant to the test. I'm also not sure if this is even a good approach to this problem.
Any guidance or suggested reading would be greatly appreciated.