Parameter 1 is not a number
3 次查看(过去 30 天)
显示 更早的评论
Hi, ive got a problem with making my app to operate microscope. I try to change the mode in a SetFrameTransferMode function with a simple checkbox that returns the value (0 or 1), but i get an error saying "Parameter 1 is not a number". Here is part of the code, thanks for help in advance.
In properties i have:
FrameTransfer = 0
then there is a check box function:
function FrameTransferCheckBoxValueChanged(app, event)
value = app.FrameTransferCheckBox.Value;
app.FrameTransfer=value;
end
and the part where error apears
[ret]=SetFrameTransferMode(app.FrameTransfer);
CheckWarning(ret);
Here is explanation of how this funcion works, from the Software Dev Kit
unsigned int WINAPI SetFrameTransferMode(int mode)
%Description: This function will set whether an acquisition will readout in Frame Transfer Mode.
%Parameters: int mode: mode
% 0 OFF
% 1 ON
4 个评论
Guillaume
2019-8-22
Can we have the full text of the error message (everything in red)?
Also, it's not clear where the SetFrameTransferMode function come from? is this a m or mex file provided by the microscope manufacturer, possibly a wrapper for their dll? Clearly, you're not calling directy that C function definition you show (as you'd be using calllib for that).
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Biomedical Imaging 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!