LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can'tOpenUIRcreatedUsing CVI7 on Win2K to CVI7 on XP

I have created an Application using LabWindows CVI 7.0 running on Windows 2000 machine. I copied all the files of application on another PC with Windows XP and High resolution LCD touch screen monitor. I am unable to open some UIR files in edit mode in LabWindows 7.0 on this new PC for modification.
It gives error "Unable to open Uir...... Invalid Attribute passed..... as soon as I double click on UIR file name in workspace window.
Please help
0 Kudos
Message 1 of 5
(3,460 Views)

May you have a different version on the machine that originated the UIR? If that machine is running CVI 7.1 you may have used in the UIR some controls that are not present in version 7 (splitter control and digital graph as an example). You may find useful this discussion .

If your UIR file contains several panels and you can use the source machine, you could try saving every panel in a different UIR file to catch the one that's causing the problem.



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 5
(3,456 Views)
Both the machine has LabWindows CVI 7.0 only.
I set the Resolution Adjustment(%) to 0 (In Panel Properties-Other Attributes) , it works on both the machin, but On second Machin displayed panel is small, so I will have to edit UIR and change size of all controls on the panel to look it better. This will display large panels and controls on first machine. I need single UIR which should work on any resolution monitor displaying proper sizes of controls. Thanks,
0 Kudos
Message 3 of 5
(3,433 Views)

Said that I cannot figure out why CVI is reporting you that error, you could modify the resolution adjustment before loading the panels using:

 err = SetSystemAttribute (ATTR_RESOLUTION_ADJUSTMENT, 100);

From what I saw, on the machine on which you originally developed the application this statement will have no effect, while on machines with different screen resolution (or on the original PC if you change screen settings) the panel will be resized accordingly. That is to be said: the executable and UIR remain the same on all PCs and the dimensions of the panels are sized according to screen size on all of them.



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 4 of 5
(3,425 Views)
In all likelihood, you've run into a known bug in CVI 7.0. The bug is described here along with a workaround. Let me know if it does not fix it, since we'll have to then try to figure out what might be happening.

Luis
0 Kudos
Message 5 of 5
(3,411 Views)