This PoC bridges NI-DAQmx data collection to ROS over rosserial.
- NI-DAQmx software drivers (linked here, already installed)
- Visual Studio 2022 IDE community edition (linked here)
- Install the prerequisite software.
- Connect the NI USB-6343 X series DAQ to the Windows computer.
- Open the
NI MAX
app on Windows and rename the USB DAQ that was just plugged in toPXI1Slot6
. - Download the code from the GitHub repo.
- Connect the Ethernet cables between the Windows and Linux computers.
- Identify the IP address of the Ethernet connection on the Windows computer.
- Set the IP address of the Ethernet connection on the Linux computer to be one more than the value on the Windows computer.
- Optionally, you can test the connection from the Windows computer to the Linux computer using the command
ping <Linux Ethernet IP>
replacing the<Linux Ethernet IP>
with the Ethernet IP of the Linux computer that you just set. - Apply the Linux Ethernet IP address to the
ros_server_ip.conf
text file in theprojects\flexrite-daqbridge-cli
directory of this repo on the Windows computer. - From the same
projects\flexrite-daqbridge-cli
directory within the code, open theflexrite-daqbridge-cli.sln
file in Visual Studio 2022 IDE which was installed as a prerequisite. - From Visual Studio 2022 IDE, open the Solution Explorer by hitting
CRTL+ALT+L
and open theflexrite-daqbridge-cli.cpp
file underSource Files
. - Should you want to change the sampling rate from the default 100 Hz to 1000 Hz, change the value of
samplingRate
to1000
in line 17. Also in line 16, changetimeStep
to1
. - Before you run the code on the Windows computer, ensure that rosserial server is running on the Linux box.
- To compile and run the program, hit
CTRL+F5
. - The program will start, connect to the rosserial server on the Linux box.
- The program will automatically calibrate the JR3 and start sending data. So, start this program after you position the JR3 sensor next to the cadaver hand.
- You can hit
ESC
orCTRL-C
to quit the program at any time. You can also hit the Close button on the top right corner of the window with your mouse to close the program. - Repeat for every protocol and every hand.
Distributed under the Mozilla Public License.