Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use digital port0/line0 ,line 1, line 2 and so.on

we are using labview 7.0 with pci6024
and we want get 4 digtial pulses.
for that we are unable to get the pulses frm the port0
we got a pulse from port0/line0, port1/line1
 
but unable to get o/p from port0/line1
please help on this
0 Kudos
Message 1 of 4
(6,193 Views)
Hi gopla123,

Are you programming with NI-DAQmx or Traditional NI-DAQ?
In either case, their are great examples for both digital input and digital output that can help get you started with this application.  You can locate these in the NI Example Finder (Help>>Find Examples...) within LabVIEW.

To better direct you to the right example for your application, I have a couple questions:
1)  Are you attempting to generate digital pulses (digital output) or receive digital pulses (digital input)?
2)  You mentioned the need to send or acquire 4 of these pulses.  Does this operation need to happen based on a clock (hardware timed) or can the timing be determined from your application (software timed)?

Thanks.  I definitely want to help you get up and running with this application.

Have a great day!
Travis W

Message Edited by Travis W on 01-25-2007 11:21 PM

0 Kudos
Message 2 of 4
(6,165 Views)
thanks for the sugestions
we are using NI DAQmx
and all are doing is described below

we are config as o/p port

we wil have four digital pulses.
each have no dependence on each other
so now we need to get the four digital pulses and we need to control a devide/motor .
0 Kudos
Message 3 of 4
(6,107 Views)

Hi gopla123,

 

There are some great example programs for doing digital generation (output) in the examples finder. Following from Travis, they are located under (Help >> Find Examples…). Once this is open, you can find the digital examples under (Hardware Input and Output >> DAQmx >> Digital Generation) I would suggest the example ‘Write Dig. Chan.vi’. Your PCI 6034E has 1 port (8 digital I/O lines), and this examples will write one value to each line.

I definitely want to help you output a pulse, but I am having a hard time determining what kind of pulse you would like to output. It sounds like you want to output 1 single output on 4 digital lines. If so, you can choose lines ‘Dev1/port0/line0:3’ and output a 4 lines array.

David L.
Systems Engineering
National Instruments
0 Kudos
Message 4 of 4
(6,094 Views)