Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

IDE Integration Code Comments Example (Microprocessor SDK)

LabVIEW 8.6 Microprocessor SDK Help
June 2008

NI Part Number:
372197B-01

»View Product Info

When you implement IDE integration, the LabVIEW C Code Generator adds a set of comments to the generated code to mark the beginning and the end of a node. The C parser parses the comments and adds the comments to the debug database. The following code sample shows an example of these comments:

hA8EA7A0->sCA8/* n: MultiplyConstant */ = 5.0000000000000000000E+2;

hA8EA7A0->sA9C/* n: DivideConstant */ = 1.0000000000000000000E+2;

hA8EA7A0->sBEC/* n: NumberIn */ =NumberIn__1364;

OCDI_BEGIN_NODE(profileInfo_simple_math, 0, 2) /* OCDI::Begin::Node(1, 2, 3) */

/**/

/* Multiply */

/**/

OCDI_CHECK_POINT(simple_math_OCDIFlag[0] & 0x1, &simple_math_OCDIFlag, 0)/* OCDI::BreakPoint::Node(1, 2, 3) */

hA8EA7A0->sB58/* n: Multiply: x*y */ = hA8EA7A0->sBEC/* n: NumberIn */ * hA8EA7A0->sCA8/* n: MultiplyConstant */;

OCDI_END_NODE(profileInfo_simple_math, 0, 2) /* OCDI::End::Node(1, 2, 3) */

OCDI_BEGIN_NODE(profileInfo_simple_math, 1, 3) /* OCDI::Begin::Node(2, 3, 3) */

/**/

/* Divide */

/**/

OCDI_CHECK_POINT(simple_math_OCDIFlag[0] & 0x2, &simple_math_OCDIFlag, 1)/* OCDI::BreakPoint::Node(2, 3, 3) */ hA8EA7A0->sA08/* n: Divide: x/y */ = (float64)hA8EA7A0->sB58/* n: Multiply: x*y *//(float64)hA8EA7A0->sA9C/* n:DivideConstant */;

OCDI_END_NODE(profileInfo_simple_math, 1, 3) /* OCDI::End::Node(2, 3, 3) */

if (NumberOut__616) {

*NumberOut__616 =hA8EA7A0->sA08/* n: Divide: x/y */;

}

return eFinished;


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit