BM_STREAM and trigger

Post any questions you may have about our current range of USB data loggers
Post Reply
fred
Newbie
Posts: 0
Joined: Mon Nov 20, 2017 2:45 pm

BM_STREAM and trigger

Post by fred »

Is it possible to use a trigger in combination with BM_STREAM ?
I tried it an pl1000Ready returns immediately ready = true

It works with BM_SINGLE, so a workaround would be to use first BM_SINGLE and wait for the trigger and then continue with BM_STREAM

Hitesh

Re: BM_STREAM and trigger

Post by Hitesh »

Hi fred,

What trigger settings are you using?

It might be useful to see your code to see how the API calls are made.

Thanks,

fred
Newbie
Posts: 0
Joined: Mon Nov 20, 2017 2:45 pm

Re: BM_STREAM and trigger

Post by fred »

Hallo,

Take pl1000Con.c from the sdk examples.

In function collect_block_triggered just replace BM_SINGLE by BM_STREAM.

With BM_SINGLE, pl1000Ready keeps return false until voltage > 1.
With BM_STREAM, it returns after some loops true.

Hitesh

Re: BM_STREAM and trigger

Post by Hitesh »

Hi fred,

In streaming mode, the data will begin to collect data immediately which is why the call to pl1000Ready() will indicate that data is available after a short while.

You will need to monitor the triggerIndex parameter from the call to pl1000GetValues() as you collect data. When the value is not 0xFFFFFFFF, this will indicate that there is a valid trigger index.

Hope this helps,

fred
Newbie
Posts: 0
Joined: Mon Nov 20, 2017 2:45 pm

Re: BM_STREAM and trigger

Post by fred »

Indeed, it works.

It would be a good idea to add a collect_streaming_triggered function in the SDK example

Thanks for the help

Hitesh

Re: BM_STREAM and trigger

Post by Hitesh »

Hi Fred,

Good to hear it is working.

I have added the request to our list of SDK tasks :)

Regards,

Post Reply