05-23-2013
10:28 PM
- last edited on
10-13-2024
06:46 PM
by
Content Cleaner
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
05-23-2013 10:30 PM
Here are the other two files!
05-24-2013
01:23 PM
- last edited on
10-13-2024
06:47 PM
by
Content Cleaner
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.
Some background:
05-24-2013 09:48 PM
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