Switch Hardware and Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Importing NI Switch Executive Virtual Device From Excel File

Solved!
Go to solution

When I try to Import NI switch Executive configuration from an .xlxs file error

 

"An error occurred while attempting to read from the file. Invalid IVI Device Name "THIRD _PARTY_MATRIX". An error has occurred while attempting to access device THIRD _PARTY_MATRIX Primary error: (Hex 0xBFFA4001) Unknown status code"

 

appears. I have no problem importing NI switch Executive configuration in .xml format!!! Can anyone tell me why? Please!!

 

I'm using Switch

 

Executive 3.0

Measurement and Automation Explorer ver 4.5.0f0

Labview 8.6.1

 

Many Thanks

 

 

Mehran Fard
0 Kudos
Message 1 of 5
(8,388 Views)

Hi Mehran,

 

Would you be willing to post your .xlsx, NISE .xml, and IVI Configuration Store.xml files so we can attempt to reproduce the problem?  Let me know if you need specific information regarding where to find these files on your computer!

 

Chad Erickson
Switch Product Support Engineer

NI - USA

0 Kudos
Message 2 of 5
(8,385 Views)

Hi Chad,

 

Thanks for your reply.

 

Please find attached files as per your request. If you need further information please let me know.

 

Many Thanks

 

 

Mehran Fard
0 Kudos
Message 3 of 5
(8,378 Views)
Solution
Accepted by topic author Fardm

Hi Mehran,

 

Thank you for providing the attached files.  I've determined the cause of the problem can be due to an IVI simulation setting. 

 

Currently, your IVI Driver Sessions in MAX are configured so that the Simulate attribute is set to False.  This means that real hardware needs to be connected when opening an IVI session to the instruments.  If you do not have the hardware connected, then the IVI initialization call will fail (and potentially badly, depending on how the IVI-specific driver handles an init call without hardware).

 

Importing the NI Switch Executive configuration in .xml format does not cause a problem because simulate is always set to True in the IVI initialization call. 

 

We'll consider changing the Excel import in the future to also have simulate always set to True.  For now, you can a) verify the hardware is connected during the Excel import, or b) set the "Simulate With" value in MAX to "Specific Driver" in the applicable IVI Driver Sessions.

 

Example of setting "Simulate With" to "Specfic Driver" in MAX:

 

Simulate.JPG 

 

Let me know if you have further questions!

 

Chad Erickson

Switch Product Support Engineer

NI - USA

 

0 Kudos
Message 4 of 5
(8,339 Views)

Hi Chad,

 

Thank you for your reply.

 

I've set the "Simulate With" value in MAX to "Specific Driver" and manage to import my NI Switch Executive using Exel :smileyhappy: I have not yet tried it with real hardware connected. Hopfully it'll work the same, I'll let you know if there is problem using real hardware. 

 

Many Thanks

Mehran Fard
0 Kudos
Message 5 of 5
(8,332 Views)