09-05-2008 05:55 AM
hi there,
i'm currently using basic stamp together with labview 8.5. communication between the hardware (4 ultrasound sensors) and software is using the RS-232 serial communication.
however, the sampling rate is very slow ( as low as 10 samples per second). may i know how to increase the sampling rate?
it is due to the serial communication?
09-05-2008 06:41 AM
The simpler way... change your baud rate to a higher value. If the sampling rate will increase, then your problem is probably from the baud rate.
What is basic stamp and what baud rate do you use? What is the higher baud rate of your hardware ?
09-05-2008 06:44 AM
basic stamp is a microcontroller. the baud rate is fixed at 9600.
09-05-2008 07:03 AM
Who wrote the embedded code for the microcontroller? That's probably where the sampling rate is set (or allows to be set). Is there documentation that came with the firmware? Also, what are you sampling? Depending on what you are sampling, sampling rates can vary greatly.
For instance, you would sample temperature at a vely low rate as compared with wind velocity. 😉
Does your circuit allow for buffering? There are many details about your environment that you need to share before we can offer any suggestions on how to increase sampling rate... Or to determine if it is possible to do so...
R
09-05-2008 08:23 AM
"the baud rate is fixed at 9600."
Do you mean you can not change it ?
If you don;t have access to the microcontroller software and you can not change the baud rate, you can not increase the sampling rate unless the mcu programmer has an available option.