CL

calmyjane/labview_assistant

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

24 stars 8 forks 品質 30 トレンド 0

LabVIEW MCP サーバー

概要

このリポジトリには、LabVIEW Assistant MCP (Model Context Protocol) Server が含まれています。 ChatGPT や Claude Desktop などの大きな言語モデルで、定義されたコマンドでコンピュータ上でソフトウェアを制御することができます。 実行するには、fist install uv: https://docs.astral.sh/uv/] それからclaudeデスクトップを取付けて下さい:[[https://claude.ai/download] その後、このフォルダからコマンドプロンプトを開き、実行します: uv run mcp install main.py 数秒かかりますし、それが成功したClaudeデスクトップにmcpを追加したメッセージが表示されます. その後、クラスドを再起動します(右クリックタスク - icon を選択し、 "quit")、アシスタントは、Claudeデスクトップアプリに表示されます。 MCP Server には、LM が異なるパラメーターで実行できる機能(ツール)のセットが含まれています。 このサーバーでは、LabVIEWのDQMH-ModuleのRequest-and-wait-for-reply-Eventsによってツールが定義されます。 DQMHについてはこちら: [https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler 各リクエスト・アンド・ウェイト・フォ・ファー・リード・イベントは、基本的にはサブバイであり、一部のイン・アウトプットがあります.

概要(AI 翻訳)

このリポジトリには、LabVIEW Assistant MCP (Model Context Protocol) Server が含まれています。

ChatGPT や Claude Desktop などの大きな言語モデルで、定義されたコマンドでコンピュータ上でソフトウェアを制御することができます。

スタート:

それを実行するには、fist install uv: [https://docs.astral.sh/uv/] それからclaudeデスクトップを取付けて下さい: [https://claude.ai/download] このフォルダーからコマンドプロンプトを開き、次のコマンドを実行します。 uv run mcp install main.py

数秒かかりますし、それが成功したClaudeデスクトップにmcpを追加したメッセージが表示されます.

その後、クラスドを再起動します(右クリックタスク - icon を選択し、 “quit”)、アシスタントは、Claudeデスクトップアプリに表示されます。

ツール

MCP Server には、LM が異なるパラメーターで実行できる機能(ツール)のセットが含まれています。 このサーバーでは、LabVIEWのDQMH-ModuleのRequest-and-wait-for-reply-Eventsによってツールが定義されます。

DQMHについてはこちら: [https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler]

各リクエスト・アンド・ウェイト・フォ・ファー・リード・イベントは、基本的にはサブバイであり、一部のイン・アウトプットがあります。 しかし、要求をバックグラウンド(サーバーモジュール)で継続的に実行するように転送し、目的のタスクを実行し、いくつかの値に応答します.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Server for LabVIEW

This Repo contains a LabVIEW Assistant MCP (Model Context Protocol) Server.

It enables an Large Language Model like ChatGPT or Claude Desktop to control software on your computer through defined commands.

Getting Started:

To run it, fist install uv: https://docs.astral.sh/uv/ Then install claude desktop: https://claude.ai/download Then open command prompt from this folder and run: uv run mcp install main.py

It should take a few seconds and show a message that it successfully added mcp to Claude Desktop.

Then restart claude (rightlick task-icon and select “quit”), and the assistant should show up in your Claude Desktop app.

Tools

The MCP Server contains a set of functions (tools) that the LLM can execute with different parameters. In this Server, the tools are defined by Request-and-wait-for-reply-Events of a DQMH-Module in LabVIEW.

More about DQMH here: https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler

Each Request-and-wait-for-reply-Event is essentially a SubVI with some in- and outputs. But it forwards the Request to a continuously running VI in the background (the server module), which then does the desired task, and replies with some values. When the values arrive back, the model reads them and continues. Each of these SubVIs has a description which will be included in the MCP server code, so the AI can read it. The description includes all information the AI receives about the funciton and should well explain what it does.

There is a VI in the LabVIEW Project called “Generate Python Code.vi”. It can be used to automatically generate the python code for the main.py file. So if anything on the Request VIs in-/outputs or description has changed, or one was created or removed, you can update the server that way. Make sure to run "uv run mcp isntall main.py"and restart Claude Desktop, after you made changes to the Server code.

Currently Available Tools:

start_module

  • Inputs:
  • Outputs: error out,Wait for Event Sync?,Scripting Server Broadcast Events,Module Was Already Running?,Module Name
  • Description: Call this function first if you want to interact with LabVIEW. It will start the labview server that you can use to do actions in LabVIEW. You can use “Stop Module” to stop the server again. Make sure to call thsi function before any other LabVIEW specific functions.

new_vi

  • Inputs:
  • Outputs: error out,result,vi_id
  • Description: Creates a new VI in the LabVIEW IDE. The VI Reference is stored and returned. This Reference can later be used to e.g. add modifications to the VI.

add_object

  • Inputs: object_name, vi_reference
  • Outputs: error out,result,object_id
  • Description: Adds an object to the block diagram or frontpanel of the referenced vi. Get a VI reference from “New VI”. Allowed object names are: .NET Container .NET Refnum 2D Picture 3D Picture Absolute Value Accept TLS Access Rights ActiveX Container Add Add (with error terminals) Add Array Elements Add Entropy
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →