I have a Tk program for controlling a stepper motor using the Device::LabJack module. Problem is that the module method for sending pulses (to run the stepper) does not return until the stepper has stopped...some 20 seconds or more. And the stepper is moving for 90% of the program. So the Tk interface is 90% frozen, inactive, playing dead...making the program itself appear crashed.
I figured to isolate the stepper-move code into a separate file and launch it via Win32::Process but I need for it to pass back (without hanging Tk) the stepper counts it actually made. I was hoping to pass it a reference which Tk can check via $mw->waitVariable(\$foo). How do I do that? How do I pass a reference to the new process so that the launched script can read it via @ARGV?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |