Follow these instructions
to setup the LabJack Python library. You may replace the portion downloading the
LabJackPython code with downloading the zipped latest stable version here.
git clone https://github.com/ejhonglab/labjack
cd labjack/src/labjack
# Edit the script labjack.py to configure it for your needs.
# You should only need to modify the portion under "if __name__ == '__main__'"
# You can use any other text editor in place of gedit
gedit labjack.py
# Will stream to a CSV in the current directory. By default, this will be
# named 'test.csv', but you will probably want to change that.
./labjack.py
Ensure the python you are using in the commands to install the Python library is the same as the python that is used by your installed version of ROS.
See example_params.yaml for the available ROS parameters and example values.
You can load these parameters as part of a launch file, or manually with either
rosparam load <yaml-file> or rosparam set /labjack/<param-name> <value>.
After your desired parameters are already set:
rosrun labjack labjack
Launching this node can also be integrated as part of a launch file.