05-11-2017 02:56 AM
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
05-12-2017 10:11 AM
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,
05-12-2017 10:23 AM
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
05-16-2017 08:11 AM
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