02-19-2013 07:33 AM
I have problems with statechart formerly created with LV2009. Now I want to use this statechart with LV2012 but by generation of statechart I get the following message:
Failed to generate statechart. Fehler 91 bei Statechart Code Generation
Mögliche Ursachen:
LabVIEW: Der Datentyp des Variant ist nicht kompatibel mit dem Datentyp, der mit dem Eingang verbunden ist.
I deleted some VIs with Variant but I get the same message. It is a complex statechart - how can I find the reason for the error? With LV2009 everything was OK - but now I have a new computer with Win7-x64 an want to use LV2012.
After confirmation of error message i get a lot of error messages with the hint to typdefinitions in State/Inputs/Outputs but in the typdefinitions I didn't do any changes.
Solved! Go to Solution.
02-20-2013 03:36 AM
Hey kriedel,
can you post your statechart and the error message in your thread? It is very hard to find the problem if you don't see the error message and the corresponding code.
Regards, Stephan
02-20-2013 04:11 AM
I find it possible that you miss a typedefinition. So please check if your code inlcudes every file it had in LV 2009....
thanks,
Norbert
02-20-2013 04:15 AM
Hi Stephan,
I could solve the problem meantime by try and error (successive delete of states and so on). A reference to a .net-dll cause the error. The reference was in the StateData.ctl until now, because I need this reference in several states. Now I use a global variable to store the reference - not very nice, but I get no more errors from the statechart. The error message from LV2012 is misleading by this problem.
Regards,
Kai