From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

setup, main and cleanup

Hi,
 
I have developed three Labview APIs that performs three different tests on  a DUT.
I would like to take this to TestStand where I can use multiple DUTs. In all the three tests, Instrument initialization and configuration is common, where as only the acquisition and measurement part differs.
Is it ok to call the initialization and configuration in the Setup Sequence and acquisition & measurement in the Main Sequence?
I can use Cleanup Sequence for closing the instrument.
 
I am using TestStand 3.1 on Windows 2000.
 
Any help will be appreciated.
 
Thanks and Regards
Holy
0 Kudos
Message 1 of 10
(6,160 Views)

What you propose is fine.

Doing all the instrumentation open/initialization in setup and the close in cleanup of Main is common.

You can do all your acquisition in main if you like, and for a simple program this is very easy to understand and maintain.

If your program becomes more complex, you can add additional sequences in your file and call those sequences from Main. The advantage of this is that each sequence has it’s own setup/cleanup. This provides a convenient place to reset/configure instruments between tests and has some advantages when executing a sequence in debug modes or a loop.

You are not forced into placing instrument initialization or configuration into any specific location by Test Stand. You can even put your config/init steps into it's own sequence and call that sequence from the setup of another sequence if you choose.  It is very flexible, and will allow you to place almost any action in the location that is most convenient for you. 

Good Luck

Message Edited by mvr on 10-06-2005 07:40 AM

Message 2 of 10
(6,147 Views)

Hi mvr,

Thanks for replying me. I got it.

Regards

Nihal

0 Kudos
Message 3 of 10
(6,121 Views)

Hello Mvr,

I am trying to develop TestStand Sequence for NI RFSA 5660.
I want to use Setup for initialization of RFSA (ni5660 Initialize.vi) and Cleanup for closing (ni5660 close.vi) as discussed. while in the Main, I call acquisition & measurement.

During Initialization, ni5660 Initialize.vi generates receiver info out, a reference handle to the instrument session to the next VI.               {The Manual says: Do not modify the contents of this (receiver info out) wire manually. }

How can I pass this reference to the next VI, which is in the Main via TestStand  and also to susequent VI. In other words how to access same instrument session across the different Step Groups.

Regards

Holy

 

0 Kudos
Message 4 of 10
(6,061 Views)
There is a example here that sounds like what you are looking for.  There are also step types within Test Stand that will control an IVI instrument directly without the need for supporting Labview code. 

Message Edited by mvr on 10-20-2005 08:22 AM

0 Kudos
Message 5 of 10
(6,053 Views)

If you are calling into a DLL another way to deal with instrument handles is to pass them or use them as globals inside the DLL file itself.  If you don’t need to pass the handle back to test stand for any reason you can maintain the instrument handles completely within your DLL just as you would if you were writing a stand alone application.

0 Kudos
Message 6 of 10
(6,048 Views)

Hi,

Using the TestStand string you are using as the resourse name or alias string that you use to initialise the instrument eg: "GPIB0::5::INSTR".

Instead of using the reference returned from the initialise vi, just wire the Teststand resource string again to you vi's in the Main. You can either cast  the string using the VISA I/O constant or IVI I/O constant ( not sure which interface you are using), or just wire your string directly to your instrument vi.

I have used this method successfully in the past.

hope this hopes

Regards

Ray Farmer

 

Regards
Ray Farmer
0 Kudos
Message 7 of 10
(6,041 Views)
Hi
 
I'm new to teststand. Got a similar query,  I would like to to pass the reference of instrument from labview to teststand . For this I'm unbundling the data into string and the variant.This variant i'm flatenning it and then passing this three elements to the Teststand into local variable. I then do the reverse procedure when passed to the next  step (VI). However I get the error  ProxyCaller. 
Any suggestion would be of great help.
Thanks in advance
Thakker
0 Kudos
Message 8 of 10
(6,009 Views)

Hi,

This seems to be a tortuous route.

In the TestStand palette in labview you should find a couple of VI's that will convert your instrument reference to an integer and integer to instrument reference. You store your reference as a number in Teststand.

Or

you can try my other suggest in this thread.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 9 of 10
(6,002 Views)

Hi,

Try this example

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DB6156A4E034080020E74861&p_...

Regards

Ray Farmer

Message Edited by Ray Farmer on 10-24-2005 09:56 AM

Regards
Ray Farmer
0 Kudos
Message 10 of 10
(6,001 Views)