キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Error code -17306 while accessing container from TestStand

 

Hi,

 

I am getting an error -17306 while accessing the TestStand container present in Station Globals using invoke node property object. Please find below the code snippet.

 

 

 

 

Code_Snippet.jpg

 

Thanks,

Neha

0 件の賞賛
メッセージ1/9
4,141件の閲覧回数

Hi

you would probably have more luck in the teststand forum, However why are you not using http://zone.ni.com/reference/en-XX/help/370588D-01/lvteststand/teststand_-_get_property_value/

Function?

You should be able to go Globals.UUT1.Name

 

Nick

 

 

0 件の賞賛
メッセージ2/9
4,039件の閲覧回数

Hi Nick,

 

Thanks for help. The problem got resolved. But I'll try with the alternate method which you mentioned above.

Just 1 question, how to pass a context to Get Property Value VI when the TestStand is launched from LabVIEW.

 

Regards,

Neha Kulkarni

0 件の賞賛
メッセージ3/9
4,034件の閲覧回数

It shouldn't matter what launches TestStand.

"ThisContext" (without quotes) is what you need to pass to the VI object reference for the Get Property Value VI

0 件の賞賛
メッセージ4/9
4,010件の閲覧回数

Hi Nick,

 

Yeah that's true. But my VI is not getting called from TestStand. The VI is stand alone and from that VI TestStand is being launched. So there will be no container pane from where I can map that reference to TestStand sequence. How to pass the sequence context in this case.

 

Regards,

Neha

0 件の賞賛
メッセージ5/9
4,006件の閲覧回数

Ok so you are in Chicken or Egg situation... sorry can't hlep there. Other than suggesting that the globals are stored in a file somewhere. 

0 件の賞賛
メッセージ6/9
4,002件の閲覧回数

 

Ok. Thanks 🙂

0 件の賞賛
メッセージ7/9
3,996件の閲覧回数

Hi

 

I am not sure too, how to obtain sequence context from TS application manager. However, did you try using the lookupstring as "StationGlobals.UUT1.Name" or as "FileGlobals.UUT1.Name"?

 

I think, the reference to globals will include Station Globals and File Globals. so, you might have to be specific in the lookup string.

 

the error says the name of the variable or property is not valid.

 

also, you wired "0" which means do not create the variable if not found. is that what you wanted to configure?

 

Regards
Freelance_LV
TestAutomation Consultant
0 件の賞賛
メッセージ8/9
3,990件の閲覧回数

Hi,

 

I have done it by the same way using lookup string. And that's working fine now.

I just wanted to find some alternate way if any.

 

Thanks.

0 件の賞賛
メッセージ9/9
3,983件の閲覧回数