Search found 7 matches

by bevis
Mon Sep 27, 2010 4:59 pm
Forum: USB PC Oscilloscopes
Topic: Using the Picoscope SDK with Visual Basic 2010 express.
Replies: 12
Views: 6629

Re: Using the Picoscope SDK with Visual Basic 2010 express.

Chris wrote:
Note: in your declarations...
In VB6.0 etc.... Long = 32 bit
In VB.NET Long = 64 bit

Therefore use Integer in place of all Long declarations.
????? Thanks Microsoft!

That stopped the error, thank you.

There is bound to be more but I have nearly all I need.

Bevis
by bevis
Mon Sep 27, 2010 2:31 pm
Forum: USB PC Oscilloscopes
Topic: Using the Picoscope SDK with Visual Basic 2010 express.
Replies: 12
Views: 6629

Re: Using the Picoscope SDK with Visual Basic 2010 express.

Yet more... I want to use the signal generator so I have added Declare Function ps2000_set_sig_gen_built_in Lib "c:\ps2000.dll" (ByVal handle As Short, ByVal offsetVoltage As Long, ByVal pkToPk As ULong, ByVal waveType As PS2000_WAVE_TYPE, ByVal startFrequency As Single, ByVal stopFrequency As Singl...
by bevis
Mon Sep 27, 2010 1:56 pm
Forum: USB PC Oscilloscopes
Topic: Using the Picoscope SDK with Visual Basic 2010 express.
Replies: 12
Views: 6629

Re: Using the Picoscope SDK with Visual Basic 2010 express.

Chris,

Brilliant! Works a treat.

No wonder the error had me stumped, VB was indicating the folllowing line.

Picoscope can now put this up as the 'new' VB example.

Bevis
by bevis
Mon Sep 27, 2010 12:14 pm
Forum: USB PC Oscilloscopes
Topic: Using the Picoscope SDK with Visual Basic 2010 express.
Replies: 12
Views: 6629

Re: Using the Picoscope SDK with Visual Basic 2010 express.

So I put the ps2000 dll in c:\ as this is where the code says it looks for it, all well so far. The 'fast' button works, i.e. I get a few readings but when I use the stert streaming button this error happens FatalExecutionEngineError was detected Message: The runtime has encountered a fatal error. T...
by bevis
Mon Sep 27, 2010 9:32 am
Forum: USB PC Oscilloscopes
Topic: Using the Picoscope SDK with Visual Basic 2010 express.
Replies: 12
Views: 6629

Re: Using the Picoscope SDK with Visual Basic 2010 express.

Chris

OK I get an error when I try to start sampling, something to do with paths I am sure, but I can open the 'scope it's relays click. Thank you very much.

Bevis
by bevis
Mon Sep 27, 2010 8:33 am
Forum: USB PC Oscilloscopes
Topic: Using the Picoscope SDK with Visual Basic 2010 express.
Replies: 12
Views: 6629

Re: Using the Picoscope SDK with Visual Basic 2010 express.

Chris,

I have the SDK, the bit I am being daft about is how to open/convert it. VBNET hasn't an option of opening a vbp file as fas as I can see.
by bevis
Sun Sep 26, 2010 10:34 am
Forum: USB PC Oscilloscopes
Topic: Using the Picoscope SDK with Visual Basic 2010 express.
Replies: 12
Views: 6629

Using the Picoscope SDK with Visual Basic 2010 express.

Hi all,

How do I make the API available to a VB 2010 program? just can't seem to add the descriptions etc. to VB 2010.

I am probably missing something very simple. The scope I want to use is a 2204.

Bevis