How to get Pressure Sensor Resistance Values
8 views (last 30 days)
Show older comments
Hi, I am trying to use Matlab to create code to get 5 thin film pressure sensors (MD30-60) to give me a resistance reading on a graph so that I can code different LED's to come on based on how much resistance there is. So far, I am getting a graph to show the values, but the graph is scrolling so fast I can't see what values it is giving. Does anyone have any advice on how I can get the resistance values, either with or without a graph?
Thank you.
0 Comments
Answers (1)
William Rose
on 4 Feb 2025
You have not shared any code, so I am just guessing...
Maybe you are using for loop to get the resistances and plot them in a scrolling window. The loop runs so fast that the plot is unreadable. Put a
pause(0.1) % pause time (s)
in the loop. Pausing must be enabled, which it is by default, on most systems. Experiment with different time values.
0 Comments
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!