10-03-2012 10:27 AM
Hello, i have a problem with sampling rate, i data sent by serial port to 4800 baudios and setting 10 hz of sampling rate but not perform as requested, and uses all the data coming to port. How can date sampling ??
I use pic with asynchronous communication.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
hola tengo un problema, envio datos por puerto serial a 4800 baudios y seteo una frecuencia de muestreo de 10 Hz pero lo mismo utiliza todos los datos, quiero saber como puedo hacer un muestreo puesto que sino no puedo obetener los calculos que necesito. gracias
10-05-2012 07:48 AM
DASYLab considers that all data from a serial port is asynchronous. Timing is set within the module options.
You set the sample rate and the time base settings in the RS232 Input module OPTIONS setting.
You can force it to 10 Hz by choosing 0.1 sec sample rate. This is available when you have the Data Request command activated.
You can separately select the sample rate using the Time Base setting - DASYLab will repeat the last data until the new data is parsed to force the asynchronous input into a synchronous timebase.