Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to open a visa session on PXI device by using visa com with c++ visual studio 6 : class not registered error

When I try to open a session on a PXI device I get a com error : Class not registered.
I use visa com (GlobMgr.dll) on visual studio 6 c++ program:
 
IResourcemanagerPtr m_piResourceManager(CLSID_ResourceManager);
CString pPxiResources = "PXI2::10::INSTR";
IVisaSessionPtr piVisaSession = m_piResourceManager->Open(p_pPxiResources.AllocSysString(),NO_LOCK,0,"");
 
But when I try to open a session on an ASRL*? device I haven't got problemn.
 
Could you help me please.
0 Kudos
Message 1 of 3
(3,540 Views)
Hello,
 
Have you tried to communicate in MAX? Is it works?
Please, try to follow the instructions in the link below:
 
If you still have the problem, can you please send to me a screenshot of error message?

Regards,
 
Sanaa T
National Instruments

Sanaa T.
National Instruments France

0 Kudos
Message 2 of 3
(3,494 Views)
Hi,

what does you code look like when you open an ASRL*?

FG

0 Kudos
Message 3 of 3
(3,486 Views)