10-25-2011 04:22 AM
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!
10-25-2011 04:48 AM
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
10-25-2011 05:04 AM
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.
07-28-2012 12:39 PM
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