Something like this ( I might not have got it all as its spread through a couple of hal files)
Code:
#sampler x,y,z,torch volts,thcad-volts,velocity
loadrt sampler depth=10000 cfg=ffffff
addf sampler.0 servo-thread
net THCAD-volts-in <= sampler.0.pin.4 <= thcad10.thcad-volts
net curvolt <= sampler.0.pin.3 <= thcad10.torch-volts
net ArcOK <= sampler.0.enable <= hm2_7i76e.0.7i76.0.0.input-10
net sample0 sampler.0.pin.0 <= axis.x.pos-cmd
net sample1 sampler.0.pin.1 <= axis.y.pos-cmd
I used an enable pin so it was only collecting data when it was doing something useful (In this case, actually when the plasma torch was cutting something!)
I opened and parsed the file in google sheets for analysis
From memory, you just need to open another terminal window and type halsampler from the command line and it prints on screen. MIght have need the rip-environment set (I was using RIP)