LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

UI to Code Converter generating code with errors.

Running the UI to Code Converter on my uir file generates source code which fails to compile. A sample stretch of code is...

 

    errChk(SetCtrlAttribute (hPanel, GUI_STRIPCHART, ATTR_XLABEL_FONT, "Arial"));
    errChk(SetCtrlAttribute (hPanel, GUI_STRIPCHART, ATTR_YLABEL_FONT, "Arial"));
    errChk(SetCtrlAttribute (hPanel, GUI_STRIPCHART, ATTR_YLABEL_FONT (RIGHT), "Arial"));

 

...the third line is the one which fails with the error...

 

  2385, 88   Found 'int' expected a function.
  2385, 5   Undeclared identifier 'RIGHT'.
  2385, 5   Type error in argument 3 to `SetCtrlAttribute'; found 'void' expected 'int'.

As should be apparent the third line is essentially trying to do the same thing as the second line (which is correct) for a "right" y axis (which I am not using). Is this a reported bug? Has this been fixed in a newer version of CVI?

 

It is easy to fix (by commenting out the offending lines) but I thought I should report the issue...

 

Thanks,

Trevor

0 Kudos
Message 1 of 3
(3,412 Views)
What version of CVI are you using? I just tried this with 8.5 and it seems to have been fixed.
0 Kudos
Message 2 of 3
(3,384 Views)

HI Trevor,

 

This was actually fixed in CVI 8.5.1 (the bug ID is 68468, although it's not completely clear from the title that it also fixes this issue).

 

- Luis

0 Kudos
Message 3 of 3
(3,376 Views)