LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you save a Waveform Graph as an X Y chart + be able to save the coordinates at a variable iteration?

I am trying to do this with an O-Scope VI, and I am very new at LabVIEW, so please excuse any errors, or obvious questions.
0 Kudos
Message 1 of 4
(2,695 Views)

Hi Nick,

 

Which specific VI or set of VIs are you using to get this data? In order to put data in an XY Graph you will need to put together a cluster of your X and Y data and feed it to the XY Graph. You prepare the cluster by developing an array of X coordinates and an array of Y coordinates and bundling them (Using a Bundle function) into a cluster.

 

By variable iteration do you mean an iteration of the user's choice, or a specific iteration count (like every 10th iteration)? Choosing when to load data into the cluster or when to display new data on the XY Graph can be done by using case structures and a button on the front panel. You could also use the iteration [i] terminal of your loop and some math and Boolean logic to choose when to execute certain commands.

 

Some resources that might help a new user:

http://zone.ni.com/devzone/cda/tut/p/id/5054

http://zone.ni.com/devzone/cda/tut/p/id/5247

http://zone.ni.com/devzone/cda/tut/p/id/5243

http://zone.ni.com/devzone/cda/tut/p/id/7605

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
Message 2 of 4
(2,673 Views)

You could use a case structure to check if the current iteration is a multiple of the variable you selected.

Please see the attached example to see what I am talking about.

 

If you upload your VI, we can show you how to do this in your application.

Cory K
0 Kudos
Message 3 of 4
(2,666 Views)

By "iteration" I meant ever 1/10 of a second, and whatnot. Thank you for the input, sorry for the vagueness, I am a sophmore in high school (going to be a junior) and am working in a lab.

 

So I called NI, and they actually walked me through what to do quite well, with the arrays and whatnot, there are still a lot of things Im doing incorrectly/ dont know how to do at all, butIm going to try for alittle while on my own first, before I ask for further help.

 

Thanks,

Nick B.

0 Kudos
Message 4 of 4
(2,657 Views)