09-01-2017 11:34 AM
I am trying to convert an old VI from using DAQ to FPGA using user-defined variables and I have no idea how to go about it. I was hoping someone could help because I'm sure I am missing some sort of obvious solution
Attached is a picture of what the DAQ looks like and what the VI looks like
09-01-2017 01:42 PM - edited 09-01-2017 01:42 PM
Hi atokad,
I am trying to convert an old VI from using DAQ to FPGA using user-defined variables
I suggest those steps:
1. Analyze this "old VI using DAQ" and write (on a sheet of paper!), what the VI does and which way it does its work
2. Learn about RT and FPGA programming in LabVIEW
3. Write a NEW FPGA VI and RT VI doing the same stuff as your old VI…
Hints/remarks:
- You cannot use the DAQAssistent or any DAQmx function in a FPGA VI.
- What are "user-defined variables"? Why do you want to use them?
- Which hardware do you want to use?
09-01-2017 02:44 PM
So I've written a FPGA/RT program before using user defined variables... I know that I cannot use DAQmx functions on the FPGA VI that's why I am trying to switch over to something else, but I don't know what to do. I'm using a cRIO 9035
09-01-2017 03:21 PM
09-01-2017 03:31 PM
I don't see how any of those questions are relevant....
I'm just trying to convert what I posted in that DAQ function into something that I can run on a real time VI and send a voltage reading to my FPGA VI
09-01-2017 03:46 PM - edited 09-01-2017 03:47 PM
Hi atokad,
you want to read an analogue input at 12kHz for 5s? Then you need to read the input in the FPGA and stream the data to your RT vi. You will find examples in LabVIEW (create a new RT project)...
Why do you want to send a voltage reading to the FPGA? Usually you get the reading from the FPGA...
You still don't explain the "user defined variables"...
09-01-2017 08:06 PM
GerdW wrote:
You still don't explain the "user defined variables"...
Think of Network Published Shared Variables that are writen to OR read from the FPGA (yes, they are uni-directional).
09-01-2017 08:14 PM
I had two projects last year where is was basically "replace this old DAQ system with something modern since the computer died and cannot be replaced". Both were talking to PLCs over DIO as well. So I replaced both of them with cRIO-9064.
Reach your channels in a loop on the FPGA and use a DMA FIFO to send the data to the RT. The RT can then do whatever FFT and spectral analysis from there. Not sure what else you have in there since you only showed a very small part of the code.