LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get an input signal from an encoder to the DAQ?

Hi..I am currently doing a project..My project currently requires me to read angular data of 2 rotary incremental encoder and then transfer the data to a NI 9411 DAQ using NI-cRIO 9012. The problem is that I am totally new about this programme. I did some practices and I managed to do some of its basic function. I really need anyone's help. Is there anyone that could guide me on how I should start my project or application? Your kindness is appreciated.

 

Thanks

Fairuzee...

0 Kudos
Message 1 of 19
(3,678 Views)

Normally you would use a counter to read the encoder. DAQmx has built-in functions to convert it to a position.

But the hardware you mentioned doesn't have a counter.

 

Felix

0 Kudos
Message 2 of 19
(3,672 Views)

Hi,

 

Just check NI examples search for 9411, you'll find a quadrature encoder example.

 

Note that your in the real time worldSmiley Tongue So yo'll need the RT and FPGA licenses.

 

You might have to  make a new project with the correct controller 9012.

 

xseadog

 

 

 

0 Kudos
Message 3 of 19
(3,665 Views)

I check the example 9411...It is quite complicated to me. I have done configuring my hardware just left with the programming. It just that i am a beginner on using this ni labview. If only my hardware got a DAQ that can count using counter of measuring angular data, it will be much easier for me but nw, its hard. Can someone help me?? I really need someone to guide me... 

0 Kudos
Message 4 of 19
(3,642 Views)

Guys, same with me here. I am trying to get an input signal from an encoder to show it to a sine wave graph using basic function of labview. Could anyone guide me through?

0 Kudos
Message 5 of 19
(3,618 Views)

Hi bedok,

 

Thank you for contacting NI.

With regards to your issue at hand, I believe you may find these links from ni.com quite useful:

 

http://zone.ni.com/devzone/cda/tut/p/id/7109

http://zone.ni.com/devzone/cda/epd/p/id/1721

 

If you have further questions about these, you can email us directly at asean.support@ni.com.

You could reply to this thread as you seem to have similar issues right now:

http://forums.ni.com/t5/LabVIEW/Getting-input-signal-from-encoder/m-p/1579614#M577993

 

Thanks!

 

Best Regards,
Gerrald Mateo
Applications Engineer
National Instruments
0 Kudos
Message 6 of 19
(3,600 Views)

Hi afai,

 

Apologies for not responding to your inquiry earlier. I'm Gerrald, an NI engineer, and I will be assisting you in your query. For future technical support regarding NI products, you may also email our engineers at asean.support@ni.com.

 

Now, regarding the 9411 example found in LabVIEW, in which particular part of the program are you finding diffuculty? We would be glad to help you understand this example better because it is a good avenue for learning LabVIEW programming with your 9411 hardware.

Thanks!

Best Regards,
Gerrald Mateo
Applications Engineer
National Instruments
0 Kudos
Message 7 of 19
(3,598 Views)

Hi Gerrald Mateo, 

 

Thanks for replying my enquiry. Currently, the example for NI 9411 is in scan mode. But mine project requires me to programme it according to a FPGA file and I am totally new to this NI Labview. May I know how to test the NI 9411 to see whether is it working or not? Is Ni 9411 has a built in counter as in mine project requires me to collect angular data from 2 different encoder and display it to a waveform graph? and is Ni 9411 a DAQ or DAQMX? I really hope you can help me. Currently, using Labview 2010, a cRIO-9012 controller, a NI 9104 chasis. 

0 Kudos
Message 8 of 19
(3,590 Views)

Hi afai,

 

If this is the case then I think you will find the 'Using This Examples.htm' file in the project explorer dialog box useful. The file lays out step by step instructions on how to use the existing project files for your personal application. Notice that in step 9, you will reconfigure the project into FPGA Interface. And yes, 9411 has an onboard clock that will enable you to input the encoder signals through its digital input channels. You simply need to select the hardware channel that you will be using as illustrated in step 16.

 

You can test your connectivity to your cRIO device using Measurement and Automation Explorer or MAX. You should be able to see your device under 'Remote Systems'. Please do note that if you are connecting to it via Ethernet/LAN cable, you should be in the same network. You can do this by either using a crossover cable or a router. You can right click on your cRIO device and click connect to verify good connectivity with the cRIO. You will also be able to see the detailed settings and status of your device at the righthand side of the dialog box. You may post a screenshot of any error or problem that you may encounter throughout this process. Thanks and I hope this helps you in your application.

 

 

Best Regards,
Gerrald Mateo
Applications Engineer
National Instruments
0 Kudos
Message 9 of 19
(3,584 Views)

You may also refer to page 5 of this manual for details on configuring your cRIO to connect to your PC through ethernet.

http://www.ni.com/pdf/manuals/374126e.pdf

Best Regards,
Gerrald Mateo
Applications Engineer
National Instruments
0 Kudos
Message 10 of 19
(3,582 Views)