M. Hamza Öncüer Posted November 14, 2023 Share Posted November 14, 2023 Hi, is it possible to return only the maximum value from an ADC frame? I want to identify the maximum value within the FPGA and then send it to the PC. Can this be done using the WaveForms SDK?" Link to comment Share on other sites More sharing options...
0 attila Posted November 15, 2023 Share Posted November 15, 2023 Hi @Hamza Oncuer See the "sample mode" option or called FDwfAnalogInChannelFilterSet for custom app/script. Link to comment Share on other sites More sharing options...
0 M. Hamza Öncüer Posted November 16, 2023 Author Share Posted November 16, 2023 Thank you very much. Is it possible to take x value of the maximum as well ? Link to comment Share on other sites More sharing options...
0 attila Posted November 16, 2023 Share Posted November 16, 2023 Hi @Hamza Oncuer You can use a script like this: if(Index > Maximum) return; var data = Scope.Channel1.data; var c = data.length; var dmax = []; for(var i = 0; i < c; i+=2){ dmax.push(max(data[i], data[i+1])); } FileWrite("~/Desktop/scope/acq"+Index+".txt", dmax); Index++; Link to comment Share on other sites More sharing options...
0 M. Hamza Öncüer Posted November 20, 2023 Author Share Posted November 20, 2023 Thank you but if I understood correctly the example you give takes the whole frame from the board then find the maximum I need to find the maximum within the Z7 then send it to pc, is it possible ? Link to comment Share on other sites More sharing options...
0 attila Posted November 20, 2023 Share Posted November 20, 2023 Hi @Hamza Oncuer It is possible with custom project, using EclypseZ7 as development board, but not with WaveForms. I don't think it should bother you that only half of the samples are actually used. WF provides min/max pairs but you can capture up to 256Mi samples or 'unlimited' at lower rate (<20Msps) using streaming/recording. The WF app limits the captures to 200M samples / channel. Link to comment Share on other sites More sharing options...
0 M. Hamza Öncüer Posted November 20, 2023 Author Share Posted November 20, 2023 (edited) Thank you very much but I am using Qt/Python and I haven't achieved these high speeds. I believe the problem caused by the python. Can I modify the waveforms api's fpga codes so I can add a peak finding option to waveform api's data acquisition function ? Edited November 20, 2023 by Hamza Oncuer Grammer correction Link to comment Share on other sites More sharing options...
0 attila Posted November 20, 2023 Share Posted November 20, 2023 Hi @Hamza Oncuer No. Link to comment Share on other sites More sharing options...
0 M. Hamza Öncüer Posted November 21, 2023 Author Share Posted November 21, 2023 Than you very much, do you planning to add a built in peak finder functionality to waveforms api ? Link to comment Share on other sites More sharing options...
0 attila Posted November 21, 2023 Share Posted November 21, 2023 I think the current min/max (peak) sampling is sufficient. Link to comment Share on other sites More sharing options...
0 M. Hamza Öncüer Posted November 30, 2023 Author Share Posted November 30, 2023 Hi, I want to use acqmodeScanScreen mode but I did not understand how it works exactly, if I set the buffer to lets say 500 may I do data acquisition continuously without losing data at lets say 10MHZ sampling rate and does reducing buffer size means I can use higher sampling rates for streaming ? Link to comment Share on other sites More sharing options...
0 M. Hamza Öncüer Posted November 30, 2023 Author Share Posted November 30, 2023 I mean can it do continuous lossless data acquisitions if I select scan screen and 10MHz sampling rate and 128Mi buffer size at z7 ? Link to comment Share on other sites More sharing options...
0 attila Posted December 4, 2023 Share Posted December 4, 2023 Link to comment Share on other sites More sharing options...
Question
M. Hamza Öncüer
Hi, is it possible to return only the maximum value from an ADC frame? I want to identify the maximum value within the FPGA and then send it to the PC. Can this be done using the WaveForms SDK?"
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now