Home > Community > Discussion Forums

LabVIEW Real-Time Idea Exchange

Showing results for 
Search instead for 
Do you mean 
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!

Modify Hardware Model in LabVIEW Project Without Having to Create a New One

Status: In Development
by Member Kareem_W. on ‎01-17-2012 01:00 PM

Currently, if you have hardware in a LabVIEW project (e.g. a cRIO controller, cRIO chassis, or R-Series PXI card), the only way that you can change this to another product is by adding a new one to the project and deleting the old one. It would be nice to be able to use a configuration window to change the model number of a piece of hardware to a different, but similar one. For example, if you have a 9072 in the project but wanted to change it to a 9073. Another example would be the ability to change, via menus, a PXI 7813R to a 7854R. Of course the user would have to update any code written to account for changes due to the new hardware. This is especially convenient when you are simulating and configuring test systems but aren't quite sure exactly what hardware you need. Currently, for each new piece of hardware (similar or not) you have to create a new device and copy all of the IO, VIs, libraries, etc. under the new device in the project.

Status: In Development
by Active Participant Thoric Active Participant
on ‎07-30-2012 08:22 AM

I came across this very requirement today, and it's not the first time. I would very much like to see an automated technique for updating the hardware definition in the LabVIEW Project. FOr me, it was upgrading an 9114 chassis to a 9116, which was a painstaking process of several hours. Time I'll never get back again which I'm pretty sure a wizard could do in a handful of seconds.

by Member gregopher
‎08-10-2012 09:57 AM - edited ‎08-10-2012 10:03 AM

As a quick work-around for this issue, you can edit the project file using text editor since the LVPROJ file is just XML.  I was able to quickly change a cRIO target from a 9114 to a 9116 by editing the item tags. 


Each cRIO target has a property in the XML named "crio.type" under the , which is simply a string. If you are using the FPGA interface, then there is also an item under the chassis/FPGA Target for the target class.  I was successfully able to open the project after editing these tags, and the target was changed to the new target type. 


DISCLAIMER:  I did not attempt to compile an FPGA of build an executable after trying this method.  There may be other fields that are used for compiler configuration that also need to be changed.



<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="11008008">
	<Item Name="My Computer" Type="My Computer">
		...My Computer properties...
	<Item Name="cRIO" Type="RT CompactRIO">
		...target properties...
		<Item Name="Chassis" Type="cRIO Chassis">
			...chassis properties...
			<Property Name="crio.Type" Type="Str">cRIO-9116</Property>  		<===== See here
			<Item Name="FPGA Target" Type="FPGA Target">
				...FPGA Target properties...
				<Property Name="Target Class" Type="Str">cRIO-9116</Property>	<===== and here
		<Item Name="Dependencies" Type="Dependencies"/>
		<Item Name="Build Specifications" Type="Build"/>


by Member Deborah_B
on ‎09-16-2014 04:19 PM

Also check out this CompactRIO Migration Wizard community example!

by Member Deborah_B
on ‎02-26-2015 01:03 PM
Status changed to: In Development
About LabVIEW Real-Time Idea Exchange

Have a LabVIEW Real-Time Idea?

  1. Does your idea apply to LabVIEW in general? Get the best feedback by posting it on the original LabVIEW Idea Exchange.
  2. Browse by label or search in the LabVIEW Real-Time Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  3. If your idea has not been submitted click New Idea to submit a product idea to the LabVIEW Real-Time Idea Exchange. Be sure to submit a separate post for each idea.
  4. Watch as the community gives your idea kudos and adds their input.
  5. As NI R&D considers the idea, they will change the idea status.
  6. Give kudos to other ideas that you would like to see in a future version of LabVIEW Real-Time!
Top Kudoed Authors