LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change the "com" in a Vi?

I would like to change the com1 to com2 in the attached Vi. Do you know how I can do that? Thanks
0 Kudos
Message 1 of 5
(2,836 Views)

Right-click on the constant and choose "Allow Undefined Names".  Then you can use the Text tool to type in the constant and change the value to whatever you want.

-D

0 Kudos
Message 2 of 5
(2,830 Views)
Hello, I am not sure I understand your question. Do you mean you want to change the Alias name of the serial port from COM1 to COM2? If so, you can do that in Measurement and Automation Explorer( MAX). Right-click on the port under Devices and Interfaces » Serial & Parallel, click on Rename alias, and change the VISA alias to whatever you want.

Thanks

Ebele O.
National Instruments
0 Kudos
Message 3 of 5
(2,809 Views)
Thank you. I unplug the instrument from com 1 and plufg it in com 2. So I would like to change the com in the program so that my device communicate with com 2. Thanks  
0 Kudos
Message 4 of 5
(2,789 Views)
Thanks. It's working fine now!
0 Kudos
Message 5 of 5
(2,785 Views)