05-08-2009 04:11 AM
Hi,
I'm using Labview 8.5.1 and have a numeric "knob" input on my front panel. How can I limit this so as the value that is sent to the block diagram is an integer only? I've set the display on the front panel to not show any decimal places but it still sends a number to six decimal places to the block diagram but my programme needs an integer-only value.
Thanks for the help 🙂
Solved! Go to Solution.
05-08-2009 04:20 AM
Hi thomas_p,
change the representation to an integer. Right click the control in the blockdiagram and select "representation". Select an integer type, maybe I32.
Mike
05-08-2009 04:27 AM
05-08-2009 04:31 AM - edited 05-08-2009 04:36 AM
Hi thomas_p
You need to change the numeric type of the knob. It's probably a double at the moment. Right click on the knob (on either the block diagram or the front panel), select "representation", and choose the appropriate type for your application.
If you're unsure exactly which type to use, look in the LabVIEW Help, In the index look at "numeric", sub headings "representation" and "data types table"
Rod.
EDIT: Beaten to it!