![DAP Technology 1394 Скачать руководство пользователя страница 186](http://html.mh-extra.com/html/dap-technology/1394/1394_operation-manual_509853186.webp)
Scriptor
186
Copyright © DapTechnology B.V., 2005-2019 - All Rights Reserved., 5/20/2019
·
Enabled: This field indicates whether the feature is currently enabled or not
·
Requirements: This field describes the (license/validation) requirements for this feature.
11.6. Examples
11.6.1. Simple Sending
This example shows how to define a packet using the build-in data editor and how to send a multiple of
this packet each time a bus reset is detected. There is no particular reason to wait for a bus reset before
starting to send the packets. It is implemented this way to have more interactivity with the script. Sending
packets can now be controlled by externally applying bus resets.
11.6.1.1. How to use it
After loading the file "simpleSend.fss", a script will be shown as in the picture below. This script contains a
couple of defined data blocks and one main function.
// Main function
void
main ()
entry
int
p = newPacket (
1000
)
fillPacket
( p, DATA_ID_1, DATA_ID_2 )
fillPacketHeader
(
p, DATA_ID_1,
0
,
-
1
)
fillPacketData
(
p, DATA_ID_2,
0
,
-
1
)
while
true
waitBusReset ()
repeat
100
sendPacket ( p )
To see the script in action, proceed with the following steps:
1.
Open the recorder and start a new recording
2.
Upload and start the script from the Scriptor
3.
Open the Commander and generate a bus reset with the [R] button
4.
Stop the running script from the Scriptor
5.
Stop the recorder and download the recording
Now if you examine the data recorded with the recorder, you can see that first a bus reset is detected and
then, the same packet is sent a hundred times in a row.
11.6.1.2. Details
The function main first creates a packet with a maximum size of 1000 quadlets. Then the macro
"fillPacket" is called to fill the packet with the header data and packet data which have been defined on
the data tab. The corresponding data definitions on the data tab can be seen in the following two pictures:
Содержание 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 ...