Main Content

Flux Sensor

R2026b

Ideal flux sensor

  • Flux Sensor block

Libraries:
Simscape / Foundation Library / Magnetic / Magnetic Sensors

Description

The Flux Sensor block represents an ideal flux sensor, that is, a device that converts flux measured in a magnetic branch into a physical signal proportional to the flux.

Use the N and S ports to connect the sensor in series with the other blocks in the branch where you want to measure the flux. The physical signal port PHI outputs the value of the flux, which is positive when the flux flows from the N to the S port. Use a PS-Simulink Converter block to connect port PHI to Simulink® blocks, such as Scope or Display.

Ports

Output

expand all

Physical signal output port for the flux measurement.

The port name is not visible in the block icon, but you can see this name in the underlying source file by clicking the Source code link in the Description tab of the block dialog box.

Programmatic Use

Port: PHI

Conserving

expand all

Magnetic conserving port associated with the sensor north terminal.

Programmatic Use

Port: N

Magnetic conserving port associated with the sensor south terminal.

Programmatic Use

Port: S

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"fl_lib/Magnetic/Magnetic Sensors/Flux Sensor"

Example: add_block("fl_lib/Magnetic/Magnetic Sensors/Flux Sensor","myModel/myBlock",MakeNameUnique="on")

For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2010a