LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabVIEW change RT target IP address through LabVIEW scripting?

I am working on a Real time project, and for better usage I'd like to build an application to deploy RT VIs automatically.

After searching LV scripting for a long time I found the "Run and deploy VI" method which could deploy my RT VI to the target. But the question cames, how can I make this work if the IP address of My target changed automatically? I mean some of my users may know nothing about labVIEW programming, so change IP through LV project could not be an option...

Can LabVIEW change RT target IP address through LabVIEW scripting? Any work around is also very welcome! Thanks!

0 Kudos
Message 1 of 4
(5,612 Views)

Most likely you are not looking for scripting but instead the LabVIEW Realtime Deployment library that can be found at

http://zone.ni.com/devzone/cda/epd/p/id/5986 and https://decibel.ni.com/content/docs/DOC-5102

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 4
(3,478 Views)

I think it may not required any scripting function. use get target information (all) function in RT library. Get the IP address of the target based on MAC address now use the new IP address. Don't use DHCP unless  there is a requirement.

0 Kudos
Message 3 of 4
(3,478 Views)

I am not necessarily suggesting this as a solution, but I figure knowing your options is always good

.lvproj files are actually .xml files. If you go into a project, you'll see something like this:

<Item Name="CRIO_NAME" Type="RT CompactRIO">

                    <Property Name="alias.name" Type="Str">CRIO_NAME</Property>

                    <Property Name="alias.value" Type="Str">###.###.#.###</Property>
  ...

You can programmatically modify the value of the property which contains the IP address.

- Jared

0 Kudos
Message 4 of 4
(3,478 Views)