Test and Measurement Forum

6404D not defined in the PS6000ConsoleExample.cs

Post your .Net discussions here

6404D not defined in the PS6000ConsoleExample.cs

Postby Janooo » Fri Aug 14, 2015 8:38 pm

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
Janooo
Newbie
 
Posts: 0
Joined: Tue Aug 11, 2015 9:04 pm

Re: 6404D not defined in the PS6000ConsoleExample.cs

Postby Hitesh » Wed Aug 19, 2015 2:43 pm

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,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: 6404D not defined in the PS6000ConsoleExample.cs

Postby Janooo » Wed Aug 19, 2015 3:01 pm

Thank you!
Jano
Janooo
Newbie
 
Posts: 0
Joined: Tue Aug 11, 2015 9:04 pm


Return to .Net Languages (C#, VB.Net, .)

Who is online

Users browsing this forum: No registered users and 0 guests