Rounding function


seizmic

Recommended Posts

I need to stop a motor when input is close to zero -- it can't never be exactly zero.

what command do I use to do that?

or

is it just

if (0.05 < input < 0.11) then end sequence

is there list of commands to scroll through what is available to DAQFactory?

Link to comment
Share on other sites

Certainly that will work, though the syntax is a little different and I'm not sure why you care about it being > 0.05. Probably more like:


if (input[0] < 0.11)
endseq(mySeq)
endif
[/CODE]

There's a general list of functions at the end of chapter 4, while the scripting is described in chapter 5. Variables and functions specific to certain parts of DF (like logging sets or channels or components) are in the appropriate chapters, with system functions listed at the end of chapter 5.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.