The pointers for the SetBuffer are set with the LabVIEW DSNewPClr, and the data are retrieved with the MoveBlock function.
The IsReady library is called in a while loop stopping when, of course, the Pico is ready. I also added a stop button for this loop, but if we use it the GetValues gives error for "no samples available".
Can I solve this problem by putting a ps400oStop between the stopped loop and the GetValues?
My second question is about the sampling mode I am using. I found in the manual that also the streaming mode can be used with segmenting. Can I easily modify my software from RapidBlock to Streaming? Which part must be changed?
Thanks!
MikeNuke
Politecnico di Milano
Department of Energy, Nuclear Engineering Division
Hi!
Does anybody know if the segmented streaming is actually possible?
And for what concerns ps4000Stop is it right the way I want to use it for the RapidBlock mode?
Thanks!
Mike
MikeNuke
Politecnico di Milano
Department of Energy, Nuclear Engineering Division
If you press the Stop Button, or use ps4000Stop, before the rapid block collection has been completed you will need to read out the data a segment at a time, to get any valid blocks that contain data.
Segmenting the scopes memory for streaming is not required as the data is transmitted directly to the driver. The ps4000MemorySegments command will be accepted but serves no purpose, so don't use it when streaming.
edit: This is possible with newer devices but not the older 4224/4424/4262
Hi Martyn,
Thank you for the reply.
I changed my software, but I have a problem with the ps4000RunStreaming call library; I used the same contained in the SDK, but LabVIEW (2010) gives me a 1097 error.
I am not sure of what error could be, I am attaching the SUBVI I bilt with the call library inside.
Thank you!
I noticed that there are a ps4000RunStreaming and a ps4000RunStreaming-2.
I tried both functions with both dll versions (SDK and attached), but I am always getting the same error.
I don't know if it is important, but I am using LabVIEW 2010 32bit with Windows 7 professional 64bit.
MikeNuke
Politecnico di Milano
Department of Energy, Nuclear Engineering Division
Hi!
I copied each single call library needed in my program from the example VI and now it is working with both SDK dll and the one attached here. I will check again to understand why the version I copied in the subVI wasn't working.
Thank you for the help!
Mike
MikeNuke
Politecnico di Milano
Department of Energy, Nuclear Engineering Division