LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW CLI on macOS - port is currently. in use

I'm trying to use the LabVIEW CLI on macOS with LabVIEW 2018 and 2020.  In either case, when I execute my command, LabVIEW starts and then immediately after I get an error message that it can't establish a connection because the port is currently in use.  I've checked the OS to see who was using the port in question and it only showed LabVIEW as using it.  The same exact code does. work on Windows.

 

Here's the command and output from the LabVIEW CLI:

 

LabVIEWCLI -LabVIEWPath "/Applications/National Instruments/LabVIEW 2018 64-bit/LabVIEW.app/Contents/MacOS/LabVIEW" -PortNumber 3364 -LogFilePath "/var/folders/w_/895xs725223054n5dpkwv6gm0000gn/T/tmpi6gmheqk/log.txt" -LogToConsole true -OperationName RunVI -Verbosity Diagnostic -VIPath "/Users/jenkins/Perforce/mainline/VIs/MyVI.vi" "/Users/jenkins/Perforce/REL19/MyVI.json"

 

LabVIEWCLI started logging in file: /var/folders/w_/895xs725223054n5dpkwv6gm0000gn/T/tmpi6gmheqk/resize_vis_log.txt
Using LabVIEW: "/Applications/National Instruments/LabVIEW 2018 64-bit/LabVIEW.app/Contents/MacOS/LabVIEW"
Connection established with LabVIEW at port number 3364.


Error message : LabVIEW CLI: (Hex 0xFFFAA8CD) The CLI for LabVIEW failed to establish a connection with the specified LabVIEW because the port is currently in use by another version of LabVIEW with VI server enabled. To fix this error, close the other version of LabVIEW or switch to a different port number by selecting "Tools>>Options>>VI Server" and entering the port number under "TCP/IP"


Using LabVIEW: "/Applications/National Instruments/LabVIEW 2018 64-bit/LabVIEW.app/Contents/MacOS/LabVIEW"
Connection established with LabVIEW at port number 3364.
Error code : -350003
Error message : LabVIEW CLI: (Hex 0xFFFAA8CD) The CLI for LabVIEW failed to establish a connection with the specified LabVIEW because the port is currently in use by another version of LabVIEW with VI server enabled. To fix this error, close the other version of LabVIEW or switch to a different port number by selecting "Tools>>Options>>VI Server" and entering the port number under "TCP/IP"

0 Kudos
Message 1 of 1
(1,262 Views)