ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView IO Class Implementation Query

Solved!
Go to solution

Hi All,

 

I have a problem with a correct implementation of IO control. The problem goes like this.

 

I have a user interface for a DUT which uses TCPIP, Serial and USB connection. On user interface, type of connection is selected from a drop down. which lets user input address of the DUT. This loads the appropriate class implementation for the module.

 

_T_M__1-1693926463261.png

 

I am trying to avoid having three IO input controls on the interface, and ideally trying to avoid creating abstractions for the parent class to implement the required class. 

 

I have tried type casting but there are mismatches at different parts of the code where some methods are expecting TCPIP instr. session as an input. I will need to use type casting in a lot of places and I am trying to avoid it. 

 

"To a more specific class function does not work with IO VISA Class".

 

Is there a more cleaner way to programmatically select correct VISA class?

_T_M__2-1693926984315.png

 Any help will be appreciated! 

 

0 Kudos
Message 1 of 3
(1,743 Views)
Solution
Accepted by _T_M_

In few words...

 

IVI: Interchangeable Virtual Instrumentation. VISA isn't where you want to be.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(1,734 Views)

Thank you for your help 🫨

0 Kudos
Message 3 of 3
(1,709 Views)