05-13-2009 05:48 AM
Solved! Go to Solution.
05-13-2009 05:57 AM
you are trying to place the main.vi in a subvi of the main.vi. This will result in main.vi calling itself within the subvi which results in recursion and hence the error is popped up.
Clarify the activity you are trying to do. are you trying update a control in mainvi from subvi using the referance of the control? post the vi if possible.
05-13-2009 06:05 AM - edited 05-13-2009 06:07 AM
HI JK,
Well to be specific and simple, the problem is as follows: i want to update an indicator in the main VI from a sub VI. The subVI is running a loop and variable within that loop has to be returned to mainVI. Please let me know how this can be done.
Please post the solution for lavbiew 8.2 version.
05-13-2009 06:40 AM
ravi kumar wrote:
i want to update an indicator in the main VI from a sub VI. The subVI is running a loop and variable within that loop has to be returned to mainVI.
Pass the reference to the indicator in the Main VI into the SubVI thro' the conbnector pane. And use a generic property node [Value property] wired to this input refnum, thats it... It ll do the job you want.
05-13-2009 06:42 AM
I dont have LV in my PC, so cant post an example.
Search the Example finder for Update Waveform using Property Node, you ll get what I meant...
05-13-2009 09:36 PM
i have attached a simple example demonstrating the functionality.
Hope it helps.
05-13-2009 11:15 PM
JK,
I am using LV8.2. Please post the vi for that version..
cheers
05-13-2009 11:19 PM
It is better to mention your LV version in the que/first post itself.
Maybe you can add that in your signature itself.
05-14-2009 03:37 AM
Vi's attahced in LV 8.2
cheers
05-14-2009 06:59 AM
Dear JK,
Thanks for the VIs.
I have a few doubts regarding them.
Please outline the steps involved in creating the VIs
1. We place the control/indicator in the main VI and create a reference.
2. Then we create a value property for that control/indicator and place in the block diagram of the sub VI.
3. Now how the gauge control is placed/created that refers to the control/ indicator in the main VI?
Regards
Ravi Kumar