Comments (8)
First off, you don't need to use Application.DoEvents() since you're using a windows forms app. This is only necessary for console apps (on windows).
Secondly, I don't see you using IScope.GetScopeData() anywhere, nor are you using the IScope.DataSourceScope (which calls GetScopeData() in its own thread). You need to call this method, otherwise the software doesn't know what state the scope is in.
Check out https://github.com/labnation/DeviceInterface#iscope-usage
from deviceinterface.
from deviceinterface.
I believe the UI reports a different viewport offset than the one used in the API. Check the source:
public void SetViewPort(double offset, double timespan)
{
/* maxTimeSpan
* <---------------->
* .--------------------------,
* | || || |
* `--------------------------`
* <--------><------->
* offset timespan
*/
from deviceinterface.
If you don't care about the viewport vs acquisition window, best is to set offset to 0 and timespan to AcquisitionLength.
from deviceinterface.
I wish to thank you all for the help, I am capturing my event and on my way, getting all the math right. Doing RMS on the samples. It would be nice to have an automatic "Delete Double Value" when working at a relatively slow 43ms you end up with a lot of doubles
Thanks again,
George
from deviceinterface.
What do you mean with "double value"?
Can you describe the inconvenience?
from deviceinterface.
from deviceinterface.
I don't understand what you're asking. Are you referring to the SmartScope app's measurements? Or features of the DeviceInterface library?
Average() is a built-in function of C# (or to be more precise, Linq).
If you're trying to calculate the RMS and don't want to write the code yourself, I suggest you just google and copy paste a few lines of code
This question has nothing left to do with the original topic of this issue, so I'm closing it. Feel free to open new ones if you have more issues.
from deviceinterface.
Related Issues (10)
- Cannot start smartscope application on Ubuntu 16.04
- how to get digital trigger working? HOT 1
- how to get correct samples HOT 2
- get aquisition without a trigger HOT 1
- licensing clarification HOT 3
- setting and reading trigger level not working HOT 2
- Crash when Bonjour not installed on Windows
- bootstrap doesn't work on linux? HOT 3
- which blob for which hw? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deviceinterface.