LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Force Plot

Hi All,

 

I am completely new LabVIEW user, just completed Core 1&2 classroom training. I'd like to build force plotter (plot force vs position).

I'm acquiring signals from sensors. I don't really know how to plot them against each other (my idea is to build arrays then pass data to XY graph) and how to calibrate sensors and scale the stroke axis .

 

I'd be appreciate for any help and clues.

 

Thanks

 

Greg

 

0 Kudos
Message 1 of 6
(2,979 Views)

Yes, you can check out examples (help >> find examples) of data types that the XY graph takes. The one I use most is a cluster of 2 arrays for a single plot. Some options include:

  • Cluster of arrays (bundle the x array and y array)
  • Array of clusters (bundle an x point and y point and build these into an array)
  • Complex (use re/im to complex on x array and y array)
0 Kudos
Message 2 of 6
(2,939 Views)

... and if the "position" values are equally spaced (e.g. if you use a linear "position" ramp to measure the forces), a simple waveform graph is sufficient. Just set x0 and dx for the x scale accordingly.

0 Kudos
Message 3 of 6
(2,927 Views)

Thanks for the tips.

 

Could you have a look at the attached file.

 

Many thanks.

 

0 Kudos
Message 4 of 6
(2,907 Views)
  • You should only wire the voltage scalar to the chart, not feed it with larger and larger array containing mostly previous data over and over again.
  • You only need a single shift register of a complex array. Just feed it the xy data as a complex number and the xy graph will understand. Try it!
0 Kudos
Message 5 of 6
(2,903 Views)

Here's what I had in mind (LV 2013: not tested, so there could be bugs).

 

Also please keep the front panel and diagram to a reasonable size. (Each spanning the width of two monitors is not reasonable! Also, it does not make a lot of sense to wire an error handler after you clear all errors. What do you expect to see? :D)

 

 

0 Kudos
Message 6 of 6
(2,898 Views)