Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the CWDIO SingleRead function in VC++.

I need help figuring out the syntax for the CWDIO function SingleRead. I thought I could do this using the code below with m_digital as my CWDIO object. I should mention that I've configured ports 0-3 using the property pages.

int array[4];

m_digital.SingleRead(CNiVariant(array));

I am under the gun and was just hoping you could verify that I'm on the right track. I'm still having a hard time utilizing the VB examples due to the syntax differences.

Also, does CWDIO use accessor functions like CNiGraph does? I mean can I say anthing like the VB equivalent CDWIO.Port.Item(0).SingleWrite(array) or is it really just SingleWrite and Single Read?

Thanks a lot for your help.

Grant
Grant M. Johnson
Project Engineer
LECO Corporation
0 Kudos
Message 1 of 2
(3,085 Views)
Sorry to waste your time. You sent me an example of this already and I hadn't looked close enough. I think it will answer all my questions.

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