08-21-2012 03:37 PM
LabVIEW Gurus,
I have a cluster type def that I created to be used on my user interface. I am using multiple instances of it and simply sending data to each in a loop using control references.
The cluster includes a couple of booleans (error lights), a few doubles (temperatures) and a cluster of 2 doubles that feeds a strip chart.
Within the UI, I have a tab control. All of these type defs are getting programatically arranged on one tab of this tab control.
As I programmatically pass data into each instance of these type defs, the doubles are displaying properly.
However, the strip chart is not showing any data at all.
Strangely, If I create an indicator off of one of these controls on the block diagram, I see data just fine. (However, of course, this indicator is not on the tab control).
Am I completely missing something regarding the "as designed" behavior of these things? Any suggestions on how to fix this issue?
I will attach a couple .jpgs so you all can see what the code looks like.
Thanks for reading!
08-21-2012 04:19 PM
It would be useful if you show how the data is being transferred into the cluster and from the cluster into the strip charts. Pictures are only good if it can show everything you want. A real vi would be useful and better yet, a vi showing it for 1 or 2 tabs at best.
I have a program with 12 tabs and each tab window contains anywhere from 1 to 8 elements to be displayed in the chart.
08-21-2012 04:48 PM
Sorry about the confusion. This is all so very clear to me since I have my nose in it all day.
I've added (admittedly very crudely) a red circle in each photo. The circle surrounds one instance of the Cluster Type Def. on both the FP and the BD.
So, at the moment, I am passing the whole cluster of data (including the cluster of 2 dbls for the strip chart) into the Cluster Type Def. using a Control Reference.
I just extract the cluster, change it to variant (to avoid the coercion dot) and send it into the control ref.
It is this easy because I have already packaged the data into neat clusters that are designed to be passed directly into the cluster type def.
I do this in another VI, and I can't imagine that showing a picture of how the data is put into the cluster is valuable.
The help window in the UI Block Diagram. jpg shows the structure of the cluster as it is passed into the type def via control ref.
08-21-2012 05:14 PM
You are missing the point. You need to show how the data is going into the strip chart. If you can prove satisfactory the data is getting into the cluster, that ends 1/2 of the problem. showing how the data going into the strip chart needs to shown is working properly. That is the reason you should break down the item to 1 or 2 items. If you look at the original picture, I have 12 dynamiclly started program that allows me to pass the data in.
08-22-2012 07:26 AM
Joseph,
I feel confident that the data is getting into the cluster properly because I created an indicator (Simulator Model 25) off of one of the cluster controls (Simulator Model 1) and it displays the data properly.
So I know that the cluster controls are getting all of the necessary data.
You can see in the two attached pictures that, while my cluster controls (Simulator Model 1-24) have strip charts that do not display data, The indicator that I created (Simulator Model 1) is displaying everything properly.
So I wonder if I am missing something related to the fact that my cluster controls are on a tab control, whereas the indicator is not on the tab control?
Thank you for your responses. I am attempting to answer your questions; but I am in a constant state of self-teaching w.r.t. LV and I haven't done much with strip charts, tab controls or passing data into cluster controls via ctl refs.
08-22-2012 08:46 AM
You are missing the point again. The crux of the question is how is the data going to the chart. Do you have a display on each tab showing the data? your picture is unclear. How do you get the data to the chart?
I can not ask the question any more explicitly. You do not want to create a simple model or display the vis. I don't see how I can help you anymore.
If you are leaning, you should be doing a simple version and build from that. Not a complicated version first.