Jump to content

GregPayne

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by GregPayne

  1. My next step was to save the picturebox to an image. This was trickier than I expected. I kept getting a .net exception when trying to save the picturebox image.

     

    After reading through a few forums and code examples, I found out that it is not particularly good practice to draw directly into a picturebox. The better way is to create a bitmap inside the picturebox and then draw onto the bitmap. Then all you need to do is call the bitmap.save() method and an image is saved. 

     

    I have attached my latest vi that saves the image drawn. I also added a timestamp and file path to the image before it is saved. The code is not very clean, so sorry. I'll be cleaning it up when adding it the the bigger application.

     

    Cheers,

    Greg

    Opacity Trace_3.vi

  2. Hi Everyone, 

     

    I am trying to create a picture in LabVIEW that records a trace. I want to get the concept working first before I add it to my program. I would like the end result to look something like this (I used Inkscape to create this image): 

     

    post-25191-0-64022500-1401195490.png

     

    So the idea is a trace gets made with the opacity of the point set quite low (in the above case 0x48). Therefore when the same coordinate is passed over for a second time, the point gets darker. The darkness of the points will indicate which coordinate is passed over the most number of times.

     

    At the moment I am using a 2D Picture indicator and drawing the mouse coordinates, but can't set the opacity, only RGB.

     

    Is there another function that the opacity can be set?

     

    Thanks,

    Greg

    Opacity Trace.vi

  3. Hi Andrew,

     

    With reference to your first post, you can use the index array function to get the individual elements out of the array.

     

    post-25191-0-77297500-1398424943.png

     

    Are you able to control the format of the data from the serial port?

     

    Could you provide the a sample of the exact data the is read from the serial port? That would help in working out how to split it into the three graphs.

     

    Greg

  4. Just been playing around with this, works with To Lower Case too.

     

    Not quite sure where this would be used? According to LabVIEW help:

     

    To Upper Case Details

    If string is a numeric value or an array of numeric values, each number is evaluated as an ASCII value. The To Upper Case function translates all values in the range of 97 to 122 into values over the range of 65 to 90. It also translates any other value in the extended ASCII character set that has an uppercase counterpart, such as lowercase alphabetic characters with accents.

     

    Any idea's where you could use this?

     

    Greg

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.