DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

How do have worksheet read out the timing of specific events?

Solved!
Go to solution

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?

0 Kudos
Message 1 of 6
(6,613 Views)

@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

0 Kudos
Message 2 of 6
(6,608 Views)
Spoiler

 

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.

0 Kudos
Message 3 of 6
(6,605 Views)
Solution
Accepted by topic author kmyers

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.)

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
Download All
Message 4 of 6
(6,579 Views)

@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.

Download All
Message 5 of 6
(6,565 Views)

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!

0 Kudos
Message 6 of 6
(6,510 Views)