10-04-2005 11:46 AM
10-04-2005 06:18 PM - edited 10-04-2005 06:18 PM
Hi srt,
Attached is a very basic vi you can play with. Please configure the serial port appropriately.
And remember: have fun 😉
JLV
Message Edited by JoeLabView on 10-04-2005 07:19 PM
10-04-2005 06:21 PM
12-08-2006 08:23 AM
@JoeLabView wrote:
Hi srt,You should start by creating a while loop. Wire a stop button to the loop control.Outside (before) the while loop, configure the serial port, open the serial port, check to see if there is any data at the port. Feed the number of bytes into a Read Serial Vi and use this data to initialize your loop (use a shift register).Within the loop, place the check no of bytes at serial port and feed this value to the read Serial Port. Make sure you do not use the setting to timeout for a certain amount of bytes. Merge the newly obtained data to the previous data by wiring the input shift register to the merge string vi (top port) and wire the new data to the bottom port. Feed the output of the merge string to the output shift register (located at the right of the loop). You can place a display inside the loop (a better way is to place it outside... but that is beyond the scope of this explanation 😉 ).You can also use the data coming out of the shift register after the while loop is stopped. It will contain all the data coming from the serial port.Regards,JLV