Search found 14 matches

by traegeaf
Wed Feb 04, 2009 12:33 am
Forum: VB and VBA (Excel, Access)
Topic: Questions about Oversampling and MaxSamples 2205
Replies: 13
Views: 17460

After testing it tonight. It works as I thought it should.

Thanks again for all the help.
by traegeaf
Fri Jan 30, 2009 6:48 pm
Forum: VB and VBA (Excel, Access)
Topic: Questions about Oversampling and MaxSamples 2205
Replies: 13
Views: 17460

I belive the picoscope 6 software uses fast streaming mode, and uses a oversampling in the software to provide the added resolution.. The oversampling is pretty easy to do. You take how ever many samples more than required, run them through a filter, which will cause linearization between points pro...
by traegeaf
Mon Jan 26, 2009 5:20 pm
Forum: VB and VBA (Excel, Access)
Topic: Questions about Oversampling and MaxSamples 2205
Replies: 13
Views: 17460

So, if I'm understanding this right. I should be able to do something like this. no_of_samples = 2000 oversample = 4 ps2000_handle = ps2000_open_unit() Call ps2000_set_ets(ps2000_handle, 0, 0, 0) Call ps2000_set_channel(ps2000_handle, 0, 1, 1, 5) Call ps2000_set_channel(ps2000_handle, 1, 0, 0, 4) Ca...
by traegeaf
Thu Jan 15, 2009 5:15 pm
Forum: VB and VBA (Excel, Access)
Topic: Questions about Oversampling and MaxSamples 2205
Replies: 13
Views: 17460

No, right now I'm strickly in the get_timebase(...) function. If I pass it no_of_samples as 1, just to see what it returns as max_samples. It might return something like 896. If I then take that number and I re-run get timebase with no_of_samples = 896 it returns as out of range. If i then divide th...
by traegeaf
Thu Jan 15, 2009 12:24 am
Forum: VB and VBA (Excel, Access)
Topic: Questions about Oversampling and MaxSamples 2205
Replies: 13
Views: 17460

Questions about Oversampling and MaxSamples 2205

While attempting to make use of oversamping I've become quite confused about the maximum number of samples. while using ps2000_get_timebase(...) with a timebase of 9, and an oversampling rate of 2. I get a maxsamples value just under 4000. Now if I try to set the number of samples to the value of ma...
by traegeaf
Fri Jan 09, 2009 5:53 pm
Forum: VB and VBA (Excel, Access)
Topic: 2205 Function Generator via VBA excel
Replies: 4
Views: 7467

Thats what I was trying to get at. Thanks for the responce. For future builds of the dll file, I fell it would be nice to have the function generator dll functions be able to be called from vba. By allowing the numerical value of the wave type and sweep type to be used in the function call. This wou...
by traegeaf
Tue Dec 16, 2008 5:18 pm
Forum: VB and VBA (Excel, Access)
Topic: 2205 Function Generator via VBA excel
Replies: 4
Views: 7467

With a little more work, I converted my application into a DLL and called it from VBA with good results.

I'm assuming the driver only listens to one thread/application once it is opened, is this correct?

-Adam
by traegeaf
Mon Dec 15, 2008 7:39 pm
Forum: VB and VBA (Excel, Access)
Topic: setting trigger causes crash 2205 VBA
Replies: 7
Views: 10135

Updating the driver and dll file appears to have fixed my issue.

Thanks for you help.
-Adam
by traegeaf
Mon Dec 15, 2008 5:00 pm
Forum: VB and VBA (Excel, Access)
Topic: setting trigger causes crash 2205 VBA
Replies: 7
Views: 10135

This could be an issue. I was using 2.0.5.5 from the r1.0 sdk. and now I see that it has been outdated for a while.


I will try the new sdk release and get back to you.
by traegeaf
Mon Dec 15, 2008 12:51 am
Forum: VB and VBA (Excel, Access)
Topic: 2205 Function Generator via VBA excel
Replies: 4
Views: 7467

I did want to say that I just tryed passing the integer value of the wave type, but that caused a crash. Am I right to assume the DLL requires the enumeration? To get around this I wrote a chunk of code as a C++ app. I would like to use the shell command to open this app and pass it the handle and a...
by traegeaf
Mon Dec 15, 2008 12:40 am
Forum: VB and VBA (Excel, Access)
Topic: setting trigger causes crash 2205 VBA
Replies: 7
Views: 10135

I have a 2205. And i did use the stop function. I have included an example code which always crashes on mine. Debugging it shows that it will crash on the second set_trigger. Sub CauseCrash() ps2000_handle = ps2000_open_unit() Call ps2000_set_ets(ps2000_handle, 0, 0, 0) Call ps2000_set_channel(ps200...
by traegeaf
Wed Dec 03, 2008 10:07 pm
Forum: VB and VBA (Excel, Access)
Topic: 2205 Function Generator via VBA excel
Replies: 4
Views: 7467

2205 Function Generator via VBA excel

Is it possible to use output the function generator via excel.

I'm having trouble attempting to do this since the PS2000_WAVE_TYPE and PS2000_SWEEP_TYPE are not usable in vba to my knowledge.


Thanks
by traegeaf
Thu Nov 20, 2008 10:11 pm
Forum: VB and VBA (Excel, Access)
Topic: setting trigger causes crash 2205 VBA
Replies: 7
Views: 10135

Yes, I have called the close function.

The device is reopened with out any trouble, and I can set up the channels on the second runthrough, just not the trigger.
by traegeaf
Thu Nov 13, 2008 1:10 am
Forum: VB and VBA (Excel, Access)
Topic: setting trigger causes crash 2205 VBA
Replies: 7
Views: 10135

setting trigger causes crash 2205 VBA

I have developed a macro for collecting data and entering the data into columns and rows. This is based heavily upon the sample code. The first run of the device works flawlessly, I can open the device set up all the parameters and then collect my data and close the device. If I attempt to run the c...