コンテンツにスキップ

ストリームグラバーのパラメーター#

pylon APIでは、ストリームグラバーが画像データの取得、バッファリング、転送の処理を管理します。

この項では、ストリームグラバーに関連するパラメーターについて説明します。

General Parameters#

Access Mode#

The AccessMode parameter indicates the mode of access the current application has to the device:

  • Control: The application has control access to the device. Other applications are still able to monitor the device and can request to take over control or gain exclusive access to the device.
  • Exclusive: The application has exclusive access to the device. No other application can control or monitor the device.
  • Monitor: The application has monitoring, i.e., read-only, access to the device.
  • NotInitialized: Access to the device hasn't been initialized.

このパラメーターは読み取り専用です。

Auto Packet Size#

Use the AutoPacketSize parameter to optimize the size of the data packets transferred via Ethernet.

When the parameter is set to true, the camera automatically negotiates the packet size to find the largest possible packet size.

To retrieve the current packet size, get the value of the GevSCPSPacketSize parameter.

大きなパケットを使用すると、画像転送のオーバーヘッドが減少します。最大パケットサイズは、ネットワークハードウェアとその設定によって異なります。

Maximum Buffer Size#

Use the MaxBufferSize parameter to specify the maximum size (in bytes) of a buffer used for grabbing images.

グラブ開始前に、グラブアプリケーションにより、このパラメーターを設定する必要があります。

Maximum Number of Buffers#

Use the MaxNumBuffer parameter to specify the maximum number of buffers that can be used simultaneously for grabbing images.

Maximum Transfer Size#

Use the MaxTransferSize parameter to specify the maximum USB data transfer size in bytes. The default value is appropriate for most applications. Increase the value to lower the CPU load.

アプリケーションがイメージストリームを受信できない場合、USBホストアダプタードライバーは値を小さくする必要があります。最大値はオペレーティングシステムによって異なります。

Num Max Queued URBs#

Use the NumMaxQueuedUrbs parameter to specify the maximum number of USB request blocks (URBs) to be enqueued simultaneously.

この値を大きくすると、安定性が向上し、ジッターを低減できますが、ホストコンピューター上でより多くのリソースが必要になります。

「Failed to probe and lock buffer=0xe2010130」や「Failed to submit transfer status=0xe2100001」などのシステムメモリー不足に関するエラーメッセージが表示される場合に、この値を小さくすると有効なことがあります。

Receive Thread Priority Override#

Use the ReceiveThreadPriorityOverride parameter to enable assigning a custom priority to the thread which receives incoming stream packets. Only available if the socket driver is used.

To assign the priority, use the ReceiveThreadPriority parameter.

Receive Thread Priority#

Use the ReceiveThreadPriority parameter to set the thread priority of the receive thread. Only available if the socket driver is used.

To assign the priority, the ReceiveThreadPriorityOverride parameter must be set to true.

Socket Buffer Size#

Use the SocketBufferSize parameter to set the socket buffer size in kilobytes. Only available if the socket driver is used.

Status#

The Status parameter indicates the current status of the stream grabber:

  • Closed: The stream grabber is closed.
  • Locked: The stream grabber is locked.
  • NotInitialized: The stream grabber is not initialized.
  • Open: The stream grabber is open.

このパラメーターは読み取り専用です。

転送ループスレッドの優先度#

Use the TransferLoopThreadPriority parameter to specify the priority of the threads that handle USB requests from the stream interface.

pylonには、USBトランスポート層に属する2つのスレッドがあります。1つは画像URB(USB要求ブロック)用で、もう1つはイベントURB用です。トランスポート層は、URBをxHCIドライバーにエンキューし、配信されたURBのバスをポーリングします。

You can control the priority of both threads via the TransferLoopThreadPriority parameter.

Windowsでは、デフォルトで、パラメーターが次の値に設定されています。

  • 25(ホストアプリケーションが管理者権限実行されている場合)。
  • 15以下(ホストアプリケーションが管理者権限なしで実行されている場合)。

LinuxおよびmacOSでは、デフォルトのパラメーター値とパラメーター値の範囲が異なる場合があります。

The transfer loop priority should always be higher than the grab engine thread priority (InternalGrabEngineThreadPriority parameter) and the grab loop thread priority (GrabLoopThreadPriority parameter).

詳細については、「pylon APIドキュメント」の「アプリケーションの高パフォーマンス設定」セクションを参照してください。

GigEビジョンドライバーのタイプ#

Use the Type parameter to set the host application's GigE Vision driver type:

  • WindowsFilterDriver: The host application uses the pylon GigE Vision Filter Driver.
  • WindowsPerformanceDriver (deprecated in pylon version 7.1): The host application uses the pylon GigE Vision Performance Driver.
  • SocketDriver: The host application uses the pylon GigE Vision Socket Driver.
  • NoDriverAvailable: No suitable driver is installed. The driver type can't be set.

ドライバータイプの詳細については、「ドライバー」を参照してください。

タイプ:ソケットドライバーが使用可能#

The TypeIsSocketDriverAvailable parameter indicates whether the pylon GigE Vision Socket Driver is currently available (1) or not available (0).

タイプ:Windowsフィルタードライバーが使用可能#

The TypeIsWindowsFilterDriverAvailable parameter indicates whether the pylon GigE Vision Filter Driver is currently available (1) or not available (0).

タイプ:Windows Intelパフォーマンスドライバーが使用可能#

The TypeIsWindowsIntelPerformanceDriverAvailable parameter indicates whether the pylon GigE Vision Performance Driver is currently available (1) or not available (0).

パケット再送信機能パラメーター#

パケット再送信メカニズム(GigE Visionのみ)は、欠落しているデータパケットを検出して再送信することで、ネットワークパフォーマンスを最適化します。

pylon GigE Vision Filter DriverおよびSocket Driverには、高度で堅牢なパケット再送信メカニズムがあります。

これにより、微調整が可能になります。また、最大要求数に達するまで、連続して再送信要求を送信できます。

ドライバーがパケット(リーダー、ペイロード、またはトレーラーパケットなど)が欠落していることを検出すると、指定された時間待機します。指定された時間内にパケットが到着しない場合、ドライバーは1つ以上の再送信要求を送信し、失われたパケットを取得しようとすることがあります。

ペイロードパケットの連続範囲が欠落している場合、ドライバーは、欠落しているパケットの範囲に対して、1つの「バッチ再送信要求」を自動的に送信します。さらに、ドライバーは、失われたと見なされた再送信要求について、再送信要求を自動的に送信する場合があります。

Enable Resends#

Use the EnableResend parameter to enable or disable the packet resend mechanism for the currently selected type of GigE Vision driver.

Packet Timeout#

Use the PacketTimeout parameter to specify how long (in milliseconds) the filter driver waits for the next expected packet before it initiates a resend request.

このパラメーターがパケット間遅延よりも長い時間間隔に設定されていることを確認します。

Frame Retention#

Use the FrameRetention parameter to specify the maximum time in milliseconds to receive all packets of a frame. The timer starts when the first packet has been received. If the transmission is not completed within the time specified, the corresponding frame is delivered with the status "Failed".

Maximum Number of Resend Requests#

Use the MaximumNumberResendRequests parameter to specify the maximum number of resend requests per missing packet.

Firewall Traversal間隔#

Use the FirewallTraversalInterval parameter to prevent a firewall from blocking GigE Vision packets.

このパラメーターは、ストリームグラバーとイベントグラバーの両方で使用できます。つまり、GigE Vision Streaming Protocol(GVSP)パケットとMessage Channel Source Port(MCSP)パケットを処理します。両方のタイプのパケットに対して個別に設定する必要があります。詳細については、次のコードサンプルを参照してください。

有効の場合、グラバーは、ファイアウォールによるブロックを防止するトラフィックカンバセーションをシミュレートする特定のパケットを送信します。

デフォルトでは、ストリーミングセッション中に、GVSPパケットの場合は10秒ごと、MCSPパケットの場合は30秒ごとにパケットが送信されます。

このパラメーターをミリ秒単位で設定して、ファイアウォールに合わせて最適化できます。

When the FirewallTraversalInterval parameter is set to zero, the Firewall Traversal feature is considered disabled.

ストリーム宛先パラメーター#

次のパラメーター(GigE Visionのみ)を使用すると、グラブされたデータをストリームグラバーから送信する場所を設定できます。

ストリームグラバーは、ストリームデータを1つの特定のデバイスまたはネットワーク内の複数のデバイスに送信できます。

トランスミッションタイプ#

Use the TransmissionType parameter to define how stream data is transferred within the network. You can set the parameter to the following values:

  • Unicast (default): The stream data is sent to a single device in the local network, usually the camera's GigE network adapter (see destination address). Other devices can't receive the stream data.

    ユニキャストルーティング方式

  • LimitedBroadcast: The stream data is sent to all devices in the local network (255.255.255.255), even if they aren't interested in receiving stream data. In large local networks, this uses a large amount of network bandwidth. To use this transmission type, you must set up the controlling and monitoring applications.

    ブロードキャストルーティングスキーム

  • SubnetDirectedBroadcasting: The stream data is sent to all devices in the same subnet as the camera, even if they aren't interested in receiving stream data. If the subnet is small, this may save network bandwidth. Because devices outside the subnet can't receive the stream data, this transmission type can be useful, e.g., for security purposes.

    サブネット指定ブロードキャストルーティングスキーム

    サブネット指定ブロードキャストの場合、ストリームグラバーはサブネットブロードキャストアドレスを使用します。サブネットブロードキャストアドレスは、カメラのIPアドレスとカメラのサブネットマスクのビット補数の間でビット単位のORを実行することによって取得されます(「宛先アドレス」を参照)。この送信タイプを使用するには、制御および監視アプリケーションを設定する必要があります。

    情報

    • カメラのIPアドレスとサブネットマスクを設定するには、pylon IP Configuratorを使用します。
    • IPアドレス、サブネットマスク、サブネットブロードキャストアドレスの詳細については、Online IP Subnet Calculatorウェブサイトをご覧ください。
  • Multicast: The stream data is sent to selected devices in the local network. This saves network bandwidth because data is only sent to those devices that are interested in receiving the data. Also, you can specify precisely which devices you want to send the data to.

    Multicast Routing Scheme

    To use multicast, the stream destination address must be set to a multicast group address (224.0.0.0 to 239.255.255.255). Also, you must set up the controlling and monitoring applications. Then, the pylon API automatically takes care of creating and managing a multicast group that other devices can join. - UseCameraConfig: The stream transmission configuration is read from the camera. Use this option only if you want to set up a monitoring application.

制御および監視アプリケーション#

リミテッドブロードキャスト、サブネット指定ブロードキャスト、またはマルチキャストを使用する場合、通常は1台のカメラから複数の宛先に画像データストリームを送信します。

これを実現するには、1つの制御アプリケーションと1つ以上の監視アプリケーションを設定する必要があります。

  • 制御アプリケーションでは、画像取得を開始および停止します。カメラの設定を変更することもできます。
  • 監視アプリケーションでは、ストリームデータを受信します。監視アプリケーションは、カメラを読み取り専用モードで開きます。つまり、画像取得を開始および停止したり、カメラ設定を変更したりすることはできません。

試験目的で、pylon Viewerの1つのインスタンスを制御アプリケーションとして使用し、pylon Viewerの別のインスタンスを監視アプリケーションとして使用できます。

pylon Viewerの異なるインスタンスをアプリケーションの制御および監視として使用するには、次の手順を実行します。

  1. pylon Viewerを起動し、GigEデバイスを開きます。
  2. 次の手順に従って、pylon Viewerの別のインスタンスを開始します。これは監視アプリケーションとして機能します。
    • Windows:pylon Viewerを起動します。pylon ViewerのDevicesペインで、手順1で開いたGigEデバイスを右クリックしてから、Open Device … > Monitor Modeの順にクリックします。
    • Linux: At the command line, type: /opt/pylon5/bin/PylonViewerApp -m
    • macOS: At the command line, type: ./Applications/pylon Viewer.app/Contents/MacOS/pylon Viewer -m

情報

制御アプリケーションと監視アプリケーションのセットアップの詳細については、「pylon APIドキュメント」の「GigEマルチキャスト/ブロードキャスト」セクションを参照してください。

Destination Address#

The DestinationAddr parameter indicates the IP address to which the stream grabber sends all stream data.

The value and the access mode of the parameter depend on the TransmissionType parameter value:

TransmissionTypeパラメーター値 DestinationAddrパラメーター値 DestinationAddrアクセスモード
ユニキャスト GigEカメラネットワークアダプターのIPアドレス 読み取り専用
LimitedBroadcast 255.255.255.255 読み取り専用
SubnetDirectedBroadcasting (カメラのIPアドレス)またはそうでない(カメラのサブネットマスク) 読み取り専用
Multicast デフォルト:239.0.0.1
許容範囲:224.0.0.0~239.255.255.255a
読み取り/書き込み

  1. この範囲の一部のアドレスは予約されています。不明な場合は、239.255.0.0~239.255.255.255のアドレスを使用します。この範囲は、ローカルで管理されるアドレス空間としてRFC 2365により割り当てられます。

Destination Port#

The DestinationPort parameter indicates the port where the stream grabber will send all stream data to.

パラメーターが0に設定されている場合、pylonは自動的に未使用のポートを選択します。

詳細については、「pylon APIドキュメント」の「送信先ポートの選択」セクションを参照してください。

統計パラメーター#

pylon APIには、カメラが正しく設定されているかどうか、ハードウェアコンポーネントが適切かどうか、システムのパフォーマンスを確認できる統計パラメーターが用意されています。

カメラのスタートアップ時には、すべての統計パラメーターが0に設定されています。画像を継続的に取得している間、パラメーターは継続的に更新され、失われた画像や不完全にグラブされたバッファーなどについて情報が提供されます。

Buffer Underrun Count#

The Statistic_Buffer_Underrun_Count parameter counts the number of frames lost because there were no buffers in the queue.

パラメーター値は、イメージが受信されると増加しますが、キューに入っている空きバッファーがドライバー入力キューにないため、フレームが失われます。

Failed Buffer Count#

The Statistic_Failed_Buffer_Count parameter counts the number of buffers that returned with status "failed", i.e., buffers that were grabbed incompletely.

不完全にグラブされたバッファーのエラーコードは、GigEカメラでは0xE1000014、USB 3.0カメラでは0xE2000212です。

Failed Packet Count#

The Statistic_Failed_Packet_Count parameter counts packets that were successfully received by the stream grabber, but have been reported as "failed" by the camera.

パケットが「失敗」と報告される最も一般的な理由は、パケット再送要求がカメラで満たされなかったことです。これは、要求されたデータがカメラのメモリー内の新しい画像データによってすでに上書きされている場合などに発生します。

Failed Packet Countは、すべての再送要求が失敗したために失われたと見なされるパケットをカウントしません。この場合、Failed Buffer Countは増加しますが、Failed Packet Countは増加しません。

Last Block ID#

The Statistic_Last_Block_Id parameter indicates the last grabbed block ID.

Last Failed Buffer Status#

The Statistic_Last_Failed_Buffer_Status parameter indicates the status code of the last failed buffer.

Last Failed Buffer Status Text#

The Statistic_Last_Failed_Buffer_Status_Text parameter indicates the last error status of a read or write operation.

Missed Frame Count#

The Statistic_Missed_Frame_Count parameter counts the number of frames that were acquired but skipped because the camera's internal frame buffer was already full.

多くのBaslerカメラは、完全なフレームを複数保存できるフレームバッファーを搭載しています。Missed Frame Countが多い場合は、ホストコントローラーがカメラの帯域幅をサポートしていないことを示しています。つまり、ホストコントローラーは、時間内に取得した画像を取り込みません。これにより、カメラは内部フレームバッファーに画像をバッファーするようになります。内部フレームバッファーがいっぱいになると、カメラは新しく取得したセンサーデータをスキップし始めます。

Resend Packet Count#

The Statistic_Resend_Packet_Count parameter counts the number of packets requested by resend requests.

情報

Filter Driverを使用していて、ドライバーがフレームの「リーダー」、つまりフレームの先頭を示すパケットを受信していない場合、フレーム全体が無視されます。再送要求は送信されず、統計パラメーターは増加しません。これは、「リーダー」パケットが失われた場合、フレーム全体が通知なしに失われることを意味します。Baslerは、Frame Counterチャンクを確認して、失われたフレームを検出することをおすすめします。

Resend Request Count#

The Statistic_Resend_Request_Count parameter counts the number of packet resend requests sent.

ドライバータイプとストリームグラバーの設定によっては、ストリームグラバーは1つの欠落したパケットに対して複数の要求を送信するか、複数のパケットに対して1つの要求を送信することがあります。したがって、Resend Request CountとResend Packet Countは異なる場合があります。

Resynchronization Count#

The Statistic_Resynchronization_Count parameter counts the number of stream resynchronizations.

ストリーミングプロセス内でホストの同期が解除されると、再同期が開始され、カメラの内部バッファーがフラッシュされます。

特定のシーケンスのIDを持つストリームパケットを要求すると、ホストの同期が解除されることがありますが、デバイスは別のシーケンスを持つパケットを送信します。これは、カメラとホストの間の接続に障害がある場合に起こることがあります。ホストが同期していないと、大量の画像が失われます。

ホストの再同期は、USB 3.0およびUSB3 Vision仕様で最も重大なエラー事例と見なされます。

合計バッファー数#

On GigE cameras, the Statistic_Total_Buffer_Count parameter counts the number of buffers that returned with "success" or "failed" status, i.e., all successfully or incompletely grabbed buffers. On other cameras, e.g., USB cameras, the number of buffers processed is counted.

不完全にグラブされたバッファーのエラーコードは、GigEカメラでは0xE1000014、USB 3.0カメラでは0xE2000212です。

合計パケット数#

The Statistic_Total_Packet_Count parameter counts all packets received, including packets that have been reported as "failed", i.e., including the Failed Packet Count.

サンプルコード#

// ** General Parameters **
// Access Mode
AccessModeEnums accessMode = camera.GetStreamGrabberParams().AccessMode.GetValue();
// Auto Packet Size
camera.GetStreamGrabberParams().AutoPacketSize.SetValue(true);
// Maximum Buffer Size
camera.GetStreamGrabberParams().MaxBufferSize.SetValue(131072);
// Maximum Number of Buffers
camera.GetStreamGrabberParams().MaxNumBuffer.SetValue(16);
// Maximum Transfer Size
camera.GetStreamGrabberParams().MaxTransferSize.SetValue(1048568);
// Num Max Queued Urbs
camera.GetStreamGrabberParams().NumMaxQueuedUrbs.SetValue(64);
// Receive Thread Priority Override
camera.GetStreamGrabberParams().ReceiveThreadPriorityOverride.SetValue(true);
// Receive Thread Priority
camera.GetStreamGrabberParams().ReceiveThreadPriority.SetValue(15);
// Socket Buffer Size (socket driver only)
camera.GetStreamGrabberParams().SocketBufferSize.SetValue(2048);
// Status
StatusEnums streamGrabberStatus = camera.GetStreamGrabberParams().Status.GetValue();
// Transfer Loop Thread Priority
camera.GetStreamGrabberParams().TransferLoopThreadPriority.SetValue(15);
// Type of GigE Vision Filter Driver
camera.GetStreamGrabberParams().Type.SetValue(Type_WindowsIntelPerformanceDriver);
// Type: Socket Driver Available
int64_t i = camera.GetStreamGrabberParams().TypeIsWindowsIntelPerformanceDriverAvailable.GetValue();
// Type: Windows Filter Driver Available
int64_t i = camera.GetStreamGrabberParams().TypeIsWindowsFilterDriverAvailable.GetValue();
// Type: Windows Intel Performance Driver Available
int64_t i = camera.GetStreamGrabberParams().TypeIsSocketDriverAvailable.GetValue();
// ** Packet Resend Mechanism Parameters **
// Enable Resends
camera.GetStreamGrabberParams().EnableResend.SetValue(true);
// Packet Timeout
camera.GetStreamGrabberParams().PacketTimeout.SetValue(40);
// Frame Retention
camera.GetStreamGrabberParams().FrameRetention.SetValue(200);
// Maximum Number of Resend Requests
camera.GetStreamGrabberParams().MaximumNumberResendRequests.SetValue(25);
// Firewall Traversal Interval
camera.GetStreamGrabberParams().FirewallTraversalInterval.SetValue(10000);
camera.GetEventGrabberParams().FirewallTraversalInterval.SetValue(30000);
// ** Stream Destination Parameters **
// Transmission Type
camera.GetStreamGrabberParams().TransmissionType.SetValue(TransmissionType_Unicast);
// Destination Address
GenICam::gcstring destinationAddr = camera.GetStreamGrabberParams().DestinationAddr.GetValue();
// Destination Port
camera.GetStreamGrabberParams().DestinationPort.SetValue(0);
// ** Statistics Parameters **
// Buffer Underrun Count
int64_t bufferUnderrunCount = camera.GetStreamGrabberParams().Statistic_Buffer_Underrun_Count.GetValue();
// Failed Buffer Count
int64_t failedBufferCount = camera.GetStreamGrabberParams().Statistic_Failed_Buffer_Count.GetValue();
// Failed Packet Count
int64_t failedPacketCount = camera.GetStreamGrabberParams().Statistic_Failed_Packet_Count.GetValue();
// Last Block ID
int64_t lastBlockId = camera.GetStreamGrabberParams().Statistic_Last_Block_Id.GetValue();
// Last Failed Buffer Status
int64_t lastFailedBufferStatus = camera.GetStreamGrabberParams().Statistic_Last_Failed_Buffer_Status.GetValue();
// Last Failed Buffer Status Text
GenICam::gcstring lastFailedBufferStatusText = camera.GetStreamGrabberParams().Statistic_Last_Failed_Buffer_Status_Text.GetValue();
// Missed Frame Count
int64_t missedFrameCount = camera.GetStreamGrabberParams().Statistic_Missed_Frame_Count.GetValue();
// Resend Request Count
int64_t resendRequestCount = camera.GetStreamGrabberParams().Statistic_Resend_Request_Count.GetValue();
// Resend Packet Count
int64_t resendPacketCount = camera.GetStreamGrabberParams().Statistic_Resend_Packet_Count.GetValue();
// Resynchronization Count
int64_t resynchronizationCount = camera.GetStreamGrabberParams().Statistic_Resynchronization_Count.GetValue();
// Total Buffer Count
int64_t totalBufferCount = camera.GetStreamGrabberParams().Statistic_Total_Buffer_Count.GetValue();
// Total Packet Count
int64_t totalPacketCount = camera.GetStreamGrabberParams().Statistic_Total_Packet_Count.GetValue();
// ** General Parameters **
// Access Mode
string accessMode = camera.Parameters[PLStream.AccessMode].GetValue();
// Auto Packet Size
camera.Parameters[PLStream.AutoPacketSize].SetValue(true);
// Maximum Buffer Size
camera.Parameters[PLStream.MaxBufferSize].SetValue(131072);
// Maximum Number of Buffers
camera.Parameters[PLStream.MaxNumBuffer].SetValue(16);
// Maximum Transfer Size
camera.Parameters[PLStream.MaxTransferSize].SetValue(1048568);
// Num Max Queued Urbs
camera.Parameters[PLStream.NumMaxQueuedUrbs].SetValue(64);
// Receive Thread Priority Override
camera.Parameters[PLStream.ReceiveThreadPriorityOverride].SetValue(true);
// Receive Thread Priority
camera.Parameters[PLStream.ReceiveThreadPriority].SetValue(15);
// Socket Buffer Size (socket driver only)
camera.Parameters[PLStream.SocketBufferSize].SetValue(2048);
// Status
string streamGrabberStatus = camera.Parameters[PLStream.Status].GetValue();
// Transfer Loop Thread Priority
camera.Parameters[PLStream.TransferLoopThreadPriority].SetValue(15);
// Type of GigE Vision Filter Driver
camera.Parameters[PLStream.Type].SetValue(PLStream.Type.WindowsIntelPerformanceDriver);
// Type: Socket Driver Available
Int64 performanceDriverAvailable = camera.Parameters[PLStream.TypeIsWindowsIntelPerformanceDriverAvailable].GetValue();
// Type: Windows Filter Driver Available
Int64 filterDriverAvailable = camera.Parameters[PLStream.TypeIsWindowsFilterDriverAvailable].GetValue();
// Type: Windows Intel Performance Driver Available
Int64 socketDriverAvailable = camera.Parameters[PLStream.TypeIsSocketDriverAvailable].GetValue();
// ** Packet Resend Mechanism Parameters **
// Enable Resends
camera.Parameters[PLStream.EnableResend].SetValue(true);
// Packet Timeout
camera.Parameters[PLStream.PacketTimeout].SetValue(40);
// Frame Retention
camera.Parameters[PLStream.FrameRetention].SetValue(200);
// Maximum Number of Resend Requests
camera.Parameters[PLStream.MaximumNumberResendRequests].SetValue(25);
// Firewall Traversal Interval
camera.Parameters[PLStream.FirewallTraversalInterval].SetValue(10000);
camera.Parameters[PLEventGrabber.FirewallTraversalInterval].SetValue(30000);
// ** Stream Destination Parameters **
// Transmission Type
camera.Parameters[PLStream.TransmissionType].SetValue(PLStream.TransmissionType.Unicast);
// Destination Address
string destinationAddr = camera.Parameters[PLStream.DestinationAddr].GetValue();
// Destination Port
camera.Parameters[PLStream.DestinationPort].SetValue(0);
// ** Statistics Parameters **
// Buffer Underrun Count
Int64 bufferUnderrunCount = camera.Parameters[PLStream.Statistic_Buffer_Underrun_Count].GetValue();
// Failed Buffer Count
Int64 failedBufferCount = camera.Parameters[PLStream.Statistic_Total_Buffer_Count].GetValue();
// Failed Packet Count
Int64 failedPacketCount = camera.Parameters[PLStream.Statistic_Failed_Packet_Count].GetValue();
// Last Block ID
Int64 lastBlockId = camera.Parameters[PLStream.Statistic_Last_Block_Id].GetValue();
// Last Failed Buffer Status
Int64 lastFailedBufferStatus = camera.Parameters[PLStream.Statistic_Last_Failed_Buffer_Status].GetValue();
// Last Failed Buffer Status Text
string lastFailedBufferStatusText = camera.Parameters[PLStream.Statistic_Last_Failed_Buffer_Status_Text].GetValue();
// Missed Frame Count
Int64 missedFrameCount = camera.Parameters[PLStream.Statistic_Missed_Frame_Count].GetValue();
// Resend Packet Count
Int64 resendPacketCount = camera.Parameters[PLStream.Statistic_Resend_Packet_Count].GetValue();
// Resend Request Count
Int64 resendRequestCount = camera.Parameters[PLStream.Statistic_Resend_Request_Count].GetValue();
// Resynchronization Count
Int64 resynchronizationCount = camera.Parameters[PLStream.Statistic_Resynchronization_Count].GetValue();
// Total Buffer Count
Int64 totalBufferCount = camera.Parameters[PLStream.Statistic_Total_Buffer_Count].GetValue();
// Total Packet Count
Int64 totalPacketCount = camera.Parameters[PLStream.Statistic_Total_Packet_Count].GetValue();

このサンプルコードは、C++およびC#言語でのみ使用できます。

pylon Viewerを使用して、パラメーターを簡単に設定することもできます。