03-12-2010 01:10 PM
I am new to this so bear with me.
I have a board with a 6501 USB DAQ. I am interfacing with C#/.Net. The hardware works, the Test Panel app sees it, and I have gotten as far as CreateChannel().
But what do I do now? All I want is a single &%$#@ byte from Dev1/port1/line0. I can't figure out how to get it.
Thanks
Eric
03-12-2010 03:59 PM
Well, I figured that out, but I still seem to be lacking in documentation. For example, I would like to know what exceptions I might see during a DigitalSingleChannelReader.ReadSinglePortByte(). I don't even see any prototype, high level docs are all I can find.
Where is that doc??
Eric
03-12-2010 04:15 PM
The help is integrated into Visual Studio's help. You can find it there. Additionally, from the start menu, you can go under Programs>>National Instruments>>NI-DAQ>>Text-Based Support to find NI-DAQmx .Net Framework x.x Help. Within help, you can browse on the left to NI Measurement Studio Help>>NI Measurement Studio .Net Class Library>>Reference. Alternatively, you can search help for the method name.
What I find easiest, however, is within the text, set the cursor on the method name and hit F1 (which will pull up the help page on that method).
Additionally, note that in the same start menu location as the help (to which I referred you earlier), you can also find a good set of examples.
For the particular method you are asking about (and to my knowledge every method in DAQ), the exception mentioned in Help would be "DaqException".
03-12-2010 05:37 PM
That stuff isn't working for me, but it is probably because of my local environment.
I am over the hump.
Thanks