"ServerID must be a string" problem
Show older comments
I can not read the data from the dialogue box to connect the OPC server. The error occurs: "ServerID must be a string"
Here's the code:
function Newhost_Callback(hObject, eventdata, handles)
prompt = {'Host name:'};
dlg_title = 'Input';
num_lines = 1;
defaultans = {'Matrikon.OPC.Simulation.1'};
answer = inputdlg(prompt,dlg_title,num_lines,defaultans);
da = opcda('localhost', answer);
connect(da);
Accepted Answer
More Answers (0)
Categories
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!