08-20-2010 07:43 AM
Hey,
I'm wondering if there is a way to obtain the time an alarm was tripped in a procedure. Maybe there is an easy way that I'm missing, but I'd like to be able to compare the time between two alarms being tripped.
Thanks for the help,
Kevin Key
Solved! Go to Solution.
08-20-2010 09:01 AM
I've found the System Channel, System Time, but it seems like System Time does not reflect a real time, and perhaps thats something to do with the way I've set things up.
If I add a Numeric Indicator Meter, and compare the time passed to the time passed on my stop watch it's not even close. The system time is passing way slower than the time on my stop watch.
Thanks for any help,
Kevin Key
08-20-2010 10:06 AM
System Time refers to the ideal relative time of the system according to the specified rate of the Primary Control Loop. If the Primary Control Loop runs on a real-time target and is never late, then this time should correspond more closely with a wall clock time. On Windows, you can't get deterministic execution, and the Primary Control Loop is often interrupted by other processes, causing its time to get behind.
08-20-2010 10:20 AM - edited 08-20-2010 10:20 AM
08-20-2010 10:40 AM
The Primary Control Loop rate is the rate at which the VeriStand Engine samples the I/O and runs any models. So if the rate is 100Hz, the engine acquires HW inputs, ticks the models and produces HW outputs 100 times a second.
If the VeriStand Engine runs on Windows, there are a number of factors that can keep it from running deterministically and at the rate you specified. Windows itself is not a real-time OS, so there are plenty of other operations in the system that can interrupt the Primary Control Loop. This includes things like the Workspace execution as well as other programs in your system, like the virus scanner or whatever.
When you slow down the Primary Control Loop rate, it becomes much more likely that the Primary Control Loop can execute in the desired time. As you increase the loop rate, it will be late more often, which skews the system time.
08-20-2010 10:49 AM
08-21-2010 12:38 PM
08-23-2010 07:35 AM