The SARK-110 implements a USB composite device including the existing mass storage class for accessing to the internal disk and a custom HID interface allowing the remote control of the device.
The advantage of the selected USB classes is that they are available for the common operating systems: Windows, MAC OS, and Linux; without the need of installing drivers.
In order to facilitate the integration with any client software it is provided the HID interface functions for these three operating systems. This interface code has been taken from the Teensy RawHID example:
In addition it is provided the client functions that abstract the command interface and a simple demo including the project file for Visual Studio (Windows platform). Also it is provided a Windows DLL for simple interfacing.
All this client code can be downloaded in the link available in the bottom of this page.
int Sark_Connect (int16 maxDev )
Connects to the SARK-110 device.
int Sark_Close (int16 num)
Close connection with the device.
int Sark_Meas_Rx (int16 num, uint32 u32Freq, bool bCal, uint8 u8Samples, float * pfR, float * pfX, float *pfS21re, float *pfS21im)
Measure R and X.
int Sark_Meas_Vect (int16 num, uint32 u32Freq, float * pfMagV, float * pfPhV, float * pfMagI, float * pfPhI)
Measure raw vector.