LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about Gige Camera and Sapera .dll

Actually I have a Dalsa cam here. Next week I could find some time to create a simple demo.

Actor Framework
0 Kudos
Message 11 of 17
(146 Views)

Awesome. I'll look into it further and see what I can do in the meantime. 

 

Thanks.

0 Kudos
Message 12 of 17
(133 Views)

Alright, I got sidetracked for a little bit, but I'm back to focusing on this project. I would appreciate some guidance on a few things while I navigate this:

  • What topics should I explore further that would help me in understanding how to get this working on my own?
  • Is this the right site to ask these questions? Or should I go towards GitHub/other sites?
  • Is the path I'm going down in the right direction? Or should I be attempting to have a separate display (windows.form) outside of LabVIEW that I control via the .dll within LabVIEW?

 

Now for the information update.

I have got the "findCamera.cs" working great in LabVIEW by copying over the code in VS studios. (This is what took me so long, I have never worked with C#/VS Studios before and didn't know if these problems came from my lack of understanding or the local permissions from the IT department slowing me down.) It works in a simple class I created called FindCamera and then another class called ConsoleHelper which allocates a console (command prompt) like in the .exe. 

Now for the next project, I wanted to actually run the camera via one of the demos named "GigECameraDemo" which in the .exe, opens up a top-level window that can connect to a Gig-E camera (like mine), and then has several different options of running it. As seen in my solution or solution explorer image below, I uploaded/maneuvered the code from the original .SLN file into my own. This includes all files located in the "Common Folder" and "GigeCameraDemo" associated files.The only change made was "this.TopLevel = false;".  I then built the solution and put it in the .Net container in labview where it proceeded to start spouting errors that made me believe I was going about this incorrectly. I have attached screenshots below of them all.

1. I insert a .NET control and try to add the associated .dll.

2. Once loading the highlighted one from 1, the above window pops up.

3. After clicking OK, this is what the front panel looks like (exactly like the .exe)

4. Clicking the LabVIEW start, it prompts me again exactly like in Step 2.

5. It throws this error because apparently it thinks that the camera is being used in two spots? But I'm only calling it once.

 

Please let me know what other information you might need or what comments you guys have. I realize I am in way over my head at this point so anything will help! 

 

Thanks!

 

 

 

0 Kudos
Message 13 of 17
(72 Views)

dalsa.png

Vision Acquisition Software worked for me with Dalsa M2450 with full framerate for given exposure time.
I added a sample VS project with vi which shows how to start the console grab example.

Actor Framework
0 Kudos
Message 14 of 17
(52 Views)

Awesome! Unfortunately, I only have 2024 Q1 LabVIEW (24.1.1f1) if you could revert it to that version. In the meantime, I'll try to find someone that has the 2025 version.

Thanks again!

0 Kudos
Message 15 of 17
(36 Views)

i think I also added a 2019 version. However, it is just a invoke node pointing to the static run method from the dll created via the vs project.

Actor Framework
0 Kudos
Message 16 of 17
(28 Views)

Aha. I found it. I'll do some looking and see if I can replicate it with my own camera!

0 Kudos
Message 17 of 17
(20 Views)