From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax for configuring a CWDIO object in C++.

I'm using the PCI-6032E board (device 1), which has a single DIO port (port 0). I would like to make line 0 an output and the remaining seven lines inputs. I dynamically create a CWDIO object to write to line 0. What would the C++ syntax look like for configuring the CWDIO object and writing to line 0?
0 Kudos
Message 1 of 3
(2,790 Views)
Hi,

There several CWDIO examples written in VC++ at the following ftp site:

ftp://ftp.ni.com/support/compworks/samples/

Look for the zip file CW3VC.zip

You'll be able to see the syntax you're looking for in the in the examples under the DAQ/DIO and DAQ/ReadWrite folders. Just note that these were written with CW 3.0.

Regards,
Azucena
0 Kudos
Message 2 of 3
(2,790 Views)
I don't see the example showing syntax for a dynamically created CWDIO control. All the examples I see are using the property pages from the Dialog itself.

Grant
Grant M. Johnson
Project Engineer
LECO Corporation
0 Kudos
Message 3 of 3
(2,790 Views)