Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

GPIB and Serial ActiveX Control Parsers Interpret Some Negative Numbers as Positive

Primary Software: Measurement Studio>>Visual Basic Support
Primary Software Version: 6.0
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-488.2

Problem:
Parsers in the GPIB and Serial ActiveX controls do not correctly interpret negative numbers that do not have at least one digit to the left of the decimal point. For example:

Input String Parser Output
"0.1"0.1
".1"0.1
"-.1"0.1 (Negative number converted into a positive number)
"-0.1"-0.1


If you create a new task using a "<number>" token, the "-.1" input is not converted into a positive number but there is simply No output.

Solution:
The parsers built in the GPIB and Serial ActiveX controls require that negative numbers have at least one digit to the left of the decimal point. Make sure that all negative numbers in your input string comply with this requirement. For example, instead of having an input string of "-.5", you should have "-0.5".

Related Links:

Attachments:





Report Date: 03/22/2004
Last Updated: 09/17/2004
Document ID: 37I9BAMT

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