LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating a String Control on a Main VI from a SubVI

Solved!
Go to solution

Hi all,

 

I have been searching far and wide but there seems to be no answer to what I thought was a simple question.

 

I have a front panel with a String Constant, an Array and a Waveform chart.

I have a sub VI which I want to update all three of these controls via references.

They are all in a while loop where the array and waveform gains a new random value each loop and is appended. 

I want the String to simply have the numbers there as well as it will later become a "log file"

 

I have successfully made it so that the waveform chart and the array update with the correct values via the reference method. I understand how it works and i can recreate it easily enough.

 

However, I am at a loss to how I can update the string control. using the same method, it doesn't become a "strict" reference and so when I try to write a Value to it using property nodes, nothing happens.

I don't understand how I can have an array constantly updating with a new number but I can't have a string update as well

 

Is there something simple that i'm missing or can you simply not update a string control via a SubVI?

 

Cheers

(I'll try upload a copy of the code later but its very basic at the moment due to being a proof of concept)

0 Kudos
Message 1 of 3
(1,369 Views)
Solution
Accepted by topic author RobJ95

Hi

Of course you can. The same way you update an array

0 Kudos
Message 2 of 3
(1,364 Views)

Would you believe me if I said that took me hours to try and get to work the other night..😐

Maybe it was sleep deprivation making me incorrectly wire up the loop and shift registers into the property node or something.

 

It now works.

Thanks pante

0 Kudos
Message 3 of 3
(1,354 Views)