02-01-2012 09:41 AM
Here are some screenshots of a real world example.
THe US gov't operates a lab where they support Mine Safety and as such are interested in the concentration of methane in mines. They need to watch the concentration and how ventelation patterns affect it.
It used DAQ to monitor an aray of methonomters in the simulated mine gallery.
THey used a mix of anemometers to monitor the air-flow patterns. It had to be an exe and I did not know at development time which mix of devices they will use. So they configure the system using drop-down boxes populated using the plug-ins supplied with the app.
The final analysis looked like this.
So all of the I/O devices descend from a common class adn dynamic dispatch handles the difference in the hardware.
This image is from a different application but it does show the concept.
Ben
02-01-2012 10:19 AM
Ben that is really interesting, thanks for posting that. LVOOP is one of those things that I don't have much experience with but I have been trying to get more familiar with since it is definitely a powerful tool!
02-02-2012 07:38 AM
If you don't want to use arrays or LVOOP, you can create an instance of a cluster by wrapping it in a data value reference. The LVOOP solution is far more scalable and elegant, though.
02-02-2012 08:43 AM
@Akiel wrote:
I am looking for a way of defining a cluster then cloning it as many times as required (up to 12). each cluster will contain information on a UUT (the uuts may be different from each other and will be defined in a config file), performance is critical in this application. Any suggestions will be greatly appreciated Akiel
Make it an array of clusters and you can simply index out your UUT.
/Y
02-15-2012 04:21 AM
sorry for delay in replying, heres the solution that is working for me.
1. Create type def of the cluster
2. Create array of the cluster type def with as many elements as required
3. get information from cfg file into cluster (as file is so large had to create my own ini file handling routines as the supplied ones were just too slow)
4. The settings are now ready for use
Hope it helps
TDarkins