LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read a digital encoder in Labview 7?

Hello - I have a digital MR encoder (line driver) and I need to hook up one channel, as well as an index channel. How do I read this information with Labview 7?
0 Kudos
Message 1 of 6
(3,310 Views)
NewMachine,
It depends on the type of DAQ board you are using. We have many examples online that show how to use encoders. Simply go to: http://www.ni.com/devzone/dev_exchange/ex_search.htm and enter "encoder" as the search string and LabVIEW as the software. You can leave everything else default.

There are also several encoder tutorials in the Developer Zone to help explain the theory if you are looking for additional information.

Have a great day!
0 Kudos
Message 2 of 6
(3,310 Views)
This doesn't help me - none of the links get me "started". I have a 6024E board. I have to measure speed and position (two seperate counter channels). I attempted to create the DAQmx global channel and saved it, but don't know how to read the values and display them in Labview 7.

Thank you
0 Kudos
Message 3 of 6
(3,310 Views)
To create code from your DAQmx Global Channel, simply right-click on it and select Generate Code>>Example Code. Then if you want to display your data in another form than the one given, drop your indicators on the Front Panel, perform whatever analysis you need to on the block diagram, and finally connect the wires as needed. If you need additional assistance, please post specific questions to yield the most helpful answers from the forum.
0 Kudos
Message 4 of 6
(3,310 Views)
Right click on it from where? MAX? because that is the only place that I have set it up in. What do I click on if I open Labview 7? Please post specific answers to be more helpful. Pardon me....for if I was posting here, I obviously don't know enough about the subject to know what kind of information you might need....
0 Kudos
Message 5 of 6
(3,310 Views)
I apologize if I sounded abrupt - I'm just trying to help you get the specific answers you need. In LabVIEW, on the block diagram, drop a DAQmx Global Channel Constant from All Functions>>NI Measurements>>DAQmx-Data Acquisition palette. Then click on the downward arrow and select the global channel you created in MAX. Then continue with the instructions from my previous post to create the sample code. Hope this helps more.
0 Kudos
Message 6 of 6
(3,310 Views)