02-27-2010 02:47 PM
02-27-2010 03:06 PM
02-27-2010 04:15 PM
02-27-2010 10:26 PM
| > (not sure if there is a difference between RS-232 and DB-9). |
RS-232 is a serial communications protocol.
DB-9 is a physical connector type that is commonly used for RS-232 interfacing. The connector is shaped like the letter "D" and has 9 pins.
steve
02-28-2010 01:29 PM
02-28-2010 01:32 PM - edited 02-28-2010 01:35 PM
Hi gpatel,
you know how to communicate to serial port, but you don't know how to send a value from SimplePID to serial port???
You know how to communicate, but then you don't know how to communicate???
You should explain this in more detail...
Edit:
From you first post you know what values your motor driver is expecting. You know which values the PID.vi is providing. Now all you need is a formula to reshape the values from PID to the motor. It's up to you to make such a formula. Unless you provide any details we cannot give more precise answers...
03-05-2010 02:35 PM
03-05-2010 03:04 PM
Only you know what commands your motor is expecting.
What kind of command do you give it for full open? Full closed? 50%? All you need to do is take the number that comes out of the PID and translate that into a string value that your motor is expecting in its command. Look in the string palette for string/number conversion functions.
03-08-2010 11:05 PM
03-10-2010 09:16 AM
Hi gpatel,
Is this similar to the to the cont. servo you are using? You will need to use the PID output (aka "controller effort") to send commands to speed up or slow down the motor. If it needs to move just a bit and is currently still, you will speed it up and then quickly slow it down to 0. That way the it will only move very little. Your accuracy will be dependent on how often you acquire feedback (an encoder, I assume) send commands. Since you are doing control in which the exact amount in needs to move may not be know precisely, you may want to take a look at fuzzy logic. However, that may be more than you are looking for. I hope this helps.
Kristen H.