Solved

Export detector data as text of a CAD Part as detector

  • 5 March 2024
  • 2 replies
  • 45 views

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?

 

icon

Best answer by Kevin Scales 18 April 2024, 23:51

View original

2 replies

Userlevel 4
Badge +1

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. 

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

Reply