![DAP Technology 1394 Скачать руководство пользователя страница 256](http://html.mh-extra.com/html/dap-technology/1394/1394_operation-manual_509853256.webp)
Mil1394 Protocol support
256
Copyright © DapTechnology B.V., 2005-2019 - All Rights Reserved., 5/20/2019
explained below:
main
Main is the only process in the script. It sets up the Mil1394 Stream packet and the STOF packet and
sends them every frame according to the settings on the Control Panel.
createSTOFPacket
This function creates a STOF packet and returns the ID of the packet buffer the packet is written to. Two
data objects from the Data Editor are used. One for the packet header and one for the packet data.
createMil1394Packet
This function creates a Mil1394 packet and returns the ID of the packet buffer the packet is written to. Two
data objects from the Data Editor are used. One for the packet header and one for the packet data.
The script itself is displayed below. The comments in the script should be rather self-explanatory.
//==========================================================================
=====
// Configuration
//==========================================================================
=====
// Control Panel id's
#define
CONTROL_FRAMETIME 1
#define
CONTROL_ERROR 2
#define
CONTROL_ID 3
#define
CONTROL_OFFSET 4
// Settings for the packets
#define
CHANNEL 11
#define
SPEED 3
//==========================================================================
=====
// Processes
//==========================================================================
=====
void
main ()
entry
// Initialize
int32
frameTime
int32
id =
0
// Create the packets
int32
customOffsetPacket = createMil1394Packet ( CHANNEL )
int32
STOFPacket = createSTOFPacket ()
// Set initial control values
setControlValue ( CONTROL_FRAMETIME,
11000
)
Содержание 1394
Страница 1: ...1394 Analyzer Operation Manual Hardware and Software Guide Doc DT PRO134MAN700E ...
Страница 11: ...1394AnalyzerOperationManual 11 456 The SCSI2 Connector 457 The SUBD connector ...
Страница 187: ...Scriptor 187 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...
Страница 199: ...Scriptor 199 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...
Страница 363: ...FormatEditor 363 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...