10-29-2006 06:58 AM - edited 10-29-2006 06:58 AM
Message Edited by Moh on 10-29-2006 03:00 PM
10-30-2006 03:39 AM
10-31-2006 08:54 AM
Hi,
the examples in the CVI/Vision directory are plane CVI examples, and not C++ ones
Try the following directory :
C:\Program Files\National Instruments\Vision\Examples\MSVC for the vision examples and
C:\Program Files\National Instruments\NI-IMAQ for IEEE-1394\Examples\MSVC for the IMAQ 1394 examples.
Which c++ version are you using?
What version of NI-IMAQ 1394 are you using, and what version of NI-Vision?
You said "I couldn't move the same code to a simple file without the GUI .." but what exactly doesn't work?
Thanks
Sacha Emery
National Instruments (UK)
10-31-2006 12:19 PM
11-01-2006 08:08 AM
Hi,
which empty project - I'm using Visual Studio .Net 2003.
I create a new project based on either the Win32 console project or Win32 project.
What exactly are you doing?
What version of NI-IMAQ 1394 are you using?
Thanks
Sacha Emery
National Instruments (UK)
11-01-2006 08:24 AM
Hi Sacha,
It's just I create the Empty project (.NET) ( it's there in the choices when you create a new project ) then add a cpp file .. however, I tried and created a Win32 console project. It's the same.
The version is 2.0.2, it should be ok , since the version of the GUI is working fine ..
Ever faced this problem? it's not a compiling or linking as I told u before. You know, it's simple thing but stopping my work.
appreciate ur help.
moh
11-01-2006 11:28 AM
Hi,
also, have you tried the shipping example in here :
C:\Program Files\National Instruments\NI-IMAQ for IEEE-1394\Examples\MSVC\Snap1394 IMAQ Vision
Then you can start stripping it back to remove the window stuff and go back to a console style application
Hope that helps
Thanks
Sacha Emery
National Instruments (UK)
11-01-2006 03:24 PM
11-06-2006 07:54 AM
Hi,
I created an empty Win32 console app.
Then modified my tools>>options>>project>>VC++ Directories and setup the include and the library directories to also reference the visions and ni-imaq1394 directories.
I then copied over the code you provided (modified the Sid to read SessionID but no actual change) and added in a printf so it holds the image on screen.
Please let me know if that works.
Thanks
Sacha Emery
National Instruments (UK)
11-06-2006 04:54 PM