Reading ADC data from MSP430 to Matlab via serial port

6 ビュー (過去 30 日間)
Hiril Patel
Hiril Patel 2022 年 6 月 15 日
編集済み: Walter Roberson 2024 年 7 月 17 日
My situation is
1. external ADC samples from one channel and transmit to Serial port Via Uart and then switches over to second channel to do same and then third.
2. I manage to view data in Hterm and it looked quite fine.
3. I want to plot it live in matlab- I know there are ways to do it but can someone here explain me a basic step by step to achieve my objective?
I have basic idea of what i should be doing
  1. setup serial communication.
  2. create array to store uart values
  3. calculate voltage values
  4. plot live values
It would be nice if someone points out me for where to look for point 2 and 4 specifically.
  19 件のコメント
Hiril Patel
Hiril Patel 2022 年 9 月 18 日
Hello again,
I had to change the formula since this one didn't yielded true results. But right now I don't know how to ask this query on internet so I had to ask it here.
the new formula contains serveral condition in order to get correct resutls. I want to know how to apply those condtion on each cell. Here is the query:
I have three equal size csv file. I have to take one value from each file from same row of those three file and compute it to get a value. I was able to do that, it is simple. But now what I need its that those computed value needs to be passed from certain condtion in order to apply next formula in order to get true value. Can you tell me how should i take those computed value(all the computed values satishfy a certain condition on which their formula changes).
I hope I have explained it in understandable way.
for more information, I am using these base CSV value to get principle strain value and principle strain direction.( I am able to find principle strain value but the direction has some condition in order to get it calculated).
this is hte reference document:( on page 197 and 198)
thank you
Hiril Patel
Hiril Patel 2022 年 9 月 18 日
equation 8.28 and figure 8.2.8

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by