#!/usr/bin/env -S jennifer run# A stand-in for the instrument: sends sample.txt to the LIS over LIS01.# jennifer run analyzer.j (start lis.j first)use fs;
use io;
use strings;
import"@deckyard/astm/"as astm;
def text asstringinitstrings.replace(fs.readString("sample.txt"), "\n", "\r");
def link asastm.Link initastm.connect("127.0.0.1:4001",
astm.instrumentProfile());
astm.send($link, astm.parse($text));
astm.close($link);
io.printf("analyzer: sent\n");