LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scalar to graph

I am running a while loop that takes a  reading from an external analog channel. I want to plot this reading on a graph each time the loop runs.  I thought this would be a simple matter but this doesn't seem to be the case.  I've tried several methods without success, a few being:
- my reading (double) into "to dynamic data" control to a graph
- my reading into an "build array" control wired to a shift register on the While loop.  I was unable to find a graph that would accept the data.
- bundle an the array from above with an array that contain a count of the loops, errors about mismatched data types or graphs that still wouldn't show the data.

Is there some method to take a scalar reading and get it into a graph?
0 Kudos
Message 1 of 4
(3,071 Views)
Hi!
   Have you tried with Waveform Chart? You can pass acquired double data directly to it, and update graph at each cycle.

   I hope I understood what's your task, if not, please let me know!

   If you can, please post some reduced version of code you troubled with (possibly, for LabVIEW 7.1...thanks!).

   Have a nice day!

graziano
0 Kudos
Message 2 of 4
(3,066 Views)
Of course, the Wavechart graph!   Yes, that works perfectly.  ::: Major slap to the forehead :::  I've been programming with Labview 8 for a few weeks now and got so immerse in the function screen that I complete forgot about the Control screen palette.  And the searches never clued me in.  Sorry to have bothered you guys with this post that has such an obvious answer....
0 Kudos
Message 3 of 4
(3,060 Views)
I like short answers! When the post is too complicated, I sometimes wonder if I'm supposed to do someone else's job... Smiley Very Happy

Have a nice day!

graziano
0 Kudos
Message 4 of 4
(3,035 Views)