LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Graph

Hey people! We are working on a project for school and we want to record the moving of a foot with 2 values of 2 ultrasonic sensors.

The X Axis is the distance to the wall and the Y Axis the distance to the ground (up and down of the foot).

The only thing we get out is the graph on the picture. The X Axis is just dependent on the time, not on the distance to the wall.

If you have a solution for that, could we also build that on a 3d Graph and if we can, how? I also put the program in here.

(Our values come from arduino, it works without any problems)

 

Thanks for your help!

Download All
0 Kudos
Message 1 of 8
(1,367 Views)

 


@Snyko wrote:

Hey people! We are working on a project for school and we want to record the moving of a foot with 2 values of 2 ultrasonic sensors.

The X Axis is the distance to the wall and the Y Axis the distance to the ground (up and down of the foot).

The only thing we get out is the graph on the picture. The X Axis is just dependent on the time, not on the distance to the wall.

If you have a solution for that, could we also build that on a 3d Graph and if we can, how? I also put the program in here.

(Our values come from arduino, it works without any problems)

 

Thanks for your help!

Have you tried XY Graph instead of Waveform Graph.

Waveform Graph assumes the points are equally spaced out.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 8
(1,328 Views)

Yes, I tried that too.

0 Kudos
Message 3 of 8
(1,317 Views)

@Snyko wrote:

Hey people! We are working on a project for school and we want to record the moving of a foot with 2 values of 2 ultrasonic sensors.

The X Axis is the distance to the wall and the Y Axis the distance to the ground (up and down of the foot).

The only thing we get out is the graph on the picture. The X Axis is just dependent on the time, not on the distance to the wall.

If you have a solution for that, could we also build that on a 3d Graph and if we can, how? I also put the program in here.

(Our values come from arduino, it works without any problems)

 

Thanks for your help!


I'm not going to do your homework for you but, I can offer guidance and help you think about the system. 

 

If you have distance from wall and height above floor over time you have 3 dimensions.   Assuming, the floor plane is orthogonal to the wall plane, (the wall is square to the floor,) use COMPLEX DBL as your datatype! Let X be Real and Y be Imaginary and pass them through the to complex primitive.  A 3D Chart should accept the scalars.

 

EDIT: The Chart will look clearer if Y is Real and X is Imaginary ( time to your left- and right+,  height up+ and down-, distance from Wall front+ to back- or negate X to look out from the Wall)


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 8
(1,309 Views)

I tried it on this ways now. It doesn't work, I don't get it. Does anyone has an idea?

Download All
0 Kudos
Message 5 of 8
(1,276 Views)
You should be using a Chart not a Graph.

"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 8
(1,260 Views)

Also doesn't work. The X Axis depends on the time and the Y Axis just reacts just with one of two sensors.

0 Kudos
Message 7 of 8
(1,240 Views)

@Snyko wrote:

Hey people! We are working on a project for school and we want to record the moving of a foot with 2 values of 2 ultrasonic sensors.

The X Axis is the distance to the wall and the Y Axis the distance to the ground (up and down of the foot).

 


Two days before this post, we already gave you the correct solution. Why did you ignore it and start a new thread from scratch????

 


@Snyko wrote:

f you have a solution for that, could we also build that on a 3d Graph and if we can, how?


A 3D graph has three axes (So what is the "value (x, y, time?)", for example). What exactly do you want to see and how?

 

Maybe you simply want to have an xy graph with two traces (X vs. time and Y vs. time) for example.

Where does the time information com from? Are the time points spaced equally?

 

 

0 Kudos
Message 8 of 8
(1,190 Views)