Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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 Ansicht (letzte 30 Tage)
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 Kommentare
KSSV
KSSV am 15 Dez. 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 am 19 Dez. 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?

Antworten (1)

Shiling ?
Shiling ? am 13 Apr. 2019
HI,, I have the same question, have you worked out that?

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by