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

Should I Use a Parser Like the One Included in the NI-Device 1.4 Multithreaded Example?

Primary Software: Driver Software>>NI-Device
Primary Software Version: 1.4
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: The multithreaded example for NI-Device 1.4 (or later) provides the source for a parser. Could I use this parser in my application?

Solution: The parser included in the example is not a full feature parser. It has the necessary functionality to run the example. However, you are free to use it and add additional functionality to it.

Here is a list of the most significant limitations:
  • The parser does not support multiple parameters. For example, the string *SRE 0 is supported since the 0 is a single parameter. However, ABC 4,0 is not supported since 0,4 are two different parameters.
  • The parser does not support anything but NR0 encoded data. NR0 is a decimal-encoded data, as opposed to NR1, which is a floating-point encoding.
  • The parser is not a SCPI parser, meaning that it has no notion of a " : " for SCPI commands. However, it treats the " : " as any other character so you can create SCPI type commands.
  • Some pieces of documentation are missing.



Related Links: Bison - GNU yacc

Flex - GNU lex

Spirit - C++ parser framework



Attachments:





Report Date: 11/14/2003
Last Updated: 06/01/2004
Document ID: 33DAI12Y

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