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

The LabVIEW MathScript Plus() and Minus() Functions Cannot Compile with the Control Design Toolkit 2.1 Installed

Primary Software: LabVIEW Toolkits>>Control Design Toolkit
Primary Software Version: 2.1.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>Professional Development System

Problem: I am using LabVIEW 8.2 with the LabVIEW Control Design Toolkit 2.1.1 or 2.1.2. When I attempt to run a script in the MathScript Window that uses the plus() or minus() functions, I receive the following error: LabVIEW cannot compile the current MathScript. Contact National Instruments with the MathScript you used.

When I attempt to create a MathScript Node that uses the plus() or minus() functions, I receive the following error: MathScript Node: Code could not be generated correctly for this VI.

The plus() and minus() functions worked before installing the Control Design Toolkit. Why do these errors appear now?

Solution: The plus() and minus() MathScript functions do not work properly in LabVIEW 8.2 when the LabVIEW Control Design Toolkit 2.1.1 or 2.1.2 is installed. If you installed this toolkit and you are running a script that uses these functions, you must replace them with the + and - operators.

For example:
replace c = plus(a,b) with c = a+b, and
replace c = minus(a,b) with c = a-b

This issue, and other known issues, are documented in the Readme file of the LabVIEW Control Design Toolkit.

Related Links: KnowledgeBase[443DKECW]: LabVIEW Control Design Toolkit 2.1.x Readme Files

Attachments:





Report Date: 03/04/2007
Last Updated: 03/05/2007
Document ID: 473CNKMS

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