NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

A link error when declare ERRORINFO variable in CVI programe.

I want to call a teststand api, TSUI_ApplicationMgrStart, in my CVI program.

Code snippet:

 

ERRORINFO  errorInfo = {0, 0, "", "", "", 0, 0}; 
tsErrChk( TSUI_ApplicationMgrStart(gMainWindow.applicationMgr, &errorInfo));   

But when build my project, I come across this link error:

 Undefined symbol '_TS_GetOLEErrorMsg' referenced in "main.c".

I quite suspect if there is some dependcy lib missing in this system.

 

 

0 Kudos
Message 1 of 2
(2,132 Views)

I have find a solution. 

I should add a Instrument File,  tsutil.fp,  to my project.

 

This is my way: "Instrument Files"->right click, choose adding Existing file -> brower to system CVI directory and select tsutil.fp.

 

Is there any other elegant way?

0 Kudos
Message 2 of 2
(2,115 Views)