03-05-2009 01:27 PM
Hello,
I was wondering if you could help me with the following.
I have a sub VI that basically reads a text file and sends it out on the serial port. What I would like to do is update a progress bar (indicating how much of the file has been read/sent) on the main VI whilst this sub VI is running. I would also like to update a text box on the main VI to display the data read from the text file.
I am intending to use the sub VI on other LabVIEW projects so I need to keep it modular.
Which is the most logical way to go about doing this? Passing each control I want to update by reference? Or is there a better way?
Any help would be appreciated.
Regards,
Matt
Solved! Go to Solution.
03-05-2009 02:08 PM
03-05-2009 02:11 PM - edited 03-05-2009 02:11 PM
Matt
You need to create a Reference to your Main.vi Progrss bar then use a propertn node in your subvi to update the parent control.
03-05-2009 03:07 PM
jmcbee,
Here are some screen prints of my LabVIEW diagram. Note: these were done for testing hence the the reason for no error checking and the like
See attached files
Thanks
Matt
03-05-2009 03:15 PM
Thanks VADave,
I will give it a go. Are references and property nodes still the best way of doing this for the way I've set out my LabVIEW program.
Matt