LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

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

Summary of Contents

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

  • Chapter 2Extensions to LabVIEW© National Instruments Corporation2-57LabVIEW LEGO MINDSTORMS NXT ModuleNXTDrawGraphicParameters:This system call method renders the RIC-format graphic file (the LEGO standard image format) specified by Filename. Location specifies coordinates of the lower left corner of the rendered image.All draw coordinates are relative to the lower left corner of the screen on the NXT brick.The Variables argument specifies an array of arbitrary numeric parameters RIC files might use. Most files ignore these variables.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 graphic 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.If return value is non-zero, an error occurred while attempting to draw the file. Either the specified file does not exist or is not a valid RIC format file.ParameterData CodeI/O DirectionDescriptionStatus CodeI8outputUnusedLocationclusterI16 (X)I16 (Y)input-outputCoordinates from lower left of screenFilenamestringinputMaximum of 19 characters (15.3 filename)VariablesI32 arrayinputOptional parameters as defined by the RIC file.OptionsU32inputBitfield of draw options