MATLAB GAUGES BLOCKSET RELEASE NOTES Guida Utente

Navigare online o scaricare Guida Utente per Software MATLAB GAUGES BLOCKSET RELEASE NOTES. MATLAB GAUGES BLOCKSET RELEASE NOTES User`s guide Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 114
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 0
Modeling
Simulation
Implementation
User’s Guide
Version 1
For Use with Simulink
®
Dials & Gauges
Blockset
Vedere la pagina 0
1 2 3 4 5 6 ... 113 114

Sommario

Pagina 1 - Blockset

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

Pagina 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

Pagina 3 - Contents

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

Pagina 4

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

Pagina 5

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

Pagina 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

Pagina 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

Pagina 8 - Getting Started11

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

Pagina 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

Pagina 10 - 1 Getting Started

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

Pagina 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

Pagina 12

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

Pagina 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

Pagina 14

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

Pagina 15

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

Pagina 16

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

Pagina 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

Pagina 18 - Building a Simple Model

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

Pagina 19 - Building the Model

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

Pagina 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.

Pagina 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

Pagina 22

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

Pagina 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

Pagina 24

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

Pagina 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

Pagina 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

Pagina 27 - Using Instrumentation in

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

Pagina 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

Pagina 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

Pagina 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

Pagina 31 - Creating Styles

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

Pagina 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

Pagina 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

Pagina 35

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

Pagina 36

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

Pagina 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

Pagina 38 - Modifying the Displayed Range

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

Pagina 39 - Changing the Scale

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

Pagina 40

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 46

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

Pagina 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

Pagina 48

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

Pagina 49 - Controls

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

Pagina 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

Pagina 51

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 58

2 Using Instrumentation in a Model2-22

Pagina 59

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

Pagina 60

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 65 - Customizing Linear Gauges

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

Pagina 66 - PointerID to

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

Pagina 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

Pagina 68

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

Pagina 69

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

Pagina 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

Pagina 71

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

Pagina 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

Pagina 73

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

Pagina 74

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

Pagina 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

Pagina 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

Pagina 77 - Parameters dialog box

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

Pagina 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

Pagina 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

Pagina 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

Pagina 81 - In-Block Control

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

Pagina 82 - Border box renders the

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 88

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

Pagina 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

Pagina 90

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

Pagina 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,

Pagina 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

Pagina 93

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

Pagina 94

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

Pagina 95

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

Pagina 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

Pagina 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

Pagina 98 - 5 Library Reference

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 103

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

Pagina 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

Pagina 105 - 5Linear Gauges

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

Pagina 106

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

Pagina 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

Pagina 108

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

Pagina 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

Pagina 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

Pagina 111 - 5Strip Chart

4 Placing ActiveX Controls in a Different Window4-13

Pagina 112

5Library Reference

Pagina 113

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

Pagina 114

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

Commenti su questo manuale

Nessun commento