MATLAB GAUGES BLOCKSET RELEASE NOTES Uživatelská příručka

Procházejte online nebo si stáhněte Uživatelská příručka pro Software MATLAB GAUGES BLOCKSET RELEASE NOTES. MATLAB GAUGES BLOCKSET RELEASE NOTES User`s guide Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 114
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 0
Modeling
Simulation
Implementation
User’s Guide
Version 1
For Use with Simulink
®
Dials & Gauges
Blockset
Zobrazit stránku 0
1 2 3 4 5 6 ... 113 114

Shrnutí obsahu

Strany 1 - Blockset

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

Strany 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

Strany 3 - Contents

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

Strany 4

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

Strany 5

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

Strany 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

Strany 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

Strany 8 - Getting Started11

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

Strany 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

Strany 10 - 1 Getting Started

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

Strany 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

Strany 12

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

Strany 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

Strany 14

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

Strany 15

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

Strany 16

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

Strany 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

Strany 18 - Building a Simple Model

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

Strany 19 - Building the Model

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

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

Strany 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

Strany 22

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

Strany 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

Strany 24

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

Strany 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

Strany 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

Strany 27 - Using Instrumentation in

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

Strany 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

Strany 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

Strany 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

Strany 31 - Creating Styles

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

Strany 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

Strany 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

Strany 35

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

Strany 36

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

Strany 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

Strany 38 - Modifying the Displayed Range

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

Strany 39 - Changing the Scale

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

Strany 40

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 46

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

Strany 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

Strany 48

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

Strany 49 - Controls

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

Strany 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

Strany 51

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 58

2 Using Instrumentation in a Model2-22

Strany 59

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

Strany 60

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 65 - Customizing Linear Gauges

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

Strany 66 - PointerID to

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

Strany 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

Strany 68

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

Strany 69

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

Strany 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

Strany 71

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

Strany 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

Strany 73

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

Strany 74

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

Strany 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

Strany 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

Strany 77 - Parameters dialog box

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

Strany 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

Strany 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

Strany 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

Strany 81 - In-Block Control

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

Strany 82 - Border box renders the

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 88

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

Strany 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

Strany 90

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

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

Strany 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

Strany 93

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

Strany 94

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

Strany 95

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

Strany 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

Strany 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

Strany 98 - 5 Library Reference

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 103

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

Strany 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

Strany 105 - 5Linear Gauges

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

Strany 106

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

Strany 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

Strany 108

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

Strany 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

Strany 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

Strany 111 - 5Strip Chart

4 Placing ActiveX Controls in a Different Window4-13

Strany 112

5Library Reference

Strany 113

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

Strany 114

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

Komentáře k této Příručce

Žádné komentáře