Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5     Rate this Document

Why Does a String Constant Not Work in the Serial Write/Read Example But a String Control Does?

Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
Primary Software Version: 8.2
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Full Development System

Problem:
I am successfully sending commands with the Basic Serial Write and Read example VI, but when I change the 'string to write' control to a constant, it stops working. The command text remains the same, so what is changing?

Solution:
The string command must be entered in '\' Codes Display. When you right-click on the string control and select Change to Constant, this mode automatically reverts to the default Normal Display. You need to right-click on the constant and manually change the mode back to '\' Codes Display for your command to be sent properly.

Related Links:

Attachments:





Report Date: 04/13/2007
Last Updated: 04/17/2007
Document ID: 48CHR1LO

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit