LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

centralising waveform graph scales

I have a waveform chart made up of 512 data points these are grouped by 16 channels each containing 32 data points. I would like the scale to show 1 to 16 for each channel but centrally to the data, the closest i have got is shown below, but i don't want to have the 0 at the beginning and 16 at the end.  Can this be done? I've searched but not yet found out how to do this, i'm sure i have missed something very obvious.

 

 waveform.jpg

0 Kudos
Message 1 of 10
(3,235 Views)

If you right click on the graph and select properties.... Go to scales, select X scale, and then in the bottom left you should be able to select the tick mark preference (it might be in a different tab in properties... but its 100% there).... I'm currently upgrading my LV17 to LV19 so I will post a picture once that's done in the next 30 min...

0 Kudos
Message 2 of 10
(3,227 Views)

Thanks, i know what you mean but when i try the next "tick mark" it only shows 1 and 16 on the graph, 2 to 15 are missing.

0 Kudos
Message 3 of 10
(3,216 Views)

Once I finish this LONG install ill probe around and attach a png of it.... I was sure there was a no start/end option

 

0 Kudos
Message 4 of 10
(3,211 Views)

To my knowledge you can not hide limit marks, only internal marks.

You can mask them with rectangle decoration of appropriate color. 

You can also hide graph scale, put almost invisible slider and sync the scales.

But make sure graph area does not change width (you can set minimum width in Y scale formatting)

 

0 Kudos
Message 5 of 10
(3,201 Views)

@Dave76 wrote:

I have a waveform chart made up of 512 data points these are grouped by 16 channels each containing 32 data points. I would like the scale to show 1 to 16 for each channel but centrally to the data, the closest i have got is shown below, but i don't want to have the 0 at the beginning and 16 at the end.  Can this be done? I've searched but not yet found out how to do this, i'm sure i have missed something very obvious.

 

 waveform.jpg


Am I correct that you are sampling 16 channels simultaneously, and collecting 32 points from each Channel?  I would think you would want Time (or Sample #) on the X Axis, and Sample Value on the Y Axis, with all of the 16 Channels plotted on the same axes so you can compare them to each other, something like this:16-channel Graph16-channel GraphNote that the data being plotted are exactly the data that you provided in the Attachment, just plotted as 16 channels of 32 data points.

 

I was hoping that your attachment showed the code you used to generate the Waveform, but alas, it did not.  If you are, in fact, using LabVIEW to collect multi-channel multi-sample data, and you have "manipulated" the data stream to compress all of these data into a single Waveform, then you are corrupting your own data (which, since it's your data, you are allowed to do), but why make extra work for yourself?  

 

Bob Schor

0 Kudos
Message 6 of 10
(3,165 Views)

Did you consider duplicating the X-Scale then use an Active X-Scale and Marker values...

 

then hide the primary X-Scale.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 10
(3,160 Views)

OK, so I had a Wild Idea -- maybe you want to plot Channel 1, then plot Channel 2, then plot Channel 3, without connecting the end of one to the beginning of another.  "Aha!", I thought, "an Array of Graphs!".  Except you can't do that!  Graphs are not "indicators", but more complex structures.

 

So I tried something else, and got this:

Plot of 16-channel data by channelPlot of 16-channel data by channelThis looks more like the OP's graph, except that the Channels are plotted separately without connecting the end of Channel 1 to the beginning of Channel 2.  [There is still the (minor) problem of having the Ch labels having extra labels at the ends, but this can probably be "fixed" by Property Nodes].

 

This "solution" is very similar to my previous attempt that split the single Array into the 16 channel sub-plots.  As with the earlier plot (Waveform Graph 2 in the Snippet), I'm plotting each Channel as its own plot (hence the different colored lines, but you could make them all the same color as well, if you wanted), but offset so they appear as "by Channel", with the Channel number centered underneath the plot.  I have absolutely no idea why the OP would want such a plot, but never mind, LabVIEW can do it.

 

Here's the OP's original code (wired to Waveform Graph) and my two ideas (Waveform Graph 2 and 3) as a LabVIEW 2018 Snippet.  I saved for an earlier version to help my colleagues who have not yet braved the horrors of installing LabVIEW 2019 (I only have it running on a VM, by itself ...).16-channel Graph Ideas16-channel Graph Ideas

Bob Schor

0 Kudos
Message 8 of 10
(3,135 Views)

 


@Bob_Schor wrote:

OK, so I had a Wild Idea -- maybe you want to plot Channel 1, then plot Channel 2, then plot Channel 3, without connecting the end of one to the beginning of another.  "Aha!", I thought, "an Array of Graphs!".  Except you can't do that!  Graphs are not "indicators", but more complex structures.

 

So I tried something else, and got this:

Plot of 16-channel data by channelPlot of 16-channel data by channelThis looks more like the OP's graph, except that the Channels are plotted separately without connecting the end of Channel 1 to the beginning of Channel 2.  [There is still the (minor) problem of having the Ch labels having extra labels at the ends, but this can probably be "fixed" by Property Nodes].

 

This "solution" is very similar to my previous attempt that split the single Array into the 16 channel sub-plots.  As with the earlier plot (Waveform Graph 2 in the Snippet), I'm plotting each Channel as its own plot (hence the different colored lines, but you could make them all the same color as well, if you wanted), but offset so they appear as "by Channel", with the Channel number centered underneath the plot.  I have absolutely no idea why the OP would want such a plot, but never mind, LabVIEW can do it.

 

Here's the OP's original code (wired to Waveform Graph) and my two ideas (Waveform Graph 2 and 3) as a LabVIEW 2018 Snippet.  I saved for an earlier version to help my colleagues who have not yet braved the horrors of installing LabVIEW 2019 (I only have it running on a VM, by itself ...).16-channel Graph Ideas16-channel Graph Ideas

Bob Schor



  

Bob, i didn't explain what i am doing with the data as i felt it had no relevance to my question. i understand what your suggesting but i wont do it like this for 2 reasons. 

1, my original graph is mimicking the display that this is replacing so it will make the transition easier for the end user. 

2 i have chosen my wording incorrectly. they are not channels but they are 16 identical PCB's producing data.  each PCB gives 32 channels (hence the 512 data points)  the idea of this is a very quick visual graph to see if any of the individual channels are playing up.  i have different code that performs calculations on this data set to test if it is within spec.  what you see on the graph is a pattern i generated. normally all 512 data points will be at around 4200 plus or minus 200.  therefore i didn't want to confuse the end user when identifying what pcb had failed, which is why i wanted the 1 to 16 showing centrally to the data. 

 

all 16 pcbs connect to a central pcb which is where the data is coming from, from an high level view this is a physical array of 512 sensors so the level of one sensor will have an effect on its neighbouring sensor. this is why i am treating this as a large array. 

 

sorry if i have miss lead you and i hope you see why i asked my original question.

0 Kudos
Message 9 of 10
(3,111 Views)

If anyone is interested i have gone with a similar idea to what Ben suggested.

 


@Ben wrote:

Did you consider duplicating the X-Scale then use an Active X-Scale and Marker values...

 

then hide the primary X-Scale.

 

Ben


I removed the X-Scale and created my own using the text object 

new graph.jpg
 

Message 10 of 10
(3,087 Views)