Test and Measurement Forum

streaming mode return invalid status

Post your MATLAB discussions here

streaming mode return invalid status

Postby stu_J » Fri Apr 01, 2016 1:29 pm

Hi,

Can anobody help me to figure out this problem?

I'm running the example code 'PS3000a_IC_Generic_Driver_2buffers_Streaming_SimpleTrig' in 64bit matlab. But somehow I got stuck in the power check loop when calling 'ps3000aRunStreaming', that it keeps returning 0xD 'PICO_INVALID_PARAMETE' status.

Many thanks!
-J
stu_J
Newbie
 
Posts: 0
Joined: Wed Mar 30, 2016 3:10 pm

Re: streaming mode return invalid status

Postby Bilal » Mon Apr 04, 2016 2:37 pm

Please check you have entered all the parameters to the function. Ensure all variables have been included and each have been assigned a value.

If you continue to experience problems, feel free to copy in your code or attach your .m file for us to take a look at it.
Bilal Patel
Technical Support Engineer
Pico Technology
Bilal
PICO STAFF
PICO STAFF
 
Posts: 33
Joined: Mon Oct 05, 2015 12:19 pm

Re: streaming mode return invalid status

Postby ludwig.prade » Mon Apr 11, 2016 3:04 pm

Hello,
we could solve the original issue by changing the downsample mode to aggregate.

However, a new problem arises, which is that during the:

"while(hasAutoStopped == data.FALSE && get_str_latest_values_status == PicoStatus.PICO_OK)" loop,

the function "GetStreamingLatestValues" is called and returns "13" as the status. Checking the manual, this is not a valid status reply for this function. Also, the syntax for calling this function in the example does not correspond to that given in the manual.

in addition, the trigger function is never fulfilled, therefore we are not able to acquire any data in streaming mode (no problems in block mode).

Help would be highly appreciated.
Kindly,
Ludwig Prade
ludwig.prade
Newbie
 
Posts: 0
Joined: Mon Apr 11, 2016 2:58 pm

Re: streaming mode return invalid status

Postby Bilal » Wed Apr 13, 2016 5:03 pm

Hello Ludwig,

Please try the newer examples found here. These are the updated examples which should work without any problem.
Bilal Patel
Technical Support Engineer
Pico Technology
Bilal
PICO STAFF
PICO STAFF
 
Posts: 33
Joined: Mon Oct 05, 2015 12:19 pm


Return to MATLAB

Who is online

Users browsing this forum: No registered users and 2 guests