Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Wheel speed and RPM

Hi,

I have a cRIO and I was planning on using some digital I/O pins to read data from a hall effect sensor so I could measure RPM and Wheel Speed and log the data

 

Using this tutorial:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0UdCAI&l=en-US

I was able to get my program started and see that the data was comming in properly as the boolean lights blinked on and off

but when I added code to now manipulate the data the code broke. I'm not sure if it is a formating error or not but I tried to implement the code in two ways.

 

1) Do data manipulation in the FPGA before sending Wheel speed data to Real Time VI via FIFO

2) Do data manipulation in the Real Time VI

 

Is there something that im doing wrong, can the formating be done this way, and if so which method would lead to a more efficient result?

 

Method 1 uses FPGA Full (Sub VI).vi and FPGA Full.vi and RT.vi where as Method 2 uses RT Calculation.vi and FPGA Full (Sub VI).vi and FPGA.vi

Download All
0 Kudos
Message 1 of 4
(7,033 Views)

Here are the other two files!

Download All
0 Kudos
Message 2 of 4
(7,031 Views)

unfortunately I do not have a moment to provide a review of your code.  However, I am curious whether you have seen this code:

 

This is for an analog tachometer, yet the trigger level check produces a boolean, and may be a good model.

https://forums.ni.com/t5/Example-Code/Decoding-Tachometer-Signals-Using-CompactRIO-and-LabVIEW-FPGA/...

 

 

Some background:

https://www.ni.com/docs/en-US/bundle/labview-sound-and-vibration-toolkit/page/digital-tachometer-sig...

Preston Johnson
Solutions Manager, Industrial IoT: Condition Monitoring and Predictive Analytics
cbt
512 431 2371
preston.johnson@cbtechinc
0 Kudos
Message 3 of 4
(7,009 Views)

Hmm interesting, I will definitely take a look at this and see if I this will help
Thank you

I still would like to know about the formating of the code I wrote if you get the chance
but i'll reply once I can test out that code

0 Kudos
Message 4 of 4
(7,003 Views)