09-23-2010 04:55 PM - edited 09-23-2010 04:59 PM
Hi,
I've got a NI PCI-6014 card with a BNC 2120 DAQ board and Labview 8.6. I'm trying to output digital signals, but only line0 of the digital I/O port is responding to my commands, while lines 1-7 don't work at all in Labview. With the Measurement and Automation Explorer, I can access all lines and change their state. I also tested another card (NI PCI-6154) with another board (CB-37F-LP) and had the same problem there (only line0 of the digital port0 responded, the others didn't). I have attached the very simple VI I used to test the digital ports. Is this problem known and what can I do to fix it?
Thanks!
Solved! Go to Solution.
09-23-2010 05:01 PM
Okay never mind, the digital ports don't like non-boolean signals, except line0, which strangely accepts integers...
09-23-2010 07:17 PM
Your DAQ name specifies only one line, port0/line0. That is why you can control only line 0. For using multiple lines, like line0:7, you shoul be able to use a U8 data type. Bit 0 will go to line 0, bit 1 to line 1 and so on. Try it.
Also, one of the inputs to the DAQmx Create Channel vi is an enum that allows you to choose between "one channel for all lines" and "one channel for each line". One channel for all lines will allow you to specify port0 only without specifying a line number. With one channel for each line, you have to specify port and line.
01-25-2011 11:10 AM
Hi I am trying to access all the ports in the board simultaneously. I have Port0, Port1 and Port2. Currently I am able to access all lines(0-7) in Port0 only because I use Dev1/Port0 and use one channel for all lines.
How do I change the code so I can access all the 3 Ports. I tried using different combination did not work. any suggestions
thanks
sun
01-26-2011 12:48 PM - edited 01-26-2011 12:48 PM
Can you access ports 1 and 2 individually? If so, how? All I can see when I enable everything (by using i/o filtering) is port0
01-26-2011 09:36 PM
@swam wrote:
Hi I am trying to access all the ports in the board simultaneously. I have Port0, Port1 and Port2. Currently I am able to access all lines(0-7) in Port0 only because I use Dev1/Port0 and use one channel for all lines.
How do I change the code so I can access all the 3 Ports. I tried using different combination did not work. any suggestions
thanks
sun
Since the 6014 only has a single port, that just might explain the problems you are having.
01-27-2011 08:24 AM
thanks guys , I got it fixed,
sun
02-19-2014 06:03 AM
Hi
I am writing through daq assistant in outputs of ni-usb 6525 daq card (8 digital inputs and 8 digital outputs).
I am doing this manually, so i put control - array of 8 boolean buttons on front panel (and wire it in daq assistant, configured for this daq card)
The problem is when i run my code it gives me error, saying that the number of outputs in my code is greater than on my device.
Sometimes, it says that i have inputted 9 channels (i have 8 buttons), sometimes it says that i have entered only 2.
I discovered, that for example, if i press 2nd element of array, it writes only first 2 elements of array and i get error.
If I press last button first, it may not give error, because array will have 8 elements.
I am interested in how can i "acvtivate" all the buttons (from 0 to 7) at start, that i wont have to press button nr. 7 first for the proper dimensions of array.
Sometimes, even the last solution doesnt work.
Thank you for all your answers and help.
02-19-2014 07:32 AM
02-21-2014 04:45 AM
Thank you for the answer.
The solution worked. The array has set the default values every time i ran the program.