LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically determine and select VISA COM Port Binding

Solved!
Go to solution

wiebe@CARYA wrote:

@nikvl wrote:
First of all, a DISCLAIMER: This involves writing into your registry keys and requires administrator rights. If you choose to use this method and mess up, I and/or my employer will NOT be held responsible, so proceed at your own risk. Step 1: Go to your device manager and find the hardware-ID of your USB. If you get something like FTDIBUS\COMPORT&VID_0102&PID_5013, take note of the number eg. 01025013. That's your USB serial number Step 2: Open your notepad and type this script and save the file as a .reg data type: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\UsbFlags] "IgnoreHWSerNumXXXXXXXX"=hex:01 Replace the "XXXXXXXX" with the number from Hardware-ID. I honestly don't know if the Registry Editor Version number is important or not. Step 3: Double-click your saved .reg data to run it as admin. If that doesn't work, manually open regedit as admin, click on import and choose the file you saved above. Edit: I'm not sure why my reply is a wall of text and not formatted, apologies.

Note that all these steps can be done from LabVIEW.

 

Depending on how often you need to do it, it might be worth a try.


That is more work than it's worth. You only need to run/import this once. To apply this to another USB with a different serial number, one just needs to change the text and run it.

0 Kudos
Message 31 of 31
(336 Views)