![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hi All, I am trying to control some RC servo's using simulink real time windows target. I have been successful in controlling them using regular simulink however this is not in real time. My servo motor controller uses a serial port connection to the computer. It takes a vector of numbers as input to determine which motors to move etc.. I am trying to use a "packet output" block set to use the serial port with a baud rate of 9600 (required by the controller). I have for the moment connected a constant block up with a vector containing the numbers to send to move the motors (will swap this later, i just want to get it working for now). Only thing is for some reason it doesnt seem to be sending the signal (and the "data error" output of the "packet output" block is 1, indicating something is wrong). Does anyone have any experience with this? If so any advice would be great, as i am stumped on why i cant get it working. |
|
#2
| |||
| |||
| A useful tool for debugging serial communication problems is the Hyperterm app that comes with Windows or minicom with Linux/unix. You make a crossover cable with the data pins cross connected 2-3, 3-2 and ground. Start the terminal program and configure it to match your speed and word-length. This allows you to see what if anything is being transmitted and when. Minicom has the ability to show hex values, so you can see all transmitted values, not just the printable ones. I can't offer any advice on the simulink stuff, sorry. Good Luck, BobH |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Real Time Board | technetics | Cincinnati CNC | 3 | 12-16-2009 12:01 PM |
| Need Help!- CLIFTON PRECISION + MATLAB/SIMULINK +ADVANTECH + GECKODRIVE | raiden86 | Servo Motors and Drives | 1 | 09-09-2008 05:18 AM |
| real time | Mr Bits | LinuxCNC (formerly EMC2) | 8 | 12-25-2007 06:09 PM |
| Real, real newbie!!! | aggie_67 | General CAM Discussion | 11 | 02-04-2006 12:10 AM |
| Time for a real stupid question | sdantonio | DIY-CNC Router Table Machines | 12 | 11-17-2005 04:43 PM |