LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Aids in Labview

I am working on an indoor positioning system. What i want to do is draw a grid to represent a 10m by 10m room. When the information is received and the triangulation is calculated, I want to put a red square/dot (to scale of the robots size) on the grid to represent where it is in the room. The square/dot should be able to be updated in real time.

 

How would I go about this in Lab View?

 

Cheers

0 Kudos
Message 1 of 9
(4,260 Views)

One simple way to do this is to use a custom Boolean control and use an array on your front panel. You can customize the Boolean control's faces to display any picture you want. The False can simply be blank, and the True can be the picture of your square/dot. Check the LabVIEW Help on how to customize controls.

 

For ultimate control you can use a picture indicator and simply draw what you want.  

Message 2 of 9
(4,257 Views)

Hey Kamilan,

Another way to process is to use XY graph within a custom square/dot. I don't think you can use a traditional cursor because you can't change its size.

To update in real time just make a while loop.

I enclose a quick example.

Cheers

Charly

Message Edited by CharlyStardust on 09-08-2008 03:55 PM
It's always sunny in California! Certified LabVIEW Associate Developer!
Message 3 of 9
(4,252 Views)

Hello, I'm sorry, I'm using Labview 8.2. I can't see your sample code. Could you save it as an older version please.

 

Thanks

 

Kamilan

0 Kudos
Message 4 of 9
(4,236 Views)

Converted to LV8.2

Message 5 of 9
(4,226 Views)
Attached is a simple example using an array if you want to take a look at that, and decide which method suits you better.
Download All
Message 6 of 9
(4,193 Views)
Hi smercurio_fc,
Your example works great. I like it.
Charly
It's always sunny in California! Certified LabVIEW Associate Developer!
0 Kudos
Message 7 of 9
(4,180 Views)
Well, except for the fact that I accidentally swapped X and Y from a visual perspective. Smiley Wink But the poster should get the idea.
Message 8 of 9
(4,165 Views)

Hello,

 

I've been I'll with the flu and haven't been able to get to uni until now. JoelLabView, this is exactly what I needed. I will have a play around and edit it till I get what I need. The other examples have given me a better understanding of labview and I will in corporate it into my final design.

 

Thanks

 

K

 

 

0 Kudos
Message 9 of 9
(4,082 Views)