Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

writing data to the csv data sheet

Dear all: i have project using sbrio as hardware i am running my program using fpga and real time program, my problem as follows, i collect all data i need to record in my target as csv data sheet files my problem that the writing data to the csv inside the main whle loop of the the all real time program that is make my program running in different frequency required form the timming loop for ex. my timming loop is 100 Hz but actually it seems to me running at 20 Hz, i feel that done due to using writing the data in that loop is their any way to overcome that problem for ex. writing the data outside the main loop or any othet way hopefully find examples solved that problem, thanks for help

0 Kudos
Message 1 of 2
(4,459 Views)

Hello AlaaShaw,

 

Best practice for this type of application is to have two loops--one that handles deterministic operations and one that performs non-deterministic operations (such as writing to file or communicating to the host PC). You can transfer data between these loops using RT FIFO variables without affecting the determinism of your main loop, or with single-process shared variables. Here is a help document explaining data communication:

 https://www.ni.com/docs/en-US/bundle/labview/page/data-communication-methods-in-labview.html

 

An example for how to implement this architecture can be seen here:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0UdCAI&l=en-US

 https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2DACAY&l=en-US

 

In the future, please post to the LabVIEW RT discussion forum.  This will increase the visibly of your issue and increase the response time.

http://forums.ni.com/t5/forums/searchpage/tab/message?submitted=true&type=message&q=rt&page_size=50&...

 

Regards,

Thomas C.
FlexRIO Product Support Engineer
National Instruments
0 Kudos
Message 2 of 2
(4,441 Views)