
calmyjane/labview_assistant
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
LabVIEW MCP 서버
개요
이 Repo는 LabVIEW Assistant MCP (모델 Context Protocol) 서버가 포함되어 있습니다. ChatGPT 또는 Claude Desktop과 같은 큰 언어 모델을 사용하여 정의 된 명령을 통해 컴퓨터에 소프트웨어를 제어 할 수 있습니다. 그것을 실행하려면, 주먹은 uv를 설치 : https://docs.astral.sh/uv/] 그런 다음 claude 데스크탑을 설치하십시오 : https://claude.ai/download 그런 다음 명령이 폴더에서 프롬프트를 열고 실행합니다. uv run mcp install main.py 몇 초 걸릴 수 있으며 Claude 데스크톱에 mcp를 성공적으로 추가 한 메시지를 표시합니다. 그런 다음 claude (rightlick task-icon을 다시 시작하고 "quit")를 선택하고 보조는 Claude 데스크탑 앱에서 표시됩니다. MCP Server는 LLM이 다른 매개 변수로 실행할 수 있는 함수(tools)의 집합을 포함합니다. 이 서버에서, 도구는 LabVIEW의 DQMH-Module의 Request-and-wait-for-reply-Events에 의해 정의됩니다. DQMH에 대해 더 알아보기: https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler] 각 Request-and-wait-for-reply-Event는 일부 in- 및 출력을 가진 SubVI입니다.
개요(AI 번역)
이 Repo는 LabVIEW Assistant MCP (모델 Context Protocol) 서버가 포함되어 있습니다.
ChatGPT 또는 Claude Desktop과 같은 큰 언어 모델을 사용하여 정의 된 명령을 통해 컴퓨터에 소프트웨어를 제어 할 수 있습니다.
시작하기:
그것을 실행하려면, 주먹은 uv를 설치: https://docs.astral.sh/uv/] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0] [T0] [T0]] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0]] https://docs.astral.sh/uv/] https://docs.astral.sh/uv/]]] https://docs.astral.sh/uv/]]]]]] [[https://docs.astral.sh/uv/]]]]]]] [[[[[[https://docs.astral.sh/uv/]]]]]]]]]]]]]] [[[[[[[https://docs.astral.sh/uv/]]]]]]]]]]]]]]]]]] [[[[[[[[[[[[[[[[[[[[[[ 그런 다음 claude 데스크탑을 설치하십시오: https://claude.ai/download 그런 다음 명령이 폴더에서 프롬프트를 열고 실행: uv 실행 mcp 설치 main.py
몇 초 걸릴 수 있으며 Claude 데스크톱에 mcp를 성공적으로 추가 한 메시지를 표시합니다.
그런 다음 claude (rightlick task-icon을 다시 시작하고 “quit”)를 선택하고 보조는 Claude 데스크탑 앱에서 표시됩니다.
도구
MCP Server는 LLM이 다른 매개 변수로 실행할 수 있는 함수(tools)의 집합을 포함합니다. 이 서버에서, 도구는 LabVIEW의 DQMH-Module의 Request-and-wait-for-reply-Events에 의해 정의됩니다.
DQMH에 대한 자세한 정보: https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler]] [T2]] [T2]] [T2]] [T2]] [T2]] [T2]] [T2] [T2]] [T2] [T2]] [T2]] [T2]] [T2] [T2]] [T2]] [T2] [T2]] [T2]] [T2] [T2]] [T2]] [T2]] [T2] [T2]] [T2] https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler]] https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler]]] [[https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler]]]]]]]]]]]] [[[[[[[[[https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler]]]]]]]]]]]]]]]] [[[[[[[[[[[[[https://labviewwiki.org/wiki/Delacor_Queued_Message_Handler]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
각 Request-and-wait-for-reply-Event는 일부 in- 및 출력을 가진 SubVI입니다. 그러나, 그것은 당신이 원하는 작업을 수행 한 배경 (서버 모듈)에서 지속적으로 VI 실행에 요청을 전달, 일부 값으로 replies.
이 페이지는 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
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →