MATLAB GAUGES BLOCKSET RELEASE NOTES Betriebsanweisung

Stöbern Sie online oder laden Sie Betriebsanweisung nach Software MATLAB GAUGES BLOCKSET RELEASE NOTES herunter. MATLAB GAUGES BLOCKSET RELEASE NOTES User`s guide Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 114
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Modeling
Simulation
Implementation
User’s Guide
Version 1
For Use with Simulink
®
Dials & Gauges
Blockset
Seitenansicht 0
1 2 3 4 5 6 ... 113 114

Inhaltsverzeichnis

Seite 1 - Blockset

ModelingSimulationImplementationUser’s GuideVersion 1For Use with Simulink®Dials & GaugesBlockset

Seite 2 - How to Contact The MathWorks:

1 Getting Started1-4External Mode SupportThe Dials & Gauges Blockset support for external mode allows you to incorporate dials and gauges into any

Seite 3 - Contents

Angular Gauges5-4The Block Parameters dialog box governs the interaction between Simulink and the ActiveX control embedded in the block. See “Summary

Seite 4

Buttons & Switches5-55Buttons & SwitchesPurpose Toggle between two statesDescription Blocks in the Buttons & Switches library are two-stat

Seite 5

Knobs & Selectors5-65Knobs & SelectorsPurpose Select values in a discrete or continuous set using a mouse-controlled dialDescription The Knobs

Seite 6 - Library Reference

Knobs & Selectors5-7The table below lists the panels of the ActiveX Control Properties dialog box for the Generic Knob block.The Block Parameters

Seite 7 - Getting Started

LEDs5-85LEDsPurpose Display input value using one or more two-state graphical elementsDescription Blocks in the LEDs library use graphical elements to

Seite 8 - Getting Started11

Linear Gauges5-95Linear GaugesPurpose Display input value on a lineDescription Blocks in the Linear Gauges library reflect their input value graphical

Seite 9 - Related Products

Linear Gauges5-10The Block Parameters dialog box governs the interaction between Simulink and the ActiveX control embedded in the block. See “Summary

Seite 10 - 1 Getting Started

Numeric Displays5-115Numeric DisplaysPurpose Display input value using LED digits or numbered wheelsDescription Blocks in the Numeric Displays library

Seite 11 - Real-Time Workshop Support

Numeric Displays5-12The Block Parameters dialog box governs the interaction between Simulink and the ActiveX control embedded in the block. See “Summa

Seite 12

Percent Indicators5-135Percent IndicatorsPurpose Display percentages and ratios, using a linear or circular scaleDescription Blocks in the Percent Ind

Seite 13

Related Products1-5Real-Time Workshop SupportYou can use Real-Time Workshop® 4.0 or later to generate code from models that include Dials & Gauges

Seite 14

Sliders5-145SlidersPurpose Select values using a mouse-controlled knob that slides along a barDescription Blocks in the Sliders library model a knob s

Seite 15

Strip Chart5-155Strip ChartPurpose Display streams of data in real timeDescription The Strip Chart library contains a single block, the Strip Chart bl

Seite 16

Strip Chart5-16The Block Parameters dialog box governs the interaction between Simulink and the ActiveX control embedded in the block. See “Summary of

Seite 17 - Moving and Selecting Blocks

I-1IndexAactive area 1-11ActiveX Control blocksaccessing from MATLAB 1-6accessing from Simulink 1-7accessing in a different model window 4-3accessing

Seite 18 - Building a Simple Model

IndexI-2KKnobs & Selectors libraryreference for 5-6LLEDs libraryreference for 5-8Linear Gauges libraryreference for 5-9Mmodelsadding ActiveX Contr

Seite 19 - Building the Model

1 Getting Started1-6Accessing the Preconfigured BlocksThe Dials & Gauges Blockset contains many preconfigured blocks, via the Global Majic ActiveX

Seite 20

Accessing the Preconfigured Blocks1-7Each icon represents a different library of blocks. Double-click on an icon to access the blocks in the library.

Seite 21 - Working with a Model

1 Getting Started1-82 Open the Global Majic ActiveX Library to display its libraries of blocks.If you click on the name of a library, then the right p

Seite 22

Accessing the Preconfigured Blocks1-9Configuring the Dials & Gauges BlocksetNormally, the installation process automatically registers the ActiveX

Seite 23 - Accessing the Properties

1 Getting Started1-10•Enter dng_register_ocx in the MATLAB Command Window.•See Solution Number 24876 in the Support area of the MathWorks Web site (ht

Seite 24

Moving and Selecting Blocks1-11Moving and Selecting BlocksThe way you move and select blocks from the Dials & Gauges Blockset is significantly dif

Seite 25 - Properties link to display

1 Getting Started1-12Building a Simple ModelThis section illustrates how to build and use a simple system, first using Simulink blocks alone, and then

Seite 26

Building a Simple Model1-13When you simulate this system, the Lower Right block displays the value of the signal at that instant. To change the value

Seite 27 - Using Instrumentation in

How to Contact The MathWorks:www.mathworks.com Webcomp.soft-sys.matlab [email protected] Technical [email protected] Product

Seite 28

1 Getting Started1-146 Draw connection lines from the Generic Knob block to the Gain block, and from the Gain block to the Lower Right block.7 From th

Seite 29 - Connecting Blocks in a Model

Working with a Model1-15Working with a ModelThis section indicates how you can perform common tasks involving the model you built in the section “Buil

Seite 30

1 Getting Started1-16The files with the .ax extension describe the Dials & Gauges Blockset blocks. Note that these files are not text files. They

Seite 31 - Creating Styles

Modifying Properties of Blocks1-17Modifying Properties of BlocksThis section describes how to view and modify properties of a preconfigured Dials &

Seite 32 - Applying Styles

1 Getting Started1-18If you modify any values in this dialog box, then the block is visually updated immediately. However, the changes are not permane

Seite 33 - Understanding ID Properties

Modifying Properties of Blocks1-196 Set the DeltaValue parameter to 5. This prevents the knob block from looking too crowded.The figure shows how the

Seite 35

2Using Instrumentation in a ModelConnecting Blocks in a Model . . . . . . . . . . . . 2-3Modifying ActiveX Control Propertie

Seite 36

2 Using Instrumentation in a Model2-2This chapter describes how to use instrumentation in the Dials & Gauges Blockset and includes these sections:

Seite 37

Connecting Blocks in a Model2-3Connecting Blocks in a ModelBefore you connect a Dials & Gauges Blockset block with other blocks, you should know w

Seite 38 - Modifying the Displayed Range

iContents1Getting StartedWhat Is the Dials & Gauges Blockset? . . . . . . . . . . . . . . . . . . . 1-2Related Products . . . . . . . . . . . .

Seite 39 - Changing the Scale

2 Using Instrumentation in a Model2-4Modifying ActiveX Control PropertiesYou can modify many properties of a preconfigured Dials & Gauges Blockset

Seite 40

Modifying ActiveX Control Properties2-5•The Volume block in the Angular Gauges library uses three adjacent annular regions, each with a different colo

Seite 41 - Modifying Multiple Tick Marks

2 Using Instrumentation in a Model2-61 Click on the up arrow next to the value of the first property in the pair (Fonts in the figure). This value is

Seite 42

Modifying ActiveX Control Properties2-7Once you have located a part of the dialog box where you can apply a style you previously created, simply set t

Seite 43

2 Using Instrumentation in a Model2-8Caution If you decrease the value of the property named by the plural noun (for example, the Fonts property), th

Seite 44

Modifying ActiveX Control Properties2-9of the block, as well as the part of the ActiveX Control Properties dialog box panel that defines the text. Som

Seite 45 - .mdl file

2 Using Instrumentation in a Model2-10Changing Fonts and Other Characteristics of Text Captions. To change the font of an existing text caption, you m

Seite 46

Modifying ActiveX Control Properties2-11Description of Mouse-Response ModesThe table below describes how a control’s value responds to mouse events un

Seite 47 - Import button, or share the

2 Using Instrumentation in a Model2-12The table below indicates which categories of blocks and which dialog box panels have a MouseControl property.In

Seite 48

Modifying ActiveX Control Properties2-13Changing the ScaleClick on the Scales tab to display the scales properties page. This figure shows the default

Seite 49 - Controls

ii Contents2Using Instrumentation in a ModelConnecting Blocks in a Model . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3Modifying ActiveX Co

Seite 50

2 Using Instrumentation in a Model2-14Displaying Labels Next to Tick MarksClick on the Ticks tab to display the tick mark properties page. This figure

Seite 51

Modifying ActiveX Control Properties2-15The Value property indicates the current pointer value. Set the initial value to 0, halfway between the maximu

Seite 52

2 Using Instrumentation in a Model2-16The Ticks and TickID properties, in the box labeled 1, are defined as follows:•The Ticks property specifies how

Seite 53 - NeedleID to that ID and then

Modifying ActiveX Control Properties2-17The Position/Size properties, in the box labeled 2, are defined as follows:•The Inner property defines the edg

Seite 54

2 Using Instrumentation in a Model2-18The Position/Size properties, in the box labeled 2, are defined as follows:•The Inner position is 1.90 and the O

Seite 55 - Changing Output Values

Saving and Reusing a Customized Control2-19Saving and Reusing a Customized ControlIf you have modified settings in a block’s ActiveX Control Propertie

Seite 56

2 Using Instrumentation in a Model2-204 Enter a description in the text area and click on OK.5 Select the directory in which to store the modified con

Seite 57 - Task Description

Saving and Reusing a Customized Control2-21The figure below shows the dialog box with fields filled in. The customized control is stored in the Linear

Seite 58

2 Using Instrumentation in a Model2-22

Seite 59

3Categories of ActiveX ControlsAngular Gauges . . . . . . . . . . . . . . . . . . 3-3Buttons & Switches .

Seite 60

iiiNumeric Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19Customizing Numeric Displays . . . . . . . . . . . .

Seite 61 - , SelectionOffsetY, and

3 Categories of ActiveX Controls3-2This chapter discusses various categories of instrumentation that you can use in your model. Each of the sections l

Seite 62 - Customizing LEDs

Angular Gauges3-3Angular GaugesThe Angular Gauges library contains controls that reflect their input value graphically along an arc of a circle. Block

Seite 63 - MaxDecay check box on the

3 Categories of ActiveX Controls3-4Combining Multiple Needles in One DisplayIf you want to display multiple needles on a single block, then the custom

Seite 64

Angular Gauges3-5input signal controls only one needle’s value. Unless you access the control directly as an ActiveX object, the remaining needles hav

Seite 65 - Customizing Linear Gauges

3 Categories of ActiveX Controls3-6Buttons & SwitchesThe Buttons & Switches library contains two-state controls that change their state when y

Seite 66 - PointerID to

Buttons & Switches3-7Changing Output ValuesBlocks in this library output the values -1and 0. To convert these output values to conventional Simuli

Seite 67 - property to control the

3 Categories of ActiveX Controls3-8Knobs & SelectorsThe Knobs & Selectors library contains two dial blocks that you can control using the mous

Seite 68

Knobs & Selectors3-9Customizing the Generic Knob BlockThe table below lists some common customizations involving the ActiveX Control Properties di

Seite 69

3 Categories of ActiveX Controls3-10Customizing the Frequency Selector BlockThe table below lists some simple customizations involving the ActiveX Con

Seite 70

Knobs & Selectors3-11Creating a New Set of SelectionsIf you want to vary the selections on the Frequency Selector block, then it might be easier t

Seite 71

iv ContentsPlacing ActiveX Controls in a Figure Window . . . . . . . . . . 4-10Saving and Reopening the Model . . . . . . . . . . . . . . . . . .

Seite 72 - Customizing Sliders

3 Categories of ActiveX Controls3-121 Copy the Frequency Selector block from the library into a new model.2 From the model window, open the block’s Ac

Seite 73

Knobs & Selectors3-139 Change the color of the currently chosen value to red by setting HighlightColor to red.Manually Adjusting the SelectionsIt

Seite 74

3 Categories of ActiveX Controls3-14LEDsThe LEDs library contains controls that use graphical elements to imitate light-emitting diodes (LEDs). Each b

Seite 75

LEDs3-15Display a binary representation of the (rounded) inputSet the Mode property on the LEDs/General panel to Bitwise. The first LED corresponds to

Seite 76 - Block Parameters dialog box

3 Categories of ActiveX Controls3-16Linear GaugesThe Linear Gauges library contains controls that reflect their input value graphically along a linear

Seite 77 - Parameters dialog box

Linear Gauges3-17Customizing Linear GaugesThe table below lists some common customizations involving the ActiveX Control Properties dialog box that ar

Seite 78 - Input Property

3 Categories of ActiveX Controls3-18Combining Multiple Pointers in One DisplayIf you want to display multiple pointers on a single block, then the cus

Seite 79 - Event on Which to Output

Numeric Displays3-19Numeric DisplaysThe Numeric Displays library contains controls that display the numerical value of their input signal. The Generic

Seite 80 - Update Command

3 Categories of ActiveX Controls3-20Customizing the Odometer BlockThe table below lists some common ways to customize the Odometer block, using the Ge

Seite 81 - In-Block Control

Percent Indicators3-21Percent IndicatorsThe Percent Indicators library contains controls that are designed to display percentages and ratios. The Gene

Seite 82 - Border box renders the

1Getting StartedWhat Is the Dials & Gauges Blockset? . . . . . . . . 1-2Related Products . . . . . . . . . .

Seite 83 - Handlers

3 Categories of ActiveX Controls3-22Combining Multiple Regions in One DisplayIf you want to display multiple regions on a single block, then the custo

Seite 84 - Placing ActiveX Controls

Percent Indicators3-23input signal controls only one region. Unless you access the control directly as an ActiveX object, the remaining portions have

Seite 85

3 Categories of ActiveX Controls3-24SlidersThe Sliders library contains controls that model a knob sliding along a bar and that output the numerical v

Seite 86 - Position

Sliders3-25Change the size or position of the barOn the Bar panel, use the BarInner and BarOuter properties to define the width and position of the ba

Seite 87 - Customizing the Gauges

3 Categories of ActiveX Controls3-26Move the knob label to a fixed positionOn the Digital panel, uncheck the Attach check box. Then use X Position and

Seite 88

Strip Chart3-27Strip ChartThe interface to the Strip Chart block is different from the interface to the other preconfigured blocks in the Dials &

Seite 89

3 Categories of ActiveX Controls3-28Using Your Own ActiveX ControlTo use your own ActiveX control in a Simulink model, you must associate it with the

Seite 90

Using Your Own ActiveX Control3-29Note Double-clicking on the border of a preconfigured block (supplied with the blockset) displays its ActiveX Contr

Seite 91

3 Categories of ActiveX Controls3-30•Program ID — the name of the ActiveX Control block•Connections — whether the ActiveX Control block has an inport,

Seite 92 - Velocity

Using Your Own ActiveX Control3-31block that has an input connection stores the block’s current value in a property, as listed in the table below.Outp

Seite 93

1 Getting Started1-2Getting Started11What Is the Dials & Gauges Blockset?The Dials & Gauges Blockset is a collection of blocks that provides g

Seite 94

3 Categories of ActiveX Controls3-32events. The table below lists the events associated with the preconfigured blocks that use this parameter field.In

Seite 95

Using Your Own ActiveX Control3-33In-Block ControlThe In-block control check box determines whether the ActiveX Control block displays an ActiveX Cont

Seite 96

3 Categories of ActiveX Controls3-34Note Be careful when unchecking this box because the only way to move a block is to drag it with the border. Unch

Seite 97

Using Your Own ActiveX Control3-35Additionally, you can choose an event on your control through which you want to open the property editor. For exampl

Seite 98 - 5 Library Reference

4Placing ActiveX Controls in a Different WindowPlacing ActiveX Controls in a Different Model . . . . 4-3Creating a Model Window Containing

Seite 99 - 5Angular Gauges

4-2This chapter describes how to place Dials & Gauges Blockset blocks in their own window. By separating the controls from the computational block

Seite 100 - Angular Gauges

4 Placing ActiveX Controls in a Different Window4-3Placing ActiveX Controls in a Different ModelThis sample model modifies the Simulink bounce demo by

Seite 101 - 5Buttons & Switches

Placing ActiveX Controls in a Different Model4-4•The Amp Meter block from the Angular Gauges library. Change the block’s name to Velocity.Customizing

Seite 102 - 5Knobs & Selectors

4 Placing ActiveX Controls in a Different Window4-57 Open the ActiveX Control Properties dialog box for the Velocity (Amp Meter) block.8 From the Capt

Seite 103

Placing ActiveX Controls in a Different Model4-6Associating the Main Model with the GaugesIn the main model window, insert two ActiveX Control blocks

Seite 104 - Panel Purpose

Related Products1-3Related ProductsThe MathWorks provides several products that are especially relevant to the kinds of tasks you can perform with the

Seite 105 - 5Linear Gauges

4 Placing ActiveX Controls in a Different Window4-7For displaying the velocity For displaying the position

Seite 106

Placing ActiveX Controls in a Subsystem4-8Placing ActiveX Controls in a SubsystemThis sample model builds on the one described in “Placing ActiveX Con

Seite 107 - 5Numeric Displays

4 Placing ActiveX Controls in a Different Window4-92 Double-click on the subsystem to open it.3 Copy a Generic Linear Gauge block from the Linear Gaug

Seite 108

Placing ActiveX Controls in a Figure Window4-10Placing ActiveX Controls in a Figure WindowIn this example, a simple model displays the simulation time

Seite 109 - 5Percent Indicators

4 Placing ActiveX Controls in a Different Window4-11connected to the ActiveX Control block (the code appears below). With the fields filled in, the Bl

Seite 110 - 5Sliders

Placing ActiveX Controls in a Figure Window4-12Note In case you accidentally close the figure window before you are finished exploring the model, you

Seite 111 - 5Strip Chart

4 Placing ActiveX Controls in a Different Window4-13

Seite 112

5Library Reference

Seite 113

5 Library Reference5-2This chapter contains detailed descriptions of the categories of blocks in the Dials & Gauges Blockset. Each category corres

Seite 114

Angular Gauges5-35Angular GaugesPurpose Display input value on an arcDescription Blocks in the Angular Gauges library reflect their input value graphi

Kommentare zu diesen Handbüchern

Keine Kommentare