Timer and Callback function - how to seperate their data

Hi, I wonder if someone can help me with my problem. So... I have one timer function that is running every 10 ms. In that function I'm sending "?" sign to Arduino board and than read data from Arduino. Also I have slider value change callback. With changing its data Arduino gets another sign - "p", and a value from slider. I don't know why but with changing value of slider all data are send together. It looks like that :
Is there any option for split that data? I tried to add /n or /n/r but when I try to use that /n is being replace with a single dot and data are still together.

1 件のコメント

Ameer Hamza
Ameer Hamza 2018 年 4 月 22 日
Can you paste your callback functions, it will help understand, what are you trying to do and what is causing the problem.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeInstrument Control Toolbox についてさらに検索

質問済み:

2018 年 4 月 22 日

コメント済み:

2018 年 4 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by