LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 91 by Statechart Code Generation

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(2,581 Views)

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

0 Kudos
Message 2 of 4
(2,559 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 4
(2,552 Views)
Solution
Accepted by topic author kriedel

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

 

 

0 Kudos
Message 4 of 4
(2,550 Views)