06-15-2007 08:12 AM
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.
06-18-2007 08:19 AM
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
06-18-2007 11:17 AM
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!!
06-18-2007 11:37 AM
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
06-19-2007 05:13 AM
Do you mean that I can't get the pattern I want using this card, and i have to use another one!!
06-19-2007 05:16 AM - edited 06-19-2007 05:16 AM
Message Edited by AdamB on 06-19-2007 05:22 AM
06-19-2007 05:29 AM
06-20-2007 01:14 PM
Thanks for your help, will let you know how does it go
06-27-2007 07:51 AM
06-27-2007 09:14 AM
Here you go.
Happy Programming....
AdamB