Hi, I m trying to use sigrok for my lab instruments, and have tried to use the korad-kaxxxxp driver against my velleman PS3005D power supply , but it wasnt working since the identification caracters were slightly different than those given in the code. i had to modify in : libsigrok/src/hardware/korad-kaxxxxp/api.c :
static const struct korad_kaxxxxp_model models[] = { /* Device enum, vendor, model, ID reply, channels, voltage, current */ //{VELLEMAN_LABPS_3005D, "Velleman", "LABPS3005D", // "VELLEMANLABPS3005DV2.0", 1, {0, 31, 0.01}, {0, 5, 0.001}}, {VELLEMAN_LABPS_3005D, "Velleman", "LABPS3005D", "VELLEMANPS3005DV2.0", 1, {0, 31, 0.01}, {0, 5, 0.001}}, {KORAD_KA3005P, "Korad", "KA3005P", "KORADKA3005PV2.0", 1, {0, 31, 0.01}, {0, 5, 0.001}}, ALL_ZERO }; Since I m very bad in programming, I commented out the "VELLEMANLABPS3005DV2.0" "ID reply" , and swapped with :" VELLEMANPS3005DV2.0" (given by the output of sigrok-cli --scan -l 5) . while doing this modification and recompiling, i m now able to access to my supply , change the voltage, enable the output etc etc. can somebody include this model properly in the code of libsigrok ? are another extra inofmrations needed to proceed ? Regards. ------------------------------------------------------------------------------ _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel