Asynchronous calls in block mode - Labview

Post your LabVIEW discussions here
Post Reply
carlosdmpereira
Newbie
Posts: 0
Joined: Mon Jun 30, 2014 1:46 pm

Asynchronous calls in block mode - Labview

Post by carlosdmpereira »

Hello,

I am having a problem using the Asynchronous calls in block mode.

When I try to change the function ps5000aGetValues to ps5000GetValuesAsync, labview crashes on running (attached to this email I send you a picture of the error)

Can anyone help me?

Cheers,
Carlos
Attachments
Labview Async function error.JPG

Hitesh

Re: Asynchronous calls in block mode - Labview

Post by Hitesh »

Hi Carlos,

LabVIEW is unable to handle C-style callback functions which probably why there is a crash.

Is it a PicoScope 5444B you are using, and have you selected the ps5000aGetValuesAsync function?

What is the reason for wishing to call the ps5000aGetValuesAsync function?

Regards,

Eva zhou
Newbie
Posts: 0
Joined: Mon Jul 21, 2014 8:29 am

Re: Asynchronous calls in block mode - Labview

Post by Eva zhou »

Hi Hitesh,

In the programmer guide of ps5000Apg.en, when refer to ps5000aGetValues, it says, it is used to get the stored data from the "drive" after data collection has stopped. when refer to ps5000aGetValuesAsync, it says, it used to get the stored data from the "scope" after data collection has stoped. what is the difference between "from the driver" and "from the scope" ? I would like to read data from the scope buffer directly at the specified index and specified noOfsamples which is not the same as the sum of pretrigger and posttrigger.

Many Thanks
Eva

Hitesh

Re: Asynchronous calls in block mode - Labview

Post by Hitesh »

Hi Eva,

It looks as though there might be an error in the documentation.

The ps5000aGetValues function retrieves data from the oscilloscope while the ps5000aGetValuesAsync function retrieves data from the driver.

I would suggest using the ps5000aGetValues function as the ps5000aGetValuesAsync function requires the use of a callback function (which would require an update of the ps5000aWrap.dll).

The ps5000aGetValuesAsync function can be used for block data retrieval post-capture although it is really used to retrieve streaming data from the driver after data collection has stopped, returning only the pre- and post-trigger samples.

Regards,

Post Reply