09-08-2011 12:01 PM - edited 09-08-2011 12:02 PM
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
09-09-2011 10:36 AM
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
09-12-2011 07:10 AM
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
09-12-2011 01:56 PM
I modified can you check this please?
Thank You
09-13-2011 06:03 PM
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.
09-14-2011 06:53 AM
Tori,
Thanks for replying. I was able to get switch working.
Thank You
Himanshu Nagpal