Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Port 0 pins are outputs when I tell them to be inputs

The Port 0 pins on my USB-6341 are outputs when I tell them to be inputs.  The comparators that drive them will only work when I disconnect them from pins 1 & 2 on the USB-6341's Port 0.

 

I have attached the two VIs I am using.  They were written in LabVIEW 2010.  I used the DAQ Assistant and converted to NI-DAQmx Code.

 

What am I doing wrong?

 

 

Thanks in advance,

 

Jeff

 

0 Kudos
Message 1 of 3
(2,924 Views)

Hi Jeff,

 

let me ask you some further details on base of which I can give you the proper answer. How do you set your pins to be output?, are you using MAX (Measurement & Automation)? Can I ask you for schematic sketch of your circuitry? Could you please explain to me how do you measure outputs when they are set to be inputs?

 

Kind regards

Marek S.

0 Kudos
Message 2 of 3
(2,906 Views)

Hi, Marek

 

  I used the DAQ Assistant to create the monitor VI and used the Generate NI-DAQmx Code command.  I had previously defined a Virtual Channel in the Measurement and Automation Explorer (named CheckIfClosed).

 

  I can now read the bit.  I tracked my problem down to a misunderstanding of the Virtual Channel functionality.  I had originally defined the Virtual Channel as pointing to Port 2, Line 5 but, because Port 0 is the only digital input with a hardware buffer, I had swapped those two ports and the CheckIfClosed bit was now connected to Port 0.

 

  I changed the Virtual Channel definition in MAX, but the sub-VI that referenced the bit seems to only use the name as a courtesy and was still pointing to Port 2.  Just to be on the safe side, I re-defined the VI using the DAQ Assistant and the correctly-aimed Virtual Channel and it now works.

 

Thanks for the attempt to help,

 

Jeff

 

0 Kudos
Message 3 of 3
(2,879 Views)