08-12-2015 08:29 AM
Hi all,
I have created a small program in labview FPGA that continuously gets distance from ultrasonic sensor HC- SR04. The rest of the program for the robot is written in Labview real time module. Is there any way that the distance calculated by FPGA module be read in real time module.
I have used FPGA just because it has micro-second counter, that helps me to get the distance from ultrasonic sensor.
Thanks in advance.
Solved! Go to Solution.
08-13-2015 03:33 AM
There are number of ways this can be done, depending on your requirements.
Check out the help article Transferring Data between the FPGA and Host (FPGA Module) for a breakdown of each method.
08-13-2015 06:25 PM
08-14-2015 11:28 AM
I believe the link that Michael attached in his response is exactly what you're looking for. There are additional links at the top of that page that go into more detail for the three options you have to transfer data from the FPGA to RT.
08-16-2015 11:44 PM
techfreak,
On the FPGA VI front panel, display the FPGA calculated values you want. Then on the RT, drop a 'reference' to the FPGA, set the reference to your specific FPGA VI (the VI will need to be compiled).
Once you have the FPGA reference 'wire' you can drop an FPGA property node on the RT diagram - you will see the FPGA front panel controls and indicators. Read the values of the FPGA front panel indicators, via the reference property nodes in a loop. You can easily get read rates in the kHz this way.
You're not passing that much data nor need a read rate that would require a FIFO.
Try opening, a Module specific example, to get an idea of how to do this. The project frameworks are interestsing, but the module example is more direct.
Regards
Jack Hamilton