10-09-2009 10:09 AM
Hi,
I am calling a vi in my main vi. In my main vi i want to display the each status/information happening in the subvi which is placed in the main vi in every next line of my status indicator which is present in the main vi. Can anybody tell me how to do this.
Reagrds,
Rajashekar
Solved! Go to Solution.
10-09-2009 10:22 AM
Rajashekar wrote:Hi,
I am calling a vi in my main vi. In my main vi i want to display the each status/information happening in the subvi which is placed in the main vi in every next line of my status indicator which is present in the main vi. Can anybody tell me how to do this.
Reagrds,
Rajashekar
I think you'll have to be a bit more specific about it. What kind of status? Something the sub-VI is generating or properties of the sub-VI? 🙂
10-09-2009 10:29 AM
HI,
Think i am having two vis one is main vi and another is test subvi. I am calling my test vi in the main vi. In main vi i have an string indicator to display messages. whenever i run main vi it executes test vi. In test vi i will be performing 'n' no of operations and for each operation i will have message which i want to display that message in the string indicator present in the main vi. The string indicator should display message one after another without overwriting the previous message.
Regards,
Rajashekar
10-09-2009 11:06 AM
A few ways:
Global variable (not recommended)
Queue (good)
Notifier (also good)
By reference (neat and clean, here's how to do it)
10-09-2009 11:08 AM
Broken Arrow wrote:A few ways:
Global variable (not recommended)
Queue (good)
Notifier (also good)
By reference (neat and clean, here's how to do it)
- Create a Reference to the String indicator on the FP.
- Create a Control of that Reference, and put it in the sub-vi as an input.
- Wire the reference on the main VI to that reference control on the sub-vi.
- In the sub VI, update the String indicator with a Property Node by wiring that reference control to the prop node and set the prop to value.
Nice job. Kudos.
10-09-2009 11:22 AM
Here's a quick demo. Do be careful about building arrays in loops as I have done in the sub-vi. If you have a manageable & finite amount of things to write to the indicator, you should be OK with this, but if the message can grow forever, there are better ways.
10-13-2009 07:20 AM
Hi, Broken Arrow
The vi you posted is in LabVUEW 9.0 version but iam having LabVIEW 8.5 can you convert it to LabVIEW 8.5 and send me back. So i acn check it.
Regards,
Rajashekar
10-13-2009 07:24 AM
Hi, Broken Arrow
The vi you send is in LabVIEW ver 9.0 but i am having LabVIEW ver 8.5 can you convert it to LabVIEW 8.5 and send me back.
Regards,
Rajashekar
10-13-2009 07:36 AM
Broken Arrow wrote:A few ways:
Global variable (not recommended)
Queue (good)
Notifier (also good)
By reference (neat and clean, here's how to do it)
- Create a Reference to the String indicator on the FP.
- Create a Control of that Reference, and put it in the sub-vi as an input.
- Wire the reference on the main VI to that reference control on the sub-vi.
- In the sub VI, update the String indicator with a Property Node by wiring that reference control to the prop node and set the prop to value.
Can we give negative Kudos?
Your way is too complicated, and any time you use references to access data values in controls you run the risk of race conditions. Simpler is better. Queues are great, but you also left out a functional global/action engine which would also work out very well.
10-13-2009 08:15 AM
hi, there can anybody convert the above vis to LabVIEW 8.5 and send me back so that i can check it.