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
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).
Kacper Gawinkowski
Kacper Gawinkowski 2019-8-22
SetFrameTransferMode comes from m file provided by microscope manufacturer.Here is full error message
Error using atmcdmex
SetFrameTransferMode- parameter 1 is not a number
Error in SetFrameTransferMode (line 17)
[ret] = atmcdmex('SetFrameTransferMode', mode);
Also i have no idea what a dll wrapper ism sorry.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Biomedical Imaging 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by