Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure pins for TTL signal in daq 6216

Hi,

I am trying to configure USB DAQ 6216. I need to provide 10 TTL signal either 5V or 0V to a switch. One switch has 7 ports out of which one port will be provided by 5VDC and another will be grounded. For rest 5 ports i need to provide TTL signal. I will be using two switches. How can i see all the pins in this daq and configure them? Please guide me?

 

Thank You

 

0 Kudos
Message 1 of 6
(3,391 Views)

There are many useful examples that ship with LabView that will help you to use your 6216.  When you open LabView you can select the link to find examples. Select Hardware Input Output --> DAQmx --> Digital Generation.  Within this folder are two good examples:

 

Write Dig Chan.vi

Write Dig Port.vi

 

Look through the examples and read through the help files associated with each one to better understand how to change them to meet your needs.

 

Jacob K | Applications Engineer | National Instruments

Jacob K
0 Kudos
Message 2 of 6
(3,364 Views)

Hello Jacob,

 

Thanks for replying. Is it possible for you to look at my vi and see am i on right path? 

 

5 V TTL or CMOS drive signal is used to control the switching state of the switch. I am writing counter to a switch using 6216. But i am not sure is this correct way?

 

Looking forward for your cooperation.

 

Thank You

Himanshu Nagpal

0 Kudos
Message 3 of 6
(3,339 Views)

I modified can you check this please?

 

Thank You

0 Kudos
Message 4 of 6
(3,319 Views)

Hnagpal:

I took a look at your code and have some questions for you.

1. First, I noticed you are only getting one data point. It sounds like you are trying to control an
   entire port, is that correct? Or are you really only wanting to take in one data point?

2. What switch are you using and can you explain how you are trying to control it in more detail?

3. Are you wanting to control the switch port by port or line by line?

4. Also, I have found some more suitable examples for you from the LabVIEW Example Finder that are
   specific to your device. Go to LabVIEW examples>>Hardware Input and Output>>DAQmx>>Generating
   Digital Pulses and look at Gen Dig Pulse Train-Continuous.vi. Here you can use a counter to
   generate a TTL pulse train.

Let me know if you have any questions.


Tori W.

National Instruments
0 Kudos
Message 5 of 6
(3,300 Views)

Tori,

Thanks for replying. I was able to get switch working. 

 

Thank You

 

Himanshu Nagpal

0 Kudos
Message 6 of 6
(3,297 Views)