LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Execute x secs. & close VI from VB 5.0

Hi all,

I want to run a VI script from a VB program, and close it after x secs.
(where x depends from the user input in the VB exe). I tried it with the
following code (according to an example found in the doc):

vi.FPWinOpen = False 'Close front panel
Set vi = Nothing
lvapp.Quit
Set lvapp = Nothing

but ... the VI doesn't close.
What's wrong ? (I have no knowledge about LabView, and not a lot in VB too
.... ¦=)
Any help well appreciated !

tia, Markus
0 Kudos
Message 1 of 3
(2,908 Views)
I forgot to mention that if the VI is corrupt/not working (missing sub-VI
o.s.), then the code works ...
Hope somebody can help ?

bye, Markus

"Markus Grossrieder"
wrote in message news:3911bdc0@newsgroups.ni.com...
> Hi all,
>
> I want to run a VI script from a VB program, and close it after x secs.
> (where x depends from the user input in the VB exe). I tried it with the
> following code (according to an example found in the doc):
>
> vi.FPWinOpen = False 'Close front panel
> Set vi = Nothing
> lvapp.Quit
> Set lvapp = Nothing
>
> but ... the VI doesn't close.
> What's wrong ? (I have no knowledge about LabView, and not a lot in VB too
> ... ¦=)
> Any help well appreciated !
>
> tia,
Markus
>
>
0 Kudos
Message 2 of 3
(2,908 Views)
Hi again,
since I got no answer (and my posting is moving slowly down in the group
....),
- is there a special group for this kind of problems ?
- is the question simply too stupid ?
- or just nobody ever did something like call LabView from VB ?
Maybe it's much easier to include the functions directly via some DLL's (I
think I saw somewhere an example ...) ?
I really appreciates every hint, or some other source indications ...

Thanks again, Markus

"Markus Grossrieder"
wrote in message news:39130718@newsgroups.ni.com...
> I forgot to mention that if the VI is corrupt/not working (missing sub-VI
> o.s.), then the code works ...
> Hope somebody can help ?
>
> bye, Markus
>
> "Markus Grossrieder"
s.grossrieder@without.this.alba-systems.com>
> wrote in message news:3911bdc0@newsgroups.ni.com...
> > Hi all,
> >
> > I want to run a VI script from a VB program, and close it after x secs.
> > (where x depends from the user input in the VB exe). I tried it with the
> > following code (according to an example found in the doc):
> >
> > vi.FPWinOpen = False 'Close front panel
> > Set vi = Nothing
> > lvapp.Quit
> > Set lvapp = Nothing
> >
> > but ... the VI doesn't close.
> > What's wrong ? (I have no knowledge about LabView, and not a lot in VB
too
> > ... ¦=)
> > Any help well appreciated !
> >
> > tia, Markus
> >
> >
>
>
0 Kudos
Message 3 of 3
(2,908 Views)