12-28-2005 09:19 AM
12-28-2005 10:20 AM
What you need is a state machine. Search the example finder and this site for examples and tutorials.
There are several ways in which you can allow the users to select the steps they want. For example, you can populate a ring or a listbox by using a property node with the Strings[] property and do this as many times as needed, each time with the appropiate options.
12-29-2005 05:35 AM
First think of your data flow:
Is every step independent? How to handle instrument setups without reinitialisation on every step?
What data do they share in common?
What data do they pass to the next step?
My suggestion is a also a state machine (producer/consumer).
Can each cycle step be realized into one vi (with subvis)?
Use the vi-server to run each step after the other .
You can place all cycle-step-vis into one or more subdirectories (structures) and create your selection list dynamically. So it's easy to add new steps by simply copy the vis into a (network) folder. And you don't need the LV development system on every application.
Data can be passed around with queues (current data to the GUI) or the terminals in typed vi-server calls (data hand over) or ...
Try to avoid globals, they might be good for a global shutdown but can slow down systems.
(I use LV2-style globals to pass current data if only one task is writing and one or multiple readers exist with different 'scan'-rates, but this is historical and with LV8 there are new (better?) approaches )
You can even start background tasks in the beginning (temperature monitor?) that run independent. However keep track of your (sub)processes and data flow.
12-29-2005 11:46 AM
12-30-2005 08:53 AM
12-30-2005 03:47 PM - edited 12-30-2005 03:47 PM
@Jhoskins wrote:
I was just wondering what you think the better alternative is for LV2 style globals are for LV8.
Message Edited by altenbach on 12-30-2005 01:50 PM
12-30-2005 03:54 PM
Christian wrote
"
However, I still often also use LV2 style globals, simply because they can contain much more intelligence and functionality if needed.
"
01-02-2006 03:03 AM - edited 01-02-2006 03:03 AM
Message Edited by Henrik Volkers on 01-02-2006 10:04 AM
01-02-2006 10:09 AM
"Maybe my picture is just a shadow in a cave? If I don't know if I understand Platon, will I be able to understand LabVIEW? "
You do not have to understand Plato to LabVIEW. This is good because so few actually grapsed what Socrates was getting at, particuallrly here in the US (Just look at how hard someone has to work to become president).
That is one of the things I like about the Exchange. It is a nice little shadow cave where I can believe I am doing the world good while waiting for the benign dicatator. (Is that a sufficiently abstract reply?).
Bonus question!
Aconding to Plato's Republic, what form of government follows democracy?
Correct answers get 5-stars! (yes that applies to CC and tst)
Ben
01-03-2006 07:44 AM
I should correct myself. I wrote "waiting for the benign dicatator" that should hae been "waiting for the benevolent dicatator".
Ben