LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Manipulate an .exe file with Labview

I thought you were talking about your boss' application, not the test app. regsvr32 only works with DLLs and OCXs, not EXEs, as far as I know.
0 Kudos
Message 11 of 18
(1,357 Views)
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.
0 Kudos
Message 12 of 18
(1,353 Views)

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?
0 Kudos
Message 13 of 18
(1,349 Views)
Don't really know if there's a way to do that, but then I'm not a Windows expert by any stretch. Writing a wrapper ActiveX DLL in VB would probably work.
0 Kudos
Message 14 of 18
(1,332 Views)

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

0 Kudos
Message 15 of 18
(1,323 Views)

BobbyQA wrote:

 

Forget abt labview codes and all.


Well, you've come to the wrong place! Smiley Very Happy

 

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. 

0 Kudos
Message 16 of 18
(1,309 Views)

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?

0 Kudos
Message 17 of 18
(1,213 Views)

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.

0 Kudos
Message 18 of 18
(1,200 Views)