LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

access variable in the same tilme

Can i have to access in reading at the same time (for example by 2 process in parallel) at a control (string for example) witout risk to crash the PC?
Likewise, is it possible to write at the same time in a indicator  witout risk to crash the PC? How to work the access right on a variable (locale and others)
It is mandatory to use a queue file?
 
Thanks in advance  
0 Kudos
Message 1 of 2
(2,383 Views)
Yes, it's possible to read the value of a control in multiple locations without it "crashing the PC". I'm guessing you've had a bad history with computer crashes?

For indicators the questions doesn't make much sense. An indicator will always display the last value written to it. So, while you can access it from more than one location, you will only see the last value (unless it's a waveform chart, of course.).

Now, there's actually a secondary issue, which is where the control/indicator is, and where you're trying to access it. A control/indicator resides on the front panel of a VI. If you're trying to access it from another VI then you have to use the VI Server functions to get to it. While errors with the VI Server are infrequent, they can happen. Never seen a crash, though, due to the functions. Can you use a queue? Of course. It all depends on the data you're trying to access and what you're trying to do. You asked if it's mandatory, and the answer is, of course, no.

If you can provide more detail into what you're doing a more specific answer can be provided as well as tips on program structure.
0 Kudos
Message 2 of 2
(2,355 Views)