LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

insufficient location for USB Device

I get the following error when I run the working program on another computer.

 

Error was -1073807343

Insufficient location information or the device or resource is not present in the system.

 

 

I have created an alias in my program #define THORLABS_ALIAS  "ThorLabs-ITC4001" and inside MAX I have added the alias to the device.  On both computers MAX finds the instrument and shows it working properly.

 

I had no problems using the instrument with the MAX setup on my development computer.

I have tried changing the alias to just ITC4001 in both my program and MAX but still get the same error.

 

What is the next step I need to do in troubleshooting this error?

 

  

0 Kudos
Message 1 of 11
(4,076 Views)

Try including your MAX configuration in your installation. Under the Advanced tab when creating a distribution, there is an option to Import Measurement & Automation Explorer Configuration File. This will allow you to deploy your MAX configuration along with your distribution. Check out the help topic on the feature that can be accessed by clicking the Help button in the bottom right corner of the Edit Installer dialog.

National Instruments
0 Kudos
Message 2 of 11
(4,043 Views)

I tried still not working.   It has something to do with the alias, I was able to hard code the USB address to get the program working.  This will get us through the testing required but it makes the program work only on the one computer.

0 Kudos
Message 3 of 11
(4,041 Views)

How are you using the alias in your code? What function is returning this error?

National Instruments
0 Kudos
Message 4 of 11
(4,010 Views)

The function returning the error is the TL4000_init from the Thorlabs Series VXIpnp driver.

 

The command is

 

TL4000_init(THORLABS_ALIAS, VI_ON, VI_ON, &guiITC4000);

 

where THORLABS_ALIAS has been defined as "ThorLabs_ITC4001"

 

 

0 Kudos
Message 5 of 11
(3,985 Views)

I just tested using a #define statement to set up my alias like you did and it worked correctly. However, I did receive the same error you did when I forgot to save the alias in MAX. Are you sure you pressed the save button in MAX after setting the alias?

National Instruments
0 Kudos
Message 6 of 11
(3,968 Views)

I tried different names in both the program and MAX.  I saved the name in MAX, re-booted the computer, and MAX still had the name when the computer was booted.  Re-compling the program did not help either.

0 Kudos
Message 7 of 11
(3,943 Views)

Does the alias work if you pass it into the function as a string like

 

TL4000_init("myAlias", VI_ON, VI_ON, &guiITC4000);

 

If not, do you have any other devices you can test an alias with? Also, what driver is this function from? Is it a driver from ni.com or a 3rd party? I cannot find it.

National Instruments
0 Kudos
Message 8 of 11
(3,913 Views)

I tried not using a define for the alias, but to hard code it in the function.  Still no luck.  The driver is a third-party driver from ThorLabs.

0 Kudos
Message 9 of 11
(3,891 Views)

Is this problem limited to this device? Do you have any other devices or instruments to test an alias on. Maybe something is wrong with your MAX installation or database. What version of MAX are you using? Could you send me a Spy Capture of your communication attempt? Might provide some further details. Follow the instructions here and make sure to enable logging to a file.

National Instruments
0 Kudos
Message 10 of 11
(3,848 Views)