Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Using PCi-7332 controller and UMI-7774 tied to LabVIEW application.

 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...

0 Kudos
Message 1 of 5
(6,084 Views)

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?

Matt J - NI Tools Network
0 Kudos
Message 2 of 5
(6,067 Views)

Well I am saving info. from a USB device monitoring a sensor. 

0 Kudos
Message 3 of 5
(6,059 Views)

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.

Matt J - NI Tools Network
0 Kudos
Message 4 of 5
(6,048 Views)
Control of usb is with activex. Worried that the usb measurement will not be the correct value at the encoder increment. Will look at example later. Thanks
0 Kudos
Message 5 of 5
(6,046 Views)