in reply to Re^2: Any ideas for using perl as a simple pulse generator?
in thread Any ideas for using perl as a simple pulse generator?

Any tips for code to do the actual writing?

I don't really understand how writing to a file creates pulses to a pump.

Is this a real file that you're writing to? Or some kind of memory mapped IO?

if the latter, I'd probably drop into Inline::C for this. On windows, I'd write the whole timing and writing loop in C and run it in a system thread. But I don't know enough about Linux to know if this makes sense there.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy
  • Comment on Re^3: Any ideas for using perl as a simple pulse generator?