Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to output 5 digial waveforms from 6024E

Good day all,

 

I am new to DAQ and Labview and I have done an electronic circuit using semiconductors components (TTL/CMOS) to light a sequence of 32 LEDs. Now I need to design this using the Labview software. (555 timer to generate a clock, binary counter to produce the code and then decoder to lighten the LED in sequence).

 

I have a DAQ PCI card PCI 6024E card, and as I understand it has 16 analogues input/output and 7 digital I/O and 2 counters.

 

I need to design the digital output to give me digital waveforms like a sequence of pulses, or the same as a binary counter will give.

 

The 2 counters which the card have, and in the manual the counter have only 3 connections (signal, gate and output). I don't know if I can use it to give me 5 lines output like the TTL binary counter will (4 for the code and the 5th as a selector).

 

I have been told that I can use the digital I/O to give me such sequence without using the counter!!, I have set my card to give 5 digital as outputs using the NI (Measurement & Automation), but now the Labview program which I don't know.:mansad:

 

Is there an example or file I can use or modify to do this. If there is an online book or resources regarding this it would be great.

0 Kudos
Message 1 of 11
(5,393 Views)

Hi there,

In the example finder there is a vi called "Write Dig Port.vi".  This is a great place to start.  Just set up the right channels, and provide the output with an array of Hex values.  Each one will be outputted in turn.

Possible problem, the digital outputs on these cards are not clocked so you will have to use software timing.  How accurate does the timing need to be?

Any other questions just fire away.

AdamB

Applications Engineering Team Leader | National Instruments | UK & Ireland
Message 2 of 11
(5,372 Views)

Thanks for the reply,

The timing has to be accurate, I need a continuous signals comming out from the 5 digital outputs just like the sequence shown in the attached graph.

I think the example you mentioned is doing it manually!!

 

 

0 Kudos
Message 3 of 11
(5,360 Views)

Hey there,

You are right the example does this manually, but with a timed for loop and an array of the required values you should be able to get the timing accuracy down to about 1 maybe 2 ms.

As I mentioned these cards do not have clocked digital lines and so you can only output one update at a time.

For the pattern you are suggesting you would need clocked output lines to get higher accuracies.

How does this look?

AdamB

 

Applications Engineering Team Leader | National Instruments | UK & Ireland
Message 4 of 11
(5,355 Views)

Do you mean that I can't get the pattern I want using this card, and i have to use another one!!

 

0 Kudos
Message 5 of 11
(5,341 Views)
No,
 
The pattern is possible (the code I attached does this for you)
Its the accuracy that will never be more than 1 or 2 ms (and that's being optimistic)
 
What you are actually doing is just counting up from 0 to 31 so you don't even need the pattern that I have shown you(the binary Array)
You just need to create an array of U8 numbers counting from 0 to 31 and feed these to the digital output one at a time (as shown)
 
 
Thanx
 
AdamB

Message Edited by AdamB on 06-19-2007 05:22 AM

Applications Engineering Team Leader | National Instruments | UK & Ireland
Message 6 of 11
(5,339 Views)
Hi again,
Thought you might like this:
(written in LV 8.0.1)
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
Message 7 of 11
(5,335 Views)

Thanks for your help, will let you know how does it go

 

0 Kudos
Message 8 of 11
(5,309 Views)
Hey ya'll,

I've a similar problem. My pattern just looks different and I'm using the DAQ Card PCMCIA 6024E.
I'd like to use the attached VIs but I can't open them since I'm using the LV 7.1.
Is there any possibility you'd post the same VIs as a 7.1 version?

Thanx

0 Kudos
Message 9 of 11
(5,247 Views)

Here you go.

Happy Programming....

 

AdamB

Applications Engineering Team Leader | National Instruments | UK & Ireland
Message 10 of 11
(5,246 Views)