01-21-2006 11:31 AM
01-21-2006 11:55 AM
Hi,
If you send something over a com port this will be with the serial protocol. It start with a startbit after that comes the data (and parity if selected) and it end with a stopbit.
The startbit is always one and the stopbit is always zero (seen at the Tx and Rx pins of a Uart)
So the TxD at a com port cannot be at one level all the time (except when there is no data)
01-22-2006 05:12 AM
Thanks for the tip. appreciate it. 🙂 Is there any other suggestion if i want to get a fix signal without going through the while loop which creates the on and off sequence over and over again? I'm using a simple program from the NI examples. The program is called "Basic serial read and write" Basically, this program requires the user to key in any string. After connecting the 2nd and 3rd pin of the serial together, the string that the user entered would be read and displayed back on the screen.
So what i did is i put a while loop over the whole program not leaving anything. This will create continuous string writting, but like i said, there will be a short delay where the signal goes down to zero and then up again through the oscilloscope. I need the signal to stay alive, that is if possible, send a string or a series of it,and thus maintaining it without looping.
Thank you
01-22-2006 10:51 PM - edited 01-22-2006 10:51 PM
Message Edité par chilly charly le 01-23-2006 05:56 AM
01-22-2006 11:11 PM

01-23-2006 11:45 AM
01-23-2006 11:53 AM
01-23-2006 12:12 PM
01-23-2006 12:46 PM - edited 01-23-2006 12:46 PM
Mlws
A break is a signal sent on the serial port : the line is maintained at high potential for a predetermined time. Default to 250 ms, but can be adjusted programmatically between 0 and 500 ms.
The Continuous break vi maintains the line perfectly at 1 as long as you want. I checked that with an oscilloscope. No need to send any fancy string in a loop, or to add a capacitor (tbob, that's something for you 😉 !) I suspect that only few LV users know the trick !..
However, for your application you could have used other lines. DTR is often used as a voltage source, and RTS could be used aswell.
Clearly, a serial port can be used as an in/out port, with 3 output lines (TxD, DTR, RTS) and 4 input lines (CTS, DSR, DCD, RI).

Message Edité par chilly charly le 01-23-2006 07:50 PM
Message Edité par chilly charly le 01-23-2006 07:51 PM
01-23-2006 01:46 PM