ccie Posted April 24, 2009 Report Share Posted April 24, 2009 Hi all , i have been able to display a waveform from a real circuit , but the problem is i have not been able to display it at the right speed it appears to fast on the waveform graph . please can anyone help me modify my code to sample the serial port bytes at 250ms and display it so that it will be a lot slower to the eye.Or is dere any way to adjust the wavefor so that it can be a lot slower to the eye for analysis Secondly can anyone pls help me display nothing on the waveform graph when bytes are not in the serial port. i am using labview 8.0 Thanks for ur anticipated response Quote Link to comment
crossrulz Posted April 25, 2009 Report Share Posted April 25, 2009 Move your wait from the case structure to the while loop and change the wait time to 250ms. This will cause you to wait 250ms before even checking the COM port. As for appealing to the eye, I recommend changing your graph into a chart. A history will be available then. Also spend some time cleaning up your code. I had to spend time cleaning it up just to possibly understand what the code was doing. Here's what I did with it: Quote Link to comment
Grampa_of_Oliva_n_Eden Posted April 25, 2009 Report Share Posted April 25, 2009 QUOTE (crossrulz @ Apr 24 2009, 09:02 AM) Move your wait from the case structure to the while loop and change the wait time to 250ms. This will cause you to wait 250ms before even checking the COM port. As for appealing to the eye, I recommend changing your graph into a chart. A history will be available then. Also spend some time cleaning up your code. I had to spend time cleaning it up just to possibly understand what the code was doing. Here's what I did with it: http://lavag.org/old_files/monthly_04_2009/post-11268-1240578157.png' target="_blank"> If you use a floating pointing data type you can use "NaN" for all points that should NOT be plotted. Ben Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.