Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Binary data to FPGA on cRIO

Hi!
I'm a beginner on programming with LabVIEW. I want to read data from a file on my PC. With the Bytes I want to set my digital output port.
The filesize is about 64k. Currently I read the data in a PC -VI. There I write it into a big array. I also created a shared variable array to use it on the cRIO host. On the host a write the data to a control, which is connected on the FPGA with a Memory. This solution works, but it's dirty.
 
Does anybody know a better solution. Is it possible to read the data from the host VI to save resources?
I want to save the data on the cRIO. Should I make a binary file on the cRIO?
 
My system: LabVIEW 8.5, cRIO 9014
 
Thank you for your help.
 
regards,
demo66
0 Kudos
Message 1 of 3
(4,301 Views)

Hello demo66!

About your questions:
Does anybody know a better solution. Is it possible to read the data from the host VI to save resources?
=> A Simple TCP/IP connection safe resources. The Shared Variable is easy to program but the performance with TPC/IP is better.

I want to save the data on the cRIO. Should I make a binary file on the cRIO?
=> Normally a binary file is more effective than an ASCII file.

Regards,

WolfgangZ

0 Kudos
Message 2 of 3
(4,249 Views)

Thank you for your answer!

Do you mean, that I should write the data unique over TCP/IP from the PC to the HOST? Do you have an example for TCP/IP?

What do you think is the best way to transfer the data from the HOST to the FPGA?

 

Regards,

demo66

regards,
demo66
0 Kudos
Message 3 of 3
(4,239 Views)