Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Snap/Grab Image from 1394 camera and display the Image in CWIMAQVIEWER in VC++ ?

Hi,
I have :  -  IMAQ1394 2.0.1
              -  NI Vision 7.1

 

In VB, I can Snap/Grab Image from 1394 camera and display the Image in CWIMAQVIEWER :

    Dim Image0 As New CWIMAQImage

    imaq1394SnapCW(sid0,Image0)

    CWIMAQViewer1.Attach Image0

 

Now,How can I do this in VC++6.0?

    I tried:

              C_CWIMAQImage m_imgViewer1;

              m_imgViewer1 = m_CWIMAQVision1.CreateCWIMAQImage();

              m_CWIMAQViewer1.Attach(m_imgViewer1);

              imaq1394SnapCW(Sid,m_imgViewer1);  <--there is no "imaq1394SnapCW "function in VC++,why?

 

    Please help me!

    Thank you!

 

0 Kudos
Message 1 of 2
(5,897 Views)

For people looking back at these old posts regarding CWIMAQViewer - it was not made to be used in the C environments and is made for VB.

 

Refer to the following locations for displaying images in C environments:

 

Start»All Programs»National Instruments»Vision»Documentation

Start»All Programs»National Instruments»Vision»Text Based Examples

 

Make sure that you look at the examples and documentation that is in reference to the C environments not the VB environments

Vince M
Applications Engineer
0 Kudos
Message 2 of 2
(5,301 Views)