Info

This question is closed. Reopen it to edit or answer.

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 view (last 30 days)
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 Comments
KSSV
KSSV on 15 Dec 2016
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 on 19 Dec 2016
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?

Answers (1)

Shiling ?
Shiling ? on 13 Apr 2019
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!