LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Position Vs Time for LVDT

Solved!
Go to solution

 

 

aeastet

 

This is what I want but I can't get it to work off my data array without the data you generated.

 

I have a constant array that simulates the curve and I can't get it to do what you did with the xy graph or even to display the different peaks time so I can then take the delta time.

 

Thanks

JCollado
0 Kudos
Message 11 of 21
(1,496 Views)
You may need to set the limits higher or lower depending on the magnatude of your data. If you send me some data I can see if I can get it to work on your data.
Tim
GHSP
0 Kudos
Message 12 of 21
(1,494 Views)

 

Here is the VI i'm testing this on with the array for simulated curve.

 

Maybe the Array does not have enough data points?

 

I added your controls and block diagram functions.

 

Sorry about how ugly this looks but I have added a few other things that are getting me some info i need.

 

Just click the get signal button to get the graph data.

JCollado
0 Kudos
Message 13 of 21
(1,485 Views)
I took the hard coded array that you had in your code any took it into my VI. I changed the peak threshold to .05 and it seemed to work. I added it your your VI and aslo made it look at the last sample to get the final condiditon. Here are both.
Tim
GHSP
Download All
0 Kudos
Message 14 of 21
(1,477 Views)
I took the hard coded array that you had in your code any took it into my VI. I changed the peak threshold to .05 and it seemed to work. I added it your your VI and aslo made it look at the last sample to get the final condiditon and I changed the peak threshold to .05 and made it the default value. Here are both. I could not test it on yours because I did not have all of the VI's needed. You may need to set the threshold on my VI to .05 as I am not sure if I canged it to the default value.
Tim
GHSP
Download All
0 Kudos
Message 15 of 21
(1,477 Views)
Solution
Accepted by topic author JCollado
I had to disconnect your type def at the top but I did get yours working with this idea. See attached.
Tim
GHSP
0 Kudos
Message 16 of 21
(1,472 Views)

Great!

 

Thanks a lot.

 

I have much to learn. To this point I did not know how to use the XY graph. I guess in order to automate time measurement like this I must use an XY graph?

 

no way to do what you did with a regular graph or chart?

 

Thank you

 

 

J Collado

JCollado
0 Kudos
Message 17 of 21
(1,462 Views)

 

 

Here is more or less what I was looking for using the waveform's cursors.

 

I just took the derivatives solved by AEASTEST and displayed the time as I wanted it displayed.

 

 

Thanks for your help AEATEST.

 

JCollado

JCollado
0 Kudos
Message 18 of 21
(1,450 Views)
No problem. I was fun to develop something like this. I am sure that I will need this in the future.
Tim
GHSP
0 Kudos
Message 19 of 21
(1,441 Views)

 

 

 aeastet

 

Using the same idea on a different project.

 

I can't get the second derivative to work with  a larger sample size.

 

Not really good with all the higher end math functions . 🙂

 

See the attached VIs in the zipped file. I added all required VIs to run this. If it ask to locate a VI they are all in the same folder. This is working but not the way I want it to work. The cursors are going to the location I want them to ecept I would like to place them on locations that is different every time.

 

This VI will almost do the Job but I do not like to place the second cursor on a specific location for the snubbing. The snubbing starting position is a variable position for different actuators.

 

I would like to do this the same way you did the previous VI using derivatives . Any way you can wire this to work with derivatives functions?

 

 

Thanks for your help.

 

JCollado

JCollado
0 Kudos
Message 20 of 21
(1,129 Views)