LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

working with basic stamp rs-232

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?

 

 

 

0 Kudos
Message 1 of 5
(2,883 Views)

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 ?

0 Kudos
Message 2 of 5
(2,875 Views)

basic stamp is a microcontroller. the baud rate is fixed at 9600.

0 Kudos
Message 3 of 5
(2,873 Views)

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

0 Kudos
Message 4 of 5
(2,869 Views)

"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.

Message 5 of 5
(2,850 Views)