LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ to FPGA

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

Download All
0 Kudos
Message 1 of 8
(3,267 Views)

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?

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,230 Views)

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

0 Kudos
Message 3 of 8
(3,219 Views)

Hi atokad,

 

you didn't answer my questions...

What are"user defined variables"?

Which modules are in your cRIO?

Do you use the ScanEngine or FPGA mode? Or do you use the hybrid mode?

What should your program do?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(3,216 Views)

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

0 Kudos
Message 5 of 8
(3,211 Views)

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"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(3,205 Views)

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).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 8
(3,189 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 8
(3,185 Views)