NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

lvclass Object Reference Value

What parameter value is passed to the lvclass object. TS is looking for an Object Reference Type.

TS Object Ref.png

 

0 Kudos
Message 1 of 7
(2,927 Views)

I'm starting to think the Object VI "Open Visa connection" doesn't really need a control lvclass on the connect pane. I could just disconnect the lvclass from the VI input which is the same as changing the lvclass to a constant, where its only on the LV block diagram.

 

The lvclass dat has 2 items, an ethernet alias name e.g. "SigGen" as setup in MAX and string "model number".

 

But at some point I'll need to pass a lvclass reference from TS.

0 Kudos
Message 2 of 7
(2,880 Views)

How do I interface a LVClass to a TestStand Object Reference?

 

Looks like I never got any response on this question.  A VI has a LVClass control, TS is looking for an Object Reference to interface with the LVClass. 

 

The only thing I can think of is use a VI that has the object as an output (creates the object) and read that object as a reference into TestStand where it can be used as a reference on further TS steps.  Is this correct way of doing this?

0 Kudos
Message 3 of 7
(2,346 Views)

Hi, 

The shipping example (<TestStandPublic>\Examples\Fundamentals\Calling Dynamic Dispatch VIs) shows the use of a LV Class with TS. 

Regards, 

Anand Jain

NI

0 Kudos
Message 4 of 7
(2,343 Views)

Did you notice that if you Bundle or Array LV2020 Objects, TS2019 converts these to numerical type.  I could not find a way to cast a numeral type to Object Ref.  I wanted to painlessly input many LV Objects into TS without doing any type conversion. I don't see a way to do this as yet. I only have 3 LV Objects for this task but it may not be only 3 LV Objects next time.

 

I was expecting TS to have a LV Object Ref as a built in type whether its an array or wire-bundle LV Control/Indicator.

 

Before looking at the shipping example, I did exactly what the example does - I read in each (i.e. 3) LV Objects into a TS parameter.  The shipping example used a Local Variable to read 1 LV Object.

0 Kudos
Message 5 of 7
(2,324 Views)

I do not see the issue of LV Class References showing up as numbers in TS. Here is what I tired. 

 

Anand_Jain_0-1621448539919.png

 

 

Can you post an example showing the issue with LV class References show up as number in TS?

 

Regards, 

Anand Jain

NI

0 Kudos
Message 6 of 7
(2,314 Views)

Oh I forgot to mention it is a Dynamic Call VIs. Make your LV Object dynamic call.

 

Thanks for the response.

0 Kudos
Message 7 of 7
(2,310 Views)