Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Individually access inputs and outputs on single port (PXI-6509

Solved!
Go to solution

Hi,

 

I'm using PXI-6509 and this sentence from the manual:

"You can use each of the DIO lines as a static digital input (DI) or digital output (DO) line,"

 

leads me to believe that each individual DIO can be set as input or output (even within ports), but theimage:

screen.jpg

 

shows that these ports cannot be set as inputs and outputs within the same port.

 

On another card 6284, with DIO's, I can set them individually.

 

Can someone confirm that the 6509 is acting correctly?

 

Best Regards,

Adrian

0 Kudos
Message 1 of 14
(5,915 Views)

If you create a task then it appears you can control an individual DIO line.

0 Kudos
Message 2 of 14
(5,900 Views)

Using the 6509, I have had inputs and outputs on the same port.  I'm not sure why the Soft Front Panel is not letting you do that.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 14
(5,897 Views)

Hi guys,

 

Thanks for the feedback.

 

How I found the problem was as follows:

 

  • I created 2 virtual channels as input (P6.6 and P6.7)
  • I created 6 virtual channels as output (P6.0 to P6.5)
  • Using a single digital write (DAQmx VI) I energize the coil on a relay using one of the outputs
  • Using a single digital read (DAQmx VI) I read the state of P6.6 and P6.7. As soon as I read either of these ports, the coil is de-energized and it would seem the whole port is set as input even while I am attempting to do these things separately.

 

(Is my approach OK?)

 

So after this I went to look at the soft panels and saw there that the lines were not individually controllable.

 

It certainly feels wrong that this could be the case.

 

Thanks again,

Adrian

0 Kudos
Message 4 of 14
(5,874 Views)

Hi ARL00000000000…,

 

I experienced the same behavior in the test panel.  I'm doing more research to determine if this is correct behavior.

0 Kudos
Message 5 of 14
(5,854 Views)

Hi Defective,

 

Have you had any luck with this issue?

 

It still seems weird that it would be the case.

 

Thanks,

Adrian

0 Kudos
Message 6 of 14
(5,826 Views)

Hi Adrian,

 

I looked up the product page of the device and found the following information: line direction selectable on an 8-bit port basis (https://www.ni.com/en-us/support/model.pxi-6509.html).  This is consistent with what you are seeing in LabVIEW and NI MAX.

0 Kudos
Message 7 of 14
(5,799 Views)

Hi Luke,

 

Thanks for the reply. Unfortunately the link posted leads to a "Sorry, page not found".

 

Best Regards,

Adrian

0 Kudos
Message 8 of 14
(5,785 Views)

@ARL00000000000000 wrote:

Hi Luke,

 

Thanks for the reply. Unfortunately the link posted leads to a "Sorry, page not found".

 

Best Regards,

Adrian


He had an error with the URL. Easily corrected if you had observed what was in the URL box in your web browser.

https://www.ni.com/en-us/support/model.pxi-6509.html

0 Kudos
Message 9 of 14
(5,774 Views)

@Defective_Luddite wrote:

Hi Adrian,

 

I looked up the product page of the device and found the following information: line direction selectable on an 8-bit port basis (http://sine.ni.com/nips/cds/view/p/lang/en/nid/13261).  This is consistent with what you are seeing in LabVIEW and NI MAX.


 

On page 3 of 10 of the linked Data Sheet, it states You can individually program each 8-bit port on an NI 6509 to be input or output

 

That is very very confusing.

0 Kudos
Message 10 of 14
(5,770 Views)