LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to opening a CVI 7.0 User Interface File in CVI 6.0

Hello to everybody!

I’ve created a UserInterfaceFile in LabWindows/CVI 8.0.  After I’ve saved it in v7.0 and now I'm able to open it with LabWindows/CVI 7.0, but I don’t be able to open it with LabWindows/CVI 6.0.

I see, in the KnowledgeBase, that “LabWindows/CVI 7.0 offers backwards compatibility with .uir files such that 7.0 can open up 6.0 user interfaces” (http://digital.ni.com/public.nsf/allkb/46D14C6C68897E1B86256DB70068B56A), but if I try to open it with CVI v6.0, after that I click to “Continue” in the warning message, is impossible to open the UIR file.

Anyone can help me?

Thank you very much and have a nice day.

 

Gianluca

 

0 Kudos
Message 1 of 7
(3,689 Views)

Well, seems you haven't noticed the following sentence in that KB entry: "LabWindows/CVI 6.0 will have no problem opening up a LabWindows/CVI 7.0 .uir as long as LabWindows/CVI 7.0 only features haven't been used. "Smiley Surprised

If you have a CVI7 installation working you could try to save the panel in TUI format (Options >> Save in text format menu item) and next try to load int into CVI6 (Options >> Load from text format: you should be prompted with the error corresponding to invalid controls (I got an error "Invalid 32-bit number at line xxx) so that you can determine which control must be downgraded to the corresponding cvi6 style.Smiley Wink

Ciao
Roberto



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?
0 Kudos
Message 2 of 7
(3,679 Views)

Hello Roberto!

Nice to read you: I know you are one of the three Certified CVI Developer in Italy (the second one is my friend and the third is me…  We can open an exclusive club J)

I like your suggestion: I think it is good and I try it in the next days.  After, I'll inform you about the result.

Grazie mille, Roberto.

 

 

0 Kudos
Message 3 of 7
(3,676 Views)
Hi Pizzocol,

I think you maybe misread what that KnowledgeBase said. When it stated that "LabWindows/CVI 7.0 offers backwards compatibility with .uir files such that 7.0 can open up 6.0 user interfaces" this means that CVI 6.0 user interfaces can be opened in CVI 7.0.  However, if you try and open up a CVI 7.0 user interface in CVI 6.0, we prompt you with a message that is shown in that KB talking about "A .uir file that was created .... attemtping to access may cause the system to become unstable....".  This means that it may or may not work correctly.

Backwards comptability means that anything you create in earlier versions of CVI can be opened in later versions of CVI.

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 4 of 7
(3,672 Views)

Hi Gianluca,
nice to see that the club is growing up Smiley Happy Hope we can meet in some of the next NI meetings in Italy Smiley Wink



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?
0 Kudos
Message 5 of 7
(3,669 Views)

Hi,

I followed Roberto's suggestion and I found the problem: all the images are not compatible with the version 6.0.   I unload them (in v7.0) and now all is working correctly in v6.0.

It's strange, because when I reload the images in the version 6.0, after the previous operation, this time the program works. 

Maybe the CVI version 7.0 uses a different codification (for the images) betwen the 6.0 version.

Thanks to Roberto and Jonathan.

 

Gianluca

0 Kudos
Message 6 of 7
(3,652 Views)
That's exactly correct, Gianluca. The image encoding algorithm had to change between 6.0 and 7.0, and that is why the .UIR version was bumped between 6.0 and 7.0. It is that version bump that triggers the warning that you saw when you tried to open a 7.0 UIR in 6.0.

By the way, starting with CVI 8.0, whenever a version bump occurs, users now have the option of saving .UIR files in the previous format, so that hopefully this won't be much of an issue any more.

Luis
0 Kudos
Message 7 of 7
(3,585 Views)