Posted on November 20, 2009 by Dagrun
Yes this is possible to do. To do this install Python and the Win32 python extensions on the PC. The following function will then run a macro in Excel:
from win32com.client import Dispatch
def RunExcelMacro(name):
myExcel = Dispatch('Excel.Application')
myExcel.Visible = 0
myExcel.Workbooks.Add('c:Termoetiketter1_2.xls')
myExcel.Run(name)
myExcel.DisplayAlerts = 0
myExcel.Quit()
Filed under: Python | Leave a comment »
Posted on November 20, 2009 by Dagrun
Python is used in many situations where a great deal of dynamism, ease of use, power, and flexibility are required. In the area of basic text manipulation core Python (without any non-core extensions) is easier to use and is roughly as fast as just about any language, and this makes Python good for many system administration type tasks and for CGI programming and other application areas that manipulate text and strings and such.
Filed under: Python | Leave a comment »
Posted on November 20, 2009 by Dagrun
Python is an interpreted, interactive, object-oriented programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes. Python combines remarkable power with very clear syntax. It has interfaces to many system calls and libraries, as well as to various window systems, and is extensible in C or C.
Python is also usable as an extension language for applications that need a programmable interface. Finally, Python is portable: it runs on many brands of UNIX, on the Mac, and on PCs under MS-DOS, Windows, Windows NT, and OS/2.
Filed under: Python | Leave a comment »
Posted on November 20, 2009 by Dagrun
Visit the official python web site. The python faq contains valuable information.
Do you need help to start scripting – use the non programmer’s tutorial. The latest python versions are found at the Python Download. Sourceforge.Net contains large resources of modules and programs.
On the Scorpion CD a directory contains the latest Python versions. How to install Python?
Filed under: Python | Leave a comment »
Posted on November 20, 2009 by Dagrun
The default profile can be changed to take live images with the following steps:
- Press Service in the main toolbar – 911 is the password
- Activate Service in the minor toolbar3. Activate Camera
- Under Camera Settings edit the camera
- Select one of the cameras in the listbox
- Advanced is used to set the camera properties
- When closing the Camera dialog a green checkmark shall appear – this means that the camera is open – a red checkmark can mean that another application has opened the camera or simply an error
- Uncheck the Simulate option under Camera.Image Settings
- Press Snapshot in the main toolbar – the image shall appear in the right pane of Scorpion.
- Under Camera.Image Settings the name of the images can be changed using edit and setting the image properties.
Filed under: Profiles | Leave a comment »
Posted on November 20, 2009 by Dagrun
Scorpion is using an ActiveX component from Microsoft?s Internet Explorer. The message indicates that you need to modify IE?s security settings. These errors and/or warnings can be avoided by activating the following options in Internet Options / Security in Internet Explorer:
- Download signed and unsigned ActiveX controls
- Initialize and script ActiveX controls not marked as safe
If you do this a have a problem with warnings in Internet Explorer check this.
Filed under: Profiles | Leave a comment »
Posted on November 20, 2009 by Dagrun
Based on experience we recommend to supply 15 VAC to the IEEE-1394 bus. We have ?bad? images from cameras when 12 Volt is supplied. Other cameras do not work if the power is 20 Volts. The power shall always be supplied from one or both of the ends of the bus.
Filed under: I/O | Leave a comment »
Posted on November 20, 2009 by Dagrun
Scorpion being based on standard images sources and standards like OHCI and DirectX will work with any OHCI compliant adapter. Even if all adapters are compatible with Scorpion they are not the same.
Unibrain – www.unibrain.com – interface cards are used to demonstrate Scorpion Vision Software. Unibrain have three interesting OHCI adapters FireBoard Red, a good low cost solution, FireBoard 400-OHCI, a high cost – high end solution with external power and the FireCard 400 intended for portable vision.
Filed under: I/O | Leave a comment »
Posted on November 20, 2009 by Dagrun
The number of cameras are limited by the available bandwidth. The following table shows how much bandwidth a camera is using based on frame rate, image format and resolution.
Link to table
Filed under: I/O | Leave a comment »
Posted on November 20, 2009 by Dagrun
Yes, Scorpion supports Ethernet IO using the Advantech Adam-6060 module. This module is connected to the PC using an ethernet cable. The unit has six relay output and six digital inputs.
Download data sheets and 3d models form Advantech.
More information about Adam-6060 is located in the Scorpion Online Help.
Filed under: I/O | Leave a comment »