Matlab for my needs

2 views (last 30 days)
Idan
Idan on 2 Nov 2011
Commented: Walter Roberson on 5 Jan 2025
Hi, 1. I want to know if it's possible to send data to sensor from MATLAB software in order receive data from it? (Need to define Comm Port on the PC…) 2. If not, is it possible to only receive data from sensor (in order to match the best filter)? 3. After finding the best filter, how can I use the MATLAB product in my VHDL file? Is it even possible? Thanks, Idan
  1 Comment
Walter Roberson
Walter Roberson on 5 Jan 2025
Most sensors do not permit you to send data to them. At most they permit you to send control signals to them.

Sign in to comment.

Answers (2)

BhaTTa
BhaTTa on 5 Jan 2025
Hey @Idan,
To address your questions:
1. Sending Data to a Sensor from MATLAB:
Yes, it is possible to send data to a sensor from MATLAB, as well as receive data from it. This is typically done through communication interfaces like serial ports, USB, TCP/IP, or other communication protocols supported by your sensor.
2. Receiving Data from a Sensor:
Yes, you can receive data from a sensor to analyze it in MATLAB. The same communication setup as above can be used to read data from the sensor.
3. Using MATLAB in VHDL:
MATLAB provides a tool called HDL Coder that can convert MATLAB algorithms into VHDL code.

Kiran Kintali
Kiran Kintali on 5 Jan 2025
Run and Verify Generated IP Core
You can prototype, simulate, and verify the generated HDL IP core on your target FPGA device.
For more details on the workflow, see Targeting FPGA & SoC Hardware Overview.

Tags

Community Treasure Hunt

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

Start Hunting!