10-25-2019 07:53 AM
What parameter value is passed to the lvclass object. TS is looking for an Object Reference Type.
10-25-2019 11:56 AM - edited 10-25-2019 11:58 AM
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.
05-17-2021 08:06 AM - edited 05-17-2021 08:15 AM
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?
05-17-2021 08:12 AM
Hi,
The shipping example (<TestStandPublic>\Examples\Fundamentals\Calling Dynamic Dispatch VIs) shows the use of a LV Class with TS.
Regards,
Anand Jain
NI
05-19-2021 10:19 AM - edited 05-19-2021 10:20 AM
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.
05-19-2021 01:23 PM
I do not see the issue of LV Class References showing up as numbers in TS. Here is what I tired.
Can you post an example showing the issue with LV class References show up as number in TS?
Regards,
Anand Jain
NI
05-19-2021 02:50 PM
Oh I forgot to mention it is a Dynamic Call VIs. Make your LV Object dynamic call.
Thanks for the response.