04-15-2007 11:43 PM
04-16-2007 12:17 AM
@Gayatri_GL wrote:
I have been trying to the value of a list box from a sub Vi to a main vi. The sub vi is the place where I enter all the values. So i want its values when I am plotting the data which is done in Main vi. I created a reference to the listbox, changed it to indicator, and wired the ref and the indicator. Then i pasted the indicator onto the main vi. But when ever i close and open the prog, the refernce becomes a void reference and I get a 1055 error. So i have to redo the copying and pasting everytime I open the prog. Can u please tell me how to transfer the refernce indicator from sub vi to main vi so that I can transfer the values of the listbox which I give in the subvi to the main vi. Also please tell me if there are ny other better methods of solving this.
Your description is not very clear, but have you tried using the connector pane of the subVI for the output (listbox reference or listbox value)?
It is also not clear what else you are doing because the terminology seems not right. Do you simply need the value of the listbox (typically I32) or the strings? Typical listbox data is not suitable for plotting, what are you plotting? What's in the listbox? Do the strings change in the subVI or are they static?
If you could make a small example VI containing simulated data, it might make all more sense and we can give more detailed advice and possibly suggest better methods. 😉
04-16-2007 09:35 AM