04-17-2007 11:02 AM
Hi all,
I am desperately trying to develop a
program in Labwindows CVI 8.0 to control an instrument which came with an
ActiveX programming interface but I am *really* lost. Could please someone have
a quick look to tell me what I do wrong?
0) I
verified that the instrument works with the software from the supplier 😉
1) I used the Tools/Create ActiveX Controller Menu which created an .obj, a .sub, a .h and a .fp file
2) I added these files to my project and I tried to get some meaningful result
3) I excute the following function, which I think is needed to start the whole ActiveX thing:
status = ASKM48KCEKLib_New_DASKM48kCEK (NULL, 1, LOCALE_NEUTRAL, 0, &device);
and I obtain a status=0, so I believe that so far things are fine
but any other function I found in the .fp file that I execute using the device handle that I obtain from the one above gives me status=-1 and it fails..
What is wrong? I think I really miss a point about ActiveX addressing because I cannot even run the SimpleEXE ActiveX sample in the CVI samples directory, I get an ActiveX Error: UNKNOWN ERROR (...)
04-23-2007 03:56 AM
04-24-2007 04:32 AM
04-24-2007 10:53 AM