メモリオプションを設定します。
Ret = LoggerSetMemoryOption ( AppId , MemorySize )
AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ]
LoggerOpenApplicationで取得したアプリケーションIDを指定します。
MemorySize [ VB.NET: UShort ] [ C++:unsigned short ] [ C#: ushort ]
C-LOGGERのデータを保持するメモリサイズを指定します。
単位は、1,000,000[WORD]となります。
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]
定義 |
戻り値 [Dec] |
内容 |
LOGGER_ERR_SUCCESS |
0 |
正常終了 |
LOGGER_ERR_STARTED |
10006 |
デバイスが動作中のため実行できません |
LOGGER_ERR_INVALID_ID |
10010 |
無効なAppIDが指定されました。 |
LOGGER_ERR_MEMORYSIZE |
20041 |
メモリサイズが設定可能範囲外です。 |
その他のエラー(参照:エラーコード一覧)
特になし
メモリオプションを設定します。
詳細は、「メモリオプション」トピックを参照してください。
メモリサイズを、10,000,000[WORD]にします。
VB.NET |
Dim Ret As Integer Ret = LoggerSetMemoryOption(AppId, 10)
|
C++ |
long Ret; Ret = LoggerSetMemoryOption(AppId, 10);
|
C# |
int Ret; Ret = logger.SetMemoryOption(AppId, 10);
|
LoggerGetMemoryOption 「メモリオプション」