05-10-2012 12:26 PM
I have an application that uses USB that is set up as a virtual com port in Windows XP.
How can I set up a com port in labview on my development PC and guarantee that when I install the compiled executable version of my vi on a target system that my device when plugged in will either always be set to a certain com port?
Or how can I set up my code to automatically select the com port where my USB device is connected?
What I currently have is an I/O device that I set up with Max but for some reason, this does not configure itself with the same
name on my target PC, so I am not sure if I need to change my code or set the installer up in a different way.
I am using LV v 8.2.1...
05-10-2012 12:34 PM
You can use this VI to programatically change your com port.
05-10-2012 12:42 PM
Here you go (v8.0)
05-10-2012 12:45 PM
ALSO- you can export your MAX configuration and import it to the new machine during instal. At least with later LabVIEW versions I haven't played with 8.2 for a few years
05-10-2012 04:19 PM
two ways around that.
Rename the Alias in MAX
Use Windows hardware manager to re-assign the port number
05-16-2012 10:30 PM
nd out later that Max did work and in the hardware device manager, when the device was plugged into the USB port and appeared in the device list that I had to select it and under the advanced tab, I had to scroll down and select com 9 and then the PC will map the device to com port every time it is plugged into the PC...
Thanks for your help
07-14-2012 06:56 AM
Now i want to communicate through device using USB. I think i need to use virtual com port for commnication between PC & device. I am selecting this because i dont want to give feature for selecting the com port each time. so for this i want to use the feature of USB named HOT PLUGGABLE in my project i.e. without configuring the port user can communicatio from the device, Take a example of usb keyboard or mouse.
U seem to be have some experience in this usb field.
Please show me the direction.
07-16-2012 09:22 AM
Have you tried what's already been suggested in this thread?