In article <390F7244.43AB7001@usa.alcatel.com>,
"Kevin B. Kent" wrote:
> This is a multi-part message in MIME format.
> --------------DA2BD2026037D62EFDEB5A6E
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> regislee@my-deja.com wrote:
>
> > Hi,
> >
> > I'm looking for some basic examples using VI Refnum controls.
> > Basically I'm interested in Opening and closing VI's using its
Refnum
> > instead of its path.
> >
> > Thanks
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
>
> you can find some examples in labview/examples/viserver/dynload.llb
>
> As far as I know you must still use the path to the VI to create the
VI refnum.
OK...once you've used the path once to
create the VI refnum, how do
you use the refnum access a certain VI?
For example. I have a main VI that calls and opens or closes 3 other
VI's using VI Server functions...So once I open a VI using the
following,
(pathnameA)---(OpenViReference)---(FrontPanel.Open=True)
how do I go about referencing the opened VI so as to manipulate it
(eg. to close the VI)? Right now, I'm close the VI's using:
(pathnameA)---(OpenViReference)---(FrontPanel.Open=False)---(CloseVIRef)
As you can see, I'm using the same pathname to close a VI that's
already opened and has a refnum associated to it. Does that mean I've
now created two refnums to the same VI?
This is what I've been trying to do:
(refnum to PathnameA)---(frontpanel.open=False)---(CloseVIRef)
Also, Using this method of Opening and closing VI's, I seem to be
getting errors when opening the VI's the second time around. (Error
1000 I believe. It mentions something about the VI not being in a
proper state)
BTW, when I tried runn
ing dynload.llb, many of the vi's are not
present on my machine. any suggestions?
Thanks,
Regis
Sent via Deja.com http://www.deja.com/
Before you buy.