LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording RPM using Same Sky AMT10E3-V Rotary Encoder

Hi, I have never used LabView, NI Max, or any other NI software/hardware and looking for some help. I am currently studying Oscillating Water Column wave energy and I am setting up a rotary encoder to record turbine RPM. This will be plugged into an NI-9411 DAQ card. I have the encoder wired and plugged into the DAQ card but do not know how to program this to actually record the RPM. Where should I start? Any assistance is greatly apprecitated!

0 Kudos
Message 1 of 8
(408 Views)

NI Hardware Encoder Measurements: How-To Guide

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 8
(349 Views)

This helped alot. I am able to get singular readings but need it to be continuous. I keep getting errors when I attempt to set an external clock. Any ideas?

 

0 Kudos
Message 3 of 8
(304 Views)

Post your code but make sure that you save it for version 2020 or older. This will allow more people to help. Most people that use LabVIEW do not say on the most current version of LabVIEW.

You can also look at the links at the top of the forum. They will give you more info about programming and LabVIEW.

aeastet_0-1749655523083.png

 

Tim
GHSP
0 Kudos
Message 4 of 8
(298 Views)

Search for Examples on LAbVIEW Help Menu, thats' always a good starting point. 

0 Kudos
Message 5 of 8
(289 Views)

LabViewWorking.png

I think I got it working. Here is a screenshot and the VI itself. Any tips on how to make it better are greatly appreciated!

0 Kudos
Message 6 of 8
(279 Views)

Hi Deep,

 


@DeepSeaSasquatch wrote:

Any tips on how to make it better are greatly appreciated!


  • Remove the FromDDT ExpressVIs after the GetTick function.
  • Replace that formula node with plain functions, like correcteddelta:=(delta+360) mod 360… (There is a Quotient&Remainder function!)
  • Show the digital display of the gauge and delete the additional numeric indicator.
  • Never create several controls/indicators with exactly the same label! Use different labels to identify them uniquely, use captions in the frontpanel…
  • Avoid coercion dots, like on that wait function. Use proper datatypes!
  • Avoid the DAQAssistent, use plain DAQmx functions as explained in the DAQmx example VIs and here!
  • Initialize shift registers to avoid undefined start conditions…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(269 Views)

Hi, I think I made most of the changes you recommended. As I have continued to try to make improvements to my program I am now trying to sync this device to be on the same recording clock as another so I have it now set to continuous recording at the same frequency and using the sample clock from the same 9225 card. However, as I try to run this I do not get an RPM output in my new program and can't figure out what is going wrong. Could you look at this and let me know? Thanks in advanced for the help!

 

I have attached the VI, screenshot of the VI, screenshot of the NI Max configuration and timing.  

DeepSeaSasquatch_0-1751998006095.pngDeepSeaSasquatch_1-1751998026544.png

DeepSeaSasquatch_2-1751998043231.png

 

0 Kudos
Message 8 of 8
(67 Views)