LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Debug CIN - Does not work

Ok Ive built my CIN as described in the Labview 7 help files. Ive attached it as a resource - but when the system runs I cannot get it to enter debug mode. Ive tried compiling from the IDE and running the debug version of the library (in fact that is all that is compiled!).
A sample of the actual code is below. Im not 100% sure the CIN is being correctly loaded at run time. Has anyone else found the same problem?, any ideas?
Our OS is Win2K, LV7 and Visual Studio 6

The application is going to replace the ActiveX object which does not offer enough power for our systems, and has an inherent problem with clean installations of Matlab6.5 (and yes we did update all the DLL's from both NI and Mathworks but it still fails).

Thanks,

marc


CODE EXTRACT
typedef struct {
LVBoolean status;
int32 code;
LStrHandle source;
} TD1;

MgErr CINRun(LStrHandle *machineName, LVRefNum *MLAppDIMLApp,
LStrHandle *CompName, LVBoolean *openNewInstance, TD1 *errorOut);

MgErr CINLoad(RsrcFile reserved);


MgErr CINRun(LStrHandle *machineName, LVRefNum *MLAppDIMLApp,
LStrHandle *CompName, LVBoolean *openNewInstance, TD1 *errorOut)
{

/* Insert code here */
Unused(reserved);
DebugBreak();

return noErr;
}


MgErr CINLoad(RsrcFile reserved)
{
Unused(reserved);
DebugBreak();
return noErr;
}
0 Kudos
Message 1 of 2
(2,609 Views)
I've never done too much with this, but I found this KnowledgeBase on NI's website which discusses using debuggable CINs in LabVIEW. It talks about expected error messages so you will quickly know if you are doing it the correct way or not. I hope this gets you started in the right direction.
J.R. Allen
Message 2 of 2
(2,609 Views)