LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Camera capture in wince

Dear Labview programmers,

 

I am trying to acquire images on a SBC running winCE6.0 by using the: Camera capture.vi.

I use an AMR9 SBC with a camera. It does have an application to open it and to save images but I can't figure out how to use the mentioned .vi to do the same thing.

 

There is any example around about how to use the "camera capture.vi" on winCe?

 

I use labview 2009 for PDA.

 

Thank you very much,

 

Andrei

0 Kudos
Message 1 of 9
(4,691 Views)

Andrei,

 

Unfortunately, the Camera Capture.vi does not work on Windows Mobile 6 or Windows CE 6.0. Our developers have already been made aware of this problem. I'm sorry if this inconveniences you in anyway.

 

Regards,

 

Larry H.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 9
(4,661 Views)

Dear Larry,

 

I am using basic serial write and read.vi to work on WinCE 6.0. However, it doesn't work. Data client.vi and data server.vi works fine. I saw the VISA 4.5 driver installed on wince 6.0. However, the visa resource name didn't show on front panel. Does VISA 4.5 support on WinCE 6.0? Thank you.

 

Best regards,

Ancle

0 Kudos
Message 3 of 9
(4,643 Views)

Hi Larry,

 

Thank you for the info.

Does the Vi works for the Win CE5.0? I could down grade is required...

 

There is any plan to have such a solution for the Win CE6.0?

What about USB webcam on Win CE (6.0 if possible?)

 

Thank you very much.

 

Andrei

0 Kudos
Message 4 of 9
(4,636 Views)
0 Kudos
Message 5 of 9
(4,627 Views)

Andrei,

 

It should work in WinCE 5.0 but that is only if your pda supports picture and/or video capability. As far as its functionality on WinCE 6.0, the R&D team is aware of the VIs status. I am not sure of the timeline on it being fixed.

 

 

Applications Engineer
National Instruments
0 Kudos
Message 6 of 9
(4,619 Views)

Ancle,

 

NI-VISA 4.5 is only supported on the following operating systems: Pocket PC 2003; Real-Time OS; Windows 2000; Windows XP; Windows Vista; Windows Vista x64; Windows Mobile 5. This information was found here: https://www.ni.com/en/support/downloads/drivers/download.ni-visa.html

 

Larry H

Applications Engineer
National Instruments
0 Kudos
Message 7 of 9
(4,607 Views)

Hi Larry,

 

I have downgraded to WinCE5.0

All programs from the image including a camera test are working well.

When I try to run an .exe done in LV I have an error.

I have searched the LV forum and I have realized I need these DLLs.

 

-aygshell.dll

-commctrl.dll

-commdlg.dll

-COREDLL.dll

-ole32.dll

-WINSOCK.dll

-WS2.dll

 

Where can I find them (I did found the first one, but alone it is no good)?

 

Please help,

 

Andrei

0 Kudos
Message 8 of 9
(4,577 Views)

Andrei,

 

The device is missing one or more required files.

LabVIEW assumes that the device supports (at a minimum) the Windows CE Standard SDK. In particular, LabVIEW references the following system DLLs:

  • AYGSHELL.dll
  • commctrl.dll
  • commdlg.dll
  • COREDLL.dll
  • ole32.dll
  • WINSOCK.dll
  • WS2.dll

If one of the above files is missing, you will likely get an error similar to the following:

Can't find 'APP_NAME' (or one of its components). Make sure the path and filename are correct and that all the required libraries are available.

In this case, APP_NAME represents the actual name of the LabVIEW executable. Unfortunately, it's not as simple as looking for the above files using a file browser (e.g. via ActiveSync) because many system files are hidden, even if the folder view is configured to show system files. To determine which one(s) are missing, use the attached utility, "pget.exe" to do the following:

  1. Save the attached utility, "pget.exe" to a temporary directory.
  2. Connect your device to ActiveSync prior to running pget.
  3. Open a command windows and navigate to the directory that contains pget.
  4. Enter the following command: "pget \Windows\aygshell.dll c:\temp\aygshell.dll"

If the file exists, pget displays "Unable to open Windows CE file." or "Error !!! Reading Windows CE file". If it does not exist, pget displays "Windows CE file does not exist."

Repeat step 4 for each of the files listed above to determine which component(s) are missing.

Except for commdlg.dll as explained below, if the PDA is missing any of the SDK DLLs, the PDA is not compatible with LabVIEW PDA.

If commdlg.dll is the only missing file, there is a somewhat drastic workaround that may solve the problem. This is not generally recommended, so please contact the LabVIEW PDA PSE for permission before suggesting the following workaround. This will effectively remove references to commdlg.dll in the LabVIEW application. This DLL is used by graphs and charts to set plot colors, so these may not function properly after the change.

  1. Create a VI with no graphs/charts.
  2. Make a backup copy of the following files in <LabVIEW Directory>\PDA\Utilities\ and then edit the originals by deleting any occurences of "commdlg.lib":
    • BuildPocketPC40ARM.bat
    • BuildPocketPC40x86.bat
    • BuildPocketPCARM2003.bat
    • BuildPocketPCARM2005.bat
  3. Make a backup copy of <LabVIEW Directory>\PDA\Utilities\LVPocketPCProject\Src\lvCEPDAMain.c and then replace it with the attached file of the same name.

At this point, PDA applications built from LabVIEW will no longer reference commdlg.dll.

Applications Engineer
National Instruments
0 Kudos
Message 9 of 9
(4,573 Views)