Products > Test Equipment

Has anybody enabled Tracking Gen on Agilent N9340B?

<< < (16/16)

Vivatspb:
Hello.
Is there any option to explain briefly how to run this code and what program is needed to open the options on my N9342C?

Best regards

milesd969:
You have to know programming, it is not easy to explain, send the ID number of the analyzer, I will open one option for free

mickab:

--- Quote from: tv84 on August 20, 2020, 06:58:29 pm ---Agilent N9340B and N9340C license generator

For all owners of this Agilent HSA, here is a quick vacation gift (created in less than 1 hour between some pool dives  :popcorn:).

The code is C# but should be totally self-explanatory.


--- Code: ---        private static void calc_license_Agilent_N9340B_C(string hostID, bool is_N9340C)
        {
            string[] option = { "PA3", "TG3", "SO3", "DMA", "AMA", "DFS", "KLS", "IBC", "IBF",
                                "INM", "XDM", "BAS", "PAK", "SEM", "SPT", "PWM", "MKT", "U01" };
           
            if (hostID.Length != 8)
                Console.WriteLine("Error in hostID length!");

            for (int m = 0; m < option.Length; m++)
            {
                byte[] hash = MD5.Create().ComputeHash(Encoding.ASCII.GetBytes(hostID + option[m] + (is_N9340C ? "DFE" : "")));

                Console.Write("{0,-2}   {1}   ", m, option[m]);
                for (int i = 0; i < hash.Length; i++)
                {
                    byte c = 0;
                    for (int j = 0; j < 8; j++)
                        c += (byte)(hash[i] ^ hostID[j]);

                    c = (byte)(c % 36 + 48);
                    if (c > 57)
                        c += 7;
                    Console.Write(Convert.ToChar(c));
                }
                Console.WriteLine();
            }
        }
--- End code ---

EDIT March 30th, 2023: Added the generation of N9340C family licenses. List of options is here.

--- End quote ---

Hello tv84,

Do you know if the script can be adapted for the N9320B ?

I have try with "is_N9340C" at "false" and "true" but both results didn't work.  |O
I don't understand why you add "DFE" when it is a N9340C.

tv84:

--- Quote from: mickab on September 11, 2023, 07:15:17 pm ---Do you know if the script can be adapted for the N9320B ?

--- End quote ---

That one is similar but a bit more complicated. You won't get there by trial and error.

davide10:
Can anyone tell me how to interpret these voltage source readings? Thanks

Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod