Jump to content

GregPayne

Members
  • Posts

    10
  • Joined

  • Last visited

Profile Information

  • Gender
    Male

Contact Methods

LabVIEW Information

  • Version
    LabVIEW 2012
  • Since
    2009

GregPayne's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. That would be nice. I think NI has started opening some of their vi's so they might get there eventually.
  2. Thank you for saving it in LV2010. Unfortunately I can't run it as I don't have NI_WebServices.lvlib. I am guessing it is not included in LabVIEW 2010 base. Will give it a go at home later where I have LV2013.
  3. Would you mind saving it for LV2010? That is all I have at work so can't open this vi. Thanks,
  4. 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
  5. Thanks Neil, Good point about creating the objects outside of the loop. I didn't even think about that... eek
  6. For any one that is interested, here is how I got this working. As hooovahh suggested, I used a .net picturebox and it is working well. Still need to add some tweaks, but the functionality is there. I have also attached the vi if you interested. Cheers, Greg Opacity Trace.vi
  7. Thanks, I have just come across a similar article so might have to look at another way of doing this. Will look into the .NET picture box and see how that goes.
  8. 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): 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
  9. Hi Andrew, With reference to your first post, you can use the index array function to get the individual elements out of the array. 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
  10. Just been playing around with this, works with To Lower Case too. Not quite sure where this would be used? According to LabVIEW help: Any idea's where you could use this? Greg
×
×
  • Create New...

Important Information

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