Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 26 of 28

HawkEye 1500 Series Reference & Programmers Manual, pages 251 to 260

Pages 251 to 260 of 276

The original document is the PDF (1.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Microscan HE1510, RVSI CiMatrix HE1510 and Siemens HE1510

Page 251

Microscan HawkEye™ Reader Object Type Library

Microscan HawkEye™ Reader Object Type Library MiObj.DLL - C++ low-level connection library.

2

Co-ordinates objects within a single process.

Methods •

Sub DeviceFocusSet(ByVal bszName As String, Optional ByVal bszUser As String=, Optional ByVal bszPassword As String=), DeviceFocusSet and connect for control if user and pwd given.

•

Function DeviceFocusGet() As IMiDevice, Returns the device object that currently has the focus.

•

Property Get Devices() As IMiDeviceCollection, Returns the set of known devices.

•

Sub ClearDevices, Clears the device list.

•

Sub BroadcastMessage(bstrSender As String, bstrMsg As String, bstrParam As String), Broadcast a message to other users of MiCoordinator.

Events •

OnDeviceFocus(ByVal objDevice As IMiDevice), Sent when a named device has been given the focus.

•

OnDeviceDiscovered(ByVal newDevice As IMiDevice), Sent when a new device has been discovered.

•

OnDeviceStatusChanged(ByVal device As IMiDevice, ByVal newStatus As EOnlineStatus), Fired when a network device status changes.

•

OnDeviceListCleared(), Fired when the device list has been cleared.

•

OnDeviceListCleared(), Fired when the device list has been cleared using the ClearDevices method.

•

OnBroadcastMessage(bstrSender As String, bstrMsg As String, bstrParam As String), Fired when a MiCoordinator user calls BroadcastMessage.

Rev 2.4.1, Nov 2008

HawkEye 1500 Reference & Programmers Manual

2-33

ReadRunner Programming

MiCoordinator

Page 252

Chapter

2

ReadRunner Programming Reference

MiDevice Represents a camera device.

Methods

2-34

•

Property Get Name() As String, Name of the device.

•

Property Let Name(RHS As String), Name of the device.

•

Property Get NetworkName() As String, NetworkName of the device.

•

Property Let NetworkName(RHS As String), NetworkName of the device.

•

Property Get ASCIIConnection() As IMiASCIIConnection, Returns/sets embedded ASCIIConnection object.

•

Property Let ASCIIConnection(RHS As IMiASCIIConnection), Returns/sets embedded ASCIIConnection object.

•

Property Get OnlineStatus() As EOnlineStatus, Returns the current status of the device.

•

Property Let OnlineStatus(RHS As EOnlineStatus), Returns the current status of the device.

•

Property Get IPAddress() As String, Sets/returns the IP address of the device.

•

Property Let IPAddress(RHS As String), Sets/returns the IP address of the device.

•

Property Get TimeStamp() As Long, Determines device inactivity.

•

Property Let TimeStamp(RHS As Long), determines device inactivity.

•

Sub RefreshInfo, Queries device for current information. Updates accordingly.

•

Sub ConnectASCII(ByVal bszUserName As String, ByVal bszPassword As String), Connects an ASCII connection to the device.

•

Sub DisconnectAll, Disconnects all connections to the device.

HawkEye 1500 Reference & Programmers Manual

Rev 2.4.1, Nov

Page 253

Microscan HawkEye™ Reader Object Type Library

Sub ConnectReports(ByVal bszUserName As String, ByVal bszPassword As String), Connects to the device for reports, establishes the ReportConnection object.

•

Sub ConnectImages(ByVal bszUserName As String, ByVal bszPassword As String), Connects to the device for images and decode data (lossy), establishes the ImageConnection object.

•

Property Get ReportConnection() As IMiReportConnection, Returns/sets the report connection for the device.

•

Property Let ReportConnection(RHS As IMiReportConnection), Returns/sets the report connection for the device.

•

Property Get ImageConnection() As IMiImageConnection, Returns/sets the ImageConnection for this device.

•

Property Let ImageConnection(RHS As IMiImageConnection), Returns/sets the ImageConnection for this device.

•

Property Get CountCycle() As Long, Returns the cycle count from a RefreshInfo call.

•

Property Get CountPassed() As Long, Returns the Passed count from a RefreshInfo call.

•

Property Get CountAlarms() As Long, Returns the Alarm count from a RefreshInfo call.

•

Property Get NumNetworkConnections() As Long, Returns number of active network connections to the device.

•

Property Get NameOfController() As String, Returns the name or IP address of the network connection controlling the device.

•

Property Get HaveControl() As Boolean, Returns True if this computer has control of the device.

•

Property Get DirtyBits() As Long, Returns state of the dirty bits for the device.

•

Sub FilesSend(ByVal whichDrv As ERamDrive, ByVal fileOrList As Variant), Send specific set of files to a particular RAM drive on the camera.

Rev 2.4.1, Nov 2008

HawkEye 1500 Reference & Programmers Manual

2-35

2 ReadRunner Programming

•

Page 254

Chapter

2

ReadRunner Programming Reference

•

Property Get SoftwareVersion() As String, Returns version of the software on the device.

Events •

OnConnected(ByVal connObj As IMiConnection), Sent when a specific connection object connects.

•

OnDisconnected(ByVal connObj As IMiConnection), Sent when a specific connection object disconnects.

•

OnOnlineStatusChanged(ByVal newStatus As EOnlineStatus), Sent when online/offline status changes.

•

Function OnControlStatusChanged(ByVal newStatus As EControlStatus), Sent when taking or releasing control of device.

MiASCIIConnection A device connection that sends and receives ASCII data. This is the only type of connection supported for serial ports.

Methods

2-36

•

Sub Disconnect, Disconnects the connection.

•

Sub Connect(ByVal bszName As String), Connects to the given device.

•

Property Get Connected() As Boolean, Returns True if connected.

•

Sub Reconnect, Reconnects the device.

•

Sub CommandSend(ByVal bszCmd As String, Optional ByVal lTimeout As Long=10000), Sends a command over the connection, waits up to lTimeout msecs for result.

•

Property Get Name() As String, Name of the connection (read-only).

•

Sub ImageUploadStart(Optional ByVal nCompression As Long=0, Optional ByVal useTriggers As Boolean=False, Optional ByVal doDecode As Boolean=True, Optional ByVal useAutoPhoto As Boolean=True, Optional ByVal lGain As Long=250, Optional ByVal lExposure As Long=10500), Starts an image upload using the given settings.

HawkEye 1500 Reference & Programmers Manual

Rev 2.4.1, Nov

Page 255

Microscan HawkEye™ Reader Object Type Library

Sub ImageUploadAbort, Aborts an image upload already in progress.

•

Function LineRead(Optional ByVal nTimeout As Long=1000) As String, Reads a line from the connection - blocking until received.

•

Property Get LineQueue() As IMiLineQueue, Property LineQueue.

MiReportConnection A non-lossy device connection which sends CycleReports w/o images.

Methods •

Sub Disconnect, Disconnects the connection.

•

Sub Connect(ByVal bszName As String), Connects to the given device.

•

Property Get Connected() As Boolean, Returns True if connected.

•

Sub Reconnect, Reconnects the device.

MiImageConnection A lossy device connection which sends CycleReports containing images.

Methods •

Sub Disconnect, Disconnects the connection.

•

Sub Connect(ByVal bszName As String), Connects to the given device.

•

Property Get Connected() As Boolean, Returns True if connected.

•

Sub Reconnect, Reconnects the device.

•

Property Get FreezeMode() As EFreezeMode, Returns the current freeze mode.

•

Property Get FailFlags() As EFailFlags, Returns the current fail flags that qualify Failed and Freeze-Next-Failed modes.

•

Sub FreezeModeSet(ByVal newMode As EFreezeMode, Optional ByVal newFlags As ENewFlags=-1), Sets the freeze mode for the connection.

Rev 2.4.1, Nov 2008

HawkEye 1500 Reference & Programmers Manual

2 ReadRunner Programming

•

2-37

Page 256

Chapter

2

ReadRunner Programming Reference

•

Property Get MaxRate() As Long, Returns/sets the maximum images per second transferred by the camera on this connection.

•

Property Let MaxRate(RHS As Long), Returns/sets the maximum images per second transferred by the camera on this connection.

•

Sub LiveStart, Starts live video on the camera, associated ASCIIConnection must be in control.

•

Sub LiveStop, Stops live video on the camera.

•

Property Get LiveEnabled() As Boolean, Returns True if live mode is enabled.

Connection Events All connection types fire the following events.

Events

2-38

•

OnNewLine(ByVal bszLine As String), Fired when a new line is received.

•

OnNewRecord(ByVal objReport As IMiCycleReport), Fired when a new data record is received.

•

OnDataTransferStarted(), Event fired when a new data record upload has been started.

•

OnDataTransferRetry(), Event fired when a block read failed and is being retried.

•

OnDataTransferAborted(), Event fired when an record transfer upload is aborted.

•

OnDataTransferPercentComplete(ByVal nPercent As Integer), Event fired to indicate percent complete on the data transfer.

•

OnConnected(), Event fired when connected.

•

OnDisconnected(), Event fired when disconnected.

•

OnSentLine(ByVal bszLine As String), Fired when a line is sent through the connection.

HawkEye 1500 Reference & Programmers Manual

Rev 2.4.1, Nov

Page 257

Microscan HawkEye™ Reader ActiveX Type Library

OnSendingLine(ByVal bszCommand As String), Fires this event before sending a line.

•

OnSentCommand(ByVal bszCommand As String), Fired after a command has been sent and processed.

•

OnPartQueueReceived(ByVal objColl As ImiCycleReportCollection), Fired when a new part queue collection is received.

•

OnConnectionDropped(ByVal errCode , ByVal bszDescription As String), Fired when a connection is dropped ungracefully.

Microscan HawkEye™ Reader ActiveX Type Library MiObjUI.DLL - C++ low-level GUI library

MiTimeplot Plots multiple variables which are linked in time.

Methods •

Function AddTrace(ByVal bstrName As String, ByVal color As ULong, Optional ByVal bDigital As Long=0) As Long, Adds a trace.

•

Sub StartNewData, Start of a data set event.

•

Sub EndNewData, End of a data set event.

•

Sub NewData(ByVal idTrace As Long, ByVal value As Double), Record new data for specified trace.

•

Sub Refresh, Redraw control.

•

Function AddYAxis(ByVal bstrName As String, ByVal color As ULong, ByVal val As Double, Optional ByVal style As Long=2) As Long, Adds a Y axis.

•

Property Let BackColor(RHS As ULong), Sets the background color of the control.

•

Sub SetYRange(ByVal minPlot As Double, ByVal maxPlot As Double), Sets the y range for the overall plot.

Rev 2.4.1, Nov 2008

HawkEye 1500 Reference & Programmers Manual

2-39

2 ReadRunner Programming

•

Page 258

Chapter

2

ReadRunner Programming Reference

•

Sub SetXStep(ByVal xStep As Long), Sets the number of pixels between plotted points.

•

Property Let LegendColor(RHS As ULong), Background color of the legend area.

•

Property Let LegendTextColor(RHS As ULong), Text color of the legend area.

•

Sub NewEvent(ByVal color As ULong, ByVal style As Long, ByVal info As String), Add a event which appears as a vertical line in time.

•

Sub NewState(ByVal idTrace As Long, ByVal bState As Long), Add a digital event state.

•

Sub SetBias(ByVal idTrace As Long, ByVal bias As Double), Set trace bias.

•

Sub SetScale(ByVal idTrace As Long, ByVal Scale As Double), Set trace scale.

•

Function AddLabel(ByVal x As Double, ByVal y As Double, ByVal caption As String, ByVal fontsize As Long, ByVal TextColor As ULong, ByVal BackColor As ULong, Optional ByVal bBold As Long=0, Optional ByVal bOpaque As Long=1) As Long, Add a text label.

•

Sub SetItemVisible(ByVal id As Long, ByVal bVisible As Boolean), Set visibility of specified item.

•

Function IsItemVisible(ByVal id As Long) As Boolean, Check visibility of specified item.

MiImageView Display images associated with CycleReports with optional Filmstrip capability an user defined drawing objects.

Methods

2-40

•

Sub NewRecord(ByVal objCycleReport As IMiCycleReport), Display image associated with objCycleReport. If in filmstrip mode, add it to stored records.

•

Sub ClearRecords, Clear all records - which also clears the display.

HawkEye 1500 Reference & Programmers Manual

Rev 2.4.1, Nov

Page 259

Microscan HawkEye™ Reader ActiveX Type Library

•

Sub Refresh, Refresh control graphics.

•

Property Get FilmstripMode() As Boolean, Get filmstrip mode.

•

Property Let FilmstripMode(RHS As Boolean), Set filmstrip mode.

•

Property Get ShowOverlay() As Boolean, Get overlay graphic visibility.

•

Property Let ShowOverlay(RHS As Boolean), Set overlay graphics visibility.

•

Sub DrawObjAdd(ByVal objDraw As IMiDrawObj, Optional ByVal key As String=), Add a user defined drawing object.

•

Sub DrawObjRemove(ByVal key As String), Remove a user defined drawing object.

•

Sub DrawObjClear, Remove all user defined drawing objects.

•

Property Get ShowCycleGraphics() As Boolean, Get visibility of cycle graphics.

•

Property Let ShowCycleGraphics(RHS As Boolean), Set visibility of cycle graphics.

•

Function CycleReportFromMousePos(ByVal xPos As Integer, ByVal yPos As Integer) As IMiCycleReport, For filmstrip mode, given a mouse position returns the corresponding CycleReport.

•

Sub SetFilmstripRecords(ByVal objCollection As IMiCycleReportCollection), Sets all filmstrip records at once given a collection of CycleReports.

Events •

OnMouseMove(ByVal xPos As Integer, ByVal yPos As Integer, ByVal flags As Integer), Event fired on Mouse Move.

•

OnLButtonDown(ByVal xPos As Integer, ByVal yPos As Integer, ByVal flags As Integer), Event fired on Mouse Left Button Down.

•

OnLButtonUp(ByVal xPos As Integer, ByVal yPos As Integer, ByVal flags As Integer), Event fired on Mouse Left Button Up.

Rev 2.4.1, Nov 2008

HawkEye 1500 Reference & Programmers Manual

2-41

ReadRunner Programming

2

Page 260

Chapter

2

ReadRunner Programming Reference

•

OnLButtonDblClk(ByVal xPos As Integer, ByVal yPos As Integer, ByVal flags As Integer), Event fired on Mouse Left Double Click.

•

OnRButtonDown(ByVal xPos As Integer, ByVal yPos As Integer, ByVal flags As Integer), Event fired on Mouse Right Button Down.

•

OnRButtonUp(ByVal xPos As Integer, ByVal yPos As Integer, ByVal flags As Integer), Event fired on Mouse Right Button Up.

MiDrawObj Implement this interface to draw custom graphics in MiImageView.

Methods Sub Draw(ByVal midc As IMiDC)

MiDC A graphics “Device Context” for drawing within user defined drawing objects.

Methods

2-42

•

Property Get hDC() As Long

•

Property Let hDC(RHS As Long)

•

Sub MoveTo(ByVal x As Double, ByVal y As Double)

•

Sub LineTo(ByVal x As Double, ByVal y As Double)

•

Sub SetPen(ByVal style As Integer, ByVal width As Integer, ByVal color As ULong)

•

Sub SetBkMode(ByVal bkMode As Integer)

•

Sub SetBkColor(ByVal color As ULong)

•

Sub SetTextColor(ByVal color As ULong)

•

Sub Rectangle(ByVal left As Double, ByVal top As Double, ByVal right As Double, ByVal bottom As Double)

•

Property Get Scale() As Double

HawkEye 1500 Reference & Programmers Manual

Rev 2.4.1, Nov