how to connect and run stepper motor using Matlab GUI
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
fremond khoo
am 6 Mär. 2011
Kommentiert: vishal Verma
am 2 Apr. 2014
good day everyone,
i was wondering if anyone could help me out here..
i was trying to run my matlab GUI to connect to my driver motor and to my stepper motor but this error always comes out when i press the button connect:
??? Error using ==> serial.fopen at 72 Port: COM1 is not available. Available ports: COM3. Use INSTRFIND to determine if other instrument objects are connected to the requested device.
Error in ==> GUI_xyplotter>connect_m1_Callback at 83 fopen(obj1);
Error in ==> gui_mainfcn at 96 feval(varargin{:});
Error in ==> GUI_xyplotter at 16 gui_mainfcn(gui_State, varargin{:});
Error in ==> @(hObject,eventdata)GUI_xyplotter('connect_m1_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
does anybody knows what's wrong with the code and the solution to it?..ur help will be greatly appreciated..thanks a lot
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 6 Mär. 2011
Like it says, use instrfind to determine whether Matlab thinks COM1 is already in use.
What model of computer and which OS are you using? Historically it was common for COM1 and COM3 not to be simultaneously available as they share the same IRQ. It became common for a time for manufacturers to omit COM1 (especially on laptops) or to use COM1 internally for some other device rather than a user-accessible serial port. Is your serial port definitely labeled as being COM1 or is that just what you are expecting it to be? What does the Windows Device Manager say about the COM ports?
Oh I remember -- it become common for COM1 to be used by a built-in modem, and it was the fad for a time to share a single physical connector, with the device being named COM1 when it was being used as a modem and named COM3 when it was being used as a serial port.
0 Kommentare
Weitere Antworten (1)
fremond khoo
am 6 Mär. 2011
12 Kommentare
vishal Verma
am 2 Apr. 2014
Could you plz tell me how you ran your motor using MATLAB GUI? Is there a sample code I can look at? Thanks!
Communitys
Weitere Antworten in Power Electronics Control
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!