[Home]HalScope

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Difference (from prior minor revision) (major diff, author diff)

Changed: 15c15,16
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.
Which will return an error if it doesn't find a running HAL configuration. If you have LinuxCNC or an HAL application running, halscope will come up and be ready to use.


Changed: 22c23,26
-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 .

-i with a file name appended starts halscope and configures it using the named file. Without -i, halscope tries to load autosave.halscope . Normally one would invoke halscope and connect signals, set signal levels, positions, 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 alternatively, you could copy the autosave.halscope file 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 configuration file to the file name after the -o .

Added: 24a29


Ideas for improving halscope

The following are ideas mentioned in an IRC discussion on 20060504:

Otherwise Undocumented Information

One can invoke halscope at a command line
halscope
Which will return an error if it doesn't find a running HAL configuration. If you have LinuxCNC or an 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. Without -i, halscope tries to load autosave.halscope . Normally one would invoke halscope and connect signals, set signal levels, positions, 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 alternatively, you could copy the autosave.halscope file 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 configuration 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.


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited May 16, 2014 3:41 pm by Kirk Wallace (diff)
Search:
Published under a Creative Commons License