LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve the problem like "Undefined symbol '_TS_PropertyGetValNumber@20'reference in "sample.c"

Sometimes, when compiling, I will encounter the problem like "Undefined symbol '_TS_PropertyGetValNumber@20'reference in "sample.c" , I don't know how to resolve this kind of problem and what's the cause?
 
Thanks!
Jacky
0 Kudos
Message 1 of 3
(3,298 Views)
That problem appears when you haven't included in the CVI the library you need to run that function. So if you want it to work you have to click in library, and then customize, and there add the library that includes that function (TS_PropertyGetValNumber). The name you have to look for it would be a *.fp or *.lfp, usualy they are in the folder "\CVI70\bin\*.fp" (it can be CVI70, CVI80, depends on the version)
 
This changes won't take effect until you open a new session of the CVI, so close CVI, open it once again and compile the application, and it should work properly Smiley Wink

 

Mensaje editado por jrodriguez

0 Kudos
Message 2 of 3
(3,290 Views)
Alternatively, you can add the function panel to your project, which will allow you to port the project to another computer without seeing those link errors regardless of what was loaded in the CVI development environment on the current machine.
 
Also, the function panel you should be looking for is tsapicvi.fp.  In this particular case, it is actually typically found in the <TestStand>\API\CVI\ directory (since it is a teststand interface).  However, in most other cases jrodriguez is correct in the location of .fp files.
0 Kudos
Message 3 of 3
(3,272 Views)