01-25-2013 07:50 AM
Hi,
In my program, I have a subvi with a loop, I want to send an error outside to the main vi before the sub vi ends to run.
This error I want to use as an input to another subvi.
How could I do so?
I have tried to send reference and update the value by property node - but then I cannot use it as an input.
Thanks in advance,
Hanan
01-25-2013 08:00 AM
What you can do is call the sub vi using a Open VI reference and let it run independenlty. Inside the sub VI use a Global variable of Error cluster and update the error cluster to the Global variable and in the main VI read that error cluster Global and perform action accordingly (Or simple you can update the status boolean of the error clister alone)
01-25-2013 08:06 AM
Under our labview project restrictions we are not allowed to use Global Variable. Is there anyway to avoid the use of GV?
(P.S. we do can use FGV).
Thanks,
Hanan
01-25-2013 08:10 AM
Then use FGV to pass the error cluster instead of using the reference.
01-25-2013 08:13 AM
Well, there are Queues and Notifiers you can use to send data.
@Hanan-Grisha wrote:
Under our labview project restrictions we are not allowed to use Global Variable. Is there anyway to avoid the use of GV?
(P.S. we do can use FGV).
<Rant>
Do use FGV with just Get and Set cases? Those are EXACTLY the same as a global variable, just with more overhead.
</Rant>
01-25-2013 08:40 AM - edited 01-25-2013 08:41 AM
If I call the VI dyanmically then for using the queue I have to pass the Queue reference through FGV (unless calling the Queue using the name) so I thought FGV is a straight forward solution.
01-25-2013 08:59 AM
You can can a vi dynamically with inputs to the connector pane for the sub vi.
When you call the vi dynamically, just supply it with a queue reference