# SetSVIDValue

### int SetSVIDValue(int SVID, string strValue)

특정 \*\*SVID(Status Variable ID)\*\*의 현재 값을 설정합니다. 입력값은 편리하게 문자열(String)로 받지만, 라이브러리 내부에서 해당 SVID에 미리 지정된 \*\*Format(U4, I2, ASCII 등)\*\*에 맞춰 자동으로 형변환하여 데이터를 저장합니다.

Parameters

<table data-header-hidden><thead><tr><th width="218"></th><th width="123"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>SVID</td><td>int</td><td>값을 변경하고자 하는 Status Variable ID</td></tr><tr><td>strValue</td><td>string</td><td>SVID에 설정할 새로운 값 (문자열 형식)</td></tr></tbody></table>

```csharp
// 예: 장비 가동 상태(SVID 10058)를 'RUN(1)'으로 업데이트
int targetSvid = 10058;
string currentState = "1";

int result = m_gem.SetSVIDValue(targetSvid, currentState);

if (result >= 0)
{
    // 이제 호스트가 S1F3 등으로 상태를 물어보면 라이브러리가 "1"을 응답합니다.
    Console.WriteLine($"SVID {targetSvid} has been updated to {currentState}.");
}
else
{
    Console.WriteLine($"Update failed. Error Code: {result}");
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nviasoft.gitbook.io/nviasoft-docs/api-reference/undefined-6/setsvidvalue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
