Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Start up VI not recording/logging data until connected to PC

Solved!
Go to solution

Hi,

 

I have a RT VI running from a myRIO 1900, which is recording and saving values to a USB plugged into the device. When connect to a PC, and manually operating the Main VI on the myRIO, data is logged with no issues.

 

The problem arrises when setting the VI as the start up, in an attempt to make the myRIO record the data as a standalone. 'Data' is being logged to the USB, but these entries are all 0. 

 

Data from sensors is read via FPGA interface, but appears to stop when not being operated over LAN connection to the PC. My first thought is that there are dependencies that are missing that wont allow the myRIO to read data from the sensors, but I have not been successful in finding any missing. Smiley Mad

 

 

0 Kudos
Message 1 of 4
(1,960 Views)
Solution
Accepted by topic author HTaylor95

Hey HTaylor,

 

Unfortunately many files are missing in the attached zip so I can only partially help. I noticed two things: The Open FPGA Reference VI configuration:

LabVIEW_2019-04-05_11-48-01.png

Not sure if it looks like this because the missing project and dependencies. Have you checked "Run the FPGA VI" on your end? Linking it to a Bitfile directly, and not the a VI.

 

 

Secondly, I noticed you are writing data from the FPGA to a Front Panel indicator and then reading if from there to lot it. As far as I know a Front Panel only exists on the PC(!) when the RT code is executed interactively from the PC - there is no Front Panel on the RT target. Please note that I am not sure about this as I did not work on myRIOs so far.

Try handing the data over from the deterministic loop to the logging one through a FIFO.


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
Message 2 of 4
(1,937 Views)

Hi Ingo,

 

Thanks for helping me with this! 

 

Okay that makes sense, so it makes more sense for me to transfer the data from the myRIO to the RT via a FIFO and then from the RT to the PC over a different set of FIFOs? Or is it just the one set of FIFOs between the RT and PC? 

0 Kudos
Message 3 of 4
(1,929 Views)

Sorry for the delayed answer.


So it makes more sense for me to transfer the data from the myRIO to the RT via a FIFO and then from the RT to the PC over a different set of FIFOs? Or is it just the one set of FIFOs between the RT and PC? 


The first version is the way I normally use. A DMA FIFO from FPGA to RT, then a Network Stream from RT to PC.

 

Generally it is possible to stream data from the FPGA directly to a PC, however that's a quite huge step (from deterministic FPGA with low memory to Ethernet/PC), therefore less common. Depending on your application maybe still a valid choice.

 

 

There is a page online explaining the main communication options between FPGA, RT, and PC (there called "HMI"). See chapter 4 / table 2 in: Understanding Communication Options Between the Windows HMI, RT Processor, and FPGA.

 


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 4 of 4
(1,892 Views)