NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand connect VB problem

Hi
I have a problem for TestStand and VB,
I have established MotherForm and ChildForm for VB,
has 2 childform in Mainform(Left form and Right form),
How do i have to use Engine with the VB communication
when i click "Start button" for Left form or Right form?
0 Kudos
Message 1 of 4
(3,451 Views)
Hi Viko,

You should only have one TestStand Engine control (add the TestStand API 2.0 component group to your palette) in your VB application and it would be most convenient to place it on your Parent MDI Form (it won't be visible at run-time). With the engine control on your parent form you can access the engine's methods and properties from any code module in your application by using statements like this:

parentForm.Engine1.NewExecution clientSeqFile, MainSequence, parallelModel, False, 0 ' This will launch a new sequence execution

Also, since your parent form will always be loaded during your apps execution it would make sense to have the engine control on it so that the UIMessage Event handler will remain intact at all times.

Jason F.
Applicatio
ns Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 4
(3,451 Views)
Hi Jason F,

Thank your answer,I get very information.
May I give related MDI Form the example?

Thank's
0 Kudos
Message 3 of 4
(3,451 Views)
Dear Jason

I'm very appreciated your suggestion.
As I'm not quite familiar with this topic.
Could you show me an example for illustration?
my E-mail address: vikoyang@hotmail.com

Thank's
0 Kudos
Message 4 of 4
(3,451 Views)