Discussion:
Can two sets of data be plotted onto one 3D curve graph?
(too old to reply)
Dk_bme
2008-08-01 17:10:06 UTC
Permalink
I have two sensors that output data and to be able to easily see their relation to one another I want to plot them both on the same 3D curve.  So far all I've managed to do is get the graphs to constantly overwrite each other.  I've been looking around and haven't seen any references to a problem like this.  I know LabVIEW isn't really meant for creating complex 3D plots, is plotting two sets of data like this possible using LabVIEW? ** Attached is the log reading VI to plot the data, and a copy of a log file.  The only thing I've found so far that will get the two sets into one graph is to wire both of the 3D curve blocks to one control, but all it does is have them overwrite each other constantly.  Also, LabVIEW saves the log file as a generic file with no association so I manually added the .xls extension to it and it works for me.  But, if it won't work just clip the .xls off and it should work.Thanks in advance!


3D Graph Read Log Double2.vi:
http://forums.ni.com/attachments/ni/170/345964/1/3D Graph Read Log Double2.vi


Copy of XYZtimestamp.xls:
http://forums.ni.com/attachments/ni/170/345964/2/Copy of XYZtimestamp.xls
Ben
2008-08-01 17:40:18 UTC
Permalink
Yes!
Use a seprerate plot number for each. This image shows how to add more than one plot using the method "add".
<img src="Loading Image...">
You can also add the second plot manually and then specify which plot you are updating.
Ben
A "worse 3d graph" example can be found <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;view=by_date_ascending&amp;message.id=144155#M144155" target="_blank">in this thread</a>.
Ben
2008-08-01 17:40:20 UTC
Permalink
Dk_bme wrote " I've been fighting with that problem for days."
&nbsp;
You are very welcome. I am glad that I was able to help!
&nbsp;
Could you please attach a jpg showing the final results?
&nbsp;
BenMessage Edited by Ben on 08-01-2008 12:38 PM
Dk_bme
2008-08-06 16:10:05 UTC
Permalink
Ben wrote "Could you please attach a jpg showing the final results?"Sure thing.&nbsp; You can kind of see the different signals, one wraps up to the upper pole and around it a little bit and the other signal doesn't quite go up that high.&nbsp; This set was just seeing how closely the sensors were calibrated; not very it would appear.Dk.P.S.&nbsp; Sorry for taking so long to post this, I was relying on emails to know if someone responded to this thread. It doesn't send notices for edits apparently.&nbsp; Something for me to remember in the future.*edit* I attached the wrong files, fixed now.Message Edited by Dk_bme on 08-06-2008 10:48 AM


Labview Document2.pdf:
http://forums.ni.com/attachments/ni/170/347126/4/Labview Document2.pdf


Block Diagram.pdf:
http://forums.ni.com/attachments/ni/170/347126/5/Block Diagram.pdf


Labview Document.pdf:
http://forums.ni.com/attachments/ni/170/347126/6/Labview Document.pdf
Dk_bme
2008-08-01 17:40:20 UTC
Permalink
I just put together a rough Frankenstein version of the VI in that picture and it works exactly like I want it to!&nbsp; I've been fighting with that problem for days. Thanks Ben!
Continue reading on narkive:
Loading...