Skip to main content

How can I set and/or retrieve POPD optimization operand using ZPL?

Also related: Through ZPL I would like to get all the information contained in the POP window: Text and Prop Report. For instance, Pilot beam data and Fiber Efficiency etc.

Cheers!

@Asuku

 

This is how you would setup a POPD operand in ZPL:

__________________________________________________________________

# Merit Function (MF) Editor row at which the POPD operand will be placed
popd_row = 1

# Create a new MF operand
INSERTMFO popd_row

# Get the POPD type value
popd_type = ONUM("POPD")

# Change the new operand type to POPD
SETOPERAND popd_row, 1, popd_type

# Values of POP columns
surf = 1
wave = 3
field = 2
data = 1
xtr1 = 0.1
xtr2 = 0.1

target = 0.123
weight = 4.567

# Apply values to new operand
SETOPERAND popd_row, 2, surf
SETOPERAND popd_row, 3, wave
SETOPERAND popd_row, 4, field
SETOPERAND popd_row, 5, data
SETOPERAND popd_row, 6, xtr1
SETOPERAND popd_row, 7, xtr2

SETOPERAND popd_row, 8, target
SETOPERAND popd_row, 9, weight


 

Hopefully the code is self explanatory. You don’t need the intermediate variables such as surf, wave, ...etc., but I hope it helps with readability. GETTEXTFILE is the keyword you need to save the text-tab data of an analysis to a text-file. The string code for POP is Pop.

Assuming you have a settings file already, which you should for POPD, you can simply write:

GETTEXTFILE "C:\...\your_file.txt", Pop

Have a look at the Help File (F1) for GETTEXTFILE if you want to use a specific settings file.

Take care,

 

David

 


Thank you, @David.Nguyen 

Example was helpful in achieving what I intended.

-AS


Reply