Sampling on external trigger
Posted: Sun Mar 05, 2017 8:49 pm
Hello!
I'm new to red-pitaya and need some advise for how to accomplish my goal.
I have an external trigger at about 200-300Hz
On every rising edge, i would like to sample:
- 4096 samples from both fast AD channels
- Read out 1 sample from 2 or 4 of the slow AD channels.
- get a counter value for each trigger to correlate it and track lost frames. (might not be needed)
I need to get this data from every trigger, and I have a train of about 20.000 triggers. I'm allowed to lose frames but I then need to know exactly which frame that is lost.
When i calculate it seems possible.
4096 samples * 2 bytes * 300Hz * 2 channels = 4915200 => 5mb/Sek
I have not used the pitaya much (only the oscilloscope using the browser) and have some questions:
1. Is this possible to accomplish using standard software or visual programming? Or do I need to write my own C-code?
I'm thinking of the trigger examples. It seems like you are setting up the trigger and then wait for trigger to fire and then setup the trigger again. Is it possible to collect the data in the example above and setup the trigger again in 300hz using a windows system without loosing any frames?
2. In short, how would you set up the system for acquisition?
Best regard/
Daniel
I'm new to red-pitaya and need some advise for how to accomplish my goal.
I have an external trigger at about 200-300Hz
On every rising edge, i would like to sample:
- 4096 samples from both fast AD channels
- Read out 1 sample from 2 or 4 of the slow AD channels.
- get a counter value for each trigger to correlate it and track lost frames. (might not be needed)
I need to get this data from every trigger, and I have a train of about 20.000 triggers. I'm allowed to lose frames but I then need to know exactly which frame that is lost.
When i calculate it seems possible.
4096 samples * 2 bytes * 300Hz * 2 channels = 4915200 => 5mb/Sek
I have not used the pitaya much (only the oscilloscope using the browser) and have some questions:
1. Is this possible to accomplish using standard software or visual programming? Or do I need to write my own C-code?
I'm thinking of the trigger examples. It seems like you are setting up the trigger and then wait for trigger to fire and then setup the trigger again. Is it possible to collect the data in the example above and setup the trigger again in 300hz using a windows system without loosing any frames?
2. In short, how would you set up the system for acquisition?
Best regard/
Daniel