02-05-2010 01:55 PM
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.
02-08-2010 02:25 PM
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.
02-10-2010 02:31 PM
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?
02-10-2010 02:51 PM
02-10-2010 04:26 PM
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.
02-10-2010 04:40 PM - edited 02-10-2010 04:48 PM
Thank you Dennis and Chris.
I am still working on this an will probably have a few more questions.
02-10-2010 04:52 PM
02-10-2010 05:29 PM
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?
Lyn
02-10-2010 11:04 PM