How to stack waveform in one graph
I am trying to stack 107 waveforms in one graph. I need to plot these to its depth (Y Axis is depth). That means the first wave will be plot at Y = 0, the next waveform will be plotted at Y = 0.1 (not 1). The third waveform will be plotted at Y = 0.2 (not 2). How do I do that?
Do you mean a simple 2D graph? Try this, its a striaght mod of what you get in the Measurement Studio booklet.
CNiReal64Vector rvecWave;
CNiGraph m_graph;
// Creates a sine wave 100 pts long, amplitude 0.09.
CNiMath:ineWave(rvecWave, 100, 0.09)
m_graph.Plots.Item(1).PlotY(rvecWave); // Item(1) exists by default.
// Now add all the other plots.
for (int i = 2; i < 108; i++)
m_graph.Plots.Add(); // Adds a new plot.
m_wave.Scale(1, 0.1); // Adds the offset.
m_graph.Plots.Item(i).PlotY(m_wave); // Plots the wave.
-Mike
Similar Messages
-
How to add more than one graph to a pivot table??
Hi,
I have a report containing product,store,offers per store as dimensions and spending,Buying households as measures.My requirement is to show 'Store' in a section and corresponding report(which contains product,offers of that store,spending and Buying HH) and individual graphs for spending and buying households( 2graphs).I mean if I have 3 stores, I should get 3 sections of stores and each section should contain corresponding report and graphs. The main requirement is that "USER" should able to export or print the whole report at a time.
I used pivot table to achieve this but I could only show one graph per store but I need two graphs for both spending and Buying HH.Please help me how to achieve.
Your valuable suggestions are well appreciated!!!Hi,
I have a report containing product,store,offers per store as dimensions and spending,Buying households as measures.My requirement is to show 'Store' in a section and corresponding report(which contains product,offers of that store,spending and Buying HH) and individual graphs for spending and buying households( 2graphs).I mean if I have 3 stores, I should get 3 sections of stores and each section should contain corresponding report and graphs. The main requirement is that "USER" should able to export or print the whole report at a time.
I used pivot table to achieve this but I could only show one graph per store but I need two graphs for both spending and Buying HH.Please help me how to achieve.
Your valuable suggestions are well appreciated!!! -
Two stacked bar in one graph with Answers
Hi,
I'm trying to join into one graph four measures. So, we want to show two stacked bar, each bar with two measures. Is it possible with OBIEE tools??
TIA
JavierIf all you want is a stacked bar, you have an option under the type of the graph. select 2D/3D stacked. Also, while creating select all the measures that you want in the graph. That should give you a stacked bar graph. But if you want something like this
Measure1 Measure3
Measure2 Measure4
(Stack1) (Stack2)
i dont think it is possible out of the box.
Thanks,
Venkat -
Dear Sir,
I have a problemthat I am using DAQ-9172(9215 & 9263) and I am sampling two signal at same time one from Encoder and other from a sensor (1 pule revolution) and I want to display both in one graph I used many example from help some time it give error some time i don't see any signals and also this is a single shot but i want to see signals continously. So help me.
Hope to hear a answer soon
Regards
Talib Hussain
Attachments:
Acq&Graph Voltage-Int Clk-SW Trig Restarts.vi 28 KBHi,
You can build an array of your signals and display it in Waveform Chart... Look at the attached VI...
Cheers
Angel
Attachments:
Acq&Graph Voltage-Int Clk-SW Trig Restarts.vi 37 KB -
How to get bar plot stacked in one graph?
Hi there,
I am having a problem trying to get a stacked bar plot in one graph. I attached two images to show you what it looks like now and how I would like it to look.
At the moment I am making two x,y clusters, bundle these into an array and give that as input to the XY graph. This gives me the image where the bar plots are shown next to each other. However, I want them to be shown on top of each other and I cannot find a way to do this.
I searched this forum and the help and looked at the available properties for the XY graph, but it seems impossible. So I was wondering if anyone here is able to help me solve this.
Thanks in advance,
Steph.
Attachments:
current.png 7 KB
wanted.png 10 KBThanks! Maybe I am not understanding the terminology and a "stack graph" may not be what I am looking for, but here is my small example.
DATE
DATA 1
DATA 2
1/2008
3
4
2/2008
4
8.5
3/2008
6.58
38.9
I would like to do a bar graph where DATA 1 AND DATA 2 overlap each other like Steph's example of a stack graph.
and the "DATE" will be on 'x-axis' while data 1 and data 2 will be values show on the y-axis. (Note: data 1 will always be data 2, it will show up with two colors where one color is always taller than the other).
Is this stack graph the right path? I am new at using the graphing icons in Labview, I do not even know how to I would go about loading these as inputs to the VI.
Please advise me on the right path. Thanks again!
Eileen -
How to view different sine waves in an array and make an fft of these and display it in one graph
How can i cannect the output of my mathscript in the Spectral Measurements VI SIgnal Input. I'm having a problem since the output of the mathscript file "D" is DBL 2D. I dont know how to convert this data type in order to be connected to the signal input of the Spectral Measurements VI. I also want that the waveform graph connected to output of the Spectral Measurements VI, will display the FFT of the three sine waves in one graph.
Attachments:
1.JPG 32 KBDuplicate
LabVIEW Champion . Do more with less code and in less time . -
How to show two waveforms on XY-graph?
Hello,
i have two array with x and Y-values that are bundled and then displayed in XY Graph.
How can i show two XY-waveforms on the graph at the same time?
Thanks
Solved!
Go to Solution.
Attachments:
Wave.jpg 48 KBHi one,
open the context help and move the mouse pointer of the XY graph. Then read the help!
Btw. you don't create waveforms, you create XY plots…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Hello,
I need to put two waveforms in one xy graph. Value of one waveform should be in x axis, and second on y axis. I have no idea how can I do that. Everything I have succeeded is xy graph with both values on y axis and time on y.
Thanks for Your help!Check xy graph.vi example that ships with labview
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community. -
Help:allow the user to select which 3 waveforms he want and plot in one graph
Hi all
I have a question and I am kind of lost. I used block diagram to generate 5 Waveform and I want to give the user the ability to pick up three waveform in plot it in one graph.
I tried to to do in formula node but as I know I can't wire it together .
can any one tell me how to fo it
thanksnever get own wrote:
thanks for ur respond
i will be generating the waveform from block diagram. my only questions how can i plot them together in one graph or chart.
lets say i have sin, triangle, square waveform and need to plot them all in one graph.
Use an array. Please look at the examples that ship with LabVIEW. They show you how to use the chart, waveform graph, and XY graph. If you turn on Context Help and place the cursor on the graph's terminal on the block diagram you will also get a short review of how to send data to the chart/graph. -
How can i dynamically vary the color of one graph line
I was looking on the developer zone and noticed several people are looking for a way to change the color of one graph line. Simplest case I would like to know: a graph is running, then you press a button and from that point on the color of the graph changes, but doesnt change the old data line color. THis way the line will consist of different colors.
The property node changes the whole line, and the line is always just one color. It should be possible to make the line consist of different color sections, anyone know how?The application is actually not as slow as it seemed, i had some settings set wrong (anti aliasing in plot, and some functions in advanced, when you right click on the graph)
Especially unchecking the anti-aliasing makes it much faster
Also, just plotting point and not a line, or alternatively, changing the interpolation makes it faster.
Anyway, the attached files do not rely on processor so much anymore, see for yourself
Attachments:
multicolor_looking_plot.vi 99 KB
multicolor_looking_plot_2.vi 105 KB
multicolor_looking_plot_3_truncated_array.vi 99 KB -
I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me
Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
-Kevin P.
Message Edited by Kevin Price on 12-01-2006 02:42 PM
Attachments:
Binning example.vi 51 KB
Binning example.png 12 KB -
I am taking temp readings with a 4 channel DAQ, sending them to a waveform graph and exporting the data to excel, how do I manipulate the graph to take a continuous reading as opposed to losing the previous GUI and how can I save the entire graph?
Using LabVIEW 2011 operating on Windows 7 professional.That is the nature of the chart -- everything not in the history is lost (it is a FIFO buffer of length=1024 samples by default).
The scroll bar is probably grayed out because you're show all of the data.
Attached is a program that will add 5 random points to a graph and prompt you for a file location where to save a JPG snapshot of the graph. It's not particularly good programming style, but it has all of the elements/concepts you're after.
Attachments:
graph.vi 14 KB -
HT202060 How can I make Activity Monitor show one graph instead of four for MacBook Air?
How can I make Activity Monitor show one graph instead of four for MacBook Air?
Learn about OS X: Activity Monitor shows one CPU Usage graph on systems with more than four cores
Copied and pasted from top of the page. -
How to Stack 16 Plots in an 8-Graph Chart
Here's a good one:
I have a stacked chart with 8 graphs. I'd like to display 16 plots on the 8 graphs with each 2 plots overlaid (in different colors). Is there a way to do that?
FatanehHi Fataneh,
Using the "transparent" color you could make one of two charts "see-through"...
- what do you think?
When they give imbeciles handicap-parking, I won't have so far to walk!
Attachments:
overlay.GIF 61 KB -
If I have a window open and click on a link to open another, they all stack up in one window instead of opening a new free-standing window. How can I change this?
I am male, so in your eyes I am a god. I'm glad I could help!!
Maybe you are looking for
-
Memory leak in OCI while using AQ
There seems to be a serious memory leak in the OCI driver (9.2.0.1) when using a JAVA client to dequeue a database queue (Advanced Queuing). Continuous dequeuing causes the heap memory to increase, and this memory never gets freed which leads me to s
-
Problem mapping header/items in 1 Message Type
Hello, I'm currently facing the following problem in my message mapping: On my 'CRM side' I have a MessageType (DataType) consisting out of +/- 10 header fields and a field called 'ITEMS' 'ITEMS' is table type field consisting out of +/- 5 item field
-
Dear guys, I deployed Cisco ISE for Network Access Control. My topology as described as attached image. I configured Cisco ISE as Radius Server for Client Access Control. But, I got some problems such as: No Accounting Start. (I have configured
-
it all started after i upgraded
-
Hi guys, My apex version is 3.2 and I am trying to validate a text field to make the user type only English letters and I am using PL/SQL expression: REGEXP_LIKE(:P6_EMP_FAMILY_NAME,'[a-z,A-Z]$')That prevents the user from typing Arabic letters or Nu