User Tools

Site Tools


memo:index

Memo



2025-07-15 QModMaste

  • 描述:基於 Qt 的免費 Modbus 主站應用程式,提供圖形化介面,支援 Modbus RTU 和 TCP。包含總線監控功能,可查看通訊流量,適合簡單測試和除錯。
  • 功能:讀寫線圈、寄存器,支援多設備監控,數據可顯示為表格或十六進位格式。
  • 適用平台:Windows 和 Linux。
  • 下載:可在 SourceForge 找到最新版本。
  • 優點:免費、開源,介面友好,適合初學者和簡單測試。
  • 限制:功能相對基礎,可能不適合複雜的工業應用。

→ Read more...

2025/07/15 13:24 · jethro



2025-07-08 twinBASIC IDE

2025/07/08 13:23 · jethro



2025-07-08 Win11 中找不到相容模式

  • 升級到了 win 11。現在一些遊戲無法運行,而且找不到相容模式設定來更改在哪個版本的 Windows 下運行遊戲。
  • 有什麼辦法可以修復這個問題
  • 嘗試過像在 win 10 中一樣右鍵單擊可執行檔並單擊屬性,但在 win11 中沒有更改相容模式的選項

→ Read more...

2025/07/08 10:50 · jethro



2025-07-07 C: 模擬 nameof() & typeof()

  • 在 C 語言中,沒有直接對應於 C# 的 nameof() 和 typeof() 的功能,因為 C 是一種靜態類型語言,且不支持反射或類似的運行時類型查詢機制。不過,可以使用一些技巧來模擬這些功能。

→ Read more...

2025/07/07 09:21 · jethro



2025-07-03 C: Convert between big-endian and little-endian values

  • // Specialization for 2-byte types.
    template<>
    inline void endian_byte_swapper< 2 >(char* dest, char const* src)
    {
        // Use bit manipulations instead of accessing individual bytes from memory, much faster.
        ushort* p_dest = reinterpret_cast< ushort* >(dest);
        ushort const* const p_src = reinterpret_cast< ushort const* >(src);
        *p_dest = (*p_src >> 8) | (*p_src << 8);
    }
    
    // Specialization for 4-byte types.
    template<>
    inline void endian_byte_swapper< 4 >(char* dest, char const* src)
    {
        // Use bit manipulations instead of accessing individual bytes from memory, much faster.
        uint* p_dest = reinterpret_cast< uint* >(dest);
        uint const* const p_src = reinterpret_cast< uint const* >(src);
        *p_dest = (*p_src >> 24) | ((*p_src & 0x00ff0000) >> 8) | ((*p_src & 0x0000ff00) << 8) | (*p_src << 24);
    }

→ Read more...

2025/07/03 16:41 · jethro

2663 person(s) visited this page until now.

memo/index.txt · Last modified: 2019/11/12 14:09 (external edit)