09-01-2011 02:35 AM
Hello,
I'm using the NI PCIe-6353 to control a stepping motor.
Parallel to this I am measuring the pressure with a load cell.
My question:
Is it possible to send an impuls with x samples (using ctr) to the motor
and read simultaneously the voltage (ai) given by the load cell with this card?
The mototr should stop if the pressure on the load cell eceeds a specific pressure.
I did not find information on parallel r/w with this card...
In LabView I used two parallel while-loops, with no succes ( - no simultanous r/w).
Is there perhaps a workaround in LabView?
Greetings and
thanks in advance!
09-01-2011 11:16 AM - edited 09-01-2011 11:16 AM
Hi Nocturn,
Yes, you can read and write in parallel. It sounds like you probably want to use the analog input to determine when to stop the counter. If this is the case, the following code shows a simple software-timed approach:
If you want the stopping of the counter to be more deterministic, you could configure an analog trigger and generate a pause trigger off of the analog comparison event to stop the counter. This is considerably more complicated than the above example however. Also, the accuracy of the analog trigger is not as good as the accuracy of the analog inputs, so if you used the more comlpex method you might need to do some of your own calibration depending on how precisely you need to stop your counter output.
Best Regards,