Error reported by S-function 'sldrtai' in 'Laser_experiment_with_2_laser/Analog Input': Device not found.
13 次查看(过去 30 天)
显示 更早的评论
any help when reciving error report by s-function 'sldrtai' in laser experiment. it keeps saying device not found. i am connecting humusoft mf624 card. all seems good but don't know why no laser scope run.
0 个评论
回答(1 个)
Jaynik
2023-10-4
Hi Alaaeldin,
I understand that you are getting an error "sldrtai" saying device not found while using a "S-function" block. A common cause of this is segmentation violation due to an incorrect input port direct feedthrough setting. Another cause can be incorrect memory accesses which occur when your code accesses beyond the end of an array. For example, if you access input port 5 and have specified only 4 input ports.
To debug your C-MEX S-function, you can enable diagnostics by compiling the S-function source with the -g flag, e.g.,
mex -g sfunction_name.c
Hope this helps!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!