01-18-2018 10:41 PM
I am using NI PXIe-1062Q Chasis (connected to a Dell workstation Precision 1700) with the following modules :
1. NI PXIe-8381
2. NI PXI 7851 R
3. NI PXIe-6738
4. NI PXIe-6535
In my workstation, I have plugged in the PCIe-8381 module for connecting NI PXIe-8381 to the computer into a PCI-E Gen 3 x16 slot. Now here are my questions :
Solved! Go to Solution.
01-19-2018 01:22 AM
Hi RRI,
Q1: The FPGA VI has no loop, so it will run just once and terminate. As the FPGA runs (typically) at 40MHz clock the VI will be terminated within ns. Do you really think you can set a Wait time so fast after starting the FPGA that the FPGA will obey your wishes?
Q2: Why don't you try this? Why don't you access FPGA IO directly? Why do you use references with IO nodes?
I also wonder about your VI names: why do you call the FPGA VI as "subVI"?
I guess it's the MainVI running on your FPGA?
01-19-2018 04:17 AM
Hi GerdW,
Thanks for your suggestions.
May I request you to upload sample VIs for both your answers? I see I have a lot to learn from you.
I will also try on my own but your help will make things easier for me.
01-19-2018 04:26 AM - edited 01-19-2018 04:29 AM
Hi RRI,
LabVIEW comes with a lot of example VIs and projects!
Please create/open one of those example projects regarding RT/FPGA to see all those mentioned things…
There are also example projects/VIs for most cRIO modules - you can examine them too!
01-22-2018 06:35 AM
01-22-2018 06:41 AM
Most likely you are running your bitfile on opening the reference. This means that your code on the FPGA is most likely finished long before you write anything to the FP control.
Add a waiting loop on the FPGA so that you can "trigger" when you want the acquisition to start. This can be a change in the Timer value (using -1 as a sentinel value) or a boolean, whatever you want. But you need to force the code you want to execute to receive the data you need to control the timing BEFORE it executes.