LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subpanel and activex

Hello all,

I got an issue that I can't seem to solve.
Principle is very simple. I need to open a child VI from a parent VI using subpanels. Child VI contains an activeX control for live video streaming.
As you know, I need to call functions such as register camera, connect video and start streaming to be able to stream. To shut down camera, I have to call functions such as disconnect video and unregister device.
Say I want to stream. I remotely call Stream.vi with the subpanel. Register camera, connect video and start streaming are therefore called. Then I want to stop streaming. What do I do? Do I call another child VI called stopstreaming.vi? If so where do I get the ActiveX reference from Stream.vi?
I don't know how to pass on some logic from the parent VI to the Child VI. Am I missing something very simple?
Thanks

0 Kudos
Message 1 of 2
(2,477 Views)

Hello,

You could use a simple notifier.  In that way, you must only know the name of the notifier to pass data between two programs.  There are two ways you could use the notifier.  You could use the child VI and have it send the ActiveX reference through the notifier, or you could have the parent VI send a message to the child VI that it needs to stop streaming.  Hope that helps; feel free to ask me if you need more help on the subject.

7J1L1M

P.S.  I use LabVIEW 7.1 in case you need to know...

Message Edited by 7J1L1M on 12-02-2006 10:12 AM

Message Edited by 7J1L1M on 12-02-2006 10:12 AM

Message 2 of 2
(2,472 Views)