LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I send out a series of 0s and 1s using DAQCard DIO-24 card?

Can I send out a series of 0s and 1s
with the DAQCard DIO-24 card?
I thought using the DIO Write VI would help.

Thanks,
Van
0 Kudos
Message 1 of 8
(3,545 Views)
If you want to use traditional DAQ instead of DAQmx, then use either Write to Digital Port (for updating all lines of a port) or Write to Digital Line (for updating a specific line). They actually both call DIO Port Config and DIO Port Write so for repeated writes it's simpler to use a single DIO Port config and multiple DIP Port Writes. Check the shipping examples for more. You should also know that the DIO-24 has software timing only so the time between writes is not going to very accurate.
0 Kudos
Message 2 of 8
(3,534 Views)
Hi Van,

You can also use the DAQmx driver (if you have LabVIEW 7.x) to perform your digital output. You can see an example in LabVIEW by going to Help >> Find Examples >> Hardware Input and Ouptut >> DAQmx >> Digital Generation >> Write Dig Chan.vi

Let me know if you have any further questions.

-Sal
0 Kudos
Message 3 of 8
(3,503 Views)
Thank you Sal.
Unfortunately I don't have
Labview 7. However, we are
now trying to use the 6534 DIO card.
Hopefully this will bring better luck.
Any hint for inputting a square wave?

Thanks,
Van
0 Kudos
Message 4 of 8
(3,497 Views)
Hi Van,

Are you trying to input or output the square wave?

You have many examples available in LabVIEW. Go to Help >> Find Examples >> Hardware Input and Output >> DAQ >> Digital Input and Output >> 653x. The buffered pattern input and output vi's will be what you are looking for.

-Sal
0 Kudos
Message 5 of 8
(3,485 Views)


@moonrocks wrote:
Can I send out a series of 0s and 1s
with the DAQCard DIO-24 card?
I thought using the DIO Write VI would help.

Thanks,
Van


Thanks Sal.
I've tried the Buffered Pattern Input.vi but
it hasn't work yet. I'm trying to read a
70kHz square wave coming in. I'm using only
one line of port A. Do I need to change
the clock frequency to 70KHz? I'm not
sure how to use these parameters properly.
Could you help?

Thank you,
Van
0 Kudos
Message 6 of 8
(3,479 Views)
Van,

What happens when you run the VI? Do you get an error or does it hang? This should be the example program that will help you and we are probably just missing something. Please let me know what settings you have and what error you are receiving.

-Brett
0 Kudos
Message 7 of 8
(3,458 Views)
Hi Brett,

Right now I am able
to write out uneven duty cycle
square wave. I forget what messages
I was getting when I was using the
read vi. I will let you know as I
need to do that next.

Thank you for your reply.
Van
0 Kudos
Message 8 of 8
(3,455 Views)