Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Do you have example codes of configuring the ports PCI DIO-96 using LabVIEW 7.1?

Do you have example codes of configuring the ports PCI DIO-96 using LabVIEW 7.1?
And can you configure a particular line within a port to be in a different direction (input/output) than everyone else?
0 Kudos
Message 1 of 8
(5,446 Views)
There are shipping examples using both DAQmx (Write Dig Chan, Write Dig Port) and traditional DAQ (8255 examples). All lines of a port must be the same.
0 Kudos
Message 2 of 8
(5,440 Views)
Where can I find these files (write dig chan) ? 
I have NI 6229 card here and I'm trying to use digital outputs. And I'm newie in LabView
 
OLO
Message 3 of 8
(5,420 Views)
Hello Tschareck,
When you install NI-DAQ, and include support for LabVIEW, examples will be automatically installed.  You can get to them in LabVIEW by going to Help>>Find Examples.  Then navigate to Hardware Input and Output>>DAQmx.  Then for a digital output example, like "Write Dig Chan.vi", go to the Digital Generation folder. 
-Alan A.
0 Kudos
Message 4 of 8
(5,409 Views)

I have the feeling that the codes examples delivered with Labview 7.1 do not tell the whole thruth.

I have serious problems with Labview 7.1 and PCI-DIO-96 board with XP. The problems come with ports 6 and 7 at the moment. Those ports are "above channel 32".

0 Kudos
Message 5 of 8
(5,323 Views)
What exactly is the "serious problem" you're having? You need to provide some details.
0 Kudos
Message 6 of 8
(5,320 Views)
The best way to configure the PCI-DIO-96 is to use the DAQ Assistant (in the bloc diagram, select WINDOW, SHOw function pallette, output, DAQ assist). It will install the DAQ assistant. After you select the function you want (input one line or port (8 bits, 16 bits) or output). Then you can select the TEST button and you can check your card manually (problably LED or dip switch if like me you want to do some little test). I join a simple example that I find in le Labview course of NI. If you want to do more, you can check my question in this forums about how to put two numeric control for the PCI-DIO-96.

N.B.: The PCI-DIO-96 have 4 IC (8255 is the name of the IC). This IC is 3 X 8bits ports. So the first IC will be port0 to port2, the second port3 to port5. etc. each port is bi-directionnal but all bits in the same port will be in the same direction (example: port0 can be ouput (all 8 bits is output) & port1 can be input (all 8 bits is inputs). You can join two ports together to create a 16 bits port.

Have fun!!!

0 Kudos
Message 7 of 8
(5,313 Views)
As previously mentioned, I have problems to configure and use PCI DIO-96 with Labview 7.1. I have two identical measurement systems.  I had to change a new industrial computer with a passive mother board to first measurement system . I also wanted to change the IO- cards to PCI- models one at a time. This was not succesfull.

The old measurement system was with NT 4.0, Labview 5.0, PC DIO-96, PC DIO-24, AT-GPIB/TNT.

The new measurement system is XP, Labview 7.1, PCI DIO-96, PC DIO-24, AT-GPIB/TNT.

Now every one of the 96 DIO lines have been checked with MAX. They are working. I use relay cards SC-2051 and SC-2062.

I have made a small Labview program with 96- virtual switches so I can easy check the states of all I/O- (relay) outputs. The problem is that my program can change the states of the I/O output ports 0, 1, 2, 3, 4, 5, 8, 9, 10 and 11. I cant control I/O output ports 6 and 7.

The program uses only three Write to Digital Port.vi. Nothing else.

Thi situation is VERY odd. Now I cant be sure if there is a fault in Labview code or in DAQ 7.4 traditional driver.
Of course It can be my program that is not working properly. DAQmx 7.5 with Traditional DAQ compatibility version 1.3 patch did not help either.

I do not really understand how the re-entrant execution of Write to Digital Port.vi works.

Jukka







0 Kudos
Message 8 of 8
(5,307 Views)