情報詳細Q:pylon5にてpylonAPIのパラメータ名を取得する方法を教えてください。 A: サンプルプログラムUtility_GrabAvi内でノード名を取得しておりますのでご確認ください。※ご利用の際は以下フォルダへコピーしてください。 C:\Program Files\Basler\pylon 5\Development\Samples\C++\Utility_GrabAvi まず、プログラムの最初に以下宣言をします。 using namespace GenApi; また、以下の部分でノード名を取得しています。============================== //カメラのノード名取得のための変数 INodeMap& nodemap = camera.GetNodeMap();// Open the camera. camera.Open(); //Get the required camera settings. CIntegerPtr width( camera.GetNodeMap().GetNode( "Width")); CIntegerPtr height( camera.GetNodeMap().GetNode( "Height")); CEnumerationPtr pixelFormat( camera.GetNodeMap().GetNode( "PixelFormat")); //AOI設定 width->SetValue(400); height->SetValue(300); //ピクセルフォーマット //CEnumerationPtr(nodemap.GetNode("PixelFormat"))->FromString(" PixelFormat_Mono8"); //露光時間設定 CFloatPtr exposureTime(nodemap.GetNode("ExposureTime")); exposureTime->SetValue(1000.0); //フレームレート設定 CBooleanPtr acquisitionFrameRateEnable(nodemap.GetNode("AcquisitionFrameRateEnable"));CFloatPtr acquisitionFrameRate(nodemap.GetNode("AcquisitionFrameRate")); //On,Off 切り替え acquisitionFrameRateEnable->SetValue(true); // acquisitionFrameRate->SetValue(60.0); ====================================またC#につきましては、以下のサンプルプログラムをご活用ください。C:\Program Files\Basler\pylon 5\Development\Samples\C#\PylonC.NET\ParameterizeCamera 添付ファイルUtility_GrabAvi.cppタイトルpylon5におけるpylonAPIでのパラメータ名の取得方法URL 名000005601公開状況公開済み検証状況公開済み