Ideas for improving halscope
The following are ideas mentioned in an IRC discussion on 20060504:
- In the GUI:
- "XY" functionality: instead of plotting signal vs time, plot signal1 vs signal2
- Allow graphing functions of signals: e.g., sqrt(dx*dx + dy*dy + dz*dz) to show velocity in 3-space
- Allow computing derivatives and integrals in the GUI rather than by using blocks components
- In the realtime module:
- Allow more complex triggering modes: derivative(signal), signal1-signal2, glitch detection, pulse width, etc
- In both:
- roll mode - scope aquires data continously and displays it, like a stripchart. When triggered it finishes acquiring and displays as normal
Otherwise Undocumented Information
One can invoke halscope at a command line
Which will return an error if it doesn't find a running HAL configuration. If you have
LinuxCNC or a HAL application running, halscope will come up and be ready to use.
Invoking halscope with -h at a command line
halscope -h
Usage:
halscope [-h] [-i infile] [-o outfile] [num_samples]
|
-i with a file name appended starts halscope and configures it using the named file. Usually the file is autosave.halscope or my_niffty.halscope . Normally one would invoke halscope and connect signals, signal levels, position, trigger level and such. If you plan on using the setup again, select File then Save Configuration and give your file a name. When halscope quits it also automatically saves the active configuration in autosave.halscope, so you could also copy the autosave.halscope and rename the copy. Beware, the autosave.halscope file gets saved on every program exit, so don't use the autosave.halscope file to reuse a configuration you want to hold on to. Another option, and maybe preferred, is to invoke halscope with the -o option which saves a .halscope file to the file name after the -o .
halscope -o encoder_debugging.halscope |
The last halscope option is an entry to change the number of samples captured, but this is covered in the Advanced HAL Tutorial documentation.