Jump to content

sampling serial port byes


ccie

Recommended Posts

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

Link to comment

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:

post-11268-1240578157.png?width=400

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.