PDF (double-sided) - Physics Department, UCSB - University of ...

PDF (double-sided) - Physics Department, UCSB - University of ... PDF (double-sided) - Physics Department, UCSB - University of ...

web.physics.ucsb.edu
from web.physics.ucsb.edu More from this publisher
27.09.2014 Views

Table 7.3: LabRAD Type Annotations Type Tag Name Description Example Type Tag [. . . ] Units Units of a Value or Complex v[GHz] {. . . } Comment Type tag annotation s{Name} :. . . End Marks end of type tag b: Turn on(T)/off(F) Table 7.4: LabRAD Data Flattening Rules Tag Length[Bytes] Description b 1 False: 0x00, True: anything else i 4 Signed 32bit Value w 4 Unsigned 32bit Value s 4 + len(s) Flattened i giving length followed by raw data v 8 64-bit double precision value c 8 + 8 Flattened (vv) for real and complex parts t 8 + 8 Signed 64-bit Integer giving seconds since 1/1/1904 12:00am UTC followed by signed 64-bit Integer giving fractions of seconds 0 Nothing (. . . ) 0 + len(. . .) Flattened cluster elements concatenated in order *? 4 + len(?) Flattened i giving number of entries followed by flattened elements concatenated in order *n? 4 × n + len(?) n Flattened i’s giving number of entries along each dimension, followed by flattened elements concatenated in order E 4 + 4 + len(txt) Flattened (is) E? len(E) + len(?) Flattened (is?) 140

Table 7.5: LabRAD Packet Structure ((ww)iws) Field Type Tag Description Context (ww) Context in which the Packet is to be interpreted Request i Packet’s Request ID: > 0: Request = 0: Message < 0: Reply Src/Tgt w Incoming packet: Source ID Outgoing packet: Target ID Records s Flattened Records concatenated in order Table 7.6: LabRAD Record Structure (wss) Field Type Tag Description Setting w Setting ID that the data is meant for / came from Type Tag s Type Tag of data contained in this record Data s Flattened data 141

Table 7.3: LabRAD Type Annotations<br />

Type Tag Name Description Example Type Tag<br />

[. . . ] Units Units <strong>of</strong> a Value or Complex v[GHz]<br />

{. . . } Comment Type tag annotation s{Name}<br />

:. . . End Marks end <strong>of</strong> type tag b: Turn on(T)/<strong>of</strong>f(F)<br />

Table 7.4: LabRAD Data Flattening Rules<br />

Tag Length[Bytes] Description<br />

b 1 False: 0x00, True: anything else<br />

i 4 Signed 32bit Value<br />

w 4 Unsigned 32bit Value<br />

s 4 + len(s) Flattened i giving length followed by raw data<br />

v 8 64-bit <strong>double</strong> precision value<br />

c 8 + 8 Flattened (vv) for real and complex parts<br />

t 8 + 8 Signed 64-bit Integer giving seconds since<br />

1/1/1904 12:00am UTC followed by signed<br />

64-bit Integer giving fractions <strong>of</strong> seconds<br />

0 Nothing<br />

(. . . ) 0 + len(. . .) Flattened cluster elements concatenated in order<br />

*? 4 + len(?) Flattened i giving number <strong>of</strong> entries followed by<br />

flattened elements concatenated in order<br />

*n? 4 × n + len(?) n Flattened i’s giving number <strong>of</strong> entries along<br />

each dimension, followed by flattened elements<br />

concatenated in order<br />

E 4 + 4 + len(txt) Flattened (is)<br />

E? len(E) + len(?) Flattened (is?)<br />

140

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!