I want to create a LabVIEW executable that is an Active X automation server. The documentation on the Active X VIs is mostly geared toward using LabVIEW as the client. Can anyone point me toward documentation that is pertinent to my question?
Solved! Go to Solution.
Hi Lyn S,
To LabVIEW as an ActiveX server, you'll need to first activate it.
You should be able to find an example of using LabVIEW as a server in the Example Finder under Communicating with External Applications»ActiveX»Excel»ActiveX Event Callback for Excel.vi.
Thanks for your reply Olivia.
I looked at the ActiveX Event Callback for Excel.vi and the subvi NewWorkbookCallback.vi in detail.
I have a few questions/observations about it:
1. The main program appears to open Excel so that LabVIEW is the ActiveX client and Excel is the ActiveX server. Is this correct?
2. When the user opens a new Excel workbook, LabVIEW fills some cells. Again LabVIEW is the client and Excel is the server. Is this correct?
I want to create a LabVIEW ActiveX server that receives and displays an array of booleans. Can anyone help me with this?
If I understand the question right, Dennis is correct. By enabling the ActiveX Server in the options, you can access your LabVIEW application from another program.
I've used this with VBScript to allow users to create small programs to automate steps that users typically repeat. It's pretty straight forward to setup, and you can add a great deal of flexibility. When you create the EXE, you specify the server name.
Thank you Dennis and Chris.
I am still working on this an will probably have a few more questions.
It was actually 'BoolArrayDisplay.Application' in Matlab. Must be a Matlab quirk.
I am trying to send a data from Matlab to LabVIEW. I am stuck.
How do you set up an ActiveX data object in LabVIEW?