01-04-2012 08:07 PM
Using PCi-7332 controller and UMI-7774 tied to LabVIEW application. How can I save data on incremental values of encoder? Please look at small version of vi. Thanks for your help...
01-06-2012 01:59 PM
Hi dg_lbe,
What exactly do you want to save? You certainly appear to be on the right track. By taking the encoder position, converting it to some meaningful unit, and using a boolean to trigger a case structure, you can certainly save incrementally based on position. You might consider using something like the "Quotient & Remainder" function to supply logic when certain increments are reached. What are you interested in saving?
01-08-2012 02:17 PM
Well I am saving info. from a USB device monitoring a sensor.
01-09-2012 04:04 PM
In that case, you will just need to repeatedly read the encoder position while also taking values from your DAQ device. Since you are communicating over USB, you will probably want to use NI-VISA as your communication method. If you look in LabVIEW's example finder under Hardware Input and Output >> VISA, you will find example code showing how to structure this. Additionally, you can implement logic similar to this example. You will want to read the encoder position and values from the USB device in a while loop, like the example, and log when your case structure goes true. If you replaced the DAQmx code from the example with VISA commands, keeping the reference open/close outside your while loop, you should be on the right track. Let me know if you have any questions about getting this put together.
01-09-2012 04:14 PM