我收到了要在我们的框架中引入的 SDK。SDK 用于连接示波器,由制造商提供。我已经阅读了“文档”,但完全没有。
例子:
DLL_API WORD WINAPI sdSetVoltageAndCoupling(
WORD DeviceIndex,
WORD Ch1Voltage
WORD Ch2Voltage,
WORD Ch1_ACDC,
WORD Ch2_ACDC,
WORD TriggerSource)
Variables introduction:
DeviceIndex: index of the device.
Ch1Voltage: index of the CH1 voltage
Ch2Voltage: Index of the CH2 voltage
Ch1_ACDC: index of the CH1 Coupling ( AC is 1, DC is 0, GND is 0 )
Ch2_ACDC: index of the CH2 Coupling
TriggerSource: index of the trigger source (CH1 trigger is 0, CH2 trigger is 1, ALT trigger is 2, EXT trigger is 3)
Note:
This function is used for setting voltage and Coupling. If successful return 1, else return 0.
文档中没有任何地方说明什么指数是什么电压,总体而言,它根本没有任何信息。
您如何处理需要使用但做得很差的 SDK?例如,源代码示例,所有有趣的东西都在解决方案引用的文件中,但文件本身却无处可寻,等等。