DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

formula interpreter logical operator

Solved!
Go to solution

Dasylab 10

 

I'm capturing voltage from a daq, using formula interpreter to make calculations and then generating a XY graph. As the values are being generated I am wanting to display in a digital display the Y peak value and the corresponding X value. I therefore thought of writing to a variable each time the new value measured is greater the last one and then transmitting this to the display...

Problem: I don't know how to use the formula interpreter and the logical operators

e.g. IN(0)>=${VAR1}

 

When true, I'm expecting to see the output of the formula interpreter to go high and then I can trigger an action event. However whatever I have attempted so far hasn't worked, so I'm guessing there is something I don't understand

 

Can anyone show me an example of how this works?

 

Thanks

0 Kudos
Message 1 of 4
(6,510 Views)
Solution
Accepted by topic author T.S.Dyno
Spoiler
 

The result will be 1 and not 5 if true.  You need to moltiply the result by 5.

 

So, if your formula is IN(0)>=${VAR1} then you need to change it to (IN(0)>=${VAR1}) * 5

Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
Message 2 of 4
(6,504 Views)

Hi T.S.Dyno,

 

I understand you're having some issues with DasyLab.

 

Just to check I have understood correctly, can you confirm/correct the following:

 

Voltage Input > Formula Interpreter Calculations > Generate XY Graph > Display Y Peak > Find Corresponding X

 

Would you be able to send me a copy of your code so that I can get a better understanding of what you have tried so far?

 

Kind Regards,

Oli
LabVIEW Student Ambassador
National Instruments UK
0 Kudos
Message 3 of 4
(6,501 Views)

Thanks to all. Tom's answer solved the issue for me. You get a result of 1 but this needs multiplying by 5 to generate a logic level that can be used with logic inputs and events.

Message 4 of 4
(6,487 Views)