Jump to content

Chris Davis

Members
  • Posts

    423
  • Joined

  • Last visited

Everything posted by Chris Davis

  1. Barrie, I used the pic ring off of your example in a new code repository upload I did last night. Thanks, this tool is/was helpful, I've got an idea on how to use it in another example.
  2. File Name: Example - Create a Polymorphic VI File Submitter: chrisdavis File Submitted: 3 Nov 2006 File Updated: 8 Nov 2006 File Category: VI Scripting Example - Create Polymorphic VI V1.2.0 Copyright
  3. I looked at your code, you can't just "write" to a file with a .xls extension, and expect it to read back into excel. You'll have to go through excel's active X implimentation. Take a look at this post for more help. BTW, use the search link for our forums, it can help you solve problems like these.
  4. You'll want to check out VIPM. It can download and install all the OpenG packages.
  5. I'm in the same situation. I've found that there is a (fairly) easy way to move OpenG Packages to off-line computers. Simply copy the "cache" directory of commander or VIPM to a keyfob. You can then add these packages and install them as you need to. BTW, this topic came up in the beta stage of VIPM, and JKI has stated that they are working on an easier way to move the packages to non-Internet computers.
  6. You might look at something like pcAnywhere which used to work with dialup connections, at least back in version 9 or so. I don't have version 12, which is what is avaliable, but it is worth checking out.
  7. File Name: Example - Multiply Two Numbers Script.vi File Submitter: chrisdavis File Submitted: 25 Oct 2006 File Updated: 26 Oct 2006 File Category: VI Scripting Example - Multiply Two Numbers Script V1.0.0 Copyright
  8. If your user info is true and you are using 8.2 you may be out of luck. I think parts of scripting were closed after 7.1.x. I'm still using 7.0. You might try copying the create constant or control out of my example and pasting it in your code to see if it works. BTW, don't feel dumb. I wanted to know more, and so I had to devote some more time and effort. This is not a casually learned topic. Althought with my examples, I hope to make it easier to get started learning the basics.
  9. I'll begin the process to submit my code to the code repository. Look for new code there. Thanks for setting this all up Michael!
  10. I'd like to see this happen too, but I know it will take a long time to get right. It led me to start this thread and create the examples. Before a text->VI parser could be written, I thought some scripting examples would be needed, since those who might be good at the parsing might not be good at understanding the scripting side of LV.
  11. I'm thinking that a code repository entry is needed with entries in the knowledge base referencing these examples for dicussion.
  12. Mike, Thanks for the addition, I'd like to add it to my VI's, but I need them saved as LV 7.0. I'm doing this work on a machine that only has LV 7 installed. I'll add them to my post and zip everything up to make it easier to download. Thanks, Chris
  13. Look at the pattern matching example. Its located in the following location <LabView Directory>\examples\Vision\2. Functions\Pattern Matching With this example you will see how to match a pattern. You will have to snap one image, learn that pattern, then snap another image and look for that pattern in the new image.
  14. Thanks for the screenshot. I can see that you captured the image, and setup an roi. Do you have the Vision Development Module (IMAQ)? The pattern matching functions will be installed with that toolkit. There are also examples of how to do pattern matching over time.
  15. I'd like to make more examples, and posting them to a single place would be helpful in the future when we want to point someone to a complete consise example of how to get started with scripting. I know the code repository has methods to source code control. What about the knowledge base?
  16. Is this the same dialog that shows up in OpenG Builder and the JKI LV 8.0.1 mass compile tool? That dialog has an elapsed time indicator, which I somehow find more helpful than a time until complete indicator. Guess I've been fooled to many times by the windows time until complete calculation to put any merit in this type of indicator.
  17. Thanks David, I was hoping someone would get something out of this VI (now these VIs). It took me a couple of nights to get them right, and understand what was going on, so I thought I would document everything thus far, just to make it easier to pick it up, if I have to lay it down for a while. Took me a minute but,
  18. I got interested in Labview scripting recently, but had lots of trouble getting started. After reading the FAQ and activating scripting on my LV 7 install, I was at a loss on what to do, and how to do it. I started figuring things out and thought that I would share my simple examples so that others might have an easier time getting started with scripting. I have attached one example (LV 7.0) of a VI that creates a new VI with a control and an indicator on it. This new VI simply passes through the connection from control to indicator. It also connects the control to the upper left (input) side of the (4x2x2x4) connector pane, and the indicator to the upper right (output) side of the (4x2x2x4) connector pane. I know this example may seem pretty simple (and it is), but it does gather some basics that one needs to get started in scripting. Warning, this VI's diagram is long (left to right), but I wanted to make it look good and document it as best I could. Teaching others is the best way to reinforce what you have learned. Enjoy :thumbup: EDIT: Added second example showing how to create a VI to multiply two numeric controls together and produce the result in a numeric indicator. In this case the two inputs (X and Y) are connected to the two upper left connectors of the (4x2x2x4) connector pane and the product is connected to the upper right connector of the (4x2x2x4) connector pane. Download File:post-2547-1161747922.vi Download File:post-2547-1161750384.vi
  19. Picture of the squad. These guys are part of the swat (software architecture) unit. :ninja: :ninja:
  20. If you can't please the beer gods with music from The Great Escape, you can't please them at all...
  21. Congrats Chris. :worship: :worship: Perhaps we should discuss Scotch or :beer: for the rest of the topic? Or perhaps, Scotish :beer:?
  22. I'm not a big fan of eBay, but others are. But you've got the idea. Cash is a universal language...
  23. You might also consider a different prize for the winner. I'm sure that a NI-6008 works for some people. But I'd hazard a guess that a $150 Amazon gift card would go over with more people... BTW, I didn't participate in this coding challenge, mostly because of time constraints. So a quick coding challenge would be nice. But a quick coding challenge could also mean that the prize was less costly. I too would like to see a challenge with the picture control. In fact, when I read the previous post from Mike Ashe, I thought of this post, which was done to prove that with enough time and effort or experience (in this case), any UI can be done in the picture control.
  24. On a related note, check out this "boy band". I was looking for a lounge lizard emoticon, but I wasn't able to find one. Perhaps someone else has one? It could be added here. BTW, can you be in a lounge post?
  25. Watch out Lounge Lizard :laugh: :laugh:
×
×
  • Create New...

Important Information

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