LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 810
Downloads : 2 times
PDF Size : 572.7 KiB

Summary of Contents

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

  • Chapter 2Extensions to LabVIEWLabVIEW LEGO MINDSTORMS NXT Module2-52ni.comNXT Display MethodsUse the display methods to draw text, points, shapes, or graphic files to the built-in display on the NXT brick.NXTDrawTextParameters:This system call method renders the string Text at the coordinates specified by Location. The method only renders printable characters—non-ASCII or non-printable characters are ignored. The method does not wrap text at the screen edges.All draw coordinates are relative to the lower left corner of the screen on the NXT brick. The NXTDrawText method coerces y-coordinates to multiples of eight by rounding down such that text always appears on one of eight distinct lines on the display.Set the least significant bit of Options to 1 to clear the entire screen before drawing. If you do not set this bit, the method overlays the text on top of any pixels already drawn by the program.The first drawing system call method to execute in a program automatically clears the screen regardless of the value of Options.The return value is always zero.ParameterData CodeI/O DirectionDescriptionStatus CodeI8outputUnusedLocationclusterI16 (X)I16 (Y)input-outputCoordinates from lower left of screenTextstringinputText string to drawOptionsU32inputBitfield of draw options