LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6001 - Using DI/O lines for Digital Pot

Hello everyone,

I've looked around a good bit about this question, and I can't quite find something that works, so I figured I'd ask.

 

I have a USB 6001, and a DPot (this one):

https://www.sparkfun.com/products/10613

 

I can control this DPot using 3 Raspberry Pi GPIOs. It seemed simpler than using the SPI I suppose. I attached the Python code I used.

 

Since I can use the GPIOs, I figured I could do it with the I/O lines of my DAQ. But I'm completely dumbfounded as to how to do it. I'm pretty new with Labview, and have gone through the tutorials on this site, and there are so many instances out there using all kinds of different NI Devices that I'm just a bit lost as to how to do this.

 

Anyways, if anyone has any insight on how to go about this, I would appreciate this immensely! 

Thanks

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

Do you know how to use DAQmx to create and use a Digital Output task?  What I would do is build up an array of what the digital lines need to be and then autoindex on the array to write with DAQmx Write.


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 2 of 2
(2,857 Views)