Please can you help. I have a machine that has a 5v trip switch. When the switch is clicked dasylab reads other channels and writes data to file. I have
fitted encoder that has to many pulses so I want dasylab to write to file on every say 10th pulse.
The old system was easy as dasy lab took reading for each trip switch. Please can anyone help
I woul duse a counter with raising TTL and use either a trigger or action to trigger every 10 pulses and use an action to reset the counter.
Which versio DASYLab do you have? with which options?
Thanks. I do not use counter at the moment because it take 1 reading each time trip switch activated. Now I need to take 1 sample after 10 pulses I assumed I needed counter ? I use version 7 dasylab but have version 11 demo to use and will purchase Many thanks
Correct, you will need the counter module,
Please download versiuon 12 it is the newest one.
The Statistics group has a Counter module that will allow you to count the edges.
For counting every 10, I would set up the counter to count the edges, which will output an increasing value. Then use the Arithmetic-1 channel and a constant - module to do Modulo 10. This will output 1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0.... the fall from 9 to 0 looks like a Falling edge, which you can then use to trigger the write.
Many thanks I will download 12. What actions (module) will I use to reset counter ?
If you're using CJ mode, you will not need to reset it. But in the action, when you trig between 9 and 0, you can select the counter module and detect falling edges, the select reset counter as the action
See my previous response... I think that Tom and I stepped on each other.
Counter can count up forever, and use Modulo arithmetic to create a stair that falls every 10 pulses.... this falling edge can then be used by a Combi Trigger module to create the rising edge that you need for the relay to release the value.
Ok I think I understand. Just off to try it Many Thanks
Gents I am feeling pretty stupid about this one. I am in construction. Can you give me an idiots step by step ie
1: Drag Counter module (count falling edges)
2: Drag arithmetic module and enter ?
3
4
5
I have bits from trigger
I have bits before counter
Very sorry