Using NI DAQ USB 6218 with Desktop Real-Time Analog Input Block in Simulink

4 views (last 30 days)
Hello,
I'm trying to use a NI DAQ USB 6218 device to receive data while passing data to a Pixhawk using the UAV Toolbox for PX4: PWM Output block that requires code generation. I cannot use the Data Acqusition toolbox because it does not support code genreation and the PX4 PWM Output block requires code generation. The Analog Input from Desktop Real-Time seems as if it supports code generation but unfortunately it does not have the software for the USB 6218 board. However, it does allow for a Generic 16 bit Port. To use the Generic 16 bit Port, the analog input block requires the hexadeximal address of the USB 6218. Will this method work? If so, how do I go about finding this address?
Thank you in advance.
  1 Comment
Amit Charantimath
Amit Charantimath on 2 Jun 2021
Hi Jeremy
Can you clarify your setup and let us know what you are trying to do with NI DAQ and PX4? This information will help us to guide you.
Best wishes
Amit Charantimath

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!