LocutisofBorg
2008-08-01 21:40:10 UTC
A few things.
First, we have a NI USB-6501 24-line Digital IO.
Second, based upon what I'm understanding from our electrical engineers, we need to create a very simple API that allows the engineers to turn on/off a line with a simple API call. The API needs to be in C# 2.0. Basically something like 2 calls LineON(int lineNumber) and LineOFF(int lineNumber).
So the questions that I have are as follows.
1) Do we have the right piece of hardware to do this?
2) If so, can anyone provide some sample code? I have downloaded the latest drivers from the web and have the device installed and it is functioning properly.
2a) If not, what then should be using. I'm assuming that our eletrical engineers will have some of their own in house devices connected to these lines and simply want to turn them on/off at their leisure.
Thank you so much in advance for any help/guidance.
First, we have a NI USB-6501 24-line Digital IO.
Second, based upon what I'm understanding from our electrical engineers, we need to create a very simple API that allows the engineers to turn on/off a line with a simple API call. The API needs to be in C# 2.0. Basically something like 2 calls LineON(int lineNumber) and LineOFF(int lineNumber).
So the questions that I have are as follows.
1) Do we have the right piece of hardware to do this?
2) If so, can anyone provide some sample code? I have downloaded the latest drivers from the web and have the device installed and it is functioning properly.
2a) If not, what then should be using. I'm assuming that our eletrical engineers will have some of their own in house devices connected to these lines and simply want to turn them on/off at their leisure.
Thank you so much in advance for any help/guidance.