09-29-2006 04:40 PM
10-02-2006
11:44 AM
- last edited on
03-06-2026
09:56 AM
by
Content Cleaner
Hello eleno12r,
It sounds like you may be using some of the Traditional NI-DAQ Easy I/O Digital VIs in LabVIEW (Read From Digital Line, Read From Digital Port, Write to Digital Line, Write to Digital Port). There is an interesting interaction between these VIs and the 8255 chip that is used on the PCI-6503. You see, with the 8255, when you configure one port for either input or output, the lines on all ports of that chip are reset. This is just the way that chip works.
Now the Easy I/O Digital VIs have port configuration code built in. So if you are calling one of these VI's repitively in a loop without properly wiring the iteration terminal, you may be inadvertently resetting the digital lines over and over again. Another potential problem can be seen when using these VI's to configure multiple ports. In this case, the uninitialized shift register that is used to store the task ID can cause unexpected behavior. In general, these VI's should not be used in this case. For a good example of how to properly code this type of application in Traditional NI-DAQ, refer to the LabVIEW example Write to 1 Dig Port(8255).
If you are actually using NI-DAQmx to program this appliation, please refer to the LabVIEW example Write Dig Port.
I hope this information helps!
Best regards,