LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using IVI sessions in GOOP applications?

I am trying to use a IVI session in my application that is built with the GOOP arcitecture. The problem is that I am allowed only to open one IVI session for the specific Instrument (NI-SWITCH) but I have multiple objects that need to use the instrument. I was thinking to initialize the IVI session in the main application object and have each object that uses the instrument keep a copy of the instument handle as a data member, but I can't figure how to do this. If anyone has an idea how to do this or any other solution it will be much apreciated.
0 Kudos
Message 1 of 2
(2,130 Views)
n.rooz,

You can create a reference to the IVI logical name that you can import as part of your object created in GOOP. To do so, create a control RefNUM,right click>>Select VI server class>>Generic>>GObject>>Control>>IOName>>IVILogicalName.

Regards,
Cyril Bouton
Applications Engineer
National Instruments
Cyril Bouton
Active LabVIEW Developper
0 Kudos
Message 2 of 2
(2,130 Views)