LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Grid Line options

Hello,
i want to have grid lines on an xy graph like in a oscilloscope.
i want the number of lines to be a constant (10).
what is hapen that when the scale is set to auto scal the number of lines changes all the time.

Thanks.
0 Kudos
Message 1 of 9
(4,624 Views)
Use (right-click on X-Y graph) X-scale-Marker Spacing=Arbitrary, then Add
Marker
The same procedure for additional markers.

--
Best regards,
---
Sergey Yakovlev,
yakovlev@evologics.de


"barak" wrote in message
news:506500000008000000E25C0000-1031838699000@exchange.ni.com...
> Hello,
> i want to have grid lines on an xy graph like in a oscilloscope.
> i want the number of lines to be a constant (10).
> what is hapen that when the scale is set to auto scal the number of
> lines changes all the time.
>
> Thanks.
0 Kudos
Message 2 of 9
(4,624 Views)
Thanks but what i wanted is lines across the graph.
I attached a picture with the reasault im interested in.

Thanks.
0 Kudos
Message 3 of 9
(4,624 Views)
You can do the same thing for the Y-axis as well. You can also do a little path and use a different plot number to create the line manually.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 4 of 9
(4,624 Views)
G'Day,

Depending on which version of LabVIEW you are useing, right click on the Y-axis and select "Formatting..." The you get a dialog box similar to the one below, where you can click on the little "grid options" box, and select your grid style (see the attached image). Once you have selected the right style, click OK to get out of the dialog, and then you can set arbitrary lines, as decribed above.

Like my answer? Give it a rating!

cheers,
Christopher G. Relf
Certified LabVIEW Developer

Christopher.Relf@mBox.com.au
Int'l Voicemail & Fax: +61 2 8080 8132
Aust Voicemail & Fax: (02) 8080 8132

---
EULA
1) This is a private email, and although the views expressed within it may not be purely my own, unless specifically referenced I
do not suggest they are necessarily associated with anyone else including, but not limited to, my employer(s).
2) This email has NOT been scanned for virii - attached file(s), if any, are provided as is. By copying, detaching and/or opening attached files, you agree to indemnify the sender of such responsibility.
3) Because e-mail can be altered electronically, the integrity of this communication cannot be guaranteed.




Copyright © 2004-2024 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 4.0 License.
Message 5 of 9
(4,624 Views)
Thanks but i tryed it and what i got is that the lines
are changing there place acording to the autoscale.
what im trying to do is that the lines will stay still ( like an osciscope screen ).

Thanks
0 Kudos
Message 6 of 9
(4,624 Views)
Try this if you can't get what you want from arbitrary spacing:

Create a second graph. Set the background to transparent and make the lines what and where you want. Do not set autoscaling. Overlay this graph on top of your other. If you make everything but the grid on this new graph transparent, you should get a constant set of lines that look how you want them to.

When dealing with front panel items, it helps to think outside the box so to speak. Try different 'tricks' such as overlay to get the effects that you want. I believe that there might even be an appliacation note or other documentation on NI's website on creating these types of effects (working with decorations?)
Message 7 of 9
(4,624 Views)
> i want to have grid lines on an xy graph like in a oscilloscope.
> i want the number of lines to be a constant (10).
> what is hapen that when the scale is set to auto scal the number of
> lines changes all the time.

The best approach will be to turn off autoscaling, and like scopes, have
a knob or setting for changing the range of the graph. If you want to
have an autorange setting on your panel, you can use the array min/max,
make the min and max be a multiple of the grid you want, and set the
graph's min and max values for the scale along with the increment.

Greg McKaskle
Message 8 of 9
(4,624 Views)
I am trying to do exactly the same thing. And somehow, I found that there seems to be a max number of grid lines for waveform graph on X-axis. This max number is limited by how big is the graph and how many data points I am trying to draw the the graph.

There is a NI example called grids.vi under this link showing the same problem:
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CBBB7111EE034080020E74861&p_node=DZ52038&p_submitted=N&p_rank=&p_answer=&p_source=External

Does anyone know why?

Thanks
0 Kudos
Message 9 of 9
(4,624 Views)