LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect node Formula Syntax

Hello,

 

I am using a formula node to determine where an input lies in a range of values (-32768 to 32767) and then outputing a variety of variables to a case structure for the proper action to be taken. I however am having trouble dialing down the syntax of my formula node. Could somebody please help me determine where my error is in this node.

 

Thank you in advance!

ChrisCapture.JPG

0 Kudos
Message 1 of 5
(2,932 Views)

I would just use a normal case structure with the nSteps wired to the case selector.  You can then make a case for each range.  Your ranges would be "-32768..32767", "32768..", and "..-32769".  You can then do whatever math you need to inside of the case structure.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(2,919 Views)

Please attach the actual VI. We cannot debug images.

0 Kudos
Message 3 of 5
(2,918 Views)

The VI is attached. Ignore the unconnected terminals. How do I wire a DBL to the case structure and create ranges for the case structure. Do I simply type in the case indicator box the ranges in correct syntax?

 

 

0 Kudos
Message 4 of 5
(2,910 Views)

Scratch my last reply. I have figured out how to input ranges into a case structure. Thank you for your help!

 

Chris

0 Kudos
Message 5 of 5
(2,904 Views)