Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading and writing to the same port for the PCI-DIO-96 using the tradional NI-DAQ (Legacy) and DAQmx

Solved!
Go to solution

Hi,

 

I posted a similar forum thread and I didn't get an answer I though maybe I didn't put it under the right category. 

Using the tradional legacy PCI-DIO-96 driver the values that you write to a port will persist and you can read it from the port.

A simple example is to use the Test panel in the Measurement and Studio explorer as shown in the attached file Traditional.jpg.

I would like to achieve the same results, using the example codes that are supplied with the controller. Examples\DotNet 3.5\Digital\Generate Values\Write Dig Channel and Read Dig Channel. Regardless of what value I write I always get positive output read and all the bits are high on the channel. To reporoduce the issue simply run both programs at the sametime Write Dig Channel and Read Dig Channel. Set the port to  Dev1/Port0/line0:7 in both tests and write a value that is negative to one or all the channels. When you read the values, the values are all positive. I have tested using the example code in VB and C and I am getting the same results. I have looked at the Forums and I found the post at:

http://forums.ni.com/t5/Measurement-Studio-for-VC/​Basic-questions-about-PCI-DIO-96/m-p/242296 The article name is Basic questions about PCI-DIO-96 and it states that the values written should persist. Any ideas on how to change the code in .Net for the values to persist?

 

Thanks Magued

 

0 Kudos
Message 1 of 2
(3,411 Views)
Solution
Accepted by Magued

The other thread was on the correct forum and will likely get a better response. NI-DAQmx is basically the same for all languages and so this is not .NET specific, nor is it related to Measurement Studio. Since the other thread has already recieved a response, let's go ahead and keep the conversation there.

 

 

National Instruments
0 Kudos
Message 2 of 2
(3,393 Views)