10-26-2007 10:21 AM
10-27-2007 07:53 PM
10-28-2007 05:40 AM
10-29-2007 07:29 PM
Hi,
Try using VISA commands to achieve this. There are several shipping examples that might help. These can be found by choosing Help - Find Examples in LabVIEW. Then choose Hardware Input and Output - VISA.
Let me know if these help!
11-06-2007 03:30 AM
11-06-2007 09:04 AM
The \r and \n are called slash codes and they are the slash codes for CR (carriage return) and LF (line feed). A LabVIEW string control/constant can be set for normal, '\' code, or hex display by right clicking on it. To send a CTL-Z, you should have an ASCII code table and lookup the hex equivalent, set your control/constant for hex display, and send the correct value. The hex value of CTL-Z happens to be x1A. You could also use a U8 numeric control set for hex display and type cast it to a string.
11-06-2007 10:04 AM
11-06-2007 10:23 AM - edited 11-06-2007 10:23 AM
I'm not sure why there has to be much of anything on the front panel at all. You said you wanted a program that automatically sent a message. All of the information you need can be constants on the block diagram. The example you mention is just that - an example to demonstrate serial communication.
If this is a program that a user will operate, design the front panel with just the controls necessary. If you want an operator to enter a message and destination, just have those controls and a send button. Everything else will be taken care of by the code you write. There is a very old example program posted at http://forums.ni.com/ni/board/message?board.id=170&thread.id=268276&view=by_date_ascending&page=1. The code itself can use with an update but look at the design of the front panel.
11-06-2007 11:01 AM
11-15-2007 08:47 AM