11-23-2010 09:02 AM
Hi,
I would like to know how to obtain Switch Executive Route groups and/or routes sessions for Teststand via the NI Session Manager. I am effectively obtaining a session to the virtualdevice, ie SE::MyVirtualDevice but seem unable to obtain sessions for route/routegroups.
The
InstrSessionMgr.GetNames ( category, flags, filter) the InstrSessionMgr Class
seems to be able to satisfy that request since the GetNamesOptions Enumeration flags list these as possible options.
"Use these constants to specify the flags parameter of the InstrSessionMgr.GetNames method. The flags parameter specifies the types of names and the format of the names that the GetNames method returns.
But I dont seem to be able to retrieve routes or routegroups with this method and always get an empty array.
Any pointers on how to use this method with these two flags (with labview preferably but c or c++ will do too) would be appreciated.
Regards,
Cyril
Solved! Go to Solution.
11-24-2010 10:21 AM
What are you passing in for your parameters?
You should be able to use SessionManager.GetNames("SE", 0x30, "virtualDeviceName").
Allen P.
NI
11-24-2010 11:14 AM
Thanks Allen,
Must have been sleepwalking when I wrote my code, as I was passing the entire string "SE::MyVirtualDevice" for the filter category....
Works like a charm now..
Thank you