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