LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a replica of textfield

Hi there,

 

I have this huge labVIEW program, that calls multiple subVIs.

To know where in the program I am, I have a textfield on the main page, and I pass it as a reference to all subVIs, and so I use it as some sort of a Software Status. 

Now, the main page is really big, and so one textfield is not enough, because sometimes I move to another position on page, and can no longer see this.

Is there a way to create a replica of this, so that I can put multiple of these textfields on the page at different locations? 

Thanks!

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

Hi,

 

There are many complicated ways to do this, but I can suggest a simpler but a little time consuming method

 

Assuming that you are using the value property of the original string indicator/control to update the status message, you can do the following steps

 

1. Place the new string indicators in your main vi's front panel.

2. Change the original string indicator's property to Value(Signaling) from Value  in all the places its been used.

3. Add a small while loop in your main VIs block diagram and place an event structure.

4. Add a value change event for the original string in the event structure. Pass the new value data to all other new string indicators.

 

You would see the status message displayed in every string indicator.

 

Hope this helps.

Message 2 of 3
(2,649 Views)
I would suggest using a separate "floating" VI that displays your status. A simple way to do this is to create a Status Log based on Action Engines that uses a queue for your status messages. The individual VIs would simply add a status message to the queue. The status information window would pull information off this queue. The window itself can be opened/closed your main VI through, say, a menu item. That's what I used to create a "Memory Log" component for the test exec that is used to run tests here where I work. Works like a charm.
0 Kudos
Message 3 of 3
(2,616 Views)