Search found 7 matches

by AnthonyCSheehy
Wed Apr 09, 2008 12:46 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: VB.net declare Statements
Replies: 0
Views: 11419

VB.net declare Statements

I would like to share the following code for those people wanting to access the PS3000.dll functions in VB.net 2005/2008 The types have been matched as close as possible with the equivalent types specified in the picoscope documentation. I have not tested everything but my applications do work with ...
by AnthonyCSheehy
Mon Nov 26, 2007 4:00 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: 3224 resolution
Replies: 2
Views: 6255

Thank you John.
by AnthonyCSheehy
Thu Nov 22, 2007 1:18 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: 3224 resolution
Replies: 2
Views: 6255

3224 resolution

Can I just check what I am understanding from the technical reference:

If I set the picoscope to 5V and get a reading of 32767 from the buffer - this is telling me it is reading 5 volts?
by AnthonyCSheehy
Wed May 30, 2007 2:17 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: integer sizes
Replies: 2
Views: 7049

Ah - thank you. I think that the confusion is that I am writing in VB.net. (I suppose I should have mentioned that to make it clearer - my mistake.) In VB, Long data type is, in fact, 64-bits. I guess that is what is confusing me. Ah, yes I understand. The microsoft document includes a mapping betwe...
by AnthonyCSheehy
Tue May 29, 2007 3:20 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: integer sizes
Replies: 2
Views: 7049

integer sizes

I am writing some .net 2.0 applications that query the PicoScope. One thing I have noticed is the difference in stated integer sizes. For example the manual defines the time_interval pointer for ps3000_get_timebase as a long. However, it only returns a 32 bit integer. If I try to fit a long (64bit) ...
by AnthonyCSheehy
Fri May 04, 2007 11:45 am
Forum: VB and VBA (Excel, Access)
Topic: Unbalanced stack error with PS3000 function
Replies: 2
Views: 6396

actually, I have discovered the problem. The unsigned long need to be reference with a uinteger type in VB, and the time_unit is a short.

Now onto the ps3000_get_streaming_last_value() which does not have a define function in the examples... so if you have one for me, that would save me time.
by AnthonyCSheehy
Fri May 04, 2007 10:30 am
Forum: VB and VBA (Excel, Access)
Topic: Unbalanced stack error with PS3000 function
Replies: 2
Views: 6396

Unbalanced stack error with PS3000 function

I am programming in VB.net using VS2005 pro. I have a Picoscope 3224. I have my declare function as follows: Declare Function ps3000_run_streaming_ns Lib "ps3000.dll" (ByVal handle As Short, ByVal sample_interval As Long, ByVal time_units As Short, ByVal max_samples As Long, ByVal auto_stop As Short...