T7 triggered stream - leading or trailing edge | LabJack
 
LabJack is closed July 3 to July 5 for the Independence Day holiday.

T7 triggered stream - leading or trailing edge

5 posts / 0 new
Last post
SABR
bob.lown's picture
T7 triggered stream - leading or trailing edge

Hi,

I have set up a triggered stream read based on the sample code (C++) and everthing is working well.  My application requires it trigger on the rising edge only, not both.  I cannot find in the documentation what index to use.

    // 5 enables a rising or falling edge to trigger stream
    WriteNameOrDie(handle, "DIO0_EF_INDEX", 5);

Thanks

 

LabJack Support
LabJack Support's picture
Pulse width in actually

Pulse width in actually triggers only on the rising edge:

https://labjack.com/support/datasheets/t-series/digital-io/extended-features/pulse-width

To test this out, you can configure triggered stream with STREAM_TRIGGER_INDEX set to 2000 (for FIO0) and DIO0_EF_INDEX set to 5 for pulse width in. You can then wire FIO2 (or similar) to FIO0. Set FIO2 high. Then run triggered stream. Set FIO2 low and notice that stream does not begin. Set FIO2 high and stream begins.

I did this with stream_triggered.c and Kipling's Register Matrix. (Kipling used Ethernet, stream_triggered.c used USB.)

SABR
bob.lown's picture
Thanks for the fast response.

Thanks for the fast response.  The comment in the sample code had me confused.  I'll run the test you suggested.  What if I wanted the falling edge only?

LabJack Support
LabJack Support's picture
Conditional Reset allows you

Conditional Reset allows you to select rising or falling via DIO#_EF_CONFIG_A:

https://labjack.com/support/datasheets/t-series/digital-io/extended-features/conditional-reset

There's also more DIO available:

https://labjack.com/support/datasheets/t-series/digital-io/extended-feat...

SABR
bob.lown's picture
thanks for the info.  and

thanks for the info.  and help