Scripting Language and Scripting Engine Programming ?· Scripting Language and Scripting Engine Programming…

Download Scripting Language and Scripting Engine Programming ?· Scripting Language and Scripting Engine Programming…

Post on 08-Nov-2018

215 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • Scripting Language and Scripting Engine

    Programming Guide Document Number 013-RD000-000-12- 201010

    Offices: OcOcean Optics, Inc.830 Douglas Ave., Dunedin, FL, USA 34698Phone 727.733.2447Fax 727.733.39628 a.m. 8 p.m. (Mon-Thu), 8 a.m. 6 p.m. (Fri) EST

    E-mail: Info@OceanOptics.com (General sales inquiries)Orders@OceanOptics.com (Questions about orders)TechSupport@OceanOptics.com (Technical support)

  • AdditionalOffices:

    Ocean Optics Asia666 Gubei Road, Kirin Tower, Suite 601B, Changning District, Shanghai, 200336 PRCPhone 86.21.6295.6600Fax 86.21.6295.6708E-Mail Sun.Ling@OceanOptics.com

    Ocean Optics EMEA (Europe, Middle East & Africa)

    Geograaf 24, 6921 EW DUIVEN, The NetherlandsPhone 31-(0)26-3190500Fax 31-(0)26-3190505 E-Mail Info@OceanOptics.eu

    Regional Headquarters Maybachstrasse 11 73760 Ostfildern Phone 49-711 34 16 96-0 Fax 49-711 34 16 96-85 E-Mail Sales@Mikropack.de

    Copyright 2010 Ocean Optics, Inc.All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from Ocean Optics, Inc.This manual is sold as part of an order and subject to the condition that it shall not, by way of trade or otherwise, be lent, re-sold, hired out or otherwise circulated without the prior consent of Ocean Optics, Inc. in any form of binding or cover other than that in which it is published.TrademarksAll products and services herein are the trademarks, service marks, registered trademarks or registered service marks of their respective owners.Limit of LiabilityWe have made every effort to make this manual as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an as is basis. Ocean Optics, Inc. shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this manual.

  • 013-RD000-000-12- 201010 iii

    Table of ContentsAbout This Manual......................................................................................................... vii

    Document Purpose and Intended Audience.............................................................................. viiDocument Summary.................................................................................................................. viiProduct-Related Documentation ............................................................................................... vii

    Chapter 1: Introduction .....................................................................1

    Overview ....................................................................................................................... 1Goals of the Jaz Scripting Language ............................................................................. 1Operating System Support ............................................................................................ 2

    Chapter 2: Jaz Scripting Engine Architecture .................................3

    Overview ....................................................................................................................... 3Jaz Scripts..................................................................................................................... 3

    Script General Layout................................................................................................................ 3

    Chapter 3: Installation .......................................................................9

    Overview ....................................................................................................................... 9Retrieving from a CD................................................................................................................. 9Downloading from the Ocean Optics Website........................................................................... 10

    Transferring JSL to Jaz.................................................................................................. 10

    Chapter 4: Windows Scriptor Launcher...........................................11

    Introduction.................................................................................................................... 11Configuration ................................................................................................................. 11

    Prerequisites.............................................................................................................................. 11

    Running the Application................................................................................................. 12Scriptor Launcher Main Window ............................................................................................... 12

    Chapter 5: Using the Jaz Scripting Engine ......................................15

    Overview ....................................................................................................................... 15Engine Arguments ......................................................................................................... 15Tethered Mode .............................................................................................................. 16Jaz Mode....................................................................................................................... 16

  • Table of Contents

    iv 013-RD000-000-12- 201010

    Chapter 6: Functions Reference.......................................................17

    ACOS............................................................................................................................ 17Adapt............................................................................................................................. 17Add................................................................................................................................ 17ASIN.............................................................................................................................. 18AssignLampType........................................................................................................... 18Call -- UserFunctionInvocation....................................................................................... 19Check ............................................................................................................................ 19CloseFile ....................................................................................................................... 20Comment....................................................................................................................... 20Comp............................................................................................................................. 21Compabs....................................................................................................................... 21COS .............................................................................................................................. 21Display .......................................................................................................................... 22Displaymsg.................................................................................................................... 22Do Done.................................................................................................................... 23Duplicate ....................................................................................................................... 23EXP............................................................................................................................... 23GetIntegrationTime........................................................................................................ 24GetLampIntensity .......................................................................................................... 24GetLampShutter ............................................................................................................ 25GetSpectrum ................................................................................................................. 25Goto .............................................................................................................................. 25If .................................................................................................................................... 26Label ............................................................................................................................. 26LocateWavelength......................................................................................................... 27Log ................................................................................................................................ 27Log10 ............................................................................................................................ 28LogN.............................................................................................................................. 28Mult ............................................................................................................................... 28Norm ............................................................................................................................. 29OnButtonClick ............................................................................................................... 29OnError ....................................................................................................

Recommended

View more >