LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call labview(not an ActiveX) in VB6

Hi,

i want to call a vi which has been build to exe version in Visual Basic6 and using visual basic programme to press a button on the labview panel. What should i do ? i know it is simple to make labview to be ActiveX server,but i have source code about labview . Hence , i can  not recompile the labeview to be server .

 

So, is there any other method to achieve the same target ? Appreciate it very much!!!

 

Thanks

Elvis

0 Kudos
Message 1 of 6
(3,375 Views)

To control other windows you should use Auto-It.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 6
(3,372 Views)
The one issue you're going to have with this is that LabVIEW windows are custom drawn, and do not use standard window controls. Thus, using the "easy" functions like ControlClick won't work. You'll need to rely on using the MouseClick function, which requires providing an XY location for the click.
0 Kudos
Message 3 of 6
(3,360 Views)

Thanks for your answer my question. Would you please provide me some demo code to control labview front panel button in vb ? appreciate it very much.

regards

Elvis

0 Kudos
Message 4 of 6
(3,348 Views)

Hi Tonp,

would you make a detailed decsription about it ? it is better if you provide a short demo on it .

Thanks.

Elvis

0 Kudos
Message 5 of 6
(3,331 Views)
If you decide to use AutoIt it comes with many examples. The AutoItX interface is the one that you would use in VB code. The Help file for AutoIt also contains tons of examples.
0 Kudos
Message 6 of 6
(3,314 Views)