情報詳細Q:aceやracer カメラリンクでOverTrigerなどのエラーステータスを拾うサンプルはありますか?C++のNativeの方を使っています。(ローレベルAPIは使っていません)A:C++の新しいAPI(Native)の方のLastErrorを拾うサンプルを添付いたします。先にお伝えしたエラーログ取得方法と合わせてご確認ください。サンプルGenericCameraParameterAccessを参考にして作成しました。必要最小限のコードを下記に記します。// Include files to use the pylon API.#include <pylon/PylonIncludes.h>// Namespace for using pylon objects.using namespace Pylon;// Namespace for using GenApi objects.using namespace GenApi;// Namespace for using cout.using namespace std; // Before using any pylon methods, the pylon runtime must be initialized. PylonInitialize(); try { // Create an instant camera object with the camera found first. CInstantCamera camera( CTlFactory::GetInstance().CreateFirstDevice()); INodeMap& nodemap = camera.GetNodeMap(); // Open the camera for accessing the parameters. camera.Open(); //Last Error String_t lasterror = CEnumerationPtr(nodemap.GetNode("LastError"))->ToString(); cout << "LastError :" << lasterror << endl << endl; 添付ファイルCameraLink_LastError.zipタイトルpylonAPI:C++:CameraLinkカメラでのLastErrorの取得サンプルURL 名000006102公開状況公開済み検証状況公開済み