Jump to content

Phillip Brooks

Members
  • Posts

    899
  • Joined

  • Last visited

  • Days Won

    50

Everything posted by Phillip Brooks

  1. QUOTE (Darren @ Jun 11 2009, 11:01 AM) FYI, I experimented with loading the file data in one loop and passing the data via a queue to the 'core' function running in a separate loop, thinking that the file I/O was a place for improvement. It appears that the majority of the overhead is in the 'core' vi; no gains were detected...
  2. QUOTE (Darren @ Jun 10 2009, 04:11 PM) I experimented with the shipping implementation, and found that the following will help the performance: Disable debugging in "MD5 Checksum File" and the sub-vi "MD5Checksum Core". Inside "MD5Checksum Core", the inner-most loop contains a section of code that performs Swap Words and Swap Bytes on the current array Element. Move these two functions to the outermost loop and place them immediately after the typecast of the string to an array of U32. I reduced the MD5 calculation on version 8.6.1f1 LabVIEW.exe from 2.79 seconds to 2.12 seconds. QUOTE (hooovahh @ Jun 10 2009, 02:57 PM) Any file above 30kb and the command line version process it faster. I performed an MD5 on four 5Mb text files, and using the native MD5 it took 2,786ms, while the command line took 125ms. The OpenG wasn't a good comparison since it processed the whole file at once taking, over 30 seconds. I revisited my .NET implementation from here and found that it one of the .NET methods was broken when I loaded the VI in LabVIEW 8.6.1. I've fixed it and cleaned it up, but can't upload to the LAVA forums at the moment. (not sure why...) Maybe the .NET technique will work for you...
  3. QUOTE (Darren @ Jun 3 2009, 10:17 PM) Haven't had time to play with the toolkit, but thanks for the first Scripting tip! http://labviewartisan.blogspot.com/2009/06...1-power-of.html
  4. QUOTE (ShaunR @ Jun 2 2009, 05:08 PM) If MyEnormouslyLongVariableName > YourEnormouslyLongVariableName then iWin == True uWin == False Else uWin == True iWin == False EndIf
  5. QUOTE (PaulG. @ Jun 1 2009, 12:16 PM) I've done that for years too! I showed that trick to somebody once and he hit his head on the desk.... repeatedly... VERY HARD! That said, a right-click that could convert a c enum declaration string (constant on BD) to a LV enum constant would be nice...
  6. QUOTE (crelf @ May 31 2009, 11:07 AM) Dunny?! Ewww. Too much detail...
  7. I'm populating a tree with items from a directory. I'm retrieving the icon for the file via the private method "Get Shell Icon of File". Some of the image data clusters (MS Office, .txt and .jpg files) have a black background and I can't seem to apply a mask to get a 'nice' display in the tree. LabVIEW and ZIP shell icons are fine... OK. I just found my own solution (dark side). I need to use vi.lib\picture\picture.llb\Create Mask By Alpha.vi I discovered this on the dark side in this Developer Zone example: Traversing Tree Controls and Setting Custom Symbols
  8. In "A Software Engineering Approach to LabVIEW", the authors have examples of writing wrapper functions to do exactly what you describe (Chapter 6). You can find some of the code from the book here, but the latest version is LabVIEW 6.1.
  9. There are threads on the NI forums that have SPI examples; this one specifically discusses the PCI-6221 http://forums.ni.com/ni/board/message?boar...e.id=7712#M7712
  10. This thread on the NI forums may be of help... http://forums.ni.com/ni/board/message?boar...thread.id=13178
  11. QUOTE (Rio C. @ Apr 30 2009, 04:44 PM) Dyslexic LAVA members use automated Shiner Bock VIs
  12. QUOTE (manojba @ Apr 29 2009, 03:00 AM) See attached example (LabVIEW 8.0) http://lavag.org/old_files/post-949-1241002997.vi'>Download File:post-949-1241002997.vi
  13. If philosophers were programmers, which one(s) would use LabVIEW? Francis Bacon?
  14. Brian Powell's blog contains some good thoughts on driver development. This entry discusses the API aspect of your driver.
  15. QUOTE (bsvingen @ Apr 8 2009, 03:12 AM) I've never programmed in Ada, but a friend of mine worked on government programs for years that required it. Ada is defined by an ISO/ANSI standard and was specifically designed to be used in mission critical applications. The new Boeing 777 would be a pile of metal and plastic without software (Ada). I like LabVIEW a lot, but I certainly wouldn't want to fly in a jumbo jet controlled by code consisting of private scripting placed inside locked diagrams and outdated library functions that are in such bad need of a rewrite that their customer base has a contest to rewrite it.
  16. Christina has a timely entry on her blog that should make managing your your tree control appearance a bit easier :thumbup:
  17. QUOTE (Mark Yedinak @ Apr 3 2009, 01:12 PM) See attached .ZIP (LV 8.5) Ignore the name; the zip file contains 8.5 files Download File:post-949-1238779541.zip This was the callback I was talking about... http://msdn.microsoft.com/en-us/library/sy...temwatcher.aspx
  18. QUOTE (jdunham @ Apr 3 2009, 11:05 AM) I'll share my XControl. It's rough around the edges, but it started out as throw-away code to help us upgrade from LabVIEW 7.0 and TestStand 3.0. I populate the tree as it is expanded... There is no 'delete' function, and the folders don't refresh automatically. There are some .NET callbacks that you could register to watch for events from the OS and refresh the tree dynamically. See the attached ZIP file (LabVIEW 8.6.1)
  19. QUOTE (jcarmody @ Mar 31 2009, 09:24 AM) (Communist) Dog! (Capitalist) Pig! Lamb! I've eaten dog (tricked into it while in Korea ) I do love ham & swiss with dijon on pumpernickel. Lamb with mint jelly, awsome! http://www.moviewavs.com/php/sounds/?id=bst&media=WAVS&type=Movies&movie=Madagascar&quote=gobbleus.txt&file=gobbleus.wav' rel='nofollow' target="_blank">"We are all steak" (Madagascar) I'm getting hungry...
  20. As a Buffalo area native, I only consume butter lambs at Easter ...
  21. Under $50 is probably pushing the limits. Consider spending ~ $100, and there are a couple of options: LabJack iUSBDAQ
  22. A bit of research turned up a product called AirMedic that takes advantage of the newer Intel 5100 and 5300 series wireless adapters. No additional external receiver or other hardware. Unfortunately, there is no mention of an API, and the software appears to cost ~ $1000 US. :thumbdown: I suppose with enough effort and proper documentation for the Intel hardware/drivers it might be possible to recreate it, but considering the cost of AirMedic, I'm guessing this wouldn't be a weekend project... I remember seeing something called the Wi-Spy 2.4 GHz receiver on ThinkGeek some time ago. The original version is available for $199 US. I poked around on the manufacturer's web site ( www.metageek.net ) and couldn't find any info about an API for the Wi-Spy products; but there is something that you could look at called inSSIDer. It appears to use .NET API functions ( XP sp2 and Vista) to report WiFi statistics. The inSSIDer code is open source. :thumbup:
  23. QUOTE (jdunham @ Mar 25 2009, 12:46 AM) I recall Aristos telling us that there is an algorithm that defines the way LabVIEW will allocate additional memory for an unbounded queue, and that LabVIEW will not free memory allocated for a queue until the top level VI goes idle or the Release Queue function is used with the 'destroy' option set to true. I also recall that Aristos told us LabVIEW http://forums.lavag.org/Lossy-Queue-Capability-t4217.html' target="_blank">queues are implemented as circular in-memory buffer.
  24. QUOTE (Yair @ Mar 24 2009, 01:55 PM) The profile also says flarn has been using LabVIEW since 2005! :thumbup:
  25. QUOTE (zyh7148 @ Mar 17 2009, 04:52 AM) The http://en.wikipedia.org/wiki/Simple_Network_Management_Protocol#SNMPv3' rel='nofollow' target="_blank">main difference between SNMPv1 & v3 is that v3 adds security (authentication, data integrity and encryption).
×
×
  • Create New...

Important Information

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