LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to start an animation in an ActiveX Container?

I need to have an animation start after an input voltage has reached/passed 5V. The animation is in an ActiveX Container (Shockwave Flash). I plan on using a Stacked Sequence Structure to first start and finish the aquisition of the input voltage. After the voltage reaches 5V, the following frame would be responsible for starting the animation. Does that sound like a good plan? The data aquistion works but the animation does not start.
Thank you for any help!
0 Kudos
Message 1 of 5
(3,220 Views)
Hey chip007,

I was looking at one of your other posts and I get the impression that you are more comfortable in flash than you are with Labview.  I pulled out the data aquisition portion of your program and simplified it a little bit.  Then I use ActiveX to call the flash animation.  I don't know much about how flash likes to be treated.  But there are a whole bunch of different methods that can be called.  Hopefully you have some good documentation on what exactly each method does.

After I placed the ActiveX container, I left clicked on it and selected "Insert ActiveX Component".  On my machine it gives me a huge list, but Shockwave was in there.  Then you just wire the reference on the block diagram to However many Invoke nodes as I needed.  You can select the specific method by left clicking on "Method".  If you want to see the properties, do the same thing with a property node.   Do not forget to close the reference or you will have a memory hole the size of a Buick.

I don't think you need the stacked sequence.  Labview's dataflow paradigm keeps everything happening in the correct order.  The first Invoke node will not start until all of its input wires are populated and the "error in" will not populate until the DAQmx Clear Task is finished.  DAQmx Clear Task will not start until the loop is finished, etc.





Message Edited by jasonhill on 06-28-2006 12:18 PM

0 Kudos
Message 2 of 5
(3,202 Views)
jasonhill,
 
I am not too familiar with Flash (both LabView and Flash are quite new to me). I make the animations in a flash-like program called KoolMoves and export them as SWF movies.
As per your diagram, I am unable to create the necessary invoke nodes (the "Load Movie" does not show up after trying all of the possible methods). My file is attached.
 
Thank you so much!
0 Kudos
Message 3 of 5
(3,185 Views)
I am so sorry.  I forgot to mention that you have to wire the Shockwave referece control to the "reference" input terminal on the invoke node before any of the methods are availible.
0 Kudos
Message 4 of 5
(3,181 Views)
Thank you so much! Your ideas worked well!
0 Kudos
Message 5 of 5
(3,177 Views)