pi / acton software winx32 automation interface examples

7
PI / Acton Software WinX32 Automation Interface Examples

Upload: berniece-singleton

Post on 28-Dec-2015

257 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: PI / Acton Software WinX32 Automation Interface Examples

PI / Acton Software

WinX32 Automation Interface Examples

Page 2: PI / Acton Software WinX32 Automation Interface Examples

Interface to PI Acton Cameras

•Interface through COM/DCOM, Scripting, ActiveX

b

PVCAM

Device Driver

Interface (HW)

WinView/WinSpec

Your Application

Black Box to Application

Page 3: PI / Acton Software WinX32 Automation Interface Examples

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_Autom

ation/– 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

Page 4: PI / Acton Software WinX32 Automation Interface Examples

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

Page 5: PI / Acton Software WinX32 Automation Interface Examples

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

Page 6: PI / Acton Software WinX32 Automation Interface Examples

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

Page 7: PI / Acton Software WinX32 Automation Interface Examples

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