LogoLogo
Home
  • 🏠Home
  • Open API Application
  • ReXgen API Documentation
    • ReXgen Open API
  • Data Conversion Library
    • RxLibrary.dll()
      • RxLib.XmlToRxc()
      • RxLib.ConvertData()
      • RxLib.ConvertStatus()
  • Device Library
    • RgUSBdrv.dll
      • DeviceIsReady()
      • GetFirmwareVersion()
      • SendConfiguration()
      • ReflashLogger()
      • InitLiveData()
      • StopLiveData()
      • GetDateTime()
      • SetDateTime()
      • GetLogCount()
      • FormatSDCard()
      • GetSDLogInfo()
      • GetLogData()
Powered by GitBook
On this page
Export as PDF
  1. Device Library
  2. RgUSBdrv.dll

SendConfiguration()

Sends the current configuration in RXC format to the logger

C#

[DllImport("RGUSBdrv.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern byte SendConfiguration(char[] FileName, out short Status);

Parameter

[in] FileName

[out] Status

Returns

0 if successfully sent.

If the function returns 0, check Status.

Status 0 – Configuration OK

Status 1 – Bad Config

C# Example:

private void btnSendConfiguration_Click(object sender, EventArgs e)
 {
 if (dlgOpenRxc.ShowDialog() == DialogResult.OK)
  {
   byte Res;
   short Status;
   if (Connected)  //Check if the logger is connected
   {
   Res = SendConfiguration((dlgOpenRxc.FileName + '\0').ToCharArray(), out Status);
   if (Res == 0)
    {
     if (Status != 0)
     MessageBox.Show("Bad Config");
     MessageBox.Show("Logger Configured Successfully");
    }
   else
   MessageBox.Show("Communication Error");
   }                
  }
 }
PreviousGetFirmwareVersion()NextReflashLogger()

Last updated 1 year ago