07-02-2013 08:17 AM
Has anybody successfully used the MSP-Gang.dll to control the MSP-GANG Programmer from TI?
I am trying right now but I am seeing some odd behavior.
When I try to connect to the programmer using the MSPGANG_InitCom function the return value is '0' (no error) but the error string from call library node contains the folling message:
"LabVIEW: An exception occurred within the external code called by a Call Library Function Node. The exception might have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW."
Right after I call the MSPGANG_ReleaseCom function (I clear the error string first) and this returns '0' from the dll and no error in the error cluster.
The dll does seem to be working. If I try to Init on the wrong com-port I get the return value 310 which the GetErrorString function translates to:
"Open Comm port - invalid handle value"
GetErrorString also returns the same error as InitCom in the error cluster even though it responds with the correct message.
Have any of you tried to use this dll?
/Stephan
07-16-2013 03:07 AM
Hi Stephan.
I have only found one other user with a questions familiar to this one. It seems like this DLL is expecting different calling conventions, while most of the functions are using stdcall, at least one of has to use C.
For more details on this, as well as an example, please see this topic:
Texas Instruments MSP-Gang430 Gang Programmer
I hope this will help you with the further troubleshooting.