Search found 5 matches

by gisiu
Thu Jun 16, 2016 2:23 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: ps5000aChangePowerSource cannot function correctly
Replies: 7
Views: 6590

Re: ps5000aChangePowerSource cannot function correctly

Hi Hitesh,

Your response really help me solve my problem. Many thanks for your assistance.

Regards,
Gisiu
by gisiu
Thu Jun 16, 2016 8:35 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: ps5000aChangePowerSource cannot function correctly
Replies: 7
Views: 6590

Re: ps5000aChangePowerSource cannot function correctly

Hi Hitesh,

I try to configure my project to target to "x86" instead of "Any CPU". Then it works! (But I don't know why)

Thank you for your help.

Regards,
Gisiu
by gisiu
Thu Jun 16, 2016 8:17 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: ps5000aChangePowerSource cannot function correctly
Replies: 7
Views: 6590

Re: ps5000aChangePowerSource cannot function correctly

Hi Hitesh, Here is my code. I am targeting any CPU. private void button_openunit_Click(object sender, EventArgs e) { bool pico_enable = true; short _handle = 0; short[] _buffers; uint _timebase = 5; uint sampleCount; short status; Imports.DeviceResolution resolution = Imports.DeviceResolution.PS5000...
by gisiu
Thu Jun 16, 2016 6:37 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: ps5000aChangePowerSource cannot function correctly
Replies: 7
Views: 6590

Re: ps5000aChangePowerSource cannot function correctly

Hi Hitesh, Originally, the outline of my application is as follows: OpenUnit(): return PICO_POWER_SUPPLY_NOT_CONNECTED SetChannel(): return PICO_OK SetDataBuffer(): return PICO_OK GetTimeBase2(): return PICO_OK ChangePowerSource(): return PICO_INVALID_PARAMETER RunBlock(): return PICO_POWER_SUPPLY_N...
by gisiu
Wed Jun 15, 2016 11:00 am
Forum: .Net Languages (C#, VB.Net, .)
Topic: ps5000aChangePowerSource cannot function correctly
Replies: 7
Views: 6590

ps5000aChangePowerSource cannot function correctly

Hi, My oscilloscope is 5244B. I use PS5000A API and my developing language is C#. I run the example PS5000ABlockCapture first. But an error occurs in RunBlock . It returns PICO_POWER_SUPPLY_NOT_CONNECTED . So I add a function ChangePowerSource(handle, PICO_POWER_SUPPLY_NOT_CONNECTED) before the RunB...