From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-12-2005 08:56 AM - edited 04-12-2005 08:56 AM
Message Edited by aurelia on 04-12-2005 09:01 AM
Message Edited by aurelia on 04-12-2005 09:01 AM
04-13-2005 06:41 AM
04-13-2005 10:28 AM
04-14-2005 11:52 AM
04-14-2005 11:59 AM
04-14-2005 12:06 PM
@Shawn B. wrote:
The Properties Shane mentioned will set the end mode for reads. The "Termination Character" property will take the decimal value of the ASCII character your device requires. This is 10 for \n (LF) and 13 for \r (CR).
If you want to automatically append a termination character on the ends of your writes you will need to use the Properties-> Serial settings -> Serial End Mode for Writes, and set it to TermChar. It will then automatically append the character you specified in the Termination Character Property Shane mentioned.
Shawn B.
National Instruments
04-14-2005 12:07 PM
@shoneill wrote:
Are you setting an end Termination string? Most serial communications need to be terminated with either \n or \r\n (Otherwise known as LF and CRLF respectively).
You can set this option when configuting the serial port in VISA. Use a property node to access the option. It's under "Properties-> Message-based settings -> Termination character" and "Termination character enable".
You should also check to see if your pump control works in Hyperterminal or some other program which can write to the COM port. This way you can exclude wiring or hardware problems.
Hope this helps
Shane.
04-14-2005 12:24 PM
04-14-2005 02:31 PM
@Dennis Knutson wrote:
Aurelia,
What you did (twice) was simply attach LabVIEW 6.0 functions and not any code that you wrote with saved configuration or commands. Even if you really have 6.0 as opposed to 7.0 as you state in your original post, you should not be using these old serial functions. You should be using the VISA functions (i.e. VISA Configure Serial Port, VISA Bytes at Serial Port, VISA Write, VISA Read). There are a couple of shipping examples. Just opne the examples and do a search for "Serial". When you open one of the examples, you should have a string controller for sending commands to the instrument. Right click on it and select '\' Codes Display. Now, when you type the command, end it with a termination character like Shane mentioned. Use \r for a carriage return and \n for a line feed. The instrument manual should tell you which one or both that you need. If you still can't get anything to work, save the example you use with the configuration and command string by selecting Operate>Make Current Values Default and then post that VI.
04-14-2005 02:49 PM