Presentation is loading. Please wait.

Presentation is loading. Please wait.

PI / Acton Software WinX32 Automation Interface Examples.

Similar presentations


Presentation on theme: "PI / Acton Software WinX32 Automation Interface Examples."— Presentation transcript:

1 PI / Acton Software WinX32 Automation Interface Examples

2 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

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 )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/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

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 N th 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


Download ppt "PI / Acton Software WinX32 Automation Interface Examples."

Similar presentations


Ads by Google