Stacked plots problem in exe
Hi,
Ive got a problem with creating .exe application where 2nd chart functioning properly.
2nd chart is in subpanel as a stacked plot. I pass via main form numbers of stacked plots. In builder it works perfectly, in .exe not at all..
Any ideas?
Attachments:
WykresOnlineCAN.zip 73 KB
Ok sorry I didnt explain well whats the point.
There is no problem with properly "refreshing" of subplot - works fine even without static reference(but thanks anyway, I missed that).
I cannot changed the number of staked plots in the screen(constanly 1) - in editor mode it changes according as number of flaged plots.
The problem is show in the pictures below.
Attachments:
editor mode.png 60 KB
in exe.png 57 KB
Similar Messages
-
"Fill base line"/"Fill to" problem within stack plots
Hi there,
I try to plot multi data sets within the stack plots waveform chart. But I can't control the Fill To option correctly for the plots other than the first plot in the window. As attached, even I set the fill baseline to zero for the second plot (the green one) in the first window, it performs like fill to -infinity. I am using Labview 2010 DS2.
Any solution? Or, I made any mistake here?
Thanks.
Attachments:
Stack Plot Fill Baseline.vi 12 KBI agree things behave a bit weird if the number of traces is not a multiple of the number of stacked plots. Do you want three stacked plots or have two traces share one of the plots? Maybe you should use more defined data structures, e.g. an array where each element is a clusters of size=3.
Try the following:
resize the plot legend so 4 stacked plots show.
Now resize it again for two stacked plots.
In my case, the fill to zero is now correct.
LabVIEW Champion . Do more with less code and in less time . -
I'm working on a project based on the Continuous Data Acquisition
sample that shipped with Labview 7. My problem is that when I try to
plot multiple channels of data using the "Stacked Plot" property of
the Waveform Chart, I still get overlaid plots. The input to the graph
is the 2D array created by the example. Is there any way to get a
stacked plot here?
Many Thanks!
DanYou might need to convert the array to cluster before feeding in to the chart... here is example for 1D stack plot
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
StackPLot.vi 58 KB -
Dynamically resizing stacked plots depending on visibility of scale
Hi,
is there a way to change plot width in a chart with stacked plots, depending on visibility of scales and number of digits of scales _and_ without resizing width of the chart when all scales are invisible?
The problem: when all scales are invisible and the number of digits increases, the chart's width decreases and the scales move a little to the left.
Thanks a lot in advance.
Cheers,
MartinHello Martin,
Could you please attach some sample code of your question. Also, if would be really helpful if you could document the front panel of the code with what to do in order to see the problem you are seeing with the chart's width decreasing.
Thanks. -
Dynamically stacked plots of chart
In LV 2009 it is still not possible to set the number of stacked plots of a chart programmatically. Is there any useable workaround?
Before I start measurement I know how many channels I will acquire – between 1-16.
Before the measurement starts I want the chart to display as many plots as I have charts
I am building exe in the end (in linked thread is proposed some workaround that doesn't work in executables)
My only suggestion so far is to use 16 stacked plots and play with their height and position to hide and show them = not very friendly. Thanks for any suggestion
Message Edited by ceties on 01-12-2010 03:28 PM
LV 2011, Win7
Attachments:
StackedPlots.vi 14 KBIf you somehow manage to execute the program with "overlayed" plot selected (with the number of stacked plots wired to the property node )and then switch back o "stack plots" progrmatically i think you can solve this...
Guru
Regards
Guru (CLA) -
Changing y-axis in chart stack plot
I am using LABVIEW 5.0.1f1:
I plot 8 values in a chart as stack plot by bundeling the values. During
running programm I want to change the y-axis of the 5th value (changing maximum).
But if a use attribute node of this char and select "active plot"=5 and "y
maximum"=40 only the 1st plot window of this stack is changing its y-axis.
How can I modify the 5th plot window?I have the same problem, did you find a solution?
-
Stacked Plot y-axis property access.
STACKED PLOT Y-AXIS
I have a stacked waveform chart showing four plots
Each plot correctly appears on a different sub-plot
I can use the set active plot property to loop through the four plots and change their names, visibility etc.
I can also read which is their active y scale index which corresponds to the plot index (i.e.both 0-3)
BUT
When I try and change a y scale property (e.g. label>text) it only ever changes the top sub plot label
I have tried forcing the active Y-scale index also to no avail.
I have also tried an overlay plot with 4 different y-axis and have the same problem.
HOW DO I SET TEH INDIVIDUAL Y-SCALE PROPERTIES ON A STACKED PLOT?
Attachments:
stackedplot_yaxis_edit.zip 22 KBI made 2 small modifications to your VI, take a look at the attached.
First you needed to set the active Y scale rather then setting the index. But more importantly the property node you are using to set the values is linked to the wrong graph.
Let me know if the attached does what you where looking for.
Attachments:
stackedplot_yaxis_edit2.vi 66 KB -
One method i realize is to have two waveform controls, one visible and one not visible. The real issue here is, how to dynamically control the number of plots in a stacked plot. My case,
i will have between 2 and 8 channels. I have found that in the properties if i set the number of plots - Legend--Plots shown . I can control the number of stack plots, however, i must toggle from overlay to stack plots in design mode for the correct number of stack plots to be shown. Does anyone know a way around this problem or know of the property that has alluded me?Hi,
You cant select between Stack plot and Overlay programmatically. Well not in LaBVIEW 5.1.1.
You could have two Charts, one set up for Overlay and the other setup for Stacked. Then hide the one you are not immediately using.
Ray.
Regards
Ray Farmer -
How do you create stacked plots?
Okay, I have tried for quite some time today to create a stacked plot, but without any success. I want to be able to put in a max and min range for the x-axis on the front panel. This x-axis will be used for three different y-axis. Each y-axis will have a different scale than the other ones. Also, each y-axis will have up to 6 different plots. I have attached an example of what I hope the final chart/graph/plot will look like. I have tried combining the x-axis values with the different y-axis values in an array (2D) and then plotting them but nothing seems to work right.
Attachments:
C-1650 - 4610 Q-SERIES pressure.pdf 24 KBNever had much success getting what I consider "publication quality" graphs out of LV, but that is not what it was built for. It has a great looking GUI and the flexibility to get your data into a program to suit your needs. Doesn't mean that there aren't some features we'd like to see added, especially when it comes to axes and labelling. My advice to you is the following:
1. take a deep breath and decide if this is something you really want to do.
2. perhaps try an in-between solution like stripping down the plots and stacking three XY graphs on top of each other. You can programatically control the scales. You won't have overlap of the plots like you show, and all of the labels will be on the left.
3. Try a standard XY graph and fudge the labels using Ben's very elegant trick. Ben is the go-to-guy (IMO) for picture control questions
4. Explore the Picture VIs to generate plots piece-by-piece. You are in for a lot of work, but it is the only LV-only solution I know to get the results you are looking for. (Perhaps there are new and exciting features in LV2009 that someone will enlighten us with).
5. Do what I do. I use a MathLink connection to Mathematica when I need plots that I can't get easily in LV. You can retrieve the graphics object and display it in a container or a picture control. I use a picture control because the container seems to unload the image when I stop the VI. If you don't have Mathematica, or similar program, sorry.
Message Edited by Darin.K on 08-17-2009 07:41 PM -
Change properties inside dynamic stack plots
Is there any way in LabView 8.2 now to change the properties of indicators inside an array or cluster? I want to change the properties of the waveforms inside DynamicStackPlots (http://zone.ni.com/devzone/cda/epd/p/id/3024). I see on this forum back in 2005 this was last discussed. I have also tried making a cluster of waveforms (instead of an array of clusters) from which you can at least separately access properties (allowing you to make specific waveforms not visible, yielding dynamic stack plot functionality). But you STILL cannot modify, say, the plot min range, label, scale... etc.
All ideas welcome!
Thanks,
AdamHi, Adam.
This question seems to pop up every once in a while. The answers are different for arrays and clusters:
Clusters
You can access the properties using an explicitly-linked property node (IE, one that takes a control reference as an input). You can obtain a reference to the controls in one of two ways:
- Right-click on the control (inside the cluster) and select Create»Reference.
- Create a property node for the cluster and access the Controls[ ] property. This will give you an array of references to the controls inside the cluster, and you can pass that into the explicitly-linked property node. (You may have to use a To More Specific Class VI if you want to access properties that apply to only graphs.)
Arrays
Since arrays are for holding a large quantity of indentical data types, the properties for all elements of the array must be the same. If you really want to sidestep this functionality, however, you can always create an array of references to controls. If you wanted to do that, you'd have to create all your controls individually and then create references for them one by one. Once the references are created you can pass them into a Build Array VI. To alter the properties of any particular control, you'd use an explicitly-linked property node and pass in the appropriate reference.
Let me know if any part of this isn't clear. Have a nice evening!
Message Edited by sarahk on 10-25-2006 04:35 PM
Sarah K.
Search PME
National Instruments
Attachments:
clusterControlReference.GIF 6 KB -
Remove borders from stacked plot with 64 channels
Hello,
I am looking for a way to compact my display for 64 channel of data. Is there a way to remove/reduce the border between the stacked plots in a waveform chart? It would be awesome if I could each plot area right on top of the other. It would be even better if I could have them overlap a bit as well.
I don't necessarily need to see each plot clearly, the important part is just being able to see if an individual channel has very high noise compared to it's neighbors.
programatic solutions would be great as well because there will be times when only some of the channels will need to be viewed.
I included a picture of my current stacked plot layout. Basically more border than plot.
Thanks!
Attachments:
64 stacked plots.PNG 39 KBHi honglyshin,
As it turns out there is a way to essentially merge the plots. On the plot itself, if you move your mouse to the far right side of a plot, you can drag its upper right corner up(ensure the double-ended expand arrow is oriented with the left side down and the right side up to ensure your have the correct corner) to meet the plot above it. There doesn't appear to be a way to do this programmatically, but dragging the plot corner to meet the plot above it seems to work.
AC - LV Solver
Attachments:
stacked plot.PNG 4 KB -
Plotting 6 curves in 3 stacked plots?
I've got some filtered x,y, z coordinate data which I'm currently plotting to a waveform chart with stacked plots. How can I include the unfiltered data on the respective plots?
ie. 1 plot displaying x filtered and unfiltered together, y filtered and unfiltered together etc.
Solved!
Go to Solution.Hey Graham,
Interesting question!! It has taken me a while to figure it out, but is certainly possible - even if the solution is a bit of a fiddle.
Please see the attached code. To impliment your functionality, I had to...
Bundle all plots (in this case 4) in to a single cluster, and send them into a "stacked chart".
Resize the plot legend to show all 4 plots.
Right click each item in the legend, navigate to Y-Scale and then select which window you would like to show the plot (1-4)
This means that 2 of the windows will show 2 plots each, and 2 of the windows will be empty. Unfortunately, I was unable to "hide" a window - so this is where the "fiddle" comes in - I just resized and repositioned each of the "windows" to effectively only show 2 of them in our stacked chart.
I hope this has been useful Graham,
Best wishes,
Rich R
Applications Engineer
National Instruments UK & Ireland
Attachments:
StackedPlot.vi 18 KB -
Is there a way to have a stacked "Waveform Chart" with 8 stacked charts but display 16 plots, 2 on each chart?
Ok I found a way to do this. It is not exactly straight forward but the attached VI and control show what you want. The secret is in customizing the graph and using the "Y Scale Index" property.
Follow these steps and you should be golden.
1. Create your stacked plot with the 16 plots. So you will have 16 tiny little plot areas... no worries.
2. Take a look at the attached code and see how you can select the active plot and then the Y Scale Index associated.
You at the moment have 16 plots and 16 Y scales. Simple change the Y scale index of the last 8 plots to be 0-7.
3. Try that and notice you now 16 plot areas 8 plots with 2 plots on it, and then 8 that are empty.
4. The last thing is to get rid of the 8 "blanks".
5. Select the last 8 plots and make their Y scales not visible.
6. Finally right click on the chart and select customize.
7. Select window>> Show Parts Window. In that new window you can find the last 8 plots, and set their hieght to 1, and change their location. I suggest moving them under the top plot.
8. At this point you have a lot of free space. Select one of the remaining plots and increase its height to what looks good for just one plot area. Then select the 8 that you want to show and you can use the "Resize Objects" ring in the tool bar to make them all the same size. Move them to where you want and bingo.
9. You should now have 8 visible plots, and 8 that are hidden. Save the control and replace the one on your Front Panel.
You should be done. Let me know if or where you get lost because I know this is kinda strange.
Evan
Attachments:
Overlaid graphs.ctl 31 KB
Overlaid graphs.vi 50 KB -
Change properties in stack plots
hello
I'm using a waveform chart in my VI (labview 6.1).I need to display three graphs with diffrent y-scales.
So I chose Stackplots. The result is one chart with three diffrent output windows. So far so good - but now I need to change the properties of the graphs individually. Primarily I'd like to change the way the displayed points are interpolated.
I've searched for the place where to make this changes but all I found was a way to adjust the first output chart. All other output windows of the stack plot remain with the standard looking. maybe a quite stupid question ...
thanks in advance for any help
SimonYou need to use/set the "Active Plot" property as per the attached.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Attachments:
Use_Active_Plot_v61.vi 28 KB -
Hi,
I'm experiencing a problem using a multi-plot xy graph. I have to display 2 plots together, and make them appear and disappear many times during the program running.
But when I close LV and restart it, the second plot (plot1) doesn't appear, and also I lose all the properties I've set for it (name, color,...). If I don't shut down LV everything works well.
What can I do?Stefano Moret wrote:
When you write about use property nodes, I'm using the "visible" one.
Your suggestion is to try also to set all the properties from there? Maybe it's a good idea, I'll try.
Here are some code snippets I used once to initialize the graph and later on change legend entries depending on user selection.
You can also change the way plots are represented during run time. You always have to start with ActPlot do selct one of the plots.
Good luck
Maybe you are looking for
-
Why won't my audio loops and MIDI loops sync together in a project?
I have a number of guitar riffs in a project that I've been making into loops, as I wish to use these as ideas which I arrange in a new project. I've been saving the edited regions of the riffs by going to Region>Add To Apple Loops Library> and savin
-
Corrupted/Locked out apple ID "An Unknown Error has occurred" logging into support?
I was forced to use a different apple id to log into this support community because all attempts from different devices and browsers using another ID have ended up at the password prompt with "An unknown error has occurred" at the community login scr
-
your not register as developer Please register in the OSS How would i know weather i am getting error for old systemBW3.5 or new systemBI7.0 Please some can tell me how would i find this ? does it identify with installation number
-
I have made yearly subscription to Chandamama junior english and Telugu magazines which are released monthly by publishers. I could download for only 2months from itunes store and now cannot download any more. No error message. When I enter my itu
-
Time to be mature about it creative... tsk tsk tsk
i recently bought an apple ibook only to discover that my zen micro is not compatible with it! well, i thought, creative will have a mac os x driver for download but not only they don't have it for the zen micro because after some research i haven't