10-17-2009 05:20 AM - edited 10-17-2009 05:27 AM
I have found a solution.
i configured input port to read one byte(ASCII code) at a time. and converted the string to array and gave it to a wave form chart. All this has been placed in a While loop as soon as a byte was red it is plotted and the loop finishes and tries for the other bye until time out is reached.
actully my intention is to send values from one port and receive them via another port which is connected to the first port via null modem cable and plot them as they are received the actul VI and results are shown below.
the first while loop is used to send the data one byte after another. while the purpose of the other loop has been explained earlier. here the sub VI 2 takes the ascii numbers and gives thier corresponding character in string format.
thank you everybody
10-17-2009 05:27 AM - edited 10-17-2009 05:29 AM
chaitu2 wrote:I have found a solution.
i configured input port to read one byte(ASCII) code at a time. and converted the string to array and gave to wave form chart. All this has been placed in a While loop as soon as a byte was red it is plotted and the loop finishes and tries for the other bye until time out is reached.
actully my intention is to send values from one port and receive them via another port which is connected to the first port via null modem cable. and plot them as they are received the actul VI and results are shoun below
the whirst while loop is used to send the data one byte after another. while the purpose of the other loop has been explained earlier. here the sub VI 2 takes the ascii numbers and gives thier corresponding characters in string format.
thank you everybody
Cool. FYI, you should probably clean up the diagram. For instance, you could move the #2 sub-VI above the "decimal integer string" indicator input wire so the wires don't cross. You could move the shift registers around so they line up with the wires. There are a whole bunch of things you could do to tidy things up. It's okay for a simple block diagram like this one, but it will quickly become spaghetti if you write anything much more complicated than this. 😄
10-17-2009 07:09 PM
Please be careful when embedding images in your messages. Don't make them too large. And make sure you have a carriage return between the image and the text before and after. Otherwise you get the corrupted paragraphs like you see in your message where they're justified weird and the text gets separated from the rest of the paragraph. It just makes your message difficult to read.
Why are you configuring the serial port and closing the serial port on each iteration of the loop? You should configure the port before the loop starts and close it afterwards.
10-18-2009 01:37 AM - edited 10-18-2009 01:42 AM
thanks for every thing.
really its my carelessness. i'll try to be clearer.
thanks for suggestions on editing the posts
and sorry for spoiling the page. when i posted the message it appered good but now the results image is appearing far right side.
is it a good sceme for reading & plotting simultaniously? is there any other good and reliable method. kindly post your openion.