Key Programming With Delphi Ds150e -

// 3. Open device pOpen(NULL, &deviceId);

// 5. Send OBD2 request: 0x7DF (broadcast) -> 0x01 0x00 (supported PIDs) unsigned long txMsg[2] = 0x7DF, 0x020100; // dummy formatting pWriteMsgs(channelId, txMsg, 1, &numSent, 1000); key programming with delphi ds150e

This bypasses the Delphi UI entirely, allowing integration into home automation or race dashboards. The DS150E software supports VBScript / JScript automation via its internal scripting engine. Scripts are stored in C:\ProgramData\Delphi\DS150E\Scripts\ . Sample Script: Log DTCs to CSV on Every Connection ' Save as "AutoLogDTCs.vbs" Sub OnConnect(Channel) Dim dtcList, dtc dtcList = GetDTCCodes(Channel, "Engine") For Each dtc In dtcList WriteToFile "C:\Logs\dtc_log.csv", Now & "," & dtc & "," & GetFreezeFrame(Channel, dtc) Next End Sub Function WriteToFile(path, text) Dim fso, file Set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.OpenTextFile(path, 8, True) file.WriteLine text file.Close End Function The DS150E software supports VBScript / JScript automation

// 4. Connect to CAN (500kbps) config.ProtocolID = CAN_500KBPS; config.Flags = CAN_ID_11_BIT; pConnect(deviceId, config, &channelId); Connect to CAN (500kbps) config