Search found 563 matches

by bennog
Thu Apr 14, 2022 8:02 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: PinnedArrays in API examples
Replies: 11
Views: 1625

Re: PinnedArrays in API examples

Remember Murphy's law

https://en.wikipedia.org/wiki/Murphy%27s_law

That is all I want to add at this moment, in my experience most times sooner than later, at a moment you can not use it.

Benno
by bennog
Wed Apr 13, 2022 9:47 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: PinnedArrays in API examples
Replies: 11
Views: 1625

Re: PinnedArrays in API examples

it is only needed where you use managed code like C# that use garbage collect. And if you fragment the memory on C# and allocate and release a lot of various memory sizes, C# has the nasty habit of moving memory around to different physical addresses. So unmaaged code writes to the wrong addresses. ...
by bennog
Tue Apr 12, 2022 2:23 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: PinnedArrays in API examples
Replies: 11
Views: 1625

Re: PinnedArrays in API examples

for C# you
use a function that allocate 250 array's of random length between 200000 and 300000 integers and write them all with some number not 0
Then exit this function.

Then call this function 100 more times.

So you C# have some cleaning up to do.

Benno
by bennog
Fri Apr 08, 2022 7:23 pm
Forum: Projects
Topic: Suggestions on Pico 2206B application
Replies: 1
Views: 825

Re: Suggestions on Pico 2206B application

I would use 2 thread 1 for reading the dat from the scope. and 1 for writing raw data to the disk.
Go for a ring buffer of about 10-20 MByte as large as possible. (20MB will give a 20 sec buffer before your head pointer will catch up with the tail pointer.

Benno
by bennog
Wed Apr 06, 2022 3:41 pm
Forum: General Software Discussions
Topic: Decoding UART using api
Replies: 5
Views: 1120

Re: Decoding UART using api

that is why you need to use the SDK to capture the data and the sigrok libs to decode the captured data to serial data.

Benno
by bennog
Wed Apr 06, 2022 10:34 am
Forum: General Software Discussions
Topic: Decoding UART using api
Replies: 5
Views: 1120

Re: Decoding UART using api

you will need both.

and jou will probably change some code to get it working.

Benno
by bennog
Sun Apr 03, 2022 7:55 pm
Forum: PicoScope 6 for Windows
Topic: Picoscope und labview
Replies: 1
Views: 694

Re: Picoscope und labview

by bennog
Sun Apr 03, 2022 10:24 am
Forum: General Software Discussions
Topic: Decoding UART using api
Replies: 5
Views: 1120

Re: Decoding UART using api

It is not in the API it is only in the picoscope software.

If you want to decode serial data in the SDK look at the sigrok git repository for the decoding tools
http://sigrok.org/gitweb/

especially the decode library
http://sigrok.org/gitweb/?p=libsigrokde ... ;a=summary

Benno
by bennog
Thu Mar 31, 2022 5:40 pm
Forum: PicoScope 6 for Windows
Topic: QWG run time vs frequency
Replies: 3
Views: 546

Re: QWG run time vs frequency

it is quite simple the sample time for the first 3 measurements is about 1.64 ms per sample the last measurement is 1.09 ms per sample. If you know this you can make exactly what you want. The step in sample time is probably due clock dividers of the main clock. So if you know the DAC conversion rat...
by bennog
Fri Mar 25, 2022 8:10 am
Forum: General Software Discussions
Topic: 2205A max number of samples
Replies: 4
Views: 904

Re: 2205A max number of samples

I think it would be having something to do with some protocol housekeeping or something like that.

But only official pico tech can tell you why you can nog get all the samples to to last one.

Benno
by bennog
Thu Mar 24, 2022 2:33 pm
Forum: General Software Discussions
Topic: 2205A max number of samples
Replies: 4
Views: 904

Re: 2205A max number of samples

In PC world 8k means 99 out of 100 times 8192
Only on harddrives they do not use powers of 2.

Benno
by bennog
Thu Mar 24, 2022 2:30 pm
Forum: Getting Started
Topic: How to configure sample interval for data dump?
Replies: 1
Views: 523

Re: How to configure sample interval for data dump?

I think that is the slowest the scope can do. You can simply filter every 10th line or what you want if you have Linux or cygwin or WSL https://unix.stackexchange.com/questions/369181/printing-every-nth-line-out-of-a-large-file-into-a-new-file You can do it with powershell but it is vastly more comp...
by bennog
Wed Mar 23, 2022 10:05 am
Forum: USB PC Oscilloscopes
Topic: 2206B problem with image signal
Replies: 1
Views: 472

Re: 2206B problem with image signal

This is because the sample rate of the scope changes from 500 mS/sec to 250 mS/sec. The total sampling rate is 500mS/sec if you enable the 2nd channel each channel gets 250 mS/sec. So effectively you go from 10 samples per full wave to 5 samples per full wave. I suggest you disable the sin interpola...
by bennog
Fri Mar 18, 2022 11:34 am
Forum: USB PC Oscilloscopes
Topic: Where do the Math-channels are calculated
Replies: 1
Views: 474

Re: Where do the Math-channels are calculated

It is calculated in software.
And for BW if the calculated data is also send then you use more data.
If you only want the Diff signal, you can also use a differential probe and use 1 ch.

Benno