Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use run-time configuration in conjunction with Session Manager?

I'm trying to avoid using MAX, basically because it's a pain for users to configure MAX when the application already knows what the configuration is. I actually get the configuration from a database, but that's another story. I've experimented with run-time configuration (see page 4-31 of the 'IVI Driver Toolset' manual) and it works fine. However, when I try to use this in conjunction with Session Manager, session manager complains that my logical name is not a driver session name. I suspect that Session Manager is looking up logical names from a different source, therefore run-time configuration won't work. Any suggestions? I've attached the files I'm working with.
0 Kudos
Message 1 of 4
(3,558 Views)
Hello Mark:

The Session Manager GetLogicalNames method does not distiguish between logical names and virtual instrument names. A user of the method cannot ask for just logical names or just virtual instrument names. Right now you always get both. The new function is called InstrSessionMgr.GetNames. Notice that the online help file says Boolean for the flags parameter when it is an enum.

Hope this helps. If you have any further queries, please let us know.

-NI support
National Instruments - Software IS the instrument!
0 Kudos
Message 2 of 4
(3,558 Views)
I don't think you understood the problem I am having. I'm using CVI functions to dynamically define a logical name (IVI_DefineLogicalName) then calling SM_GetSession with my new logical name as a parameter. The latter function returns an error that the new logical name is not a driver session. This only happens when I use run-time configuration. When I use ivi.ini (via MAX) it works fine. So my question is: does run-time configuration work with Session Manager?

Thanks, Mark
0 Kudos
Message 3 of 4
(3,558 Views)
Hi,
Currently Session Manager does not work with Dynamically created Logical Names. It reads the logical names from ivi.ini file. In the future we might consider making it work with dynamically created logical names.
Message 4 of 4
(3,558 Views)