Skip to main content
Solved

Export detector data as text of a CAD Part as detector


Jan.V
  • Single Emitter
  • 1 reply

I have defined a CAD part as a detector in NSC. In the text tab of the detector viewer I am able to see the Irradiance and the position (XYZ) of each pixel. 

I want to export this text file with a macro in ZPL. 

When I do this, I get a .txt-file but always with ‘Detector Viewer Summary’ and not with ‘Detector Viewer Listing’ data inside. I have tried to select the correct detector with ‘MODIFYSETTINGS’, ‘DVW_DETECTOR’ but it looks like, I cannot select the correct object. 

How can I export the correct text file with ZPL?

 

Best answer by Kevin Scales

Try using this code:

update 3
savewindow 3, "c:\temptext.txt"

 

Substitute the window number you have the detector data in for the 3 in each line. You’ll have to pay attention to which window number is used for the detector of interest.

Also make sure the Text tab is the one visible on the window, otherwise you’ll get just a little bit of information of little relevance. 

View original
Did this topic help you find an answer to your question?

2 replies

Kevin Scales
En-Lightened
Forum|alt.badge.img+1
  • En-Lightened
  • 185 replies
  • Answer
  • April 18, 2024

Try using this code:

update 3
savewindow 3, "c:\temptext.txt"

 

Substitute the window number you have the detector data in for the 3 in each line. You’ll have to pay attention to which window number is used for the detector of interest.

Also make sure the Text tab is the one visible on the window, otherwise you’ll get just a little bit of information of little relevance. 


Jan.V
  • Author
  • Single Emitter
  • 1 reply
  • April 24, 2024

Thank you for your reply. This is exactly what I was looking for.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings