01-24-2013 03:37 PM
I have a computer with an several versions of LabVIEW installed (right now 2011 and 2012), I would like to know programatically what TCP/IP port settings each have setup. I want this so that I can connect to each of them using the Open Applicaiton Reference on localhost.
The first version of LabVIEW installed will default to 3363, and it looks like the next will be 3364, but I would like to know what port settings are available to connect to versions of LabVIEW.
In the past I thought this information was stored in the LabVIEW.ini file but looking into them I don't see those settings. I've also searched the registry but didn't find where it is stored. I also checked the NI Service Locator/Web thing here. But that doesn't seem to list more than one version of LabVIEW at a time.
I know VIPM does this automatically so I know it is possible, I just don't know how. Thanks.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-24-2013 03:57 PM
It's in the INI file under server.tcp.port. If it's not there it's probably because you haven't changed it from the default value (3363). My recollection is that in order for VIPM to see multiple versions, you have to manually assign them different ports, and they provide directions to do so.
01-24-2013 04:01 PM
Okay so you are partially correct. I installed 2011, then VIPM, then installed 2012 but never needed to change the port settings and VIPM can connect to both. I looked at the 2011 ini file and there was nothing (defaulted to 3363), I looked at the 2012 and it has a section in the ini for 3364. So this either means LabVIEW during the install is incrementing the ports to make them unique or VIPM noticed they both had the same default ports and changed one. I'm guessing this is VIPMs doing. In either case, thanks.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord