Search found 9 matches

by Mikkel
Fri Dec 18, 2015 7:55 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: acquire rapid block
Replies: 1
Views: 11535

Re: acquire rapid block

Sorry, my bad. The line:
Dim buf1() As Short = values(numCompletedCaptures - 1)(0)

should instead be:
Dim buf1() As Short = values(i)(0)
by Mikkel
Wed Dec 16, 2015 3:04 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: acquire rapid block
Replies: 1
Views: 11535

acquire rapid block

I'm trying to use the a rapid block acquisition with a vb code (see later) to catch a series of traces (stored in the array of arrays called "values" - I got this part of the code from the c# example in the SDK). The problem is that all the traces are identical, which I'm sure they shouldn't be. Can...
by Mikkel
Wed Sep 23, 2015 10:21 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: rapidBlock
Replies: 10
Views: 11384

Re: rapidBlock

A belated thank you

/Mikkel
by Mikkel
Tue Sep 15, 2015 6:15 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: rapidBlock
Replies: 10
Views: 11384

Re: rapidBlock

Hi Hitesh, I solved it. The auto translation of the c# code in the SDK (use Teleriks c# to vb converter) did the trick. Thank you for your help. A future wish would be a dll that could be directly imported into Visual Studio (VB.NET, C#.NET and other languages) that would eliminate the need to write...
by Mikkel
Mon Sep 14, 2015 1:49 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: rapidBlock
Replies: 10
Views: 11384

Re: rapidBlock

Hi Hitesh, I can certainly send you my messy code as it is, but I have just created a new test project where I converted the c# definitions instead (using an online converter C#->VB) in the hope that this would eliminate my mistakes. I haven't finished, but it seems to work through the ps5000aMemory...
by Mikkel
Mon Sep 14, 2015 10:53 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: rapidBlock
Replies: 10
Views: 11384

Re: rapidBlock

I just realized that I said that I needed 4K of data every 1.25 micro seconds, I meant 1.25 milli seconds of course (1/800 Hz). Sorry.
by Mikkel
Mon Sep 14, 2015 10:34 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: rapidBlock
Replies: 10
Views: 11384

Re: rapidBlock

Hi Hitesh, I use 12 bit resolution (I have also tried 8 bit), timebase=15 mMaxSamples is returned with a value of zero. I didn't consider streaming mode since I thought it was to slow. My pc is a 64 bit windows 7 machine and I downloaded the 64 bit dll, so I suppose that this has nothing to do with ...
by Mikkel
Mon Sep 14, 2015 9:38 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: rapidBlock
Replies: 10
Views: 11384

Re: rapidBlock

Yes I modified the ps5000aVBCon.vb with the following: Declare Function ps5000aMemorySegments Lib "ps5000a.dll" (ByVal handle As Short, ByRef nSegments As UInteger, ByRef nMaxSamples As Integer) As UInteger Declare Function ps5000aSetNoOfCaptures Lib "ps5000a.dll" (ByVal handle As Short, ByRef nCapt...
by Mikkel
Sat Sep 12, 2015 1:54 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: rapidBlock
Replies: 10
Views: 11384

rapidBlock

Do anyone have a working VB.net example of rapidBlock for a PicoScope5244B using the ps5000a dll? I am not able to fully translate the C-code example given in the SDK that I downloaded. One problem may be the status=ps5000aMemorySegments(handle,64, maxSamples) that returns "30" (hex=1E) PICO_TOO_MAN...