Jump to content

crossrulz

Members
  • Posts

    541
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by crossrulz

  1. If you only care about the latest data, a notifier is the guy you want. A queue is for lossless data transfer. A notifier is for lossy data transfer.
  2. That's a lot of good information. Thank you for the article.
  3. I have not gone through the LabVIEW for Everyone. But from quick skimming, it looked really good. The LabVIEW Style Book is really good, but it won't help you with the CLAD. I found the Advanced LabVIEW Techniques worthless. There's no code in it! The Basics I and II course books should be really helpful. The core of LabVIEW hasn't changed much. Here are some links that may help you in your studies. CLAD Information on NI.com - there's a few links for practice exams and other study material The Daily CLAD on NI Communities - CLAD-like questions to get you thinking about possible topics
  4. NI sells them:http://sine.ni.com/tacs/app/fp/p/ap/ov/lang/en/ol/en/oc/us/pg/1/sn/n5:selfpaced/
  5. cross-post on the dark side:http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Parse-one-String-containing-numbers-into-two-Arrays-and-display/m-p/2233252#U2233252
  6. I was thinking of simply making a quick drop shortcut to do this. Just haven't found the time to make it yet.
  7. Is this a CAR for the Delete From Array? I sure wish we had visibility into the CAR database...
  8. Just a general comment: There is no need to set your file position inside of the loop. The position increments during the read. After a read, the position will be set to the next byte, so the the next read will start where the previous left off.
  9. I fully agree with Philip. You can right-click on the Read from Text File and select "Read Lines". The glyph will change. Set the count to -1 to read the entire file in lines (the default becomes 1 line). The other option you have is to use the Spreadsheet String to Array.
  10. Hate to burst your bubble, but Darren included a little nugget: <vi.lib>\Utility\High Resolution Relative Seconds.vi I know it's there in 2011 and 2012.
  11. Ok, here's the updated VI with the correction found above. Long Wait.vi
  12. Yeah, my benchmarks found that the delete from array was really slow. What I ended up doing in the proposed VI was to reverse the array and then index the first element. This method was slightly faster than the index array size -1.
  13. Yep. I goofed it up when cleaning up. Will repost when I get a chance to fix it later today.
  14. They actually use the Reshape array. But the math for how to setup the dimentions is done inside these VIs.
  15. More submissions to OpenG. This time I have a few array functions that I have had to use over the years. These VIs are for taking a 1D array and turning it into a 2D array, taking a 2D array and turning it into a 1D array, and to simply get the last element of at 1D array. Thoughts? Critisism? Praise? Ideas to make it better? Good for OpenG? 1D to 2D array.llb 2D to 1D array.llb Final Array Element.llb
  16. Here is another VI I am submitting for OpenG. It is for when you have to wait for something to happen and this wait is in the domain of seconds. You don't want the user sitting there wandering if the program froze. So I made a VI for these long waits that includes a progress bar. Notice that this VI uses my Global Stop VI found here. Thoughts? Critisism? Praise? Ideas to make it better? Good for OpenG? Long Wait.vi
  17. Here's a few generic CRC VIs I made sometime over the years. They do not use the lookup tables, so they may be a little slower. But they can be set to any CRC configuration. Included are an 8-bit, 16-bit, and 32-bit versions. CRC.llb
  18. I think I found it. In the testApp.vi, the first thing that happens is the Close. The shift register is of the parent’s class. Since the shift register hasn’t been initialized, it will have a class of the parent. Therefore you get your “parent class was used” error. This error is then causing the rest of the code in the event to not run and the shift register will have a “parent class” loaded into it. I recommend changing the error to a warning and see what happens.
  19. I've been using that little trick for years. I could take either side of the debate, but as a user I lean towards not having to define the output data.
  20. I did think about that during the beta. But at this current time OpenG is supposed to be written in LV2009. It is something to look into.
  21. I started working on a reuse library late last year. I've been working on it off and on. Anyways, I would like to submit it for OpenG. So here's the first batch of code. There are two main parts to this library. First, I included templates for Action Engines for using Queues, Notifiers, and Events. These AEs are pretty simple, but have become a criitcal part of some of my architectures over the years. They are controled using a type def enum. The otehr main part is an Functional Global Variable for stopping an application. I called it a Stop Global. The key features with this FGV is a Set and a Reset mechanism and the use of an Event in order to tell an event structure to exit. I didn't like the idea of using a timeout event in order to poll the global. And yes, the event is controled with an AE that was created by one of the templates. I zipped up the code and left an example of how to use the Stop Global. Everything should be saved in 2011. If you need me to save back to 2009, let me know. Thoughts? Critisism? Praise? Ideas to make them better? Good for OpenG? I'll post more of my library for submisison a little down the road. Messaging.zip Stop Global Example.vi Messaging Library Descriptions.txt
  22. Congratulations! Good luck studying for the CLA now .
  23. Did you forget to attach? Where can we find your code?
×
×
  • Create New...

Important Information

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