From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-01-2012 07:02 AM
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
03-01-2012 07:38 AM
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?
03-01-2012 08:01 AM
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
03-01-2012 08:03 AM
Correct, you will need the counter module,
Please download versiuon 12 it is the newest one.
03-01-2012 08:05 AM
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.
03-01-2012 08:07 AM
Many thanks I will download 12. What actions (module) will I use to reset counter ?
03-01-2012 08:12 AM
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
03-01-2012 08:13 AM
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.
03-01-2012 08:14 AM
Ok I think I understand. Just off to try it Many Thanks
03-01-2012 10:09 AM
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