LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to open statechart debugging window by program ?

 
0 Kudos
Message 1 of 12
(3,851 Views)
There is not a way to programatically do this. Could you let us know what you would like it for (e.g., do you want to always have a picture of what states you are in after each iteration, or do you really want to have execution highlighting automatically popup when you run your VI, etc)?

Thanks,
Nick

0 Kudos
Message 2 of 12
(3,830 Views)

Hi Nick

I need it for debugging. I want to be able to open and close the debugging window while the program is running. While the debugging is on I want to see the active state highlight

Regards

Gabi

0 Kudos
Message 3 of 12
(3,824 Views)
Hi Gabi,

You can do it manually even while the program is running (right-click and choose debug statechart...). Is that not what you want?
0 Kudos
Message 4 of 12
(3,820 Views)

I was looking for better way to do it.

Regards

Gabi

0 Kudos
Message 5 of 12
(3,815 Views)
Ah, ok. How were you imagining being able to do it?
0 Kudos
Message 6 of 12
(3,810 Views)

Hi

Getting a reference to the Statechart.lvsc and change property (?).

By the way, You published a demo vi named Getting Started Callar.vi (see attached). There is a racing situation in this vi, in case the trigger loop starts before the Statchart loop an error happened trying to send to unregistered queue.

0 Kudos
Message 7 of 12
(3,794 Views)
Thanks for your feedback. I will also forward your feedback on the example/demo code to the person that wrote it. You are correct that there is a race condition present. A small delay is present to try to get the run statechart node to execute before sending any triggers, but it is possible for them to execute in the opposite order.

Synchronizing the execution order would require something more advanced like an occurrence, and I think we were trying to make the example as simple as possible for a new user. I will see what we can do to clean this up in a future version.

Thanks,
Nick
0 Kudos
Message 8 of 12
(3,790 Views)

Regarding this:"I need it for debugging. I want to be able to open and close the debugging window while the program is running. While the debugging is on I want to see the active state highlight"

Do you just need to see the active state the statechart currently in for a particular iteration or a full debugging capability that show the transitions being evaluated and etc..

Thanks

Toga

0 Kudos
Message 9 of 12
(3,749 Views)

Hi

What I wish to have is to see the whole state chart with the active state highlight.

Another issue that I want to arise: There is no way to see more then one state block diagram at a time. It will be helpful to allow to open few configuration windows at a time.

 

Gabi

0 Kudos
Message 10 of 12
(3,714 Views)