Industrial Hat Calibration

ajaymccollum

New member
I found in the manual for the industrial automation hat the calibration instructions. I think I would just like an example of what a command might look like for a board ID of 0 and for let's say resetting the calibration of the 0-10v input on the first channel.

Do the channels start at "1" or "0"? Same with the board layer?

For the example, would it look something like:

megaind 0 uncalrst 0

This doesn't seem to work. But if I replace the first "0" with a "1", it doesn't come up with any error, but I can't tell if it actually worked.

Thank you for the help with this.
 

alexburcea

Moderator
Staff member
Hi,

The channels are all 1 based (starts from 1, as they are marked on the silkscreen).
If you run "megaind -h" you will see all available commands with explanations, then you can get info about one specific command by typing "megabas -h <command name>" for example for the uincalrst you type "megaind -h uincalrst"
The calibration is made in 2 points, the process end when you select 2 points (as far as posible one from the other).
Example for calibration of the 0-10V input channel 1:
- Set the voltage (with an external source) as close to the 0V, let say 0.36V and run the command "megaind 0 uincal 1 0.36"
- Set the voltage as close as the 10V, let say 9.23V and run the command "megaind 0 uincal 1 9.23"
 

ajaymccollum

New member
I see what happened. The only command I tried was the reset of the 0-10v input. There's another small typo in the manual for performing that. In the manual it says "uncalrst". It should be "uincalrst". The proper commands do show up when -h is used. I just hadn't noticed this and kept using the typo.

Thank you for the help.
 
Top