Analog input block Simulink Desktop Realtime

6 views (last 30 days)
I am using Simulink Desktop Realtime on Windows platform to acquire sensor data from force torque sensors through National Instruments data acquisition card PCIe 6363. As long as I use one force torque sensor, I use only one connector board (i.e. connected to Connector 0 of DAQ with analog input channels AI 0 - 15) and I use Analog input channels [1,2,3,4,5,6] corresponsing to ai0, ai1, ai3, ai4, ai5 respectively and I can obtain the desired response.
But since I have two force torque sensors in my application, I have to use the second connector board for more analog channels, so the moment I use the second connector board (Connector 1 of DAQ with analog input channels AI 16 - 31) and update the analohg input channles in the analog input block of the Simulink Desktop Realtime from [1,2,3,4,5,6] to [1,2,3,4,5,6,16,17,18,19,20,21] I still get the response only from one sensor connected to connector board 0 (AI 0-15). There is no response for the second sensor.
My udnerstanding was when the board is installed, it is known whether both connectors are in use or not. But I am missing something completely and could not find any solution to it from the documentation. I would like to know how can I make my simulink model pick up the analog channels of the DAQ card for both the connector boards? Do I need to specify use Connector 0 and Connector 1 somewhere? If yes, from where can I get this option please? Or do I need to setup something in the configuration of the model ? I would really appreciate any help in this regard. Thank you.
Best Regards

Answers (1)

Jan Houska
Jan Houska on 8 Jun 2023
this should indeed work, with no additional setup required. But please verify the setting of the A/D connection option - to be able to use 32 channels, this should be set to single-ended.
Good Luck, Jan
Jan Houska
Jan Houska on 12 Jun 2023
Hi Ehtisham,
this very much looks like a problem with incorrect grounding. Please take a look at the NI tutorial to learn how to connect your sensors correctly. This depends on if and how is the output from the sensors connected to ground, so I cannot give any detailed suggestion. You may want to use non-referenced single-ended or differential connection, and in case of differential connection, please be aware of the fact that each signal uses two input pins, so you would have only 16 input channels available.
Good Luck, Jan

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!