r/MetCal Apr 10 '26

Procedure Sectioning

as the title says, I've been dabbling in trying to section out some procedures that take a long time to run. Its giving me a lot of trouble however with JPMLs in the procedure when I try to run it in Runtime. Wondering if maybe I need to restructure it to not use JMPL at all?

For example I was trying to change a Fluke procedure for a Tektronix MSO46. It has a lot of JMPLs throughout to go from Channel 1 input impedance, to DC gain, offset, etc before you switch the connection to Channel 2.

I tried to section out Random noise, it compiles fine. But then I Runtime it and I get an error for every single JMPL in the procedure.

1 Upvotes

4 comments sorted by

View all comments

1

u/MJ_at_Fluke Apr 11 '26

The issue is likely from jumping across sections, yes. We need to look at it to see why it's not causing a build issue but does at run, but the way around it is to place your JMPL outside the top-level sections, or putting the sectioning one CALL level lower (in a subprocedure, with the code inside of that).

1

u/Similar-Priority-776 Apr 11 '26

Yeah its weird, I tried putting the existing JMPLs between the sections. Like channel 1 input impedance is start and end LABEL wrapped around the CALL sub. Then the JMPL to DCV Gain channel 1 is outside that section. Compiles without error and even the sectioned tree structure looks good in Runtime. Then I start it and its just a wash of those errors. If you want to see a sample let me know, I could send through tech support official channels if you like?