xzos / PyZDDE

Zemax/ OpticStudio Extension using Python
MIT License
154 stars 64 forks source link

Problem with zGetTraceArray #63

Open B2015 opened 8 years ago

B2015 commented 8 years ago

Hello, Recently I've been experiencing problems using the function zGetTraceArray in order to perform spot plots. The function was working perfectly a few month ago when I wrote the code, though lately the code remains stuck when executing the code, more precisely at line 83 of the arraytrace.py file (e.g. return _arrayTrace(rd, int(timeout)) ). For some reason this piece of code never replies back whatever the timeout I set. I'm not sure why this happens but for some reason the dll remains silent. Have you experienced such a problem ? All the best, Ben

indranilsinharoy commented 8 years ago

Hi @B2015,

In fact I have experienced this issue a few (probably three or four) of times. I am not sure why this happens (probably beyond my current knowledge of DLLs and DDE). However, every time, I got it to work if I restarted my computer (don't ask me why it resolves this ... ), and usually the problem doesn't appear for a while (I know, my answer is completely non scientific). Let me know if you found anything.

Best regards, Indranil.

B2015 commented 8 years ago

Hi Indranil, thanks much for the fast reply. It looks like people using matlab dde also having problems such as this, I will investigate a bit and come back if I find something interesting to share. Best regards, Ben

indranilsinharoy commented 8 years ago

Hi Ben,

That would be great, if you could pinpoint the cause. I would love to resolve this issue (if it is possible to do so from PyZDDE or MZDDE). Therefore, I will leave this issue open.

Best regards, Indranil.

Garchupiter commented 6 years ago

Hi guys, I have the same problem in windows 10, everything else works very well, except zGetTraceArray, it just do nothing, it has Ben never working for me. Do yo know anything about it?

Best Regards Joel

shbhuk commented 6 years ago

zGetTraceArray, is this for Non Seq?