06-06-2018 03:08 AM
hello guys as you can see in the VI i want to create a counter that save and add each power value (for an energy meter project )so anyone help please
Solved! Go to Solution.
06-06-2018 03:52 AM
use shift register
06-06-2018 03:54 AM
also it would be good to look into producer-consumer design-pattern,
and using the Event Structure for your GUI.
06-06-2018 05:25 AM
how it can help ??
06-06-2018 05:39 AM
producer-consumer design pattern separates data acquisition from presenting/acting-on the data. it is like a template of good software architecture for this kind of problem.
the event structure can be used for reacting on GUI events like clicking a button, as well as acting on self created user events (this works like a queue, where the event structure can react on messages).
this helps to make it clear where and what you do in regards to user interaction.
06-06-2018 05:48 AM
The benefits of choosing an appropriate software architecture may not be evident when a project is in its early stages.
However, it helps a lot later, when (very usually) it's needed to add more functionalities and features.
06-06-2018 05:57 AM
a very simple example:
NOTE: this is a snippet. if you save the .png on your computer, you can then drag+drop it onto a block diagram (directly drag+dropping from the image in the forum does not work anymore unfortunately)