profile label in spectran HF-6065
Thanks, I believe I did exactly as in the example progam you mention by actually copying the P-code of one of the hot key and replacing each hot key profile value by the value of my custom profile and the hot key label in the "PRINTSTR 03h," command by my label. When I run the program however I do get my profile values but, instead of my profile label, the indication "custom" quickly repaced by "dBm". Any idea?
Sorry it is me again because I am really lost. Attached is the program I wrote for my custom profile labeled SFR9DL, copying hotkey 5 with different values. I guess it is right because when I run it in the Spectran I do get my profile values. I understand my SFR9DLlabel gets wiped out after the first sweep and is replaced by "custom" quickly replaced by "dBm" but I would like to avoid that. You tell me I should print my label after each sweep and also that I should replace the "custom" by my label but I cannot find how to do that (actually I do not even know where the "custom" comes from!). Could you tell me which code I should add in my program or somewhere else? There must be a way to label custom programs in the Spectran, as written in the Users Manual. Thanks a lot for your patience.
Not having a reply I guess I have to struggle or forget my question. It would help me a lot however to know, which is not clear in the API instructions:
1) I understand that T1 is the top of the stack, does it mean that the variable loaded last is in T1 and the variable loaded before last is in T2?
2) does the instruction "JUMPLT Label" mean a jump to the label if T1 is lower than or equal to T2 or only if T1 is strictly lower than T2 (in that case I don't understand how your example Provider Display program works for when T1 and T2 are equal it jumps to the label mentioned in the instruction)?
3)does the instruction "SUB" mean to substract T1 from T2 or the contrary?
4) Are sweeps "one shot" (and then how are they started and ended?) or continuous, once the environment variables are loaded?
It is much easier: If you press the hotkey the NAME of the hotkey will be shown (remain displayd) forever. ONLY if you enter and exit the menu you will get "CUSTOM" replacing the hotkey name and replacing "CUSTOM" with the selected unit (e.g. dBm) after the first sweep.
If you want your label ALLWAYS to be seen simply add
PRINTSTR 03h, "labelname"
on TOP of program 150 (scanprog). Aftger that this label will show up after every sweep since program 150 will be called after each sweep.