# C++ API

**URL:** https://forum.commonvisionblox.com/c/programming-questions/c-api/18.md

[Latest](https://forum.commonvisionblox.com/latest.md) · [Categories](https://forum.commonvisionblox.com/categories.md) · [Tags](https://forum.commonvisionblox.com/tags.md)

---

## [About the C++ API category](https://forum.commonvisionblox.com/t/about-the-c-api-category/200)

<div class="topic-metadata">

**Author:** [@Andreas](https://forum.commonvisionblox.com/u/Andreas)\
**Replies:** 0\
**Last updated:** [August 24, 2017, 7:18am UTC](https://forum.commonvisionblox.com/t/about-the-c-api-category/200 "2017-08-24T07:18:39Z")

</div>

The CVB++ API (see also this post) is a new object oriented wrapper for the :cvb: SDK. It has been designed as header-only library on top of the classic C-like API. Therefore its interface conveniently uses the C++11 st…

---

## [ATC5 with GenTL](https://forum.commonvisionblox.com/t/atc5-with-gentl/2505)

<div class="topic-metadata">

**Author:** [@Mikael](https://forum.commonvisionblox.com/u/Mikael)\
**Replies:** 3\
**Last updated:** [September 15, 2026, 1:45pm UTC](https://forum.commonvisionblox.com/t/atc5-with-gentl/2505 "2026-09-15T13:45:02Z")

</div>

Hello, I am trying to integrate an ATC5 camera under GenTL (third cvb acq. stack) un C++ on windows. I have enable CHUNKs on the camera to get timestamps and encoder values. The problem after “std::tie(composite, wait…

---

## [CvbException: Error getting stream count](https://forum.commonvisionblox.com/t/cvbexception-error-getting-stream-count/2470)

<div class="topic-metadata">

**Author:** [@IngFra](https://forum.commonvisionblox.com/u/IngFra)\
**Replies:** 7\
**Last updated:** [April 17, 2026, 11:06am UTC](https://forum.commonvisionblox.com/t/cvbexception-error-getting-stream-count/2470 "2026-04-17T11:06:26Z")

</div>

Sometimes our application terminates due to this: terminate called after throwing an instance of 'Cvb::V\_1\_6::CvbException' what(): Error getting stream count. Any reason for this? Using a thread for trying to star…

---

## [CVB 15.0.1 GENTL timestamp issue](https://forum.commonvisionblox.com/t/cvb-15-0-1-gentl-timestamp-issue/2458)

<div class="topic-metadata">

**Author:** [@Mikael](https://forum.commonvisionblox.com/u/Mikael)\
**Replies:** 1\
**Last updated:** [January 14, 2026, 7:30am UTC](https://forum.commonvisionblox.com/t/cvb-15-0-1-gentl-timestamp-issue/2458 "2026-01-14T07:30:12Z")

</div>

Hello, I am tesing a Dalsa Linea-C2048-7um unnder W11x64 and CVB 15.0.0. Read the node “Timestamp” of “VinBuffer” nodemap fails. It was working properly using the previous CVB versions. Is it deprecated or is it a bu…

---

## [AT and stack 3 cause acquisition problems](https://forum.commonvisionblox.com/t/at-and-stack-3-cause-acquisition-problems/2418)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 13\
**Last updated:** [September 5, 2025, 10:45am UTC](https://forum.commonvisionblox.com/t/at-and-stack-3-cause-acquisition-problems/2418 "2025-09-05T10:45:14Z")

</div>

Hello CVB team, Hope you are doing well. Since more than one year now, I use the stack 3 to take pictures on our main vision products. It use two AT (mostly C5 SCT) cameras that reconstruct huge carts to control compon…

---

## [How to disable GenTLCommon::ExceptionTyped\<-1011\>?](https://forum.commonvisionblox.com/t/how-to-disable-gentlcommon-exceptiontyped-1011/2406)

<div class="topic-metadata">

**Author:** [@Jan](https://forum.commonvisionblox.com/u/Jan)\
**Replies:** 6\
**Last updated:** [May 20, 2025, 4:08pm UTC](https://forum.commonvisionblox.com/t/how-to-disable-gentlcommon-exceptiontyped-1011/2406 "2025-05-20T16:08:27Z")

</div>

Hello, I’m using CVB V 14.1 on Windows 64 bit and Visual Studio 2022. CVB floods the IDEs output window, making me a hard time debugging and stepping through my application while trying to follow my own OutputDebugStrin…

---

## [False Camera class when CVB is not installed](https://forum.commonvisionblox.com/t/false-camera-class-when-cvb-is-not-installed/2400)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 4\
**Last updated:** [April 23, 2025, 6:25am UTC](https://forum.commonvisionblox.com/t/false-camera-class-when-cvb-is-not-installed/2400 "2025-04-23T06:25:13Z")

</div>

Hi guys, One of my client ask me to build a version of our software that used CVB and is in a production computer “online”, to be use “offline” with a portable computer where CVB is not installed, to be able to work on …

---

## [Stream product monochrome image with color camera](https://forum.commonvisionblox.com/t/stream-product-monochrome-image-with-color-camera/1957)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 7\
**Last updated:** [March 17, 2025, 10:18am UTC](https://forum.commonvisionblox.com/t/stream-product-monochrome-image-with-color-camera/1957 "2025-03-17T10:18:08Z")

</div>

Hi all, I’m using Dalsa Nano C2420 with third generation acqusition interface. When I use the Dalsa with GenICam Browser, I can snap and save color 24 pictures that I’m looking for, but when I use it into my c++ code, …

---

## [Cvb::String is sometime std::string or std::wstring](https://forum.commonvisionblox.com/t/cvb-string-is-sometime-std-string-or-std-wstring/2346)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 4\
**Last updated:** [January 24, 2025, 8:33am UTC](https://forum.commonvisionblox.com/t/cvb-string-is-sometime-std-string-or-std-wstring/2346 "2025-01-24T08:33:39Z")

</div>

Hi guys, Is someone can explain to me why sometime I can get Cvb::String as std::string and sometime as std::wstring in the same computer and by upgrading or downgrading CVB installion ? I don’t understand why. I am wo…

---

## [How to know if node exist](https://forum.commonvisionblox.com/t/how-to-know-if-node-exist/2289)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 3\
**Last updated:** [January 15, 2025, 12:06pm UTC](https://forum.commonvisionblox.com/t/how-to-know-if-node-exist/2289 "2025-01-15T12:06:58Z")

</div>

Hello team, Hope you are doing well. I have a question that seem to be rather easy, but I can’t find the answer… I have multiple camera without the same firmware. They have a few nodes that the name isn’t the same (exp…

---

## [Problem when discovering cameras](https://forum.commonvisionblox.com/t/problem-when-discovering-cameras/2284)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 5\
**Last updated:** [December 6, 2024, 11:48am UTC](https://forum.commonvisionblox.com/t/problem-when-discovering-cameras/2284 "2024-12-06T11:48:05Z")

</div>

Hello everyone, I used the DeviceFactory Discover method to get a list of all the camera connected to the computer, so that we can dynamically choose the camera that we want to use when our software is setup on a new Wi…

---

## [Best camera and network board parameters set up](https://forum.commonvisionblox.com/t/best-camera-and-network-board-parameters-set-up/2285)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 2\
**Last updated:** [December 6, 2024, 9:00am UTC](https://forum.commonvisionblox.com/t/best-camera-and-network-board-parameters-set-up/2285 "2024-12-06T09:00:43Z")

</div>

Hi all, Hope you are doing well. Since now more than one year did I change my way to acquire camera from an old way to do this with CVB to the stack 3. I use the new cpp codes with at least 10 differents cameras, from…

---

## [ATC6 get line status time](https://forum.commonvisionblox.com/t/atc6-get-line-status-time/1986)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 28\
**Last updated:** [December 4, 2024, 1:27pm UTC](https://forum.commonvisionblox.com/t/atc6-get-line-status-time/1986 "2024-12-04T13:27:13Z")

</div>

Hello guys, I have a acquisition loop for take C6 range image, and during this loop I try to read the value of input 1 and input 2. I use this code to acces to the information : bool CCameraCvbGenicamATC6::GetLineStatu…

---

## [Camera Crash with Trigger settings](https://forum.commonvisionblox.com/t/camera-crash-with-trigger-settings/2270)

<div class="topic-metadata">

**Author:** [@iwein](https://forum.commonvisionblox.com/u/iwein)\
**Replies:** 3\
**Last updated:** [November 26, 2024, 9:23am UTC](https://forum.commonvisionblox.com/t/camera-crash-with-trigger-settings/2270 "2024-11-26T09:23:48Z")

</div>

I have a strange problem: (the aquisition of) my specim 17e camera crashes when I execute the following code. This is always the case, regardless of the setTrigger argument. auto setTrigger(bool enable\_trigger) const { …

---

## [AT C6 timestamp](https://forum.commonvisionblox.com/t/at-c6-timestamp/2248)

<div class="topic-metadata">

**Author:** [@Mikael](https://forum.commonvisionblox.com/u/Mikael)\
**Replies:** 2\
**Last updated:** [October 24, 2024, 4:02pm UTC](https://forum.commonvisionblox.com/t/at-c6-timestamp/2248 "2024-10-24T16:02:46Z")

</div>

Hello, I am using AT C5 and AT C6 for a few years. actually, it is possible to consult live the encoder counter value (ant it is even possible to reset it). Later, if an image is trigged, the image arrives with encoder…

---

## [Crop Image C++ using Rect() Map()](https://forum.commonvisionblox.com/t/crop-image-c-using-rect-map/2239)

<div class="topic-metadata">

**Author:** [@Emma](https://forum.commonvisionblox.com/u/Emma)\
**Replies:** 3\
**Last updated:** [October 16, 2024, 7:27am UTC](https://forum.commonvisionblox.com/t/crop-image-c-using-rect-map/2239 "2024-10-16T07:27:02Z")

</div>

Hi Everyone! I hope someone can help me with an issue I’m facing when cropping an image. I’m using the Rect() function to define a rectangle for cropping and the Map() function to crop the image. When I use Rect(0, 0, …

---

## [Spectral::Transpose is gone?](https://forum.commonvisionblox.com/t/spectral-transpose-is-gone/2215)

<div class="topic-metadata">

**Author:** [@iwein](https://forum.commonvisionblox.com/u/iwein)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 2:16pm UTC](https://forum.commonvisionblox.com/t/spectral-transpose-is-gone/2215 "2024-08-29T14:16:52Z")

</div>

In the latest release of CVB, the Transpose() function in Cube.hpp is onmitted. This implies, in turn, that the following code does not compile anymore const auto cube = Cvb::Cube::FromImages(imgVec, Cvb::Spectral::Cu…

---

## [Cvb++ Nodemap event callback challenges](https://forum.commonvisionblox.com/t/cvb-nodemap-event-callback-challenges/2195)

<div class="topic-metadata">

**Author:** [@cpj\_ge](https://forum.commonvisionblox.com/u/cpj_ge)\
**Replies:** 7\
**Last updated:** [July 25, 2024, 12:20pm UTC](https://forum.commonvisionblox.com/t/cvb-nodemap-event-callback-challenges/2195 "2024-07-25T12:20:55Z")

</div>

Hi I am using Cvb++ (14.1) and am in the process of registering callback functions for all possible events. So far I have succesfully retrieved all the relevant IntegerNodePtr’s from the device nodemap (for example Std…

---

## [Running Ebus SDK on jetson nano](https://forum.commonvisionblox.com/t/running-ebus-sdk-on-jetson-nano/1643)

<div class="topic-metadata">

**Author:** [@Embeddediot](https://forum.commonvisionblox.com/u/Embeddediot)\
**Replies:** 5\
**Last updated:** [April 19, 2024, 10:18am UTC](https://forum.commonvisionblox.com/t/running-ebus-sdk-on-jetson-nano/1643 "2024-04-19T10:18:12Z")

</div>

I am currently making my bachelor thesis where i am working on the jetson nano with a jai GO-5000C-PGE camera. I have installed the specific sdk for the jetson nano (https://www.jai.com/support-software/jetson-ubuntu/). …

---

## [WaitStatus Cvb::WaitStatus::Abort : means ring buffer full?](https://forum.commonvisionblox.com/t/waitstatus-cvb-abort-means-ring-buffer-full/2139)

<div class="topic-metadata">

**Author:** [@Mikael](https://forum.commonvisionblox.com/u/Mikael)\
**Replies:** 2\
**Last updated:** [March 25, 2024, 3:59pm UTC](https://forum.commonvisionblox.com/t/waitstatus-cvb-abort-means-ring-buffer-full/2139 "2024-03-25T15:59:41Z")

</div>

Hello, In the documentation, I can see enum WaitStatus. About “WaitStatus ::Abort” with the comment : The acquisition has been stopped asynchronously, there is no image buffer. Context : std::tie(composite, waitStatus…

---

## [Problem with GEV Server : XML description file end with a \<NULL\> character](https://forum.commonvisionblox.com/t/problem-with-gev-server-xml-description-file-end-with-a-null-character/2102)

<div class="topic-metadata">

**Author:** [@Drochon](https://forum.commonvisionblox.com/u/Drochon)\
**Replies:** 6\
**Last updated:** [January 30, 2024, 2:26pm UTC](https://forum.commonvisionblox.com/t/problem-with-gev-server-xml-description-file-end-with-a-null-character/2102 "2024-01-30T14:26:08Z")

</div>

Hello, When I use a GEV server with the C++ API, I can’t connect to the server with my camera application (using the MIL-LITE-X API). After analysis, it appears that a NULL character is added at the end of the XML desc…

---

## [ATC6 after camera boot: enable chunks](https://forum.commonvisionblox.com/t/atc6-after-camera-boot-enable-chunks/1901)

<div class="topic-metadata">

**Author:** [@Mikael](https://forum.commonvisionblox.com/u/Mikael)\
**Replies:** 15\
**Last updated:** [February 16, 2023, 1:13pm UTC](https://forum.commonvisionblox.com/t/atc6-after-camera-boot-enable-chunks/1901 "2023-02-16T13:13:55Z")

</div>

Hello, I am using an ATC6 camera with CVVBB 14.00.002 on windows 10. Camera is initialised with CVB++ GENTL. ISSUE: when I reboot the camera, I cannot get the Chunks (timestamp, encoer value) enven though chunk is ini…

---

## [C5 2d image is imagePtr or bufferPtr](https://forum.commonvisionblox.com/t/c5-2d-image-is-imageptr-or-bufferptr/2032)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 6\
**Last updated:** [October 31, 2023, 2:16pm UTC](https://forum.commonvisionblox.com/t/c5-2d-image-is-imageptr-or-bufferptr/2032 "2023-10-31T14:16:59Z")

</div>

Hi all, I just finish to update my C5 class after creating a C6 class in a spirit of clean code. I can take depth pictures withe the C5, it’s work fine. When I want to get the 2d images, I get frome the C5 stream somet…

---

## [C5 timestamp et input line data](https://forum.commonvisionblox.com/t/c5-timestamp-et-input-line-data/2031)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 5\
**Last updated:** [October 30, 2023, 8:33am UTC](https://forum.commonvisionblox.com/t/c5-timestamp-et-input-line-data/2031 "2023-10-30T08:33:40Z")

</div>

Hi all, I continue to work on my C6 integration, and it work almost fine. I just update my C5 class to manage our last C5 like our new C6 in a spirit of Clean Code and better adaptation of our software, but some parts …

---

## [CVB cube saving to ENVI crashes](https://forum.commonvisionblox.com/t/cvb-cube-saving-to-envi-crashes/1999)

<div class="topic-metadata">

**Author:** [@iwein](https://forum.commonvisionblox.com/u/iwein)\
**Replies:** 5\
**Last updated:** [September 27, 2023, 9:34am UTC](https://forum.commonvisionblox.com/t/cvb-cube-saving-to-envi-crashes/1999 "2023-09-27T09:34:01Z")

</div>

I have a strange problem with the saving of a cvb::Cube. Consider the following MS unit test: /////////////////////////////////////////// // Write data to ENVI BIP file TEST\_METHOD(TestCVBCrashOnCubeSave) { const a…

---

## [DeviceLinkThroughputLimitMode or GevSCPD?](https://forum.commonvisionblox.com/t/devicelinkthroughputlimitmode-or-gevscpd/2023)

<div class="topic-metadata">

**Author:** [@Mikael](https://forum.commonvisionblox.com/u/Mikael)\
**Replies:** 3\
**Last updated:** [September 4, 2023, 12:46pm UTC](https://forum.commonvisionblox.com/t/devicelinkthroughputlimitmode-or-gevscpd/2023 "2023-09-04T12:46:48Z")

</div>

Hello, I’ve seen a new settings in a camera. I was used to work with Interpacket delay (GevSCPD), which is also declared in genicam.vin. BUT “Interpacket delay” is not writeable if “DeviceLinkThroughputLimitMode” is se…

---

## [How to link one node to another using the pSelector on GEV server](https://forum.commonvisionblox.com/t/how-to-link-one-node-to-another-using-the-pselector-on-gev-server/2012)

<div class="topic-metadata">

**Author:** [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Replies:** 0\
**Last updated:** [August 23, 2023, 11:05am UTC](https://forum.commonvisionblox.com/t/how-to-link-one-node-to-another-using-the-pselector-on-gev-server/2012 "2023-08-23T11:05:33Z")

</div>

I have created a GevServer and would now like to add a pSelector to a node, so that this node is available as with the Linea camera. However, I am not quite clear what a pSelector does exactly, or what its function is. …

---

## [Imager use vs Stream use for C5/C6 acquisition](https://forum.commonvisionblox.com/t/imager-use-vs-stream-use-for-c5-c6-acquisition/1978)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 3\
**Last updated:** [July 12, 2023, 1:07pm UTC](https://forum.commonvisionblox.com/t/imager-use-vs-stream-use-for-c5-c6-acquisition/1978 "2023-07-12T13:07:28Z")

</div>

Hy guys, I’ll try to do a better job than last week for my topic. So, I have a acquisition software used only with AT CX serie camera that work for many years. We used the C5 as the main camera to get range images and…

---

## [Snippet for enabling Turbodrive2 for the new Acquistion stack](https://forum.commonvisionblox.com/t/snippet-for-enabling-turbodrive2-for-the-new-acquistion-stack/1714)

<div class="topic-metadata">

**Author:** [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 9:59am UTC](https://forum.commonvisionblox.com/t/snippet-for-enabling-turbodrive2-for-the-new-acquistion-stack/1714 "2022-06-20T09:59:03Z")

</div>

Hi everyone, here is a simple example how to enable Turbodrive2 (and 1 with slight modification) for the new acquisition stack. NOTE: This only works iff you use the “Cvb::Driver::AcquisitionStack::GenTL” (i.e. the new…

---

## [ATC6 encoder value range bug report](https://forum.commonvisionblox.com/t/atc6-encoder-value-range-bug-report/1900)

<div class="topic-metadata">

**Author:** [@Mikael](https://forum.commonvisionblox.com/u/Mikael)\
**Replies:** 1\
**Last updated:** [January 30, 2023, 9:48am UTC](https://forum.commonvisionblox.com/t/atc6-encoder-value-range-bug-report/1900 "2023-01-30T09:48:32Z")

</div>

Hello, I’ve found a bug in the ATC6 camera: in the features it is supposed to work in the range: \[0x80000000;0x7FFFFFFF\]. In real life, it is \[0; 0x7FFFFFFF\] The value is never negative and it is supposed to be nega…

[Next page](https://forum.commonvisionblox.com/c/programming-questions/c-api/18.md?page=1)
