Jump to content

Automate test of a built application


Ulf

Recommended Posts

Thats why I asked, I have never used AutoIT, so I don't know. Have you used it together with LabVIEW or other languages?

I have used AutoIt with LabVIEW. If you choose to install AutoIt (which is optional) it will install some ActiveX components. I can't remember why, but when I did this I found the features to be lacking when compared to just writing AutoIt code and compiling. I also looked into getting DDE to work between an AutoIt EXE program I wrote, and LabVIEW. I could get LabVIEW to talk to the AutoIt EXE but couldn't figure out the other way for some reason.

In either case I highly recommend downloading it and at least looking at the shipped examples. They do a pretty decent job of showing you how to do the basics. There's a relatively large community out there to support more complicated programs and functions. It's very liberating, being able to download a single zip that contains source, and a method to build an EXE that will run on any Windows machine, without needing a development environment, or run-time engine.

Link to comment
  • 2 weeks later...

I concur - I've used it a few times, mostly for iterating over multiple UUT simulations (eg: I have 1,000 images that are of UUTs, and a custom vision alogrithm that makes some measurements on them. I write an autoIT script that acts like an operator: enter a serial number that identifies the UUT image, maybe populates some other test specs, hits "GO!", waits until the status indicator turns green or red (and maybe branch here for some additional stuff it the UUT fails, switch to Excel, add a tab, fill some stuff out, switch back to my app, then rinse and repeat. I can make a minor mod to the algorithm, run the script, and let it hum away in a virtual machine while I work on other things.

The scripting language is very capable, and I agree that it's simple to learn. You can even distribute a "script" as a stand-alone exe (I've done this for customers that want to do their own testing).

Link to comment

Ulf,

The GDS is tested with AutoIT, it takes about 24 hours to test through 6 versions of LabVIEW, and I'm glad I don't have to do it manually.

I've even cerated a AutoIT application called StartUp.exe, which I configured as the windows shell.

This small application made sure my LabVIEW application always was running and if not, it started it.

I also have this application to silenly install LV2012 RT eninge if needed.

You can almost do anything with AutoIT, It's a great tool.

Cheers,

Mike

Link to comment

I also have this application to silenly install LV2012 RT eninge if needed.

This is a great idea, and I've thought of it before but never did anything about it. One issue with LabVIEW when no runtime engine is installed, is there is no way to do any thing (kinda obvious but still frustrating). Having an AutoIt EXE that just checks for the existence of the LabVIEW runtime engine seems like a great idea. Not sure what JKI does at the moment, but I assume they could use something similar when distributing VIPM to a machine that may or may not have the right runtime engine installed.

Out of curiosity how do you do the automated install of the runtime engine? I understand there is silent switches that can be used, but do you have it automatically download the runtime engine? Or do you include it with the AutoIt EXE?

Link to comment

Out of curiosity how do you do the automated install of the runtime engine? I understand there is silent switches that can be used, but do you have it automatically download the runtime engine? Or do you include it with the AutoIt EXE?

The Auto IT script supports attachment of files, it auto zips it and can extract them for your very quickly.

The RT engine is at about 200M, and I think it got down to 150M for everything in the AutoIT-exe file.

//Mike

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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