Quadera Pfeiffer программа управления (1248465), страница 19
Текст из файла (страница 19)
Read furtherinformation.•Level ANumberThreshold value A (available only fortrip types ABS and HYST).•DO# AInteger number>0Digital output Bit. The result of thetrip function is output to this DO(available only for trip types ABS andHYST).•Level BNumberThreshold value B (available only fortrip types ABS and HYST).•DO# BInteger number>0Digital output Bit. The result of thetrip function is output to this DO(available only for trip type ABS).•StateDropdown listStatus of the measurement task.•ENABLE:The measurement task is beingmeasured and the parameters arebeing saved.•SKIP:The measurement task is notbeing measured, but theparameters are preserved.163QUADERA HTML HelpTrip Function ABSUse the trip function "ABS" for the following purposes:•Vacuum monitoring,•Differential pressure monitoring,•Windows comparator.Vacuum monitoringRequires just the trip function Trip A. Proceed as follows to use the trip function forvacuum monitoring in MID and MCD measurement projects:1.
Select trip type "ABS".2. Enter the threshold value "Level A".3. Set the digital output Bit "DO# A". The result of the trip function is output toDO# A.The trip function ABS-Trip A switches on when the signal falls below Level A.Differential pressure monitoringRequires just the trip function Trip B. Proceed as follows to use the trip function fordifferential pressure monitoring in MID and MCD measurement projects:1. Select trip type "ABS".2. Enter the threshold value "Level B".3. Set the digital output Bit "DO# B".
The result of the trip function is output toDO# B.The trip function ABS-Trip B switches on when the signal exceeds Level B.164QUADERAWindows ComparatorRequires the two trip function Trip A and Trip B. Proceed as follows to use the tripfunctions as comparator in MID and MCD measurement projects:1. Select trip type "ABS".2. Enter the upper threshold value "Level A".3. Enter the lower threshold value "Level B".4.
Set identical values to the digital output Bits "DO# A" and "DO# B", i.e. DO#A:xx and DO# B:xx. The two trip functions are conjoined (logical operatorAND).The trip function ABS switches on when the signal is in the range between thethreshold values Level B and Level A.165QUADERA HTML HelpTrip Function HYSTUse the trip function "HYST" (hysteresis) to prevent permanent switching forfluttering signals.This requires just the trip function Trip A.
Proceed as follows to use the hysteresis tripfunction "HYST" in MID and MCD measurement projects:1. Select trip type "HYST".2. Enter the lower threshold value "Level A".3. Enter the upper threshold value "Level B".4. Set the digital output Bit "DO# A". The result of the trip function is output toDO# A.The trip function HYST switches on when the signal falls below Level A, and itswitches off when the signal exceeds Level B.166QUADERAProcessing Measurement DataMinimumActionReturn the smallest measuring value found in the selected part of the measuringcurve:Minimum = Minimum(x1, x2, ... , xn),x1 ... xn = Measuring values 1 ...
n in the selected partThe calculation is updated continuously while the measurement is running.167QUADERA HTML HelpAverageActionCalculate the average value for all measuring values located in the selected part ofthe measuring curve:xi = Measuring value; n = number of measuring values in the selected partThe calculation is updated continuously while the measurement is running.168QUADERAMaximumActionReturn the largest measuring value found in the selected part of the measuringcurve:Maximum = Maximum(x1, x2, ... , xn),x1 ...
xn = Measuring values 1 ... n in the selected partThe calculation is updated continuously while the measurement is running.169QUADERA HTML HelpAbsolute Standard DeviationActionCalculate the absolute standard deviation for all measuring values located in theselected part of the measuring curve:xi = Measuring value; n = number of measuring values in the selected partThe calculation is updated continuously while the measurement is running.170QUADERAAutomating TasksScriptingScriptingScripting is being integrated into the host application, enabling the user to adapt thefunctions of the application to his or her needs. Scripting always requires the hostapplication in order to be executed.The Visual Studio Tools for Applications (VSTA) development system is suited tocustomize applications by using the .NET framework.
VSTA replaces Visual Basic forApplications (VBA) and uses Visual Studio for IDE.With scripting, you can develop your own solutions for problems and in this wayautomate and extend the functions of the application. You can develop solutions thatextend the functions of your application and that may be used again and again. Byintegrating VSTA, QUADERA® provides the user with a widely used programmingenvironment.Scripting within QUADERA®QUADERA® stores scripting code in a main scripting directory. The individual modules(add-ins) are separately stored. When required the add-ins are available for allmeasurement project templates.QUADERA® provides examples for add-ins and measurement project templates thatuse these Add-ins.
You can use the templates via the start page.NOTE:For further information on scripting and the programming environment,please refer to the help file for Microsoft Visual Studio Tools for Applications.Use the Help menu of the VSTA editor.NOTE:The help system for the scripting functions within QUADERA® explains theextended instruction set and the corresponding syntax.NOTE:The QUADERA® Release Notes ("Readme.html" file) provide a description ofVBA to support users, which have been working with VBA up to now.171QUADERA HTML HelpScripting Directory StructureFile typesA scripting add-in contains the following file types:•Add-in DLL:.Net assembly which contains the compiled add-in code (*.dll),•Source code:These are the files which allow the user to view, edit and compile the add-in.The main file is a "Visual Basic .Net" project (*.vbproj) which then containslinks to other files such as VB.Net code (*.vb).DirectoriesScripting add-ins are stored by default in the directory "My Documents\MyQuadera\Scripting":•The sub-directory "MeasureProjectAddIns" contains the add-in DLL Files,•The sub-directory "Code" contains the source code files.
Each add-in is storedin a separate directory.Add-ins which are present in the "MeasureProjectAddIns" directory can be used byQUADERA and will be listed in the "Add-in Manager" dialog. An add-in does not needto have source code available. However, without this the user will be unable to viewor edit the code.ExampleThe following table shows an example file structure for an add-in with the name"Sample":(directories appear in normal type, files in italics) ScriptingMeasureProjectAddIns♦ Sample.dll Code Sample♦ Sample.vbproj♦ ThisMeasureProject.vb♦ <Other source codefiles>Note that you can change the file location of the scripting directory.172QUADERACopying Add-insProceed as follows to copy an add-in:1.
Copy the add-in DLL file to the "MeasureProjectAddIns" directory.2. If source code is also available:a. Create a new directory under "Code" with the name of the add-in (withoutthe DLL extension!).b. The source code files should be copied to this directory.173QUADERA HTML HelpDeleting Add-insNOTE:Add-ins can be used by more than one measurement project. So take carewhen deleting an add-in.Proceed as follows to delete an add-in:1. Remove the add-in DLL file from the "MeasureProjectAddIns" directory.2. If source code is also available: Remove the directory with the add-in namefrom the "Code" directory.174QUADERAUsing MacrosCreating Add-ins and MacrosIn VSTA, an add-in can include more than one function.
Each function can beconsidered as a macro and an add-in as "macro collection". Thus, you have twooptions to create a new macro:•Edit an existing add-in to include a new function that can be used as macro,•Create a new add-in and program a function that can be used as macro.The following steps describe how to create a new add-in.1. Open an existing measurement project, or create a new measurement project.2. In the Tools menu, point to Programming.3.
In the submenu, select Create Add-in…. The "Create Add-in" window opensup.4. Use the field to specify the name of the add-in.5. Click [OK]. The VSTA editor opens up. Now you can create the new add-in:• VSTA automatically creates the basic structure of the add-in that isexecutable without any functions,• Then you can program your own functions to expand the add-in.QUADERA® stores each add-in in a main scripting directory.
When required the addins are available for all measurement project templates.NOTE:For further information on scripting and the programming environment,please refer to the help file for Microsoft Visual Studio Tools for Applications.Use the Help menu of the VSTA editor.175QUADERA HTML HelpActivating Add-ins1. Open an existing measurement project, or create a new measurement project.2.
In the Tools menu, point to Programming.3. In the submenu, select Add-in Manager…. The "Add-in Manager" windowopens up.4. In the displayed "Available Add-ins" list, enable the checkbox next to thename of the required add-in.5. Click [OK].176QUADERARunning MacrosAutomatic runQUADERA® automatically executes macros in the following cases:•An add-in is loaded and its startup code calls up the macro,•A QUADERA® event calls up the macro.Manual runYou have to activate the relevant add-in before you can manually execute the macro.1. In the Tools menu, point to Programming.2. In the submenu, select Macros…. The "Macros" window opens up.3. In the displayed macro list, click the name of the macro to be executed.4. Click Run.NOTE:You can call up the "Macros" window with the keyboard shortcut ALT+F8.177QUADERA HTML HelpEditing Add-ins and MacrosIn VSTA, an add-in can include more than one function.
Each function can beconsidered as a macro and an add-in as "macro collection". Proceed as follows to editan add-in or an included macro:1. Open an existing measurement project, or create a new measurement project.2. In the Tools menu, point to Programming.3. In the submenu, select Add-in Manager….















