From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-16-2008 06:25 PM
01-16-2008 07:06 PM
01-16-2008 09:36 PM
01-17-2008 03:01 PM
01-18-2008 10:15 PM
01-30-2008 03:57 PM
Hi Jason,
There is a slightly more complex way to do this using some of the RT replication toolkit available by searching. As long as you know the name of the target, which becomes the DNS name, you can do this. It will be even easier if you only have one RT target (PXI in your case). You can use the Find All Targets.vi to return the information of all RT targets on the subnet. Set your timeout and let it run. You will receive back an array of clusters containing the information of the targets. Thus, if you know your PXI's "host name" you can just use the IP address the Find All Targets.vi returns. This VI uses a UDP broadcast so regardless of DHCP and DNS, it should work. Hope this helps.
Jordan O.
01-31-2008 11:57 AM
Hi Jordan O.
Find All Target.vi seems doing the exact as in MAX. What I am thinking is that whether it is possible for LabVIEW project to detect the DHCP assigned RT target automatically. Further after I build the RT target code, could I use Find All Target.vi to get dynamically RT IP address and communicate the RT target with my PC.
Jason
01-31-2008 01:39 PM
01-31-2008 02:03 PM
01-31-2008 03:02 PM
Hi Jordan and Eric
The LabVIEW version is 8.5 and Real-Time module is also the latest version that I am not sure what exactly it is.
Basically, after I use MAX to set "obtain IP address from DHCP server" for my RT target, every time when I open my LabVIEW project, I could not connect with RT target because RT target IP address is changed dynamically, so I need to use MAX to check the new RT target IP address and change it in the RT target property. Next day, I may need to change it again. I am just thinking whether I could use DNS name in the RT target property setting so that I do not need to change RT IP address everyday. But I could not find DNS name. Currently, I am using "Edit the IP address" which I am supposed that IP address is static for RT. Could it cause problem when I transfer the whole system to the customer's site because code in the RT target may already be built using the static IP address. What if the IP address is conflicted in the customer site. Correct me if I am wrong for the network stuff. What I want is that I built RT target code and set it as startup, bring it to customer site plug in the network cable, it should work and my LabVIEW GUI code in my PC is able to communicate with RT target without problem.
Jason