Search found 18 matches

by Jay H
Thu May 06, 2010 3:41 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: ps5000SetEtsTimeBuffer (64-bit) and VB.net
Replies: 4
Views: 3912

Re: ps5000SetEtsTimeBuffer (64-bit) and VB.net

Ah, that was it... Since I am working with both VB6 and .NET applications, I copied the Declare from my VB6 project and a LONG in VB6 is an INTEGER in .NET which I didn't catch. Visual Studio will migrate the datatypes, but unfortunately, I did this after I migrated my VB6 project to a VB.NET soluti...
by Jay H
Fri Apr 30, 2010 3:49 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: ps5000SetEtsTimeBuffer (64-bit) and VB.net
Replies: 4
Views: 3912

Re: ps5000SetEtsTimeBuffer (64-bit) and VB.net

Vb.NET (Visual Studio 2008) 'Dim buffer() As Long . . . . . 'Check if ETS is turned on (Fast or Slow) If (VB6.GetItemData(Sample_Program.Cbox_ETS, Sample_Program.Cbox_ETS.SelectedIndex) <> PS5000_ETS_MODE.PS5000_ETS_OFF) Then 'ReDim Buffer(gc_BUFFER_SIZE) ReDim bufferHigh(gc_BUFFER_SIZE) ReDim buffe...
by Jay H
Thu Apr 22, 2010 1:59 pm
Forum: General Software Discussions
Topic: VB.NET .DLL Import Problems
Replies: 12
Views: 68735

Re: VB.NET .DLL Import Problems

Um, I am interfacing with a PicoScope 5204 with a .DLL provided by PicoTech (ps5000.dll) without a problem and in Visual Studio 2008. I also have a VB6 instance of my application using Visual Studio VB6.0. Both work fine and I have it running.... I never had to do anything within the VS IDE. the .DL...
by Jay H
Thu Apr 22, 2010 11:52 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: ps5000SetEtsTimeBuffer (64-bit) and VB.net
Replies: 4
Views: 3912

ps5000SetEtsTimeBuffer (64-bit) and VB.net

I am having an issue with this function that is used to setup the ETS time buffers on 64-bit languages like .NET stuff. The problem is my buffer which is defined to be in VB.NET Dim buffer() as long I get an "Arithmetic operation resulted in an overflow." exception upon the call to ps5000SetEtsTimeB...
by Jay H
Fri Apr 16, 2010 3:17 pm
Forum: VB and VBA (Excel, Access)
Topic: ps5000SetChannel
Replies: 4
Views: 4241

Re: ps5000SetChannel

Well, I played with the code some more and I just don't do anything in BlockDataHandler if both channels are turned off, works. probably don't even need to go that far if the channels are off. Not going to collect much of anything anyway. :-)

Jay
by Jay H
Fri Apr 16, 2010 1:54 pm
Forum: VB and VBA (Excel, Access)
Topic: ps5000SetChannel
Replies: 4
Views: 4241

Re: ps5000SetChannel

Ah, now I remember why I didn't 'fix' this initially. I think your example may exhibit this strange result too as well as I played with it also. I check to see whether the channel is enabled, if not, I pass it PS5000_5V which is what I initialize the channel too in the beginning. I've noticed that i...
by Jay H
Fri Apr 16, 2010 12:56 pm
Forum: VB and VBA (Excel, Access)
Topic: VB.NET example...
Replies: 0
Views: 2806

VB.NET example...

For the fun of it (Not sure if that should be legal) I ran my old VB6 application in Visual Studio 2008 and surprisingly, I got my old code to run in VB.NET after a few tweaks (Changes in the WinForm designer vrs the old VB6 Forms and also the CallBack functions had to have Delegates declared... ) M...
by Jay H
Fri Apr 16, 2010 12:51 pm
Forum: VB and VBA (Excel, Access)
Topic: ps5000SetChannel
Replies: 4
Views: 4241

Re: ps5000SetChannel

OK, thanks, I changed it to some default value...
by Jay H
Thu Apr 15, 2010 2:27 pm
Forum: VB and VBA (Excel, Access)
Topic: ps5000SetChannel
Replies: 4
Views: 4241

ps5000SetChannel

I gather this function should be called whenever I change a particular Channel (a,b,c,d, etc...)'s voltage range (i.e. the Vertical scale) or turn a channel off? I actually store a default value (I use '99') as the Range index for each channel when the channel is off (i.e. unit.channelSettings( 'cha...
by Jay H
Mon Apr 12, 2010 8:12 pm
Forum: VB and VBA (Excel, Access)
Topic: AutoTrigger and CallBackBlock function
Replies: 1
Views: 2433

AutoTrigger and CallBackBlock function

I'm trying to see if it is possible to determine whether my Trigger has been set or the AutoTrigger timeout was reached (as setup by the call to ps5000SetTriggerChannelProperties? I believe the ps5000RunBlock will eventually call my CALLBACK function if the Trigger isn't hit and my CALLBACK sub will...
by Jay H
Mon Apr 12, 2010 8:07 pm
Forum: VB and VBA (Excel, Access)
Topic: Passing UDT to ps5000SetTriggerChannelProperties
Replies: 1
Views: 2611

Passing UDT to ps5000SetTriggerChannelProperties

Sent a question to TechSupport which Robin might have read already but just in case anybody out there have figured this out. I have the core of the scope program ported from C to Visual Basic 6.0 and have it working for the most part for Block Data Mode and Streaming Data. I have not implemented ETS...
by Jay H
Fri Apr 02, 2010 11:18 am
Forum: C and C++
Topic: Multiple Trigger (examples?)
Replies: 4
Views: 3318

Re: Multiple Trigger (examples?)

OK. I just installed the latest and greatest SDK, and noticed that the header file picostatus.h in the newest SDK includes the status error code for 0x49. So I guess my old version of the SDK just didn't include that one... I also noticed the only major change is some kind of rapid block mode. I hav...
by Jay H
Thu Apr 01, 2010 8:01 pm
Forum: C and C++
Topic: Multiple Trigger (examples?)
Replies: 4
Views: 3318

Re: Multiple Trigger (examples?)

Eureka, I have gotten past that but I notice that I have to set the voltage on structures to a small amount. Input sine wave on channel A is set to 200mV Peak to Peak and at a 3khz freq. timebase is set to 240ns If I set struct 1 voltage to 50mv (converted of course to ADC for thresholdMajor) and st...
by Jay H
Thu Apr 01, 2010 7:31 pm
Forum: C and C++
Topic: Multiple Trigger (examples?)
Replies: 4
Views: 3318

Re: Multiple Trigger (examples?)

I modified the sample console to allow for mulitple Trigger Properties and Conditions and playing around with them. I keep getting a bad PICO_STATUS returned from ps5000SetTriggerChannelProperties. the value is set to 73, which I found via a search is "PICO_INVALID_TRIGGER_PROPERTY." my picoStatus.h...
by Jay H
Thu Apr 01, 2010 3:35 pm
Forum: C and C++
Topic: PS 5204/ps5000con.c buffer values
Replies: 3
Views: 3012

Re: PS 5204/ps5000con.c buffer values

Thanks!

Jay