04-13-2009 06:42 AM
I would like to send the string AA through serial port to outside world, the recived application does not contains uart that translate the HEX code 41, 41 buck to AA, so i would like to store the AA directly at the application local register. What will be the procedure to send the AA through the serial port UART that enables receiving it in my application?
04-13-2009 07:33 AM
You just use the VISA Write. Look at the shipping examples called Basic Serial Write and Read and Advanced Serial Write and Read.
I don't understand your comments about no UART at the other end. What are you trying to communicate with?
04-13-2009 08:00 AM
Yes start with the example Dennis mentioned.
The transmit dat will be whatever you specify. hint: If you right-click on the control/constant that holds your trasmit data, you can choose to display the data in hex form if you want.
Now if you end goal is to get an alternating T/F from the serail port, you will run into trouble since the modern UARTs insist on a at least one start and stop bit.
In that case controlling one of the hand-shaking lines (RTS/CTS etc) may be more apporpriate.
Ben
04-13-2009 08:21 AM - edited 04-13-2009 08:21 AM
Maybe there's a microcontroller at the other end which has it built-in.. Irregardless of how the target device receives the serial communication, the basic approach is the same.
Have a look at this link if you have trouble finding the example Denis mentionned.
http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=400813#M400813
R