LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with conversion from.TUI to .UIR file

Hello, I try to make conversion between .tui and .uir files in a project. I try to use functions from CVI Server 2020 (cvisrvr.fp). My application:

- allows conversion from .uir to .tui (CVI_AppConvertUIRToTUI works well),

- theoretically allows conversion from .tui to .uir (CVI_AppConvertTUIToUIR fails).

 

However, there seems to be a problem with saving .UIR files using CVI Server 2020. In order to create .uir from .tui, I use the following function:
CVI_AppConvertTUIToUIR (CAObjHandle objectHandle, ERRORINFO *errorInfo, const char *tuiFileName, const char *uirFileName, long *returnValue)

I obtain CAObjHandle from function 'CVI_NewApp' and it works good with other functions. tuiFileName and uirFileName are full paths to files, they are correct.

 

Any time CVI_AppConvertTUIToUIR is called, I get the following error: 

Error message.JPG

The last argument of this function is an error code and it returns: -2147221456, called: CVIConst_CVI_SRVR_E_FAILED_TO_SAVE_UIR_FILE (in cvisrvr.h), which does not help to sort out the cause of issue at all. 

 

This seems like a bug - .uir is the format I expect to be saved as a result of a function call, however error message states I cannot save .uir file because it is reserved and CVI user is not allowed to generate .uir files in any other way than through graphic UI editor.

 

Did you have any similar experience? Can you help me to sort out what causes the problem?

Could any NI expert look at this issue?

Any help will be greatly appreciated.

0 Kudos
Message 1 of 1
(884 Views)