LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In LV 8.5, is there an equivalent function to Matlab's quiver3?

I need to plot a three dimensional vector field from various perspectives. Calculating the information is trivial, but I can't find a good means by which to display it in LabVIEW. I have previously used the quiver3 function in MatLab and it has given me exactly what I've needed. In searching LV, the best I've found is mathscript's quiver (2D). Am I blind or is there another means to plot this in LV?

Currently my information is in six three dimensional arrays (x location, y location, z location, i vector component, j vector component, k vector component) but that can be easily changed.

Thanks for any help!
0 Kudos
Message 1 of 14
(4,866 Views)
For those Proven Veterans who do not have Matlab but loads of Labview skillz (see attached jpeg).  SS

Message Edited by ShotSimon on 12-21-2007 11:27 AM


0 Kudos
Message 2 of 14
(4,842 Views)
There is a quiver post here: [link removed]


0 Kudos
Message 3 of 14
(4,836 Views)
Thank you ShortSimon. However this does not achieve what I need, unless I am missing some trick where I can combine multiple subplots atop one another. Attached is a picture of what I need to achieve. In the picture there are multiple planes / membranes on which the vectors originate. Not just one.
0 Kudos
Message 4 of 14
(4,828 Views)
"Shot" not "Short"... sorry
0 Kudos
Message 5 of 14
(4,827 Views)
Hello Atreides,

Unfortunately, Mathscript does not support the quiver3 function at this time.  In order to generate a 3-D vector field in LabVIEW, you would have to implement your own graphing algorithm.  I will file a product suggestion on your behalf to have the quiver3 function added to the list of functions that Mathscript supports.

Best Regards,
T. McCarty
0 Kudos
Message 6 of 14
(4,798 Views)
McCarty,

I have just returned to this aspect of my project after a few months. I want to follow the only option left and construct my own graphing algorithm. Can you point me in the direction of an example showing me how to do this? (LV 8.5)

 

I understand the logic within the graphing blocks and subVIs in the context of LabVIEW, but none of them give me enough control to create my own equivalent to the quiver3 plot. Is there a means by which I can write my own ActiveX property & invoke nodes in LV? Can I write my own code to alter the quiver Mathscript function to become a quiver3 function? Thanks for your time in advance.


0 Kudos
Message 7 of 14
(4,613 Views)
Hi Atreides,

This would be rather complicated.  While LabVIEW is essentially a programming language (and, hence, anything you can do in any other language you can do in LabVIEW), it would be difficult to program the graphing algorithm in LabVIEW itself.

If you have some MATLAB© code that already works, you may want to consider simply calling this directly using the MATLAB© script node.  Note that this requires that MATLAB© be installed on the same computer that your LabVIEW application is running on.


Message Edited by Eriquito on 05-27-2008 04:53 PM
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 8 of 14
(4,576 Views)
Thank you Eric. Atleast for the proof-of-concept I can use a machine with both MatLab and LabVIEW installed. By MatLab script node you mean the Mathscript struture right? I have MatLab 7.1 on this machine. Can you point me in the direction of an example which calls and executes MatLab code directly from LabVIEW?


0 Kudos
Message 9 of 14
(4,547 Views)
 
A MatLab script node is under Functions->Mathematics->Scripts and Formulas->Script Nodes->MatLab Script Node
 
I believe Mathscript occurs within the LabVIEW engine and MatLab script nodes call on MatLab's engine
 



Message Edited by JeffOverton on 05-29-2008 02:43 PM

0 Kudos
Message 10 of 14
(4,541 Views)