10-16-2008 01:36 PM
10-16-2008 01:42 PM
10-16-2008 01:49 PM
smercurio_fc wrote:
By the way, which version of LabVIEW are you using? OLE support in LabVIEW was dropped some time ago. You would need to use ActiveX.
I am using 8.2 and I know I need to use ActiveX. My Boss called it OLE but it's my understanding that all OLE is also ActiveX, but not necessarily the reverse. If regsvr32 don't work for .EXE than how do I get the test machine's program registered as an ActiveX .EXE?
10-16-2008 04:52 PM
10-17-2008 01:39 AM
Hi smercurio,
Let me tell u my need in brief.Forget abt labview codes and all.Assume i have a GUI developed in C#.If i want to automate that with labview.How can i do that?forget abt other automation tools in market i want it to do in labview.I thought if i give some dll or something it will give access or dump of all controls in gui so that i can automate it through labview.Let me know if you have any ideas.
>>Another one is Does labview has any bluetooth device testing protocol?
Like communication between GUI and mobile( in place of this we will test with Labview gui).To check stability of GUI
10-17-2008 09:27 AM
BobbyQA wrote:
Forget abt labview codes and all.
Well, you've come to the wrong place! ![]()
C# generates .NET assemblies. As such, you can use the .NET functions within LabVIEW to use the assembly. Check the LabVIEW Help and the Example Finder on how to call .NET assemblies from LabVIEW. Now, keep in mind that an application will be written in a different manner than a "class library", so it may not work the same way. It all depends on how the application was written.
11-24-2008 05:31 AM
Hi smercurio,
Thanks for info,But i really dont know how this .Net interfaces and AutoIt usage.
My scenario is i have a gui build on c#.There were some series of mouse clicks on GUI which i wanted to do repeatedly.But the clicking the buttons new buttons will show up this is messing up tracing buttons with same name.One more thing is this buttons were not developed using button properties.They were images which will generate event on mouse click.
So how can i proceed further to automate the process?
11-24-2008 09:46 AM
AutoIt allows you to try to manipulate an exe by moving the mouse, performing mouse clicks, or sending keystrokes. If the application is built using standard Windows controls then there are higher-level functions that can be used to perform a click based on a control name rather than having to resort to moving the mouse to a specific location and then clicking the mouse. However, these functions only work if the app uses standard Windows controls. Some custom GUIs, like Matlab GUIs don't use standard Windows controls. Thus, you have to resort to moving the mouse to a specific location, and then simulating a mouse click. I recently had to automate a Matlab GUI using this method.
As for your .NET app you should be able to use the higher-level functions since that should be using standard Windows controls. I have a .NET app I wrote and I can click controls using the ControlClick function.
AutoIt has macro generator that you can use to record your actions and have it generate the code for you. You may wish to try using this. Note that there are 2 code generators. One is called AU3Recorder. It records using the low-level functions that are based on moving the mouse and simulating mouse clicks. The other is called AutoItMacroGenerator that tries to use the higher-level functions like ControlClick.