08-27-2015 03:39 PM
I wrote a realtime statechart to communicate with my Labview FPGA accelerometer driver. The statechart is set to have debugging enabled, and all of its sub VIs are non-reentrant and set to be debuggable as well.
When I right click the "Run statechart" icon in my caller vi, the "debug statechart" option is available (not greyed-out) and enabled. However, clicking it does nothing. No debugger window pops up. What's interesting is that the debugger window pops up just fine for the labview statechart tutorial that I did previously (the one in the help documentation examples), regardless of whether I configure it for realtime or for my computer.
I've attached my statechart (A351_statechart), realtime caller/host (A351_Caller.vi), and all of the subvis/typedefs my statechart uses in its actions/guards, including the FPGA vi (EPSON_MA351_ACCEL_FLT). I know this is a tricky problem to solve due to complexity - please let me know if I can provide any additional information. I'd like to fix and use this statechart since I put so much work into it, but I'll be forced to refactor my code to use a regular state machine design pattern if I can't debug this soon. Thank you!
08-28-2015 04:34 PM
Iamburitto,
I opened up the code you attached and it seems like it is missing a few subVIs. I noticed that your statechart had a magnitude of errors, but I was unable to tell if this was due to the missing VIs or if there is a larger problem with the statechart itself. It's possible that there are errors in your statechart that are causing the debugging window to not open. Again, I have no way to confirm this due to the fact that I can't find the root cause of the errors.
08-28-2015 05:41 PM - edited 08-28-2015 05:50 PM
Hi,
I'm sorry, I thought I included all sub vis, but I must not have. The statechart has no errors in my project. I'll go ahead and attach the whole project here, I was just trying to make it simpler to look at. The only important problem to me is that I cannot debug my A351_statechart by right clicking the "run statechart" vi in A351_HOST and selecting "debug statechart". You should see nothing happen when you try it.
Thank you for taking the time to look.