Search found 18 matches

by dfergenson
Wed Mar 17, 2021 11:57 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: VB.net Example Code for Complex Triggering using ps5000a
Replies: 1
Views: 1145

Re: VB.net Example Code for Complex Triggering using ps5000a

I fought my way through some of the functions and wrote this explanation of them. I hope that it helps someone and, if you are able to help, there are some requests for additional work below. A Treatise on Triggering the PicoScope 5000X Series Oscilloscopes Using the Legacy Complex Triggering Functi...
by dfergenson
Fri Mar 12, 2021 7:35 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: Complex Triggering
Replies: 1
Views: 671

Re: Complex Triggering

I created a fork in my Github account. All of my changes are within the PS5000A folder:

https://github.com/dfergenson/picosdk-c-sharp-examples

Thanks.

-Davio
by dfergenson
Fri Mar 12, 2021 6:05 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: Complex Triggering
Replies: 1
Views: 671

Complex Triggering

I'm developing drivers for the PS5000A.dll in VisualStudio 2019 to drive a PS5444D and I've run into some confusing results when attempting to interface with the complex triggering functions. I started off working in VB.net but eventually switched to C# to see if I could get my head around the funct...
by dfergenson
Tue Mar 09, 2021 9:18 pm
Forum: General Software Discussions
Topic: Documentation Error: ps5000aOpenUnit
Replies: 2
Views: 800

Re: Documentation Error: ps5000aOpenUnit

Thank you. I've gone through and checked all of my other string arguments to ensure that I've converted all ByRef statements to ByVals in my code.

-David
by dfergenson
Tue Mar 02, 2021 7:35 pm
Forum: General Software Discussions
Topic: Documentation Error: ps5000aOpenUnit
Replies: 2
Views: 800

Documentation Error: ps5000aOpenUnit

I've identified an error in the latest version of picoscope-5000-series-a-api-programmers-guide.pdf that is minor but serious. I'm working from the latest version, ps5000apg.en.r4. The description of ps5000aOpenUnit shows the argument serial as being by reference. Calling it by reference, even with ...
by dfergenson
Fri Jan 29, 2021 7:38 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: Signal Generator Frequency Restrictions (PS5444D)
Replies: 1
Views: 916

Signal Generator Frequency Restrictions (PS5444D)

I'm writing some VB.net code to control the function generator on my PS5444D and I've run into something that I'm not sure is fully documented. ps5000aSetSigGenBuiltIn is described on P. 102 of the API Programmer's Guide and it refers to the minimum value of the argument startFrequency as being PS50...
by dfergenson
Thu Jan 28, 2021 4:21 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: VB.net Example Code for Complex Triggering using ps5000a
Replies: 1
Views: 1145

VB.net Example Code for Complex Triggering using ps5000a

Does anyone have any working VB.net example code that shows how to set complex triggers using the ps5000a.dll? I've read through the API Programmer's Guide sections on: ps5000aSetTriggerChannelConditionsV2 ps5000aSetTriggerChannelDirectionsV2 ps5000aSetTriggerChannelProperties ps5000aSetPulseWidthQu...
by dfergenson
Mon Oct 29, 2018 5:10 am
Forum: Pre-Sales Advice
Topic: 5000D vs 5000B
Replies: 5
Views: 3579

Re: 5000D vs 5000B

I believe that I've just answered my own question. The question was wether the waveform generator in the 5000A, B and/or D could be triggered to output on scope trigger. The answer is yes in all three instruments. The answer is in the PicoScope 6 User's Guide. The table on page 219, column ST shows ...
by dfergenson
Mon Oct 29, 2018 4:58 am
Forum: Pre-Sales Advice
Topic: 5000D vs 5000B
Replies: 5
Views: 3579

Re: 5000D vs 5000B

I noticed the following passage in the 5000D specifications sheet: "Trigger tools allow you to output one or more cycles of a waveform when various conditions are met, such as the scope triggering or a mask limit test failing." I assume that this means that the AWG can be used to produce a trigger o...
by dfergenson
Fri May 13, 2016 7:37 am
Forum: General Software Discussions
Topic: ps5000aGetNoOfProcessedCaptures and ps5000aFlashLed
Replies: 2
Views: 5619

Re: ps5000aGetNoOfProcessedCaptures and ps5000aFlashLed

Andrew, thanks. I've been hung up on allocating the buffers and transferring the acquisitions in bulk. I just can't figure out the syntax. Do you have example code showing rapid block mode in action? Or can you see what's wrong with my code here? status = ps5000aRunBlock(handle, numPreTriggerSamples...
by dfergenson
Thu May 12, 2016 7:24 am
Forum: General Software Discussions
Topic: ps5000aGetNoOfProcessedCaptures and ps5000aFlashLed
Replies: 2
Views: 5619

ps5000aGetNoOfProcessedCaptures and ps5000aFlashLed

I've been having trouble getting calls to two functions in the .dll to work. In the case of ps5000aGetNoOfProcessedCaptures, the .DLL doesn't seem to recognize the call. ps5000aGetNoOfCaptures is recognized. I couldn't tell from the SDK manual if there was a difference between the two. In the case o...
by dfergenson
Fri Mar 11, 2016 8:24 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: Hello Pico in Xojo
Replies: 8
Views: 7063

Re: Hello Pico in Xojo

I'm still able to execute the Xojo code on my Windows10 machine and have a working path forward. I've managed to parameterize the problem a bit more so here's some information in the hopes that it will be useful. I've checked the file sizes and versions vs. those that AndrewA posted and even though ...
by dfergenson
Fri Mar 11, 2016 9:42 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: Hello Pico in Xojo
Replies: 8
Views: 7063

Re: Hello Pico in Xojo

AndrewA,

Thanks for doing that.

I was able to download and execute the example program.

It opens the Scope on one of my machines but not another (whereas before it hadn't opened on either).

I think that I can take it from here.

Thanks again for all the help.
by dfergenson
Tue Mar 08, 2016 10:37 pm
Forum: General Software Discussions
Topic: Data types
Replies: 1
Views: 9538

Re: Data types

AndrewA asked if I would post Xojo equivalent data types for C/C++ as well. I've omitted all other programming environments other than VB.net which is Xojo's closest relative.

Please contact me through the forum if you find any errors or additions and I will update the chart.
by dfergenson
Tue Mar 08, 2016 10:33 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: Hello Pico in Xojo
Replies: 8
Views: 7063

Re: Hello Pico in Xojo

Andrew, Thanks for your thorough reply. The bottom line is that I’m still not able to get HelloPico in Xojo running. I did as you suggested and modified the DRDaq example and was able to get it to run (just like my own bare bones example) but I still got a status of 3 and a handle of 0. But I think ...