LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

com1 vs asrl1

I'd like to have my serial port control default to com#1, but some computers
call it com1 and some call it asrl:1. So as a result if I compile it one
way and then it gets used on the other type of computer then the user has to
remember to set it or he gets an error. Is there a clean way of making it
default to whatever is available on that computer?
0 Kudos
Message 1 of 2
(2,394 Views)
com1 is the VISA alias that is set in MAX (Measurement and Automation eXplorer). All computers may not have this set up the same. Using ASRL1::INSTR should work for all computers that have a comm port assigned to port one regardless of what the alias is set to.

Brian
Message 2 of 2
(2,394 Views)