I am new to LabView but have a strong programming background.
Basically, I'm looking for some guidance on the standard (or "right")
way of building my application.
Application goals:
-- Monitor several freezers to ensure temperature remained in a specified range.
-- Customize data for each sensor (Name, Thresholds, number of sensors, etc)
-- Save temperature information for later retrieval.
FYI: I use the TInScan VI which outputs an array of up to 16 temperatures.
Front Panel:
I made a strict typedef control with the indicators in a cluster
(sensor_clu), then arranged the 16 controls in main_cluster. My
programming instinct said use an array as I have 16 objects of the same
type. However, I wanted a grid layout (4x4 numbering left to right,
then down), and the ability to hide unused sensors.
Block Diagram:
My block diagram strengthened my
feelings that I shouldn't be using a cluster as a "pretty" array. I
don't like that the program blindly converts a generic object to a
specific object based on the order of controls in the cluster. I feel
that there should be a way to keep all of my controls, clusters, etc in
their original type, or at least a way to convert a generic reference
to a sensor_clu.
for loop idx:main_cluster-->Controls[] prop // for each sensor_clu
convert reference to specific class: Cluster // convert ref to cluster
for loop idx: cluster object-->Controls[] prop // for each control
case structure: iteration number // determine control
convert reference to specific class: // convert ref to control
finally set any properties of that control // set values
Please offer any advice on this topic.
FYI: I am using LabView 8.2.1
Message Edited by StevenATK on
07-29-2008 01:07 PM