LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building an oscilloscope. How can I fixate the grid on the x axis?

Hi,

 

See attached VI.

I'm building a basic oscilloscope with triggering function (display on a graph)

Problem is that when the trigger function is on, the grid on the x axis is not fixed.

Is it possible to fix the grid on the x-axis to 10 divisions?

 

thanks.

Raskolnikov

0 Kudos
Message 1 of 4
(3,142 Views)

Turn off autoscaling for the x axis.

 

  • Is there a reason you are converting to dynamic data? You can wire the 1D array directly to the graph terminal.
  • There is a primitive for 1/x.
  • What's up with all these coercions? Instread of "equal -1" you could just use ">=0", no idagram constant or "not" needed.
  • Your inner FOR loop is pure Rube Goldberg code.
0 Kudos
Message 2 of 4
(3,126 Views)

Hi altenbach,

 

thanks for your reply.

 

Turning off autoscaling does not work since different array sizes get plotted when time/div knob is turned.

(So when array size decreases by 50%, only half of the graph is showing)

I wanted to know if there's a possibility to fixate the number of gridlines on the x-axis when autoscaling is on.

 

I guess only way is to work with plotting same array sizes.

 

 

  • Is there a reason you are converting to dynamic data? You can wire the 1D array directly to the graph terminal.

I got a slighter more stable plot on the graph

 

  • There is a primitive for 1/x.

ok thanks, hadn't seen it yet but found it now

 

  • What's up with all these coercions? Instread of "equal -1" you could just use ">=0", no idagram constant or "not" needed.

found it, thx

 

  • Your inner FOR loop is pure Rube Goldberg code.

haha, yep. But it was in our assignment to implement like this and I'm not that experienced yet to come up with something better.

0 Kudos
Message 3 of 4
(3,045 Views)
You either have auto-scaling on our turn it off and set the min/max with property nodes. No need to plot the same array size all of the time.
0 Kudos
Message 4 of 4
(3,042 Views)