ASPL User Guide v 1.00
© 2025 Bassem W. Jamaleddine


21. 2
   Tying Attributes to UNIX urandom Device

 

Tying Attributes to UNIX urandom Device

ELEMENTS-GROUPING-CLASS: TIERANDOMDEVICESGROUP

GG-function: ggtierandomdevices()

Sample workspace: TIEURANDOM

Stream thirty random numbers from tied uramdom device

      P = ggtierandomdevices(grp1,Randg1,points,30)       where P is a set variable

Interrogating the Set Variable

      ?5,1   P       interrogate P 5 times with 1 second delay

print differential group variable P

      @   P

Show changes in differential group variable P

      playchanges   P

how to tie the attribute to UNIX urandom device

●  Tying Attributes to UNIX urandom Device

The element attributes defined in a grouping class can be tied to UNIX devices through the tie mechanism implemented through Udev interface. For a group whose element attributes tie to external UNIX devices, ASPL creates the processing stub, however you need to edit the stub to finalize its connectivity with the devices so that the attributes can stream data in real time (everytime ASPL operations are sourcing data through these attributes). In this particular case, there is no need to edit any deposited stub since ASPL default its stubs to tie to UNIX urandom device.

In the following example we show the usual usage of tied interface by putting the tie process at work. We start ASPL by loading the sample workspace TIEURANDOM and show how to do stream data from through the tied interface to the UNIX urandom device.

viewme

 -TC- Display. 21.2.1   [Tie to UNIX urandom device]
UG-TIEURANDOM-Sample-links