LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Center of mass point plot

Hey guys,

 

   I'm trying to do my first project in LABVIEW but I'm having some difficulties. I'm trying to calculate the center of mass of a little car (1:8 scale). For this, I'm using 4 scales, one for each tire, to to find the "weight" of each wheel and then calculate the C.M.

   My problem is that I want to put a image of my car on a cartesian plane and, with this, mark a point on the image in the exatc coordinates of the C.M (Xcm , Ycm).

   Is this possible to do with LABVIEW??

   I don't know if my idea is clear, so I'll send a img so you can understand better.

 

Thanks for any help!

Download All
0 Kudos
Message 1 of 6
(3,326 Views)

Use an 2D picture indicator and start with displaying the current picture Then add your annotations using picture  commands (lines, circles, text, etc).

0 Kudos
Message 2 of 6
(3,289 Views)

Hi, Pedro_

 

I wonder if it can paste your image on the front panel first, and then add the XY graph which is filled with transparant color besides the axes and lines.

20141201001.JPG

0 Kudos
Message 3 of 6
(3,278 Views)

Hey altenbach,

 

   How can I do this? I'm really new at LABVIEW... With this way I will be able to plot my X and Y coord's? Keep in mind that it's not a amplitude x time graph, I will enter with the coords as variables that I will calculate in first place! So I don't want my graph keep going to the left like a time running!

 

Thanks for the help!

0 Kudos
Message 4 of 6
(3,243 Views)

Hey Wiliam,

 

   Great idea! But how can I put my X and Y's coords in this? I don't want to my X coord to be time because the graph will be "moving" to the right every second. I want to my X and Y coord to be fixed, you know what I mean?

   And I noticed that the XY Graph icon only have one place to wire it. How can I inform to the graph that I already have two variables and I want to plot a point in that coords?

 

Really appreciate your help!

0 Kudos
Message 5 of 6
(3,236 Views)
It won't be moving, unless you are using Chart instead of Graph. The Graph accepts a bundle of x and y. You may have to create a single element array before bundling it together.
0 Kudos
Message 6 of 6
(3,228 Views)