DIAdem-Hilfe

Command: BlReplace

  • Aktualisiert2024-09-12
  • 2 Minute(n) Lesezeit

Display all  Hide all

Command: BlReplace

Replaces a DAC block with another similar DAC block in the current block diagram.

Call BlReplace(BlName, BlName)

Input Parameters

BlName Specifies the name of a DAC block.
BlName Specifies the name of a DAC block.

Example

The following example copies the input block Input1 and creates the copy Input2. The DACObjRename command assigns the new block name NIDAQ201 to the copy. Then the BlReplace command replaces the input block Source with the new input block NIDAQ201.

VBScriptPython

 

Call BlCopy("Input1")
Call DacObjOpen("Input2")
   Call DACObjRename("Input2","NIDAQ201")
Call DacObjClose(BlActName)
Call BlReplace("Source","NIDAQ201")

Related Topics

Command: BlCopy | Command: BlDel | Command: BlObjNew | Command: BlPinCableInit | Command: BlPinDel | Command: BlPinNew | Command: BlPinSigCountSet | Command: BlPinSigNameGen | Command: DACObjClose | Command: DACObjDestroy | Command: DACObjDlg | Command: DACObjOpen | Command: DACObjPosSet | Command: DACObjRename | Command: DACObjWhere