LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Impersonation Level problem using .NET calls

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?

 

0 Kudos
Message 21 of 26
(921 Views)

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.

0 Kudos
Message 22 of 26
(865 Views)

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

0 Kudos
Message 23 of 26
(845 Views)

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?

0 Kudos
Message 24 of 26
(834 Views)

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.

0 Kudos
Message 25 of 26
(818 Views)

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:

Capture.PNG

0 Kudos
Message 26 of 26
(774 Views)