08-26-2007 10:05 AM
08-26-2007 11:06 AM
@Raghunathan wrote:
Why ?
The "indicator" actually flickers between 500 and 100 but the display time for the 500 is infinitely short, so you don't see it (even when set to synchronous display)unless you run in highlight execution mode, where everything is slowed down.
You can easily show it better if you use a chart as indicator as in the attached modification.
But yes, you cannot determine what numbers will be displayed by looking at the code, and if you would rearrange things, convert it to a different LabVIEW version, or write the VI once more from scratch, you might get different numbers. There is no way to tell. 🙂
08-26-2007 12:00 PM
Thanks for your discussions. The original Vi my lab-member made is nice, but it isnot modularized. All the codes are put together and it is difficult to make "updates". That's why I want it redesigned using subvis and local variables.
08-27-2007 08:00 AM
08-28-2007 12:17 AM
@DFGray wrote:
- Look at the program flow and decide on a maintainable, extensible base program structure. This usually means some sort of state machine architecture. You may need a producer/consumer architecture, as well, to handle simultaneous tasks such as data acquisition and GUI handling. <shamelessplug>LabVIEW is great for these sorts of parallel architectures.</shamelessplug>
While on the subject of StateMachines, which I use extensively, how does LV handle that ? Does the whole SM come under a single thread or every instance of the SM gets handled in a new thread ? My SM is inside of a 50ms Timed Loop and thus there is a finite interval between each call to the SM.
While there are different options to step through each state ( shift registers, queue etc ) I think the SM is the only option in LV, when it comes to writing machine control codes - say for instance a 6 junction traffic signal sequence??
Raghunathan
08-28-2007 08:19 AM
08-28-2007 09:40 AM
Thanks for your clarifications.
@DFGray wrote:
That is why state machines are so popular. They are easy to code and modify.
08-28-2007 09:53 AM
08-28-2007 10:03 AM
08-28-2007 10:09 AM
The point regarding enumerated type def is fine - but when my state machine has something over 75 odd states I really run into a problem looking for short and descriptive names for each state
andre.buurman@carya wrote:
And wiring an enumerated type def to the case selector and deleting the default case even signals you when you miss a case and documents it.