LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform-Graph - Specify number of divisions (lines)

Hello,
is there a way to set the number of vertical and horicontal lines in a waveform-graph?
I want to change the look that it looks like an osciloscope-display with 10x8 divisions.
Is this posibble?
Thx
0 Kudos
Message 1 of 8
(4,347 Views)
Hi onlyone,

it's the same problem as described here - the solution will also be the sameSmiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(4,344 Views)
Hi Gerd,
the example is good, but i think i cant solve my problem with this.
I only need 8 lines on y-axis and 10 lines on x-axis which are always at the same position.
I tried to do it with normal lines (decoration) but i cant change t he color from black to something else of these lines.
Any ideas?
Thx
0 Kudos
Message 3 of 8
(4,328 Views)
Hi OnlyOne,

so you don't want to use gridlines? You want some kind of overlay?

Options:
1) Put a picture indicator on top of your graph. Make it transparent background. Draw lines as needed - and you can choose any color...
2) In LV8+ you can put a picture in the background of a graph. So create a picture like in point 1 and set it as background in your graph (using property node).
3) Create property nodes for your decorations and change the color of those lines: Open reference to vi, get panel -> decorations[] -> colors... Or use the coloring tool ("brush") at edit time!

Why not use gridlines of the graph?


Message Edited by GerdW on 05-14-2008 01:28 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 8
(4,323 Views)
Hi GerdW,
Option 3 works fine to change the color of the overlay-lines.

Of course the grid would be better, but i cant find out how to do it.
I attached a graph with an example.
I found the properties in of X-Scale/Y-Scale -> Range -> ... but none of them is doing what i want to have.
I want that there are always 10 quadrants in x-axis (means 9 lines) and 8 quadrants in x-axis (means 7 lines).
Currently its easier to do it with the overlay.
0 Kudos
Message 5 of 8
(4,317 Views)
One small question left: How do i know which reference belongs to which decoration?
0 Kudos
Message 6 of 8
(4,310 Views)
Hi OnlyOne,

that's the tricky part...
(At the moment I don't have access to LV, so I guess: ) IMHO the references to the decorations are in the order of creation - but you can also check for positions & sizeSmiley Very Happy


Message Edited by GerdW on 05-14-2008 02:17 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 8
(4,307 Views)
Here is the most effective and simple
you can change the array to correspond to whatever values you need
- there is always an easy way, but it is always the hardest to find
0 Kudos
Message 8 of 8
(4,299 Views)