10-24-2007 10:55 AM
10-25-2007 02:42 AM
Morning,
Does anyone know if a buffer is available in the dac to stock data before transfering it into a file.
Thanks,
Alfons
10-25-2007 05:29 AM
The basic idea is to build packets with 60 seconds of data, find the event and
save the last minute. One way to create the packet with 60 Seconds is the
Offset Register. This block is also able to shift the signal by smaller steps.
The signal is created with two generators and a manual switch to create the stop event. The blocks are running free, so you don’t have to wait a minute or more to test the behaviour. It is possible to simulate real timing in the generators if you like to see the real speed.
In the simple example the Offset Register “1 Minute” is producing a packet with the last 30.000 values 10 times per second. This is shown in a scope. After this, a formula is looking for values between 2 and 6. All values in the packet are counted and if the number is above 2.500 (5 seconds) the block Relay gives this packet into the store and stop block. (Store is simulated with a scope to make testing easier.
This example should do the job.
I have also included an advanced example.
In this example a formula is creating a second signal with trigger information. This signal has the same amount of values and can be used for more complex ways of triggering. In this example the formula is measuring the time when the signal is between 2 and 6. When the signal is not in this range the time is set to zero. The Multiplexer Block is used to build a loop to put the result of the formula back in to the formula. This allows the formula to ad 0.1 seconds to its own result from the loop before.
The trigger signal is later used to store and stop the test. It is possible to create very flexible triggers, events and decisions during a process if this is needed.
Of course, it is possible, that you have to change some of the blocks or add additional functions if the simple formulas are not able to separate the event from other changes in the signal.
Ulrich Bierwisch10-25-2007 08:53 AM
10-25-2007 10:56 AM
10-26-2007 02:59 AM
10-26-2007 10:59 AM - edited 10-26-2007 10:59 AM
Message Edited by AlfonsUK on 10-26-2007 10:59 AM
Message Edited by AlfonsUK on 10-26-2007 11:01 AM
10-29-2007 10:02 AM
10-29-2007 11:24 AM