From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D graphics

Hello there, I am quite new to Labview, so would like to ask if there is any function to draw in the front panel? For example, if I was to code a position finder (using a couple of sound receivers and an emitter which position I am to find and getting its distance to every receiver), would it be possible to show its position on the X-Y plane? 

Also, as the position itself is 3D, I thought about changing the colour of the dot with regards to the height. Is it doable? 

0 Kudos
Message 1 of 4
(2,462 Views)

On the first page of the Forums, there are links for Learning LabVIEW.  Suppose you wanted to program in Java, C++, or Matlab?  Wouldn't you try to learn something about the language first?  LabVIEW may be more intuitive than some text-based Languages, and has pretty good on-line Help, but there's nothing like spending a few hours reading the Tutorial material and then trying out what you've learned by writing very simple LabVIEW code.

 

Give it a try.  I'm pretty sure you'll be able to answer your own question (and will learn a lot more in the process) by making a small time and effort investment.

 

Bob Schor

Message 2 of 4
(2,437 Views)

You cannot draw directly to the front panel (see also this idea :D), but you can use a picture indicator and draw anything you want on it using a rich set of tools. See how far you get. 😄

 

Another option would be an intensity graph where you would simply replace elements at a certain positions with values corresponding to a certain color in the color ramp. An intensity graph is a simple numeric 2D array where x and y corresponds to the indices (potentially mapped linearly with x0,dx scaling factors) and the element value is z.

Message 3 of 4
(2,433 Views)

You can even use the picture layers that most graphs have.

 

Very convenient, as you can use the scaling of the graphs, and still draw anything you want with that scaling. Sometimes the best of two worlds...

Message 4 of 4
(2,399 Views)