<<Back

RS422 OCX Quick Start

'Select the comport number to be used
Rs_4221.CommPort = 2 'can be any other

'Open the selected Comport
Rs_4221.PortOpen

'************CUE UP***********************

'First call vtrFlagInReset to reset in points in the VCR
Rs_4221.vtrFlagInReset

'Set where to cue to, by seting the following properties
Rs_4221.cueHours = 1
Rs_4221.cueMinutes = 2
Rs_4221.cueSeconds = 3
Rs_4221.cueFrames = 4

'Then call vtrCueUp method to execute the action
Rs_4221.vtrCueUp

'The VCR Will Cue Up to 01:02:03:04

'*****************************************

'For any other command like Play Stop...
Rs_4221.vtrPlay

What is AutoCheckTimeCode
When AutoCheckTimeCode is set to true then this two methods will be called automatically, each 10 ms
vtrStatusSense 'sense VCR status if it is playing, recording...
vtrTimeCode(4) 'sense Time code the parameter is what type of timecode to read TIMER1 2.....
if status or time code has changed since the last time then any of this events will raise up

vtrStatusChanged 'sends back VCR status for reading, please see RS_4221_vtrStatusChanged insisde the open source app.
'reading status (for example)
if Rs_4221.StatusPlay = True Then IsPlaying = True
'.... and so on...

vtrTimecodeChanged 'sends back new VCR's timecode
'read new TimeCode coming the VCR
MyTcHours = Rs_4221.tcHours
MyTcMinutes = Rs_4221.tcMinutes
MyTcSeconds = Rs_4221.tcSeconds
MyTcFrames = Rs_4221.tcFrames