Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHmm, I see your problem now. The issue is with the add_service command, the second time you run the script this is adding a service which already exists.
If there was a remove_service command then you could call that, but there isn't (yet) so some sort of workaround may be required. Could you store the ID from add_service in a global variable and if that's set you don't need to call add_service a second time? Unfortunately you'll need to call dashboard_remove to remove all the widgets from your dashboard before adding the new ones again. That's the best I can think of I'm afraid. ps. I found a dashboard example - it's in `help dashboard_set_property. This shows you how to use a button to start/stop capture. Using the monitor service to read data will be more efficient than using master_read_memory.