Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Error initializing PXIe-5162

Currently, I am thinking of controlling PXIe-5162 by referring to IviScope.dll in VB6.

 

When I define and call the IviScope function as shown below, error -1074130429 is returned.

 

Definition:

Declare Function IviScope_InitWithOption Lib "*\IVI Fundation\IVI\Bin\iviscope.dll" (ByRef logicalName As String, ByRef IDQuery As Boolean, ByRef resetDevice As Boolean, ByRef optionalString As String, ByRef vi As Long) As Long

 

Call Function:

status = IviScope_InitWithOptions(LogicalName, 1, 1, "NULL", vi)

 

Is this a problem with the MAX configuration, etc.?
I would like to receive information.

 

I'm sorry for my unfamiliar English, but thank you.

0 Kudos
Message 1 of 2
(2,156 Views)

Hi matchasoft, 

 

When I looked up the error code in LabVIEW explain error, it shows this explanation. 

IVI: (Hex 0xBFFA1203) The session name or logical name could not be resolved to a session or driver session.

wer.JPG

So, I searched about the error code and found this forum which mentioned about the logical name in the application has to match with the one in MAX.

I found this IVI Configuration Server file that mentioned this error in page 159.

And if you go to page 71 in the file, you will see this. 

 

If Name is not found in the Logical Names or the Driver Session collections, Get Driver Session shall
return a NULL pointer for the DriverSession parameter and shall return a Session Not Found error. Note
that if both collections have an item that matches Name, the item found by following the Logical Name
reference is returned.

 

So, perhaps somewhere in the code, there might be something that is either not written correctly or declared that is contributing this error.

I am not so familiar with VB6 but this is what I can make out from the problem statement and given information.

 

0 Kudos
Message 2 of 2
(2,077 Views)