No slrealtime.Instrument.LineStyle in R2020b:
4 次查看(过去 30 天)
显示 更早的评论
Hi,
I was looking at the documentation (R2020b) for "Instrument" and the following example was added to the explanantion of using it:
---------------------------------------------
ls2 = slrealtime.instrument.LineStyle();
ls2.Marker = '*';
ls2.MarkerSize = 4;
ls2.Color = 'black';
inst.connectLine(app.Axes1, "SineWave", 'ArrayIndex', 5, 'LineStyle', ls2, 'Callback', @(t,d)(d+app.Offset.Value));
---------------------------------------------
This seems to say that a LineStyle can be associated with an slrealtime.instrument object. I used the same for an slrealtime.instrument object in my App and got the following error message:
-----------------------------------------------
The class slrealtime.Instrument has no Constant property or Static method named
'LineStyle'.
Error in UECUStim_NNP_Realtime/setupInstrumentation (line 207)
app.linStyl = slrealtime.Instrument.LineStyle();
-----------------------------------------------
Am I missing something? Please help.
0 个评论
采纳的回答
Steven Lord
2025-5-14
slrealtime.instrument.LineStyle is not the same as slrealtime.Instrument.LineStyle. From the error message you're using a capital-I in that command rather than a lowercase-i. It's a similar type of problem as below (but the difference between s and S is easier to see.)
s1 = sin(pi) % works
s2 = Sin(pi) % errors
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!