Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Why do I get a 'Subscript indices must either be real positive integers or logicals' error when I try to read the waveform data from my oscilloscope using the Instrument Control Toolbox?

1 回表示 (過去 30 日間)
Sam Lowe
Sam Lowe 2016 年 12 月 14 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have set up a connection with my PC and my oscilloscope using the Instrument Control Toolbox. However, when I try to use the 'readwaveform' function to get the output of my oscilloscope, I get the error as stated in the title. What does this mean in the context of trying to get the waveform data?
  2 件のコメント
KSSV
KSSV 2016 年 12 月 15 日
Let data be any data of numbers:
data = rand(100,1) ;
When you try to call the data using negative or zero indices that error will pop up...
data(0)
Sam Lowe
Sam Lowe 2016 年 12 月 19 日
I understand what the error means with regards to a data array as you have described. What I am wondering is why I am getting this response from Instrument Control Toolbox and how do I get around it?

回答 (1 件)

Shiling ?
Shiling ? 2019 年 4 月 13 日
HI,, I have the same question, have you worked out that?

Community Treasure Hunt

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

Start Hunting!

Translated by