( ** Go back to PARENTPAGE ../Tying-Attributes-to-RNG-Device.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

Stream from TrueRNG by tying group attributes to TrueRNG device

ASPL set variables can have their attributes tied to UNIX devices. In this example, we show how to stream data from TrueRNG USB stick connected to the UNIX system. When a set variable has its attributes tied to the TrueRNG device, then it is updated everytime it is sourced.

ASPL 1> trng = ggtierngdevice(points,100)
get 100 random numbers from TrueRNG device

ASPL 2> sleep 1
sleep 1 second

ASPL 3> ?5,1 trng
interrogate trng five times with a delay of one second hence turning trng into a differential group variable

ASPL 4> @ trng
print the differential group variable trng

ASPL 5> playsim trng
playsim to show rate of change in the dissimilarity in trng

ASPL 6> playchanges trng
playchanges to show rate of change in trng

ASPL 7> intermittentarc 1
set intermittentarc to 1

ASPL 8> playchanges trng
playchanges to show rate of change in trng

ASPL 9> gU, @trng
display the group union on the differential group variable trng

ASPL 10> attributes
display the attributes

ASPL 11> bye