05-02-2017 03:24 PM
Hello,
For my eduecation I need to make a program.
The program is working, the only thing I need to get right is to measure the time a output is high and place the value in a array.
When I use a timer the program only get slow or won't run.
I haven't got an idea how to get it working.
Does anybody got an idea how to go from here?
Thanks,
Hans Sietsema
05-02-2017 03:49 PM
Open LabVIEW. Go to the Timing Palette. The function "Get Date/Time in Seconds" returns a TimeStamp that tells you the time "now" (i.e. when it is called). If you call it at a later time, it will return the time "Later". To find the time (in seconds) between "Now" and "Later", you can use a function found on the Numeric Palette (I'll let you think about what function is appropriate to get the time between "Later" and "Now").
Bob Schor
P.S. -- this function, like many timing functions, does not have an Error Line. You need to think (using the ideas you learned about Data Flow) precisely when this function will be called in your code, and how you can force it to be called at a particular code point.
05-02-2017 09:07 PM
@Bob_Schor wrote:
Open LabVIEW. Go to the Timing Palette. The function "Get Date/Time in Seconds" returns a TimeStamp that tells you the time "now" (i.e. when it is called). If you call it at a later time, it will return the time "Later". To find the time (in seconds) between "Now" and "Later", you can use a function found on the Numeric Palette (I'll let you think about what function is appropriate to get the time between "Later" and "Now").
Bob Schor
P.S. -- this function, like many timing functions, does not have an Error Line. You need to think (using the ideas you learned about Data Flow) precisely when this function will be called in your code, and how you can force it to be called at a particular code point.
perfect response (:
05-02-2017 09:31 PM - edited 05-02-2017 09:31 PM
Are you in the same class as sadiek? It looks like you are working on the same project.
05-03-2017 08:10 AM
Hello,
It is possible that Sadiek is working on the same project as me.
The assignment is for a education.
I have to say that the possiblities that I can find are limited to meassure the time.
I want to meassure the time a LED is on. If I use the loops as suggested the problem is that the input buttons won't work. Due to the loop that is executed.
Regards,
Hans Sietsema