LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NOT GETTING SAME COM PORT FOR MY APPLICATION

i am making an application to connect my PC serially to a microcontroller serially with a usb to RS232 cable. how should i code in my application to ensure that my serial connection always gets the same com port whenever the applivcation is running on an other PC?  it is important to get the same com port on every machine every time else my labview coding for serial communication will fail. OR is there a better to do this. Can we code in labview so that it uses any  free com port available on the PC? the user of the application must not be prompted to enter a free com port.

 

thanks for any help.

0 Kudos
Message 1 of 6
(2,936 Views)
The com port should be configurable. The program should read it from someplace outside the program itself (database, INI file, registry, etc).

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(2,927 Views)
Duplicate; http://forums.ni.com/t5/LabVIEW/How-to-ensure-same-COM-port-everytime-for-the-LABVIEW/m-p/2888154

It is inappropriate to create a new thread with the same question, especially when you got an answer. Sane answer you just got. Waste of everyone's time.
0 Kudos
Message 3 of 6
(2,917 Views)
It is also inappropriate to send people private messages asking them to try and solve your problem when the person receiving the message has already given you an answer that you haven't responded to.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 6
(2,889 Views)

No need to shout or ring my PM box... We are all volunteers here and sometimes we sleep or eat.  besides its a rather simple problem that a search on the forums would have gotten you here

My Tag cloud would have gotten you the this same example snippet :RenameAlias

 

Just use the system API to find all available serial devices.  figure out which one is your uC (how depends on the connected device) and set the MAX Alias to "MyMicroController" or something meaningful 

original.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 6
(2,876 Views)

Please stick to a single thread. Now that you have got great advices in both the thread choose one and close anotherSmiley Happy

0 Kudos
Message 6 of 6
(2,866 Views)