Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

programming 6514 in C#

I have a 6514 and I am trying to simply set up ports for driving and sensing. I am programming in C# using the provided IVI Library. I know what methods (functions) I want to use but I am having trouble getting to them. I was able to initialize the instrument with a simple:

 

      instrument _handle =  DaqSystem.Local.LoadDevice("NI6514")  /* the NI6514 is assigned in NIMAX*/

Now I would like to go to the "DiChannelCollection" and the "DOChannelCllection" so that I can use the ports. But any approach I have used to try to access those class libraries has not worked for me.

 

I have looked at various help files but there are none in C#. If I was programming this in C it would be a peice of cake given the examples.

 

Any hints on how I might accesswhat I need?

 

Thanks

 

Kevin

0 Kudos
Message 1 of 3
(4,627 Views)

If you installed NI-DAQmx, there should have been example programs installed for C# and VB.NET

 

 

0 Kudos
Message 2 of 3
(4,622 Views)

Thanks, I went back and looked further and found the examples under Net4.0 examples

0 Kudos
Message 3 of 3
(4,608 Views)