Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/04/11 07:50
Read: times


 
#180995 - 20x
Responding to: ???'s previous message
If you want to look at the shape of the curve, you should sample at least 20 times faster than the frequency of the signal. This allows you to capture a sine wave, square wave, or triangle wave and still have it presented reasonably close to the real curve.

If you do know that the signal is a 100% pure sine wave then you can manage to sample just above 2*f and then recreate the signal. Getting too close to the 2*f limit means your samples can represent a very low-frequency aliased sine wave where it takes a very long time until you do get a sample at a true maxima. So even when you just recreate a sine wave from samples, it helps greatly if your sampling rate is reasonably much higher than the theoretical limit. And remember that sampling at an exact multiple of the input frequency may result in the samples always happen on the same positions on the input curve - so sampling at 4*n could get you two identical high values, followed by two identical low values - it's possible to recreate the curve but the number of samples used will affect the quality. More points into a least-square equation helps.

For a periodic signal possible to get a good synchronization signal from, it is possible to perform many captures of one period but with a varying offset on the samples - this is what is done by many oscilloscopes that have a high input bandwidth but not fast enough ADC to capture at 20 times the input frequency. The concept works well for some problems but is totally useless for capturing single-shot events.

But let's assume 20*f as sample rate. That means 60 samples/second for a 3Hz signal. 200 samples/second for 10Hz or 2000 samples/second for 100Hz.

So what is the bandwidth of your input signal? What base frequency and what amount of higher-frequency overtones you need to catch? That is what decides if your ADC will be fast enough. And that is what will decide if you need more than 19200 baud to transfer your measurements to the PC.

But connect-the-dots in the PC only works when the measurements are close enough in relation to the frequencies of the sampled signal.

List of 40 messages in thread
TopicAuthorDate
Transmitting a 100 Hz signal through 8051            01/01/70 00:00      
   What is your problem?            01/01/70 00:00      
   RE: "the 8051 has transmission speed upto 19200"            01/01/70 00:00      
      the 8051 has transmission speed upto 19200            01/01/70 00:00      
         Incorrect analysis            01/01/70 00:00      
            Timing            01/01/70 00:00      
               Doesn't help to send at exact time - PC receive will jitter            01/01/70 00:00      
                  Windows For Sure Will...            01/01/70 00:00      
                  A Labview Limitation?            01/01/70 00:00      
         What makes you think that?            01/01/70 00:00      
            What makes you think that?            01/01/70 00:00      
               How fast are you sampling            01/01/70 00:00      
               Insufficient analysis            01/01/70 00:00      
                  20x            01/01/70 00:00      
         you can (I have) easily get 460kb.            01/01/70 00:00      
            No need to look for high baudrates            01/01/70 00:00      
               It doesn't help            01/01/70 00:00      
                  At least ...            01/01/70 00:00      
   Haven't you done this before...?            01/01/70 00:00      
   Here are the results in the form of images            01/01/70 00:00      
      Didn't bother to preview, did you?            01/01/70 00:00      
         How did you concluded?            01/01/70 00:00      
            Duplicate!            01/01/70 00:00      
         How did you concluded?            01/01/70 00:00      
            I think you're wrong            01/01/70 00:00      
            Looks close to 'as expected'            01/01/70 00:00      
               Seems like around 200Hz sample rate            01/01/70 00:00      
                  4 samples/period for the 50Hz signal            01/01/70 00:00      
            Not sure about your concept            01/01/70 00:00      
               Depends            01/01/70 00:00      
               Continuous monitoring?            01/01/70 00:00      
                  Ambiguity            01/01/70 00:00      
   Displaying the Signal at real time            01/01/70 00:00      
      Still not mentioned what the problem is            01/01/70 00:00      
         I do not think they know the problem            01/01/70 00:00      
            A Ring Buffer ...            01/01/70 00:00      
               A double-buffered solution also possible            01/01/70 00:00      
            What is the Problem.            01/01/70 00:00      
         real RS232?            01/01/70 00:00      
            Huge FIFO in USB-to-serial adapter            01/01/70 00:00      

Back to Subject List