1 / 7

PI / Acton Software

WinX32 Automation Interface Examples. PI / Acton Software. Interface to PI Acton Cameras. Interface through COM/DCOM, Scripting, ActiveX. Your Application. WinView/WinSpec. b. PVCAM. Device Driver. Interface (HW). Black Box to Application. WinX32 Automation ( ActiveX ).

riona
Télécharger la présentation

PI / Acton Software

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WinX32 Automation Interface Examples PI / Acton Software

  2. Interface to PI Acton Cameras • Interface through COM/DCOM, Scripting, ActiveX Your Application WinView/WinSpec b PVCAM Device Driver Interface (HW) Black Box to Application

  3. WinX32 Automation ( ActiveX ) • Interface that allows user to automate the software • Accessible with Visual basic, or Microsoft Scripting ( http://msdn.microsoft.com/en-us/library/ms950396.aspx ) • Macro Record • Aids in the creation of a program by generating visual basic script • Examples • ftp://ftp.piacton.com/Public/Software/Examples/WinX32_Automation/ • Vb_examples.zip ( only official example ) • MakeASPE – synthesizes data, creates a new SPE file, puts the data from VB to WinX32 • MultiFileOpen – demonstrates how to open many files at once • CollectData – instructs WinX32 to collect data

  4. WinX32 Automation Examples ( con’t ) • All of the following programs do just about the same thing with the exception of which process occurs. • The program… • Obtains handle to Active Window • Gets data from file • Does some processing • Creates a new file • Puts data into new file • vb.sum or average frames.zip • allows the user to select if the output is going to be average or sum of the input data stack • vb.datared.zip • Performs data reduction; Takes every Nth frame from the input data stack and copies it to the new file

  5. WinX32 Automation Examples ( con’t ) • VB Programs ( con’t ) • Negative.zip • Inverts the data • Vb.addframes.zip • Simple example to sum all frames • Vb.autoplay.zip • Simple example of a movie player • Vb.datatrans.zip • Translates data; used in TDI; implements two functions 1) frames_to_rows() and 2) frames_to_columns() • Vb.examples.zip ( not to be confused with vb_examples.zip ) • harvard • shutter bracketing; takes several exposures each at a different exposure time • Vb.expinc.zip • Runs the current experiment setup N times • manages auto filename incrementing • Vb.kinwin2frames.zip • Takes kinetics data in full frame format • Outputs a data stack, one frame for each kinetics window

  6. WinX32 Automation Examples ( con’t ) • Other VB examples • Ascii.zip, export_asci1.zip • Saves data to ascii file. • Vb.roi.zip • User is able to select from 1 of many different preprogrammed ROI settings. NxN binning, Center 10, Zoom in ROI, etc… • Acquires the ROI • Vb.ttl.zip • Demonstrates how to access the TTL I/O port on some systems • VBS example • ExpStart.vbs • Prompts user for number of experiments to run • Loops for each and acquires current setup • Assumes that file increment is on • VI example • OpenActive.vi • Obtains the handle to the active window’s data file with LabView’s ActiveX interface

  7. WinX32 Automation Examples ( con’t ) • VBA examples; embedded in Microsoft Office Apps • Excel • Binning • Acquire data on an array of different binning parameters and record results • Import Export • Imports data to excel • Exports processes data back to WinX32 SPE file • LN Hold • Records the temperature v. time • TTL Read • Illustrates use of the TTL i/o port on some systems • WinViewRunner • Runs the current Experiment N times

More Related