LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic data displayed on xy graph

I'm using Labview 7.0 basic and was hoping to graph dynamic data on an XY graph. At the moment I have extracted the first channel for the y-axis and the second for the x-axis. I then tried to use shift registers (in the loop the aquisition is in) to show the trend in the data as the test is being done (more specifically a stress verse strain plot that is almost real time). Problem being that the build xy graph vi doesn't seem to accept dynamic array data and I am unaware how I can convert back to dynamic data. I am using the graph outside the loop so it doesn't get erased every time the loop runs. Also, I believe you have to have the development edition to plot multiple x-axis inputs on a XY graph(multiple x-axis channels) but is this possible in the basic package. Any help would be greatly appreciated
0 Kudos
Message 1 of 5
(9,821 Views)

I'm not sure how you've attempted to do it thus far, but I've included a picture below of one proper implementation. You build an array of X and Y values and convert them to dynamic data to be plotted with the Build XY Graph Express VI. As for multiple plots on an XY graph, that is available in every edition of LabVIEW

Kind Regards,

Message Edited by AESulzer on 07-27-2005 06:32 PM

E. Sulzer
Applications Engineer
National Instruments
Message 2 of 5
(9,803 Views)
Thankyou. I had it very similiar to how you just showed. The problem was that I was putting the build array after the data was converted to dynamic data, should have picked that up. Thanks for your help it is all working now with multiple channels. I had read somewhere that multiple XY plots weren't possible in the basic version but I must have miss read it.
0 Kudos
Message 3 of 5
(9,785 Views)

Actually, the code is even simplier. All you need to do is bundle the array of X values with the array of Y values and wire the result to the XY graph. See attached VI...

If you want the X axis in actual clock time just replace the loop counter with the time in seconds node (you'll have to convert the output to a DBL float), and set the format on the xaxis to absolute time.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 5
(9,781 Views)
oops, forgot the VI...
 
Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 5
(9,780 Views)