Search found 97 matches

by markB
Tue Apr 03, 2007 1:35 pm
Forum: General Software Discussions
Topic: Which mode?
Replies: 6
Views: 9697

Hi

davidj's example code is in C and so will not be syntactically correct for Delphi.

He also pointed out that there was a bug in streaming that would be fixed. This fix is now available in the software downloads sections (5.16.2). Does your streaming problem still occur with this latest dll?

Mark
by markB
Thu Mar 29, 2007 8:58 am
Forum: PicoScope 5
Topic: Any way to speed up meters?
Replies: 3
Views: 6172

The ini file setting that Alan is talking about is SlowMeter. The SlowMeter entry will only work with PS3000, PS2000 and the demo. This will slow down the meter in order to detect lower frequencies. This will have the effect of slowing down the meter further and so will not help ariaaudio. For anyon...
by markB
Thu Mar 29, 2007 8:30 am
Forum: VB and VBA (Excel, Access)
Topic: how to use fast streaming with callback
Replies: 1
Views: 5591

I'm not a VB expert but I think you may need to use the AddressOf operator. I believe the usage of this is slightly different for VB6 and VB.Net so I wont try and post any code. Googling 'AddressOf' gives plenty of examples.
by markB
Tue Mar 27, 2007 2:01 pm
Forum: VB and VBA (Excel, Access)
Topic: TC-08 and VB6 Development
Replies: 4
Views: 10601

Be careful to declare second parameter (the String) byVal and not byRef. Use the decalaration in my earlier post.

I tried this with VBA and it all works fine.
by markB
Tue Mar 27, 2007 11:11 am
Forum: VB and VBA (Excel, Access)
Topic: TC-08 and VB6 Development
Replies: 4
Views: 10601

Try:

Code: Select all

Declare Function usb_tc08_get_formatted_info Lib "usbtc08.dll" (ByVal handle As Integer, ByVal unit_info As String, ByVal string_length As Integer) As Integer

Dim info as String * 1024

ok = usb_tc08_get_formatted_info Lib(tc08_handle, info, 1024)
And parse info for the fourth line
by markB
Tue Mar 27, 2007 10:17 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: Declaration of dll subs and functions for TH03
Replies: 2
Views: 7765

You need to pass 'value' in such a way that the called procedure can change the value of a variable underlying the argument (or as a pointer in C):

Declare Function th03_get_temp Lib "th0332.DLL" (ByRef value As Int32, ByVal Port As Int16, ByVal channel As Int16, ByVal filtered As Boolean) As Boolean
by markB
Tue Mar 27, 2007 9:59 am
Forum: General Software Discussions
Topic: USB ADC11 & VC++
Replies: 1
Views: 4825

In what respect does it not work?

Does the program not compile? Does the device not open? Is the data returned not as expected?