6404D not defined in the PS6000ConsoleExample.cs

Post your .Net discussions here
Post Reply
Janooo
Newbie
Posts: 0
Joined: Tue Aug 11, 2015 9:04 pm

6404D not defined in the PS6000ConsoleExample.cs

Post by Janooo »

Hello,
the example does not work because GetDeviceInfo() method does not include 6404D variant:

Code: Select all

                else
                if (line.Length == 5)                           // A or B variant
                {
                    if (line[4] == 'A' || line[4] == 'a')       // i.e. 6402A -> 0xA402
                    {
                        line = line.Remove(4, 1);
                        variant = int.Parse(line.ToString());
                        variant += 0x8B00;
                    }
                    else
                    if (line[4] == 'B' || line[4] == 'b')       // i.e. 6402B -> 0xB402
                    {
                        line = line.Remove(4, 1);
                        variant = int.Parse(line.ToString());
                        variant += 0x9B00;
                    }
                }
Is it OK to import MODEL_PS6404B settings in the following switch when 6404D is detected?
... or you can provide the proper case for 6404D?

Thanks,
Jano

Hitesh

Re: 6404D not defined in the PS6000ConsoleExample.cs

Post by Hitesh »

Hi Jano,

The code in the GetDeviceInfo() function has been modified to handle the 'D' variants - you can download the latest SDK containing this fix via our Downloads page.

Please note that this is now in the form of a Windows installer.

Regards,

Janooo
Newbie
Posts: 0
Joined: Tue Aug 11, 2015 9:04 pm

Re: 6404D not defined in the PS6000ConsoleExample.cs

Post by Janooo »

Thank you!
Jano

Post Reply