07-10-2020 05:19 AM
Greetings,
I am working on a FPGA project to control an electronic power converter.
I have one question regarding data acquisition. I can correctly read voltage signals and send them to the host, so I can plot them in a graphic. This FPGA host communication is made through FIFO.
The problem is that, when I send this signal to the graphic, x axis is not showing time vector of the signal but ticks. I mean, instead of showing any time unit, it shows integer numbers. How can I make to show associated time to the specific data point?
Thank you and best regards.
Solved! Go to Solution.
07-10-2020 07:28 AM
Hi igbaquedano,
@igbaquedano wrote:
when I send this signal to the graphic, x axis is not showing time vector of the signal but ticks. I mean, instead of showing any time unit, it shows integer numbers. How can I make to show associated time to the specific data point?
Just apply some scaling to the X scale values, either in the properties dialog of the graph or by using property nodes…
(The scaling should be based on your sample rate in the FPGA.)
07-10-2020 07:58 AM
Assuming you are sampling at a set rate, all you really need is the time the acquisition started. You could use the time you told the FPGA to start. And then it is simple to build that into a waveform. Your graph will then apply the time based on T0 (start time) and dt (sample rate in seconds).
07-12-2020 04:38 AM
Hoi igbaquedano,
As I know, you cannot send waveform data from your FPGA. You can make waveform data on your host computer. Use your sampling rate data to calculate dt (dt=1/F) for your waveform data. You can see how to make it on example NI 9232 Getting Started.lvproj.
Reza
Application Engineer