10-31-2011 10:07 AM - edited 10-31-2011 10:15 AM
Hi
I have a problem with "Mixed Signal Graphs". How can I clear "Data History" of "Mixed Signal Graph" in my VI? I can clear plot with right click and chose "Clear Graph" but when I plot new signal, "Mixed Signal Graph" shows the new and old signal both..... I used "ReInitialize To Default" option in "Invoke Node" but it works just like "Clear Graph" and doesn't clear "Data History"..
Solved! Go to Solution.
10-31-2011 02:41 PM
Create a local variable (of your mixed signal graph). You can wire an empty constant to the local to clear your graph.
Locals are not typically recommended, but in this case this is probably your best option. Just don't go crazy with locals.
11-01-2011 09:04 AM
Thank you VT92. I found my solution...
04-12-2013 08:30 AM
I have the same exact problem but my clearing of the graph function resides in a subVI that has a ref to the mixed signal graph passed into it. A local is not do able in this case as easy. When I write the value property to the graph ref, it bombs out. Any help would be appreciated.
04-12-2013 08:48 AM
and here is my example of the problem....
04-15-2013 02:53 PM
Could you possibly connect the local variable to your subVI and let it write zeros to graph? One of the outputs of your subVI could be a "reinitialize" output that writes a zero to the local variable.