Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI-6528 - How do i start to set DI/DO under C#?

Hello,

can someone provide a simple example on how to control the NI PXI-6528 DIO card under DotNet/C#?

I only need to set DO and read DI.

 

Thanks for help or links

 

BR

0 Kudos
Message 1 of 4
(2,969 Views)

Hi

 

You will need to use the NI-DAQmx driver in order to set the DI/DO of the PXI-6528.

The driver comes with C# examples which you can use.

The following link explains where you can find the examples:

Where Are NI-DAQmx Examples Installed? - National Instruments
http://digital.ni.com/public.nsf/allkb/E3BAF6FC4017960B8625755A00525D37

 

Best regards,

 

Corinne Doppmann
Application Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,936 Views)

Hi,

thaks you for the link. I already found these examples and DAQmx is installed.

The example are all window-forms and i dont get it how to extract the portion i need.

What i want is to create is a simple C#DLL with a function like:

SetOutput(int bit, bool state)

 

How can this be easy done?

Thx

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

For simle I/O applications you could consider using the DAQ Assistant:

Using a NI-DAQmx Task and the DAQ Assistant With Microsoft Visual Studio .NET Programming - National Instruments
http://digital.ni.com/public.nsf/allkb/290D84D10809D4C086256FF20076F8B8

Corinne Doppmann
Application Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,915 Views)