NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the "Query Instrument Status" in the Measurement and Automation Explorer programmatically from Teststand?

Hello,
I have to change the "Query Instrument Status" of the IVI drivers of my measuring devices in the M&A Explorer from activate to deactivate and the other way around (see attached picture). Is it possible to do this programatically by teststand? If yes. how can iI do this?
 
regards
 
samuel
 
 
0 Kudos
Message 1 of 3
(3,241 Views)
Hi,

I will try to answer your question. But why don't you do it manually using MAX ?

You can use the Ivi Configuration Server to do it (TestStand ActiveX adapter). But I didn't find any help file.
I found only a big documentation (the specifications) from the Ivi Foundation web site :
http://www.ivifoundation.org/Downloads/Architecture%20Specifications/IVI-3%205_V_1%205_Approved.pdf

So I developped a sample sequence for you :
The sequence finds the logical name defined in "Locals.NAME_TO_FIND" (DMM here).
If the name is found, I get the driver session and set the "Query Instrument Status" to False.

Regards
Bruno



Message Edité par bruno_p le 12-12-2007 02:46 PM
0 Kudos
Message 2 of 3
(3,231 Views)
Hello,

I don't understand if you want to configure MAX definitively or if you want to change the attribute only for the current instrument session.

If you want to change the attribute value for the current session, you can use an IVI Tools step.
In the edit dialog box of the step you can select the instrument name, then select the "Set attribute" operation and choose the IVI_ATTR_QUERY_INSTRUMENT_STATUS attribute.
Pass the value you want.

Which module adapter are you using to use your instrument ? TestStand Ivi steps ?

Bruno


0 Kudos
Message 3 of 3
(3,191 Views)