I am trying to connect my device through serial port and then get the waveform real-time. I have written a program but the problem is that the graph is an straight line with zero amplitude that sometimes show up which is not desired one.Could you please somebody help me and check the attached vi. I really need your help. Thanks in advance.
It is not so complicated
I made sampling ADC with ATmega8 microcontroller and sent it to COM port. Sample rate was about 5000 sps but it can be up to 10000sps. Higher than that is not possible bue to baud rate limit of com port.. 115200..
I send 1 byte per ADC measured value to achieve maximum SMPS speed.
LABVIEW 10 is used and signal is displayed as on oscilloscope, and some signal processing is made such as Frequency measurement, RMS (DC), AC amplitude, high and low level.. and all these parameters are displayed on separate charts.
Complete code and tutorial you can read and download here