NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

daqmx vi's and teststand integration

Solved!
Go to solution

So far i have been doing good on teststand using regular instruments as  scope, power supply, function generator, dmm and switches.

 

so i had to use a daqmx card  for a particular test. And i found that i cannot pass the reference of the task across teststand as it would be with a regular dmm, function generator instrument. the regular proces i am used to is to:

 

*init instrument(get reference)

*use Vi's to :

                 Configure

                 Read

                 Start

                 Stop

              

*Close reference

 

So what i had to end up doing for example in a test were i set analog ouput value to my DUT then  via serial port get the value that my DUT is reading. 

 

the ususal way will be steps:

-set daqmx

-start daqmx

-Read Serial DUT and do a limit test

-Stop daq

-Close task

 

but it doesnt work that way.

 

what i end up doing is run a vi on the background with the Daqmx task and have a notifier from testand closing my vi like the picture

 

daqmxexample.png

 

 

Teststand notifier

 

testandnotifier.png

 

is my statement about daqmx  correct?

 

is this one of the ways to do it with daqmx?

 

your input to improve the use of daqmx on testand will help me a lot. 

 

thanks 

 

 

CLAD, CTD
0 Kudos
Message 1 of 4
(3,256 Views)
Solution
Accepted by topic author buton

Buton,

 

You can indeed pass the DAQmx task handle between different LabVIEW action steps. TestStand has what's called a LabVIEWIOControl, which is a particular kind of object used to transfer these LabVIEW IO parameters between steps. More information on this process can be found here: http://digital.ni.com/public.nsf/allkb/131A6A87C331B3CA862571EA0004D8C1

 

On the LabVIEW side, all you would need to do is create the necessary controls/indicators wired to your front panel with the task handle inputs and outputs; the above KB describes how to implement the object that will handle these references on the TestStand side.

Kirk L. | Applications Engineer | National Instruments
Message 2 of 4
(3,163 Views)

Buton,

 

For your information, MESULOG provides free DAQmx Custom Step Types for NI TestsTand.

They are we easy to use :

 

daqmx_steps_palette.png

 

And it's FREE !

So don't hesitate to download and try it.

 

Kind regards,

Jean-Louis SCHRICKE
CTA - Certified TestStand Architect (2008 & 2010 & 2014)
CTD - Certified TestStand Developer (2004 & 2007)
CLD - Certified LabVIEW Developer (2003 & 2005)

Message 3 of 4
(1,979 Views)
Highlighted

Thanks for this....

CLAD, CTD
0 Kudos
Message 4 of 4
(1,974 Views)