1 / 7

Comprehensive WinX32 Automation Examples for PI Action Cameras and ActiveX Interfaces

This document provides a detailed overview of WinX32 automation examples for controlling PI Action Cameras through COM/DCOM, scripting, and ActiveX. It covers various Visual Basic examples demonstrating automation, data processing, and file management. Key utilities include MakeASPE for data synthesis, MultiFileOpen for handling multiple files, and data processing functions such as summation, averaging, and data inversion. Additional resources include VB programs for TTL port access and data file manipulation, enhancing user capability in automation and data acquisition.

olin
Télécharger la présentation

Comprehensive WinX32 Automation Examples for PI Action Cameras and ActiveX Interfaces

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