-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not stop the scope #5
Comments
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 |
Thanks, the only other issue I have is setting the view port to match my
scope set up.
Thanks again.
George
Please excuse fat finger mis-spellings
…On Jan 30, 2017 5:20 AM, "Louie Caulfield" ***@***.***> wrote:
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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYBcV8TsCUzvNUMw4jclhWoSC5l0OzEaks5rXbl8gaJpZM4Lw53I>
.
|
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
*/ |
If you don't care about the viewport vs acquisition window, best is to set offset to 0 and timespan to AcquisitionLength. |
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, |
What do you mean with "double value"? Can you describe the inconvenience? |
Not double value, like you have the average math, it would be nice have an
RMS math function.
George
Please excuse fat finger mis-spellings
…On Feb 2, 2017 10:03 AM, "Louie Caulfield" ***@***.***> wrote:
What do you mean with "double value"?
Can you describe the inconvenience?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYBcV6ftdCp6yS-77pvYFbkJ__z3-HcYks5rYfBHgaJpZM4Lw53I>
.
|
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. |
Hello,
I have every thing running and can copy the data to a new array. However I can not make the scope run again, without shutting down.
These are buttons on a Windows form some work and some do not.
I have the scope set to Running False during configuration , and it takes all my config, after a commit
The data returned from the first click of the button2 is great, however read my comments ( Comments )for the next click.
I could really use some help
Thanks
George Zamiar
502-494-6792
The text was updated successfully, but these errors were encountered: