Detect Rise Nonnegative

Detect rising edge when signal value increases to nonnegative value, and its previous value was strictly negative

• Library:
• Simulink / Logic and Bit Operations

• Description

The Detect Rise Nonnegative block determining if the input is greater than or equal to zero, and its previous value was less than zero.

• The output is true (equal to 1) when the input signal is greater than or equal to zero, and its previous value was less than zero.

• The output is false (equal to 0) when the input signal is less than zero, or if the input signal is nonnegative, its previous value was also nonnegative.

This block supports only discrete sample times.

Ports

Input

expand all

Input signal, specified as a scalar, vector, or matrix.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point

Output

expand all

Output signal that indicates a rising edge whenever the signal value increases to a nonnegative value, and its previous value was strictly negative. The output can be a scalar, vector, or matrix.

• The output is true (equal to 1) when the input signal is greater than or equal to zero, and its previous value was less than zero.

• The output is false (equal to 0) when the input signal is less than zero, or if the input signal is nonnegative, its previous value was also nonnegative.

Data Types: uint8 | Boolean

Parameters

expand all

Set the initial condition of the Boolean expression U/z >= 0.

Programmatic Use

 Block Parameter: vinit Type: character vector Values: scalar | vector | matrix Default: '0'

Specify whether the block performs sample- or frame-based processing:

• Columns as channels (frame based) — Treat each column of the input as a separate channel (frame-based processing).

Note

Frame-based processing requires a DSP System Toolbox™ license.

• Elements as channels (sample based) — Treat each element of the input as a separate channel (sample-based processing).

Use Input processing to specify whether the block performs sample- or frame-based processing. For more information about these two processing modes, see Sample- and Frame-Based Concepts (DSP System Toolbox).

Programmatic Use

 Block Parameter: InputProcessing Type: character vector Values: 'Columns as channels (frame based)' | 'Elements as channels (sample based)' Default: 'Elements as channels (sample based)'

Specify the output data type as boolean or uint8.

Programmatic Use

 Block Parameter: OutDataTypeStr Type: character vector Values: 'boolean' | 'uint8' Default: 'boolean'

Block Characteristics

 Data Types Boolean | double | fixed point | integer | single Direct Feedthrough yes Multidimensional Signals yes Variable-Size Signals yes Zero-Crossing Detection no
{"ft_lang_label":"__label__en","ft_lang_prob":0.8486761,"math_prob":0.95443064,"size":986,"snap":"2022-05-2022-21","text_gpt3_token_len":207,"char_repetition_ratio":0.14460285,"word_repetition_ratio":0.16447368,"special_character_ratio":0.18255578,"punctuation_ratio":0.062111802,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9709388,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-20T08:49:10Z\",\"WARC-Record-ID\":\"<urn:uuid:17f9b5a4-ba81-4279-b24f-73fce54eb65b>\",\"Content-Length\":\"94595\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1f4d0d38-4883-455d-bb88-de8b8f0e9378>\",\"WARC-Concurrent-To\":\"<urn:uuid:2877c808-0115-456e-a9d2-5cbeaf3f69da>\",\"WARC-IP-Address\":\"104.68.243.15\",\"WARC-Target-URI\":\"https://www.mathworks.com/help/simulink/slref/detectrisenonnegative.html\",\"WARC-Payload-Digest\":\"sha1:V2ZUODTPW2IAM74JOOXGOB24O32KUZXA\",\"WARC-Block-Digest\":\"sha1:VQLD6UER4C72R6K44UUZNSIUF5BOHXQF\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320301730.31_warc_CC-MAIN-20220120065949-20220120095949-00314.warc.gz\"}"}