Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

calling viOpenDefaultRM() twice in the same program

Hallo
In our application we have multiple devices to control. Last year we connect our first devices with NIVISA. Now we will use VISA for the second device. We have implemented each device independent because there are some configurations with only one device. Therefore each device control calls viOpenDefaultRM() to get his own handle. My colleague says that it is illegal to call this function twice. But I don't find any hint for this declaration. Instead I fount in the VISA help file:
The first call to this function initializes the VISA system, including the Default Resource Manager resource, and also returns a session to that resource. Subsequent calls to this function return unique sessions to the same Default Resource Manager resource.
Can any one comment this discussion and document his opinion.

Thanks

Babak
0 Kudos
Message 1 of 2
(3,235 Views)
Hello Babak,

Have a look at the following link, I hope this helps:

http://digital.ni.com/public.nsf/websearch/00D2FA3D343A9AA286256CB8006365C5?OpenDocument

Best regards

Stefan
Message 2 of 2
(3,219 Views)