DefineLogicGateDialog

Opens a dialog box to define a logic gate.

The argument is a real array of length 3 and defines the initial settings for the box controls as follows:

Index Description
0 Number of inputs
1 Propagation delay
2 Gate type:
0 AND
1 NAND
2 OR
3 NOR

Arguments

Number Type Compulsory Default Description

1

real array

Yes

initial settings

Returns

Return type: real array

The function returns a real array of length 3 with the same format as the argument described above. If the user selects Cancel the function returns an empty vector.