LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

manual control of grid lines

I think this is simple and I'm just glossing over it, but How can I control the grid lines in a waveform chart?

 

Basically I want a constant 10x10 matrix on the chart...  LabVIEW seems to  turn them on and off at will.:smileyindifferent:

 

The functionality I am programming is essentially an oscilloscope interface where the user will set a units/division control.

 

I'm using LV 8.6

 

Thanks,

Charlie

 

0 Kudos
Message 1 of 11
(7,495 Views)

There should not be any problem with this. What is the update mode? (Of course in strip chart mode, the grid lines will travel to the left).

 

Can you attach a simplified example that shows the problem?

 

In any case, it might be better to use a graph instead of a chart .... 🙂

0 Kudos
Message 2 of 11
(7,492 Views)

Actually I stated the issue incorrectly.  The x-axis grid, moving with time, does not matter.  The y-axis grid is what I would like to keep constant.  I am using the property node to set Y-scale max, min, and set a Marker Array.  If you still need it, I will put together a simple example.

 

Switching to a graph is not an option I don't think, since I need stacked plots (3).

 

Thanks,

Charlie

 

0 Kudos
Message 3 of 11
(7,489 Views)

does...

 

Shut off autom scale on Y axis

Set max/min range

Set marker values

 

 

help?

 

Ben

Message Edited by Ben on 03-13-2009 01:02 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 11
(7,480 Views)

If you really want a custom grid and you can't do it any other way (yes, I had to do this for one client who insisted that his instrument and the plot should look the same, including the grid lines):

 

Add two new plots to the graph -- one for the x-axis gridlines and one for the y-axis gridlines.  Essentially, they would be square waves.

 

(And after the client got what he wanted, he noticed that nobody looked at the instrument anymore).

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 5 of 11
(7,459 Views)

MattBradley wrote:

...

 

(And after the client got what he wanted, he noticed that nobody looked at the instrument anymore).


When you see that you know you have delivered what the customer wanted. At project acceptance meeting and the boss is present, I'll do the "wink-wink-nudge-nudge" when the customer turns their back on the old equipment.

 

Ben

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

That is very similar to what I am doing now.  I just need 10 equi-distant horizontal grid lines. 

 

see below.

 

0 Kudos
Message 7 of 11
(7,450 Views)

... and this

 

 

does not work?

 

Is Auto-scale shut off for the Y-axis?

 

If so post a simplified example so we can look and experience your pain ourselves.

 

Yikes!

 

Just spotted taht your range is a function of you data point. That will certainly make the sclae jump around.

 

Ben

 

PS I used to use red comment as well, unitl I took the CLD exam and got dinged. Now only black, and don't even think about using arrows.Smiley Wink

 

 

Message Edited by Ben on 03-13-2009 02:41 PM
Message Edited by Ben on 03-13-2009 02:44 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 11
(7,437 Views)

Autoscale is off for the Y-axis.  I just threw this together as a quick example.  In this static example it works.   However, when the real program is running and data is varying, sometimes the horizontal lines reduce down to 5 lines and in some cases 3 line (middle where data point is, max, and min).  I would like to maintain 10 lines.

 

The example shows everything based on the data point becuase that is a function that the user can call to center the plot on the screen.  This code is called when the "Centering" button pressed.  It puts the plot in the center of the Y axis and maintains the units/division set in the control.

 

 

Why are red comments bad?  I've been doing this for years because you can easily see what is a coment. I guess I got dinged on this during the CLD as well.  🙂

 

0 Kudos
Message 9 of 11
(7,427 Views)
PS - how'd you get the picture to appear in the post?  The image button asked me for an http address.
0 Kudos
Message 10 of 11
(7,426 Views)