MATLAB GAUGES BLOCKSET RELEASE NOTES Podręcznik Użytkownika

Przeglądaj online lub pobierz Podręcznik Użytkownika dla Oprogramowanie MATLAB GAUGES BLOCKSET RELEASE NOTES. MATLAB GAUGES BLOCKSET RELEASE NOTES User`s guide Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 114
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
Modeling
Simulation
Implementation
User’s Guide
Version 1
For Use with Simulink
®
Dials & Gauges
Blockset
Przeglądanie stron 0
1 2 3 4 5 6 ... 113 114

Podsumowanie treści

Strona 1 - Blockset

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

Strona 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

Strona 3 - Contents

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

Strona 4

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

Strona 5

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

Strona 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

Strona 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

Strona 8 - Getting Started11

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

Strona 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

Strona 10 - 1 Getting Started

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

Strona 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

Strona 12

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

Strona 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

Strona 14

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

Strona 15

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

Strona 16

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

Strona 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

Strona 18 - Building a Simple Model

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

Strona 19 - Building the Model

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

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

Strona 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

Strona 22

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

Strona 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

Strona 24

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

Strona 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

Strona 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

Strona 27 - Using Instrumentation in

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

Strona 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

Strona 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

Strona 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

Strona 31 - Creating Styles

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

Strona 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

Strona 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

Strona 35

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

Strona 36

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

Strona 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

Strona 38 - Modifying the Displayed Range

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

Strona 39 - Changing the Scale

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

Strona 40

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 46

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

Strona 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

Strona 48

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

Strona 49 - Controls

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

Strona 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

Strona 51

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 58

2 Using Instrumentation in a Model2-22

Strona 59

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

Strona 60

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 65 - Customizing Linear Gauges

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

Strona 66 - PointerID to

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

Strona 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

Strona 68

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

Strona 69

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

Strona 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

Strona 71

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

Strona 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

Strona 73

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

Strona 74

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

Strona 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

Strona 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

Strona 77 - Parameters dialog box

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

Strona 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

Strona 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

Strona 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

Strona 81 - In-Block Control

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

Strona 82 - Border box renders the

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 88

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

Strona 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

Strona 90

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

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

Strona 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

Strona 93

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

Strona 94

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

Strona 95

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

Strona 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

Strona 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

Strona 98 - 5 Library Reference

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 103

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

Strona 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

Strona 105 - 5Linear Gauges

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

Strona 106

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

Strona 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

Strona 108

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

Strona 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

Strona 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

Strona 111 - 5Strip Chart

4 Placing ActiveX Controls in a Different Window4-13

Strona 112

5Library Reference

Strona 113

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

Strona 114

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

Komentarze do niniejszej Instrukcji

Brak uwag