Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RsrcManagerHandle

Are the RsrcManagerHandles returned by viOpenDefaultRM () expected to be unique for every call of viOpenDefaultRM () ?

Or are there valid cases ,when two calls of viOpenDefaultRM () may return the same handle?

Background : I'am using a VISA based intrument driver, in a Teststand code module. which is run in Teststands Batchmodel in parallel mode with two test sockets.  In both patallel teststand threads viOpenDefaultRM () returns the same RsrcManagerHandle. The following call to viOpen() (with different resource IDs for every socket) is successful and usings these ressoueces shows no probelsm,. But when closing the instrument, closing the Session returned by ViOpen() is still sucessful . Both viClose() on the RsrcManagerHandles are failing then with a BFFF000E error.

0 Kudos
Message 1 of 2
(3,034 Views)

Hi,

 

Can you enable a setting in your  I/O filtering?  enable "All defined aliases for all resource classes" in the Include these aliases box. This prevented you from seeing a BFFF003A/000E errors. You will be able to write and read information.

 

I found to the Error BFFF000E some Information:

 

How Can I Communicate With a Device Using NI-VISA USB RAW Mode?

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1qzCAA&l=en-US

 

Using the NI-VISA Driver Wizard and NI-VISA to Develop a PXI(e)/PCI(e) Driver in Windows

https://www.ni.com/docs/en-US/bundle/ni-visa/page/using-visa-driver-wizard-to-program-pxipci.html

Kais Mekacher
Applications Engineer
Germany - Munich
0 Kudos
Message 2 of 2
(3,025 Views)