NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameters to a vi

I have a library of vi's that I would like to use in my test stand
sequence. Instead of redesigning the vi's, can I pass arguments
directly into the controls in the vi? Can I also trigger dialog
buttons from test stand?

I need to set the value in some fields in the vi. Then I need to press
the "execute" button, which will return the error structure.

Thanks in advance,

Brett


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 4
(6,101 Views)
From TestStand, you can't directly pass arguments
into the controls. NI plans to allow this in a
future (distant future) version of TestStand.

In the meantime, you could write some wrapper VIs
that pass data to your controls. You can use the
TestStand API to read/write variables from
TestStand. In the
examples\AccessingPropertiesAndVariables
directory, you will find an example that shows
how to use the TS API.

It sounds like the VI Server vis would work well
to dynamically control your VIs. I'm sure there
must be some examples in the examples database at
http://www.natinst.com/support/epd
You can search or browse this database.

Hope this helps,
Paul Mueller
NI


In article <7oni2t$3tn$1@nnrp1.deja.com>,
brettnick@my-deja.com wrote:
> I have a library o
f vi's that I would like to
use in my test stand
> sequence. Instead of redesigning the vi's, can
I pass arguments
> directly into the controls in the vi? Can I
also trigger dialog
> buttons from test stand?
>
> I need to set the value in some fields in the
vi. Then I need to press
> the "execute" button, which will return the
error structure.
>
> Thanks in advance,
>
> Brett
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>



Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 2 of 4
(6,101 Views)
From TestStand, you can't directly pass arguments
into the controls. NI plans to allow this in a
future (distant future) version of TestStand.

In the meantime, you could write some wrapper VIs
that pass data to your controls. You can use the
TestStand API to read/write variables from
TestStand. In the
examples\AccessingPropertiesAndVariables
directory, you will find an example that shows
how to use the TS API.

It sounds like the VI Server vis would work well
to dynamically control your VIs. I'm sure there
must be some examples in the examples database at
http://www.natinst.com/support/epd
You can search or browse this database.

Hope this helps,
Paul Mueller
NI


In article <7oni2t$3tn$1@nnrp1.deja.com>,
brettnick@my-deja.com wrote:
> I have a library o
f vi's that I would like to
use in my test stand
> sequence. Instead of redesigning the vi's, can
I pass arguments
> directly into the controls in the vi? Can I
also trigger dialog
> buttons from test stand?
>
> I need to set the value in some fields in the
vi. Then I need to press
> the "execute" button, which will return the
error structure.
>
> Thanks in advance,
>
> Brett
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>



Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 3 of 4
(6,099 Views)
From TestStand, you can't directly pass arguments into the controls.
NI plans to allow this in a future (distant future) version of
TestStand.

In the meantime, you could write some wrapper VIs that pass data to
your controls. You can use the TestStand API to read/write variables
from TestStand. In the examples\AccessingPropertiesAndVariables
directory, you will find an example that shows how to use the TS API.

It sounds like the VI Server vis would work well to dynamically control
your VIs. I'm sure there must be some examples in the examples
database at http://www.natinst.com/support/epd
You can search or browse this database.

Hope this helps,
Paul Mueller
NI


In article <7oni2t$3tn$1@nnrp1.deja.com>,
brettnick@my-deja.com wrote:
> I have a library of
vi's that I would like to use in my test stand
> sequence. Instead of redesigning the vi's, can I pass arguments
> directly into the controls in the vi? Can I also trigger dialog
> buttons from test stand?
>
> I need to set the value in some fields in the vi. Then I need to
press
> the "execute" button, which will return the error structure.
>
> Thanks in advance,
>
> Brett
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 4 of 4
(6,099 Views)