LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a contour (3D) plot with motor control and DAQ?

Hi,

I have a instrument sitting on a movable slider. What I am doing right now is :

 a) Go to position 1 and wait until position reached.

 b) Measure the spot.

 c) Go to next position.

 

What I want to do:

 a) Move the device and measure continously at the same time.

 

Question: Is there a strategy, how to bring those to data streams (positions, measured data) together with not so much effort?

System: I am using Labview 2014. Data aqcuisition rate is 20Hz.

I can think of: collect data in a queue, manually setting timestamps and comparing them afterwards. But I guess, there is an easier solution existing already somewhere... Any advice?

I can not easily support correct VI´s, because they require hardware connected. I will build a simulator in the meantime

 

 

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

Hello amaris2003,

 

Can you elaborate more on what you are trying to accomplish? What do you mean by "Measure the spot"? What hardware are you using? Can you post some VI's?

 

Michel

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

I made a small simulation Vi. But as I understood now, Labview can only scale the indices and not have a real matrix of data points with different distances.... So I need to have equal time distances and equal movements over the surface. I thought, I should track the actual position and give that arbitary parameters as an axis.simula.png

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

I think the example you sent is not reprensentative of what you are trying to do.  What do you mean exactly by a contour 3D plot? Here you only have two axes, position and measurement.

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

Yes, you are right, in my example the time is missing. (And the contour plot is called intensity graph in labview)...On the axes I want to have:

 

x: Time

y: Position of the instrument (Motor control is from Parker/Hannifin)

z: Measured Data (DAQ is 20MHz from adlink, model PCI-9812)

 

0 Kudos
Message 5 of 6
(3,261 Views)

 

"But as I understood now, Labview can only scale the indices and not have a real matrix of data points with different distances.... So I need to have equal time distances and equal movements over the surface."

 

This comment is applicable to "Intensity graph".  So you will need to duplicate the value of the sensor that has a lower sampling rate.

 

Michel

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