Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

usb6501 and .net

Hi,

i am trying to use the usb6501 with visual studio.  i can get the examples to work properly (writeport, readport, writechan, readchan, etc.), but i am having difficulty finding info on how to work with a split port (i.e. a port that needs to be set up with some pins as read and some as write).  my project has port 2 set up as all outputs, except p2.6, which should always be an input.  how do i do individual addressing of each pin within the port (e.g.  write only to p2.<0:3>, read only from p2.6)? are there any examples that i missed that address this?

thanks,

Daniel

0 Kudos
Message 1 of 2
(2,805 Views)

Hi Daniel,

 

You can create two separate tasks: one task will be your Digital Write and the other your Digital Read. For each task you can specify which lines are write/output lines and which are read/input lines. By doing it this way, you will be addressing the indivual lines of each port. It is essentially a combination of both the ReadDigChan and WriteDigChan examples.

Best regards,
Rohan B
0 Kudos
Message 2 of 2
(2,782 Views)