zoogies Posted June 29, 2007 Report Share Posted June 29, 2007 Can this be done? I looked this up, and it looks like you do it in Labview 8 via MathScript. It's not one of the basic palette features on Labview (I'm using 7.1) I made a simple quick-and-dirty VI, but I don't really like this since it's kind of hacked together. Labview doesn't really have a floor function, so I took the result of the divide, made an indicator from it, went to 'properties', made it an unsigned word (so that it would have to be a positive integer) and set it to 'coerce down' (round down). So this will do x modulo y for me, which accomplishes what I need, but it seems like there must be an easier way? http://forums.lavag.org/index.php?act=attach&type=post&id=6247 Quote Link to comment
BobHamburger Posted June 29, 2007 Report Share Posted June 29, 2007 There is an easier way: it's called the Quotient and Remainder function on the Numeric palette. This is a combination floor and modulo function. I've been using LabVIEW since 5.0, and it's been there at least that long. http://forums.lavag.org/index.php?act=attach&type=post&id=6250 Quote Link to comment
Karissap Posted June 29, 2007 Report Share Posted June 29, 2007 QUOTE(zoogies @ Jun 28 2007, 09:23 AM) Labview doesn't really have a floor function There is a floor function, it's called "Round to -infinity" and it is in the Numeric palette of LabVIEW 7.1 http://forums.lavag.org/index.php?act=attach&type=post&id=6251''>http://forums.lavag.org/index.php?act=attach&type=post&id=6251'>http://forums.lavag.org/index.php?act=attach&type=post&id=6251 Quote Link to comment
zoogies Posted June 29, 2007 Author Report Share Posted June 29, 2007 Wow, thanks! I noticed "round to -infinity" before but didn't really stop to think about what it could have meant. Hm, interesting name to call a floor function... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.