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

I have to initialize a cluster (rs232 serial configuration) and modify it in a a subvi into a subpanel. The problem is that the values in output from the subvi return at previous value. I attach the vi and the problem is in state case prova3 changing a rs232parameter. I really appreciate any help you can provide. Michele 

0 Kudos
Message 1 of 22
(3,780 Views)

Hi Micky,

 

Your problem is the way you are executing this vi. You update the control every100ms with the old data. This wipes out any new information that a user would try to input. You need to read this in to one control and then have a different control to change the information. If the vi sees a difference then it should update and save the data. This is how I would do it with the structure that you have.

Tim
GHSP
0 Kudos
Message 2 of 22
(3,769 Views)

Thanks Tim, 

the desiderate it is to remain in the subvi Initconfiguration and i try to insert i while until press change configuration data, but i could load  in subpanel this vi because it remain in the while internal loop. I try to load into subpanel before, but i doesn't work. If you increase the timeout to 10000 you could see the value that change but it doesn't update the new value. Kindly could you show me an example about you have told me or could you modify my vi? Thank you very much Michele 

0 Kudos
Message 3 of 22
(3,757 Views)
0 Kudos
Message 4 of 22
(3,752 Views)

Thank but i think that it doesn't work yet because if change the visa it return previous value, doesn't it? thanks

0 Kudos
Message 5 of 22
(3,742 Views)

Perhaps, i think that the new problem is the event case timeout where i connect erroneously the input cluster to the output cluster, i try to modify the out connecting to the cluster in 2 and it seems work correctly, is this the problem? Do you think that is possibile to remain in the subvi into in subpanel until  an event will appear (for example button change value)? 

0 Kudos
Message 6 of 22
(3,739 Views)
Solution
Accepted by topic author micky71

Yes you can put a button in the subvi to make it update once you are done. Add a button and edit the event to mouse up for the button after you add it. If you decide to put a loop in the subvi none of the other code will execute.

 

You do need to change the second control (the one on the bottom) to get the values to change.

Tim
GHSP
0 Kudos
Message 7 of 22
(3,734 Views)
Solution
Accepted by topic author micky71

thank you very much Michele 


@aeastet  ha scritto:

Yes you can put a button in the subvi to make it update once you are done. Add a button and edit the event to mouse up for the button after you add it. If you decide to put a loop in the subvi none of the other code will execute.

 

You do need to change the second control (the one on the bottom) to get the values to change.


 

0 Kudos
Message 8 of 22
(3,728 Views)
Solution
Accepted by topic author micky71

You are welcome

Tim
GHSP
0 Kudos
Message 9 of 22
(3,724 Views)

sorry


@aeastet  ha scritto:

You are welcome



sorry, i noticed that i couldn't edit the configuration value because the timeout clear the old value but if i don't use timeout it doesn't load the subvi in subpanel. could help me, please? Michele  

0 Kudos
Message 10 of 22
(3,712 Views)