11-12-2017 02:43 AM
Dear Ferencer,
I used Labview with ZEMAX through the dde interface in the past. The last two years I used Python and decided to transition to ZOS-API to make the code usable in the future as well. I am analyzing astronomical telescopes and instrumentation. I would really like to use Labview again because it's faster to program for me and more important I could use OpticStudio functionality for the control and analysis at test benches and the instruments directly from Labview.
Is there no way to use the .net or com interface of OpticStudio from Labview?
03-14-2018 09:58 AM
Has the compatibility issue between the .net ZOSAPI of ZEMAX OpticStudio and Labview been fixed in the recent version (2017, SP1) of Labview? If not, Is this going to be fixed?
I didn't face issues using ZOSAPI with any other language - only with labview. I really would like to combine labview with ZEMAX Opticstudio.
03-15-2018 12:00 PM
So I am not completely sure about the next version of LabVIEW being able to support this, I don't think it is.
However, with some digging it seems that you may be able to interface ZEMAX with LabVIEW using DLLs.
Is that something you have tried or can do?
Forum Post that had some information regarding DLLs and Zemax: https://forums.ni.com/t5/LabVIEW/How-to-link-Zemax-externally-to-Labview-for-a-specific-operand/td-p...
Parul M.
Applications Engineer
National Instruments
03-15-2018 02:39 PM
Thank you for your help. Ferenc investigated and explained the issue earlier in this thread and attached the labview code including a version using dll calls. The issue is the rights management to connect to the .net C# dll. Labview does not use the common scheme. Please read the comment from ferencr dating 01-20-2017 03:49 PM. My question is, did the handling of .net calls by Labview change or is it likely to change soon?
03-16-2018 08:29 AM
Looking more into it, LabVIEW currently does not support this. I would suggest posting this on the Idea Exchange, it's how we know what features people are interested in. The more "kudos" a post gets on the idea exchange helps us gauge the interest of the suggested feature. After that, you can watch future version so see what things were implemented.
01-22-2019 04:36 PM
Hi Steffen,
I don't know if you are still interested, but you can investigate using the ActiveX interface. Here is a little sample below: