Showing results for 
Search instead for 
Did you mean: 

Use Single Process shared variable for control AND loging

Go to solution

Dear NI friends,


I use a real-time application (see attachment) with various VIs running in parallel on a PXI target.

In the, sensor data are captured and simultaneously actuators are commanded both inside a Timed Loop. Also a is used for interaction with the user, e.g. chart monitoring and update of control setpoints. This vi communicates with the via single-process shared variables and with the user interface via network-published shared variables.

A third, is used for logging data and saving them on the PXI. After the test I can load the text file onto the host pc. My question is how should I log variables that are already used in the Should I use a separate single process shared variable and basically capture the data twice or can I read the same variables that are used for communication with the I am not sure if conflicts can arise due to the fact that one variable will be read from two separate VIs simultaneously.



Best wishes,



0 Kudos
Message 1 of 3
Accepted by topic author Lysandros
02-14-2018 12:45 AM

You can just read the same variable.  Just make sure only 1 place is ever writing to that variable.


Personally, I would use a Queue to send the data to the logging loop.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 2 of 3

Thanks for the quick reply. I did not mention that I also need the acquisition timestamp for each variable. If I enable timestamping, will this time be the acquisition time or the instant I call the variable again inside the

Best regards


0 Kudos
Message 3 of 3