03-23-2012 10:46 AM
I have an analog input which is a linear transducer. The linear transducer cycles from 0 to 3.65 inches and back to 0. How do I structure a series of modules to measure and readout the time in seconds that it takes to go from 0 to 3.65, and from 3.65 to 0?
Solved! Go to Solution.
03-23-2012 02:01 PM
@kmyers,
Questions:
from 0 ... 3.65 -> You would like set 0 msec timestamp with 0 and read out the msec value after the way from 0 ... 3.65, correct?
from 3.65 ... 0 -> You would like set 0 msec timestamp with 3.65 and read out the msec value after the way from 3.65 ... 0, correct?
from 0 ... 3.65 -> You would like set 0 msec timestamp with 0 and read out the msec value after the way from 0 ... 3.65, correct?
...
...
Do you would like save all these time values into an array and make any online / offline statistics?
Best regards,
MHa
03-23-2012 02:56 PM
Thanks for getting back with me. I apologize but I don't know what a timestamp is. I am using Dasylab to acquire data from a test setup. Currently our operator uses the recorder display and moves the cursors at the beginning of the slope (0 in.), and the other cursor at the end of the slope (3.65 in.). By placing the cursors on the recorder display at these locations, they read the dt value for elapsed time. I want to automate this by having the worksheet interpret the time without user interface. So, when the signal ramps up from 0 in. the timer would measure in seconds to the time when the slope flattens (3.65 in.). Conversely, when the signal ramps down from (3.65 in.) the timer would measure in seconds to the time when the slope flattens (constant value at 0 in.). And, ofcourse after measurement would read out on a digital display. Appreciate any feedback you might have.
03-27-2012 10:27 AM
Please try the solution in the attached worksheet.
(The worksheet is in the ZIP-file, i was unable to upload files in DASYLab's DSA- and DMX-format.)
03-28-2012 01:34 AM - edited 03-28-2012 01:43 AM
@hw70, a great solution.
@kmyers, here an other way. This save in addition max 16 time results into global variables 1 ... 16. The worksheet require the addon "Sequence Generator". I define into module Formel00 a interval from 0.5 ... 3.6, not from 0.0 ... 3.65. This should be changed for your situation.
04-04-2012 02:16 PM
This worked out great! Thanks a bunch for the solution, we're off and running. This technical forum has proven to work very effectively. Thanks again!