Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

side effects when switching ports on PCI-DIO96 from output to input using daqmx API

Hallo, 
please have a look on the attached test program source code. Why does changing the configuration of port0 and port1 affect port2 ?
Programming error, bug in DAQmx or hardware feature ?  
0 Kudos
Message 1 of 6
(4,280 Views)
Hi Markus,

Could you say what for card you use?

Have you try with MAX to test this Digital line with the test panel?

Let me know.

Best Regards.

Matthieu Papaux
0 Kudos
Message 2 of 6
(4,258 Views)
I saw that problem with a PCI-DIO96 (see comment at top of testprogram and message subject) .
Now I've switched to a 6509 and the problem doesn't show up any more.
 
So it's probably not a programming error, but either a error in the PCI-DIO96 driver
or a hardware feature  of the PCI-DIO96.
The 12 ports of the PCI-DIO96 a grouped in 4 groups with each 3 ports ( there are also 4 ICs M82C55 on the card).
So it might be sensible to assume that there a some depencies within a group  of ports. But I don't know if the driver should be able to work around such a  depency if it exists. 
 
The function panels in MAX  only allow access per port but not parallel access to several ports at the same time. So I can't decide if any changes seen with the FPs are caused by MAX ( when switching the port) or by the driver or the hardware itself.
 
0 Kudos
Message 3 of 6
(4,256 Views)
Hi Markus,

do you have the last driver for your card?
the NI-DAQmx 8.3?

You can find it under:
http://digital.ni.com/softlib.nsf/websearch/7FEAEE6A4B4AA836862571C00064E6CA?OpenDocument

Best Regards.

Matthieu Papaux


0 Kudos
Message 4 of 6
(4,252 Views)
Yes,  I started with 7.3 but then updated to 8.3. But that didn't change anything.
0 Kudos
Message 5 of 6
(4,250 Views)
Hi Markus,

I talked with an expert and he gave me this explanation:

KB 0489FD8Q: Why Do All My Digital I/O Ports Reset When I Configure One Port?

The PCI-DIO-96 device uses the 8255 digital chip, and every time that a task containing any lines on the device are reset, all lines on all ports will reset to their default state.  I would post a link to this knowledgebase on the discussion forum to give the customer some background information, and then instruct him to only create and clear his digital tasks once in his program. 

I hope than that give a response to your question.

Matthieu Papaux
NI Germany
0 Kudos
Message 6 of 6
(4,216 Views)