User Tools

Site Tools


ece4560:piktul:issues

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ece4560:piktul:issues [2021/10/08 18:51] pvelaece4560:piktul:issues [2024/08/20 21:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Having Issues with Piktul? ====== ====== Having Issues with Piktul? ======
  
-Introducing a piece of technology into the class canbe a big pain.  There are a few ways to do things properly, and lots of ways to head into the non-functional realm of things.  Here are a few things that can lead to non-functional:+Introducing a piece of technology into the class can be a big pain.  There are a few ways to do things properly, and lots of ways to head into the non-functional realm of things.  Here are a few things that can lead to non-functional:
  
  
 **Serial Connection not Closed.** The connection to the manipulators uses a serial connection.  Matlab only likes to open it once.  If you somehow try to open it up twice, then Matlab will complain and not work.  It is a bit troublesome in the GUI.  There is a tendency to close the GUI some weird way or to cancel (in the Ctrl-C sense) if somethings seems fishy.  All of these prevent the code from properly closing the serial port, so future attempts to communicate with the manipulator fail.  Better to hit the "Done" button and to make sure you invoke the shutdown command of the piktul if you are using it in the command line. **Serial Connection not Closed.** The connection to the manipulators uses a serial connection.  Matlab only likes to open it once.  If you somehow try to open it up twice, then Matlab will complain and not work.  It is a bit troublesome in the GUI.  There is a tendency to close the GUI some weird way or to cancel (in the Ctrl-C sense) if somethings seems fishy.  All of these prevent the code from properly closing the serial port, so future attempts to communicate with the manipulator fail.  Better to hit the "Done" button and to make sure you invoke the shutdown command of the piktul if you are using it in the command line.
  
-//New Solution:// There should be a static member function in the ``piktul`` and ``lynx6`` classes. That function is called ``closeSerialPorts``.  Running ``piktul.closeSerialPorts`` or ``lynx6.closeSerialPorts`` should do the trick.+//Newer Solution:// Matlab has a new one-liner version that goes as follows, 
 +> delete(instrfind('Type','serial')) 
 + 
 +//New Solution:// There should be a static member function in the ''piktul'' and ''lynx6'' classes. That function is called ''closeSerialPorts''.  Running  
 +piktul.closeSerialPorts() 
 +or  
 +lynx6.closeSerialPorts() 
 +should do the trick.
  
 //Old Solution:// Restart Matlab (quit and launch again). //Old Solution:// Restart Matlab (quit and launch again).
ece4560/piktul/issues.1633733500.txt.gz · Last modified: 2024/08/20 21:38 (external edit)