LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Version control and uir files

Solved!
Go to solution

Hello all,

what are your methods to keep UIR files under version control, namely SVN ? It works fine as a binary files, but if someone makes a minor modification to the user interface, there's no way you can find it visually.

 

I've tested TUI files under SVN and indeed a quick 'diff' tells you what's new/changed in the file. It's possible to load TUI files with LoadPanel(), but it's not possible to have the user interface editor default to saving as TUI, making it impractical. So how do you do this ? A think a simple fix from NI would be to have the option to default the editor as TUI, keeping in mind that in the past there were several cases of .tui behaving differently than .uir.

 

If some of you agree, I'll file a suggestion.

0 Kudos
Message 1 of 5
(5,040 Views)
Solution
Accepted by topic author gdargaud

While you cannot have the editor to save only in .TUI format, you can set it to automatically generate the .TUI when saving the file: can this be a suitable workaround for your needs?

 

UIE editor preferences.png

 

Beyond this, even if I'm not using version control, I repute your suggestion a valid one and I will kudos your idea when you post it.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 5
(5,036 Views)

Whoa, I'd never noticed that option before. Yeah, I guess that solves it, I can always do the diff on the tui if I need. The drawback is that while working on a network drive, it takes a good 10s to save my user interface now !

0 Kudos
Message 3 of 5
(5,029 Views)

Hi!

 

I am having the exact same issue today. The workaround still works in CVI 2019, but I was wondering if there has been any update to this general question (since it's been six years).

 

Text-based version control is used basically everywhere, and it is honestly a bit of a bother having to manually create a new .uir file and load my .tui every time I switch between branches. More distressingly, I'm bound to mess up my .tui file pretty quickly if I switch branch or roll back a .tui change since the .uir file is unchanged by these things, and no reload is prompted. Chance is I'm not going to notice this and accidentally overwrite my .tui file.

 

It feels like I'm looking for how to add the .tui file directly to my project and simply show it graphically as if it was an .uir. However, doing so simply shows the .tui as raw text.

0 Kudos
Message 4 of 5
(2,190 Views)

You can load a .tui with LoadPanel, so I guess you could add the tui to your project and try and remember to import it every time... Suboptimal solution. NI should make both interchangeable.

0 Kudos
Message 5 of 5
(2,183 Views)