LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you write VBA code in LabView to control another program.

I am trying to use LabView as a control panel for the chemical process simulator ChemCAD. It can be controlled using VBA subroutines in other programs. I would appreciate any advice you have.
Thank you,
Charles Smith
0 Kudos
Message 1 of 3
(3,187 Views)
charles,

I know you can call dll's from labview, if you can save your VBA routines in this format it should be possible.

pat
0 Kudos
Message 2 of 3
(3,187 Views)
> I am trying to use LabView as a control panel for the chemical process
> simulator ChemCAD. It can be controlled using VBA subroutines in other
> programs. I would appreciate any advice you have.

It probably has either a DLL or an automation interface. You should
be able to use either from LV. The Call Library Function node is what
you use to call into a general DLL, but first check to see if there
is a registered automation server. On the front panel, drop an OLE
or ActiveX refnum control. Popup and bring up the dialog to select
which server. Hopefully you can find the ChemCAD server. If so,
drop the Open and any property or invoke nodes that you need. There
are Excel examples that help show how this is done.

Greg McKaskle
0 Kudos
Message 3 of 3
(3,187 Views)