Search found 97 matches

by markB
Fri Dec 21, 2007 1:22 pm
Forum: VB and VBA (Excel, Access)
Topic: Pico 5000 DLL definitions
Replies: 5
Views: 10931

Hi the VB examples should ship with the next release of the software which is expected early in the New Year. I've attached some examples that will be useful to VB developers: An excel example which demonstrates use of the driver in VB6 and a C# example which demonstrates the use in .Net (which is u...
by markB
Fri Nov 30, 2007 4:29 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: Interfacing VBNet programs to Pico ADC controllers
Replies: 4
Views: 8096

I'm not a VB expert but the following syntax should work for C#. I guess it wouldnt take too much to get this working for VB. [DllImport("PicoHRDL.dll")] public static extern short HRDLGetUnitInfo ( short handle, StringBuilder info, short infoLength, short infoType);
by markB
Fri Nov 09, 2007 8:13 am
Forum: PicoLog
Topic: programming ADC11 with C#
Replies: 6
Views: 9100

You need to be careful with your native and managed types. ints and shorts are different sizes and so you cant simply interchange them. . . You dont need to use attribute to override the default marshalling unless you are going to something out of the ordinary. You therefore need to define and use ...
by markB
Thu Nov 08, 2007 3:40 pm
Forum: General Software Discussions
Topic: software fast streaming mode
Replies: 7
Views: 11052

The fast streaming for the PS3424 has already been released.

You may access this functionality using PicoScope 6 (available in the software download section) or using the driver API.
by markB
Mon Nov 05, 2007 8:18 am
Forum: PicoLog
Topic: programming ADC11 with C#
Replies: 6
Views: 9100

I've modified some of your declarations: [DllImport("adc1132.dll", SetLastError = true)] public static extern bool adc11_open_unit(short port, short product); [DllImport("adc1132.dll", SetLastError = true)] public static extern int adc11_get_unit_info(StringBuilder str, short str_lth, short line, sh...
by markB
Fri Nov 02, 2007 2:18 pm
Forum: PicoLog
Topic: programming ADC11 with C#
Replies: 6
Views: 9100

If the pointer is a pointer to an array, simply passing a managed array will do the job. The Marshaler will do all of the interop work for you. If the pointer is a pointer to a variable that is set by the function, try declaring ref or out paramters. Just having a quick look at the ADC11 api, I dont...
by markB
Mon Oct 15, 2007 1:17 pm
Forum: General Software Discussions
Topic: ps3000_get_timebase sometimes works wrong
Replies: 5
Views: 7579

Here are the argument descriptions from the PS3000 manual: time_interval , a pointer to the time interval, in nanoseconds, between readings at the selected timebase. If a null pointer is passed, nothing will be written here. time_units , a pointer to the most suitable units that the results should b...
by markB
Fri Sep 28, 2007 1:43 pm
Forum: PicoScope 6 for Windows
Topic: interface to vb
Replies: 9
Views: 13156

Hi The ps5000GetTimebase function takes 7 parameters. I'm not a too familiar with VB .Net so I've posted the following C# declaration: [DllImport("ps5000.dll"] private static extern uint ps5000GetTimebase( short handle, uint timebase, int noSamples, out int timeIntervalNanoseconds, short oversample,...
by markB
Tue Aug 21, 2007 7:35 am
Forum: PicoScope 5
Topic: run streaming returns 0
Replies: 1
Views: 3614

Hi

Could you let us know what product you are using. A copy of the function definition that you are using would be useful too.
by markB
Tue Aug 21, 2007 7:28 am
Forum: USB PC Oscilloscopes
Topic: LibUsb-Win32 and PicoScope 3205
Replies: 5
Views: 10532

I tried installing libusb along side our usb drivers and our drivers still work fine.

I'm not sure how libusb works but could you have associated the pico usb device with the libusb driver? Try re-installing the driver from device manager and ensure you choose the pico driver.
by markB
Wed Aug 15, 2007 9:02 am
Forum: PicoScope 6 for Windows
Topic: Spectral Analysis in 6.0.10
Replies: 8
Views: 12078

Thanks for the input, Jom.

We do intend to improve the spectrum view in the future. We do understand the limitations of simply fft'ing the the scope data and will be looking at ways in which PicoScope 6 can improve.

I'll pass on your comments to the team.
by markB
Thu Aug 09, 2007 10:38 am
Forum: VB and VBA (Excel, Access)
Topic: VB6 Sample Project
Replies: 10
Views: 17626

Hi Firstly, I've no idea why are doing sum (value * 2500) / 65535 on every timer event. If you intend to convert to mv you should use the equation (5 * raw value/max ADC value) -2.5, as you say later on in your post. I'm afraid the above statement is incorrect. The ADC16 has a resolution of 16bits p...
by markB
Wed Aug 08, 2007 3:42 pm
Forum: VB and VBA (Excel, Access)
Topic: VB6 Sample Project
Replies: 10
Views: 17626

It looks like you have your channels muddled. From the pls file I can see the following ADC16 channels correspond the following paramters: Ch Parameter 7 Water Alarms 6 Heading 5 Pod Vacuum 4 Pod Vacuum 3 Pod Vacuum 2 24v Monitor 1 Depth Therefore your channel resolution code should be: ok% = adc16_...
by markB
Wed Aug 08, 2007 2:17 pm
Forum: VB and VBA (Excel, Access)
Topic: VB6 Sample Project
Replies: 10
Views: 17626

I cant find it. Can you repost the link?
by markB
Wed Aug 08, 2007 1:08 pm
Forum: VB and VBA (Excel, Access)
Topic: VB6 Sample Project
Replies: 10
Views: 17626

I cant really help until I know how you convert from mV into temperature or pressure etc. Could you post your PLS or PLW file so that I can take a look at the settings.

Many thanks