LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi Call by reference subpanel update value connector pane problem

Solved!
Go to solution

You need to change the reference coming out the the VI Call by Reference Node. It was coming out of the open VI Reference. See the code I attached. I also added a tab control for your serial sub panel to make it less confusing.

Tim
GHSP
0 Kudos
Message 11 of 22
(913 Views)

sorry, but i think that the file attach is an old version because i couldn't edit the rs232 parameters, could you modify this value? thanks Michele 

0 Kudos
Message 12 of 22
(911 Views)

Yes I downloaded the new version and in the sub panel I can edit the parameters. Is this not how you want it to work?

Tim
GHSP
0 Kudos
Message 13 of 22
(909 Views)

The way you have the code written you have to use the increment and decrement buttons to change the values.

Tim
GHSP
0 Kudos
Message 14 of 22
(907 Views)

yes, but when i try to modify with the keyboard it will clear (return at the previous value) when the timeout expire. Locally (without timeout) i could edit with the keyboard or up/down , so do i wrong the type of control? your sincerely Michele

0 Kudos
Message 15 of 22
(906 Views)

Yes that is because of the way you wrote your code. What else is this vi going to interact with? Would it be a problem if the software stops everything else when it come into the serial update vi?

Tim
GHSP
0 Kudos
Message 16 of 22
(898 Views)

I'm sorry for my delay answer, no it isn't a problem, but i couldn't see the subvi into the subpanel if it remain inside the subvi, is it possibile to show it into the subvi and kindly do you have an example? thank you Your sincerely Michele 

0 Kudos
Message 17 of 22
(884 Views)

I would do something like this. Later I believe that you are going to need to look at a state machine system. Things are going to get more complicated from here. You need to look at some of the basics classes. THey should be free if you are a student.

Tim
GHSP
0 Kudos
Message 18 of 22
(866 Views)

Thank you for the answer, i know the state machine and i use it for manage my main menu, only last question about this last example and my necessity. In this example why i couldn't see prova_vi_select1 and 2 in subpanel, why?

I could see the configuration serial when i call "update" in the main but i couldn't insert it in subpanel with your event case until i'll press Update button in Initconfiguration.  This is the main problem, run the subvi in subpanel until i'll press the Update. Thank you in advance yet. Your sincerely Michele 

0 Kudos
Message 19 of 22
(851 Views)

Hi Micky,

 

I do not understand what you are asking. Can you give me a more detailed question?

What are your objectives?

What do you need this thing to do?

What is this going to interact with?

How are you using this vi to provide data or serial configuration to other parts of you code?

 

I do not have the big picture so I am not sure how you plan to use the information in this vi.

 

Tim
GHSP
0 Kudos
Message 20 of 22
(847 Views)