NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error " The callback function , ReturnCallback specified in the UIR file , is not a known function" from sample7 created using Getting Started With Teststans

In the Getting Started Manual Chapter 6 is a CVI project to create a DLL frequency.prj. I tried various settings in the Build Target settings in CVI (6.0) but still get the same error. Using TestStand (2.0)
Thanks for any help
0 Kudos
Message 1 of 4
(3,479 Views)
Hi,

You need to make sure that the callback function specified in the UIR for the Return button is actually ReturnCallback.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,471 Views)
Hi Ray
Thanks for the response. I realized after posting that my question may be too general to help you understand my problem
I followed the instructions in the manual and from the UIR inserted the callback for the frequency.c and was also added to the
frequency.h file

Later I got it to work using the file in the solutions directory but for the life of me I still cannot see why that worked and mine didnt

A couple of things about my file that I still cant explain is

1) I had to enter an abslute path to the uir itherwise I got a file not found error.

2) I had to add a variable as follows

static void *_CVIUserHInst;

otherwise it gave an error for that part of the exOpenPanel fuction.

I am attaching the file that works in case you are willing to take time and see if YOU can tell why one works and the other does not.


I dont like it when I cant tell why the results are different( always good to know why).

Thanks
Mario
0 Kudos
Message 3 of 4
(3,461 Views)
Hi,

>>1) I had to enter an abslute path to the uir itherwise I got a file not found error.

This probably because your uir file was not in the same directory as your dll. In the example you will notice that the resultant files are all contained in the same 'solution' folder.

>>2) I had to add a variable as follows

>>static void *_CVIUserHInst;

This is because you have _CVIUserHInst in the LoadPanelEx function instead of __CVIUserHInst. The diffence being there 2 underscore chars '_'.


Hope this clears everything up for you.
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,449 Views)