skip to main content NIST Center for Neutron Research NIST Center for Neutron Research National Institute of Standards and Technology
Home Instruments Science Experiments SiteMap

xpeek data broadcast facility

Xpeek is a simple live data visualization service which has been running at the NCNR since 1997. It operates on a simple client-server paradigm in which an autonomous server listens for data packets broadcast by instrument computers (UDP port 8080 at the present time), assembles them into snapshots of the current dataset being collected on the instruments, appends a timestamp to each point, and transmits them to subscribed client GUIs which parse and plot the data.

All broadcasts begin with the instrument name followed by a colon and end with a newline character. Elements of the broadcast (point number, xvalues, and counts) are of the format LABEL=value and are delimited by tabs. For all instruments, neutron counts (or other "data") are represented in the label "DATA". The other elements could be x-values or metadata. In the absence of other x-values, the point number (PT) becomes the x-axis. The first broadcast of a dataset contains the word "START" immediately following the instrument name. This first line contains the number of datapoints (NPTS), the filename on the instrument computer (FILE), a list of possible x-axes (VARY) delimited by spaces, and comments associated with the dataset (the last item on the line -- which has no label).

A sample of a set of broadcast points is shown below:

BT2:START       NPTS=       6   VARY=QH ENERGY	FILE=[GAYLE]DEFLT003.BT2        Test of broadcast
BT2:    PT=        1    QH=  -0.5000    ENERGY=  0.0000        DATA=          10	
BT2:    PT=        2    QH=  -0.4000    ENERGY=  0.1000        DATA=          20	
BT2:    PT=        3    QH=  -0.3000    ENERGY=  0.2000        DATA=          30	
BT2:    PT=        4    QH=  -0.2000    ENERGY=  0.3000        DATA=          30	
BT2:    PT=        5    QH=  -0.1000    ENERGY=  0.4000        DATA=          20	
BT2:    PT=        6    QH=   0.0000    ENERGY=  0.5000        DATA=          10

Reflectivity scans

NG7:START       NPTS=      161  FILE=/home/ng7/litho/apr02/epoxy002.ng7 VARY=QZ A08 A16 A17     epoxy400 thick d2o
NG7:    PT=        1    QZ=  0.005000   A08=0.100       A16=0.100       A17=0.400       MON=         256        SC1=        5494        DATA=           0
TIMESTAMP=1018644570
NG7:    PT=        2    QZ=  0.006000   A08=0.120       A16=0.120       A17=0.440       MON=         390        SC1=        7374        DATA=           0
TIMESTAMP=1018644587
NG7:    PT=        3    QZ=  0.007000   A08=0.140       A16=0.140       A17=0.480       MON=         519        SC1=       10266        DATA=           0
TIMESTAMP=1018644604

Reflectivity Scan

Powder Diffraction

BT1:START       NPTS=      201  FILE=/home/bt1/qing/sfmo3002.bt1        VARY=A04        sfmo3 Sr2FeMoO6-3#/5%H2/Ar/1100C/6
BT1:    PT=        1    A04=      3.00  T=10.0940       M=   1.88       MON=
       0        DATA= 221,48,24,34,52,23,583,52,61,58,423,414,65,2835,269,90,105,83,80,167,167,149,   320,289,1008,211,102,126,83,1041,182,189  TIMESTAMP=1020868816
BT1:    PT=        2    A04=      3.05  T=10.1060       M=   1.90       MON=
       0        DATA= 185,46,38,31,41,35,727,43,65,75,313,539,64,3486,212,87,102,104,82,171,207,152,  342,318,1117,203,105,95,96,1043,163,208   TIMESTAMP=1020868932
BT1:    PT=        3    A04=      3.10  T=10.0170       M=   1.90       MON=
       0        DATA= 173,47,27,26,45,25,887,49,68,76,221,657,71,3763,135,91,91,101,75,195,248,157,   381,292,1185,209,123,88,115,982,197,201   TIMESTAMP=1020869050
BT1:    PT=        4    A04=      3.15  T=9.95680       M=   1.90       MON=
       0        DATA= 135,42,33,37,67,28,880,50,48,69,149,804,78,3516,125,108,139,88,76,230,289,161,  435,269,1220,208,140,99,89,935,157,237    TIMESTAMP=1020869167
BT1:    PT=        5    A04=      3.20  T=9.94370       M=   1.88       MON=
       0        DATA= 128,43,22,30,67,36,668,43,70,68,98,949,69,3283,128,103,153,78,81,257,315,174,   479,287,1216,256,119,106,114,982,168,203  TIMESTAMP=1020869284
BT1:    PT=        6    A04=      3.25  T=9.88650       M=   1.87       MON=
       0        DATA= 131,36,25,30,92,45,618,57,68,56,68,1117,81,2926,104,111,168,110,75,237,326,174, 519,223,1321,221,115,121,82,913,176,186   TIMESTAMP=1020869402
BT1:    PT=        7    A04=      3.30  T=9.88060       M=   1.88       MON=
       0        DATA= 112,40,23,35,117,20,373,42,64,73,78,1050,82,2390,95,83,149,89,87,263,331,172,   559,207,1282,261,136,117,101,915,184,195  TIMESTAMP=1020869519
BT1:    PT=        8    A04=      3.35  T=9.70930       M=   1.87       MON=
       0        DATA= 113,31,27,30,161,21,218,47,53,58,59,931,75,1892,88,78,164,89,85,224,337,197,    584,199,1278,253,136,116,113,904,201,212  TIMESTAMP=1020869635
BT1:    PT=        9    A04=      3.40  T=9.77720       M=   1.88       MON=
       0        DATA= 109,43,39,26,232,31,125,52,54,56,65,706,77,1274,68,98,143,98,97,273,342,199,    654,211,1184,261,157,114,100,815,210,180  TIMESTAMP=1020869752
BT1:    PT=       10    A04=      3.45  T=9.73070       M=   1.88       MON=
       0        DATA= 94,33,23,34,309,30,61,51,59,62,71,436,88,908,88,78,134,102,93,280,319,207,597,  149,1155,258,147,124,97,853,171,180       TIMESTAMP=1020869868
BT1:    PT=       11    A04=      3.50  T=9.73890       M=   1.90       MON=
       0        DATA= 106,35,26,31,391,28,69,58,40,70,70,276,81,558,80,78,152,91,83,269,296,258,571,  144,1013,285,160,105,110,734,162,208      TIMESTAMP=1020869985
BT1:    PT=       12    A04=      3.55  T=9.75490       M=   1.88       MON=
       0        DATA= 95,40,28,35,465,30,63,90,56,67,64,164,101,343,78,92,115,106,77,247,273,229,550, 144,974,250,198,117,104,720,198,194       TIMESTAMP=1020870102
BT1:    PT=       13    A04=      3.60  T=9.71070       M=   1.92       MON=
       0        DATA= 72,42,29,32,436,26,39,95,51,64,53,120,82,251,79,89,130,87,75,237,241,283,475,   126,819,266,214,139,108,609,195,192       TIMESTAMP=1020870219
BT1:    PT=       14    A04=      3.65  T=9.66080       M=   1.90       MON=
       0        DATA= 98,34,22,28,384,34,43,129,52,65,65,113,71,194,82,92,105,100,94,224,243,258,404, 114,702,264,200,132,99,674,216,209        TIMESTAMP=1020870337
BT1:    PT=       15    A04=      3.70  T=9.67210       M=   1.88       MON=
       0        DATA= 104,20,19,24,298,35,41,156,53,58,65,104,98,159,84,85,87,93,62,203,258,272,309,  119,638,237,239,139,110,567,196,186       TIMESTAMP=1020870454
BT1:    PT=       16    A04=      3.75  T=9.68940       M=   1.88       MON=
       0        DATA= 69,30,25,29,221,34,40,234,60,47,77,82,81,140,83,93,104,89,101,163,243,242,259,  113,510,216,237,127,108,553,197,195       TIMESTAMP=1020870571
BT1:    PT=       17    A04=      3.80  T=9.61240       M=   1.88       MON=
       0        DATA= 78,29,38,34,123,34,31,293,45,52,62,81,80,154,79,80,110,81,79,134,258,244,209,   109,418,215,256,123,109,519,247,197       TIMESTAMP=1020870687
BT1:    PT=       18    A04=      3.85  T=9.77310       M=   1.88       MON=
       0        DATA= 76,32,32,31,92,29,31,296,48,74,66,59,74,141,77,59,105,102,92,149,246,256,210,   103,351,169,294,169,119,417,262,179       TIMESTAMP=1020870804
Powder Diffraction

Peak scans and fitting

XR0:START       NPTS=        81 FILE=                   VARY=A04        Find_Peak
XR0:    PT=         1   A04=  -0.200    DATA=         2 TIMESTAMP=1018365411
XR0:    PT=         2   A04=  -0.195    DATA=         4 TIMESTAMP=1018365412
XR0:    PT=         3   A04=  -0.190    DATA=         2 TIMESTAMP=1018365413
XR0:    PT=         4   A04=  -0.185    DATA=         5 TIMESTAMP=1018365414
XR0:    PT=         5   A04=  -0.180    DATA=         3 TIMESTAMP=1018365416
XR0:    PT=         6   A04=  -0.175    DATA=         7 TIMESTAMP=1018365417
XR0:    PT=         7   A04=  -0.170    DATA=         6 TIMESTAMP=1018365418
XR0:    PT=         8   A04=  -0.165    DATA=         6 TIMESTAMP=1018365419
XR0:    PT=         9   A04=  -0.160    DATA=         6 TIMESTAMP=1018365420
XR0:    PT=        10   A04=  -0.155    DATA=        10 TIMESTAMP=1018365422
XR0:    PT=        11   A04=  -0.150    DATA=         4 TIMESTAMP=1018365423
XR0:    PT=        12   A04=  -0.145    DATA=         8 TIMESTAMP=1018365424
XR0:    PT=        13   A04=  -0.140    DATA=         4 TIMESTAMP=1018365425
XR0:    PT=        14   A04=  -0.135    DATA=         8 TIMESTAMP=1018365426
XR0:    PT=        15   A04=  -0.130    DATA=         9 TIMESTAMP=1018365427
XR0:    PT=        16   A04=  -0.125    DATA=        11 TIMESTAMP=1018365429
XR0:    PT=        17   A04=  -0.120    DATA=         7 TIMESTAMP=1018365430
XR0:    PT=        18   A04=  -0.115    DATA=         6 TIMESTAMP=1018365431
XR0:    PT=        19   A04=  -0.110    DATA=         7 TIMESTAMP=1018365432
XR0:    PT=        20   A04=  -0.105    DATA=        16 TIMESTAMP=1018365433
XR0:    PT=        21   A04=  -0.100    DATA=        11 TIMESTAMP=1018365435
XR0:    PT=        22   A04=  -0.095    DATA=        11 TIMESTAMP=1018365436
XR0:    PT=        23   A04=  -0.090    DATA=        14 TIMESTAMP=1018365437
XR0:    PT=        24   A04=  -0.085    DATA=        11 TIMESTAMP=1018365438
XR0:    PT=        25   A04=  -0.080    DATA=        11 TIMESTAMP=1018365439
XR0:    PT=        26   A04=  -0.075    DATA=        23 TIMESTAMP=1018365440
XR0:    PT=        27   A04=  -0.070    DATA=        32 TIMESTAMP=1018365442
XR0:    PT=        28   A04=  -0.065    DATA=        55 TIMESTAMP=1018365443
XR0:    PT=        29   A04=  -0.060    DATA=       103 TIMESTAMP=1018365444
XR0:    PT=        30   A04=  -0.055    DATA=       196 TIMESTAMP=1018365445
XR0:    PT=        31   A04=  -0.050    DATA=       315 TIMESTAMP=1018365446
XR0:    PT=        32   A04=  -0.045    DATA=       452 TIMESTAMP=1018365448
XR0:    PT=        33   A04=  -0.040    DATA=       723 TIMESTAMP=1018365449
XR0:    PT=        34   A04=  -0.035    DATA=      1018 TIMESTAMP=1018365450
XR0:    PT=        35   A04=  -0.030    DATA=      1329 TIMESTAMP=1018365451
XR0:    PT=        36   A04=  -0.025    DATA=      1684 TIMESTAMP=1018365452
XR0:    PT=        37   A04=  -0.020    DATA=      2088 TIMESTAMP=1018365453
XR0:    PT=        38   A04=  -0.015    DATA=      2340 TIMESTAMP=1018365455
XR0:    PT=        39   A04=  -0.010    DATA=      2546 TIMESTAMP=1018365456
XR0:    PT=        40   A04=  -0.005    DATA=      2599 TIMESTAMP=1018365457
XR0:    PT=        41   A04=   0.000    DATA=      2438 TIMESTAMP=1018365458
XR0:    PT=        42   A04=   0.005    DATA=      2283 TIMESTAMP=1018365460
XR0:    PT=        43   A04=   0.010    DATA=      1939 TIMESTAMP=1018365461
XR0:    PT=        44   A04=   0.015    DATA=      1550 TIMESTAMP=1018365462
XR0:    PT=        45   A04=   0.020    DATA=      1146 TIMESTAMP=1018365463
XR0:    PT=        46   A04=   0.025    DATA=       804 TIMESTAMP=1018365464
XR0:    PT=        47   A04=   0.030    DATA=       495 TIMESTAMP=1018365466
XR0:    PT=        48   A04=   0.035    DATA=       275 TIMESTAMP=1018365467
XR0:    PT=        49   A04=   0.040    DATA=       122 TIMESTAMP=1018365468
XR0:    PT=        50   A04=   0.045    DATA=        45 TIMESTAMP=1018365469
XR0:    PT=        51   A04=   0.050    DATA=        24 TIMESTAMP=1018365470
XR0:    PT=        52   A04=   0.055    DATA=        12 TIMESTAMP=1018365471
XR0:    PT=        53   A04=   0.060    DATA=        13 TIMESTAMP=1018365473
XR0:    PT=        54   A04=   0.065    DATA=        11 TIMESTAMP=1018365474
XR0:    PT=        55   A04=   0.070    DATA=        10 TIMESTAMP=1018365475
XR0:    PT=        56   A04=   0.075    DATA=         7 TIMESTAMP=1018365476
XR0:    PT=        57   A04=   0.080    DATA=         9 TIMESTAMP=1018365477
XR0:    PT=        58   A04=   0.085    DATA=         9 TIMESTAMP=1018365479
XR0:    PT=        59   A04=   0.090    DATA=        13 TIMESTAMP=1018365480
XR0:    PT=        60   A04=   0.095    DATA=         6 TIMESTAMP=1018365481
XR0:    PT=        61   A04=   0.100    DATA=         8 TIMESTAMP=1018365482
XR0:    PT=        62   A04=   0.105    DATA=         5 TIMESTAMP=1018365483
XR0:    PT=        63   A04=   0.110    DATA=         4 TIMESTAMP=1018365485
XR0:    PT=        64   A04=   0.115    DATA=         9 TIMESTAMP=1018365486
XR0:    PT=        65   A04=   0.120    DATA=         5 TIMESTAMP=1018365487
XR0:    PT=        66   A04=   0.125    DATA=         7 TIMESTAMP=1018365488
XR0:    PT=        67   A04=   0.130    DATA=         5 TIMESTAMP=1018365489
XR0:    PT=        68   A04=   0.135    DATA=         5 TIMESTAMP=1018365491
XR0:    PT=        69   A04=   0.140    DATA=         8 TIMESTAMP=1018365492
XR0:    PT=        70   A04=   0.145    DATA=         9 TIMESTAMP=1018365493
XR0:    PT=        71   A04=   0.150    DATA=         6 TIMESTAMP=1018365494
XR0:    PT=        72   A04=   0.155    DATA=         4 TIMESTAMP=1018365495
XR0:    PT=        73   A04=   0.160    DATA=         3 TIMESTAMP=1018365497
XR0:    PT=        74   A04=   0.165    DATA=         9 TIMESTAMP=1018365498
XR0:    PT=        75   A04=   0.170    DATA=         5 TIMESTAMP=1018365499
XR0:    PT=        76   A04=   0.175    DATA=         5 TIMESTAMP=1018365500
XR0:    PT=        77   A04=   0.180    DATA=         4 TIMESTAMP=1018365501
XR0:    PT=        78   A04=   0.185    DATA=         6 TIMESTAMP=1018365502
XR0:    PT=        79   A04=   0.190    DATA=         6 TIMESTAMP=1018365504
XR0:    PT=        80   A04=   0.195    DATA=         7 TIMESTAMP=1018365505
XR0:    PT=        81   A04=   0.200    DATA=         6 TIMESTAMP=1018365506
XR0:END TYPE=FP FIT_P1=     5.5608      FIT_P2=     0.0000      FIT_P3=     0.0000      FIT_P4=  2643.6930      FIT_P5=    -0.0073      FIT_P6=     0.0468     TIMESTAMP=1018365515
Peak scans and fitting

Last modified 31-August-2016 by website owner: NCNR (attn: Brian Kirby)