If the digital IO OCX is called DIO1, the VB.NET code looks like:
Dim myData as Object
DIO1.SingleRead(myData)
in C# it looks *something* like
Object myData = ?????;
DIO1.SingleRead(ref myData)
In C#, an object passed by "ref" needs to be initialized. The question is, what do I replace the "????" with? Or is there another approach?
Just to make things more interesting, I've got NI involved in finding the answer and all I've gotten back so far is the classic tech support reply of "it works when *we* try it".