12-11-2012 10:54 AM
This USB DAQ Driver is compatible with the NI USB-6008/6009 devices and runs on the Raspberry Pi®. It allows the user to acquire data from an analogue input channel in either a continuous or finite manner, whilst streaming this data to a web service compatible with LabVIEW and Data Dashboard for LabVIEW. The driver is also capable of controlling a user selectable digital line from the Web Service.
12-31-2012 10:34 AM
Hi Mike
Does this mean that it is possible to capture the NI 6009 data inside the Raspberry Pi. I have an application which has no need for a web service, I can do the control logic inside teh Raspi.
John
01-01-2013 04:02 PM
I also would like to do control logic within the Raspberry Pi. That is, NI USB-6009 plus Raspberry Pi combinaton to monitor some signals from the USB-6009 and process them.
01-02-2013 02:37 AM
You can capture the data inside the Raspbberry Pi. Each of the command line interfaces allows you to view the data as it happens so that you can pipe this to your program of choice. The web service is merely an optional extra.
03-12-2013 11:21 PM
Hi jbrohan,
I am working on a university project, where I have used NI USB-6009 with raspberry pi. I would like to know application you are using to design the control logic within raspberry pi as I do not want to use the web service on my device.
I need this information urgently.If you can help, that would be great.
03-14-2013 09:02 AM
Hi Mike
I just installed the executables 'install_ex.tar' and got it to work. However, it just reads in the +-5 Volt range and also only in differential mode. Can I change that?
We also have a great need for setting the voltages on ports AO 0 and AO 1. As far as I can see, I can not do that with two commands.
It would be great if you could provide the same functionality as in the MAX (which is a great piece of software!)
03-18-2013 02:00 PM
if anybody is interested, here is the python code to read the ADCs.
Save it as ni600x.py and import it
import subprocess
import numpy as np
def read(channel=0,nrsamples=1):
cmdstr = "sudo /usr/local/bin/natinst/rpi/aiondemand -c "+str(channel)+" -s "+str(nrsamples)+" -t 1000 -v"
proc = subprocess.Popen(cmdstr, shell=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
return_code = proc.wait()
data = np.array([])
for line in proc.stdout:
strg = line.rstrip()
strg = strg.rstrip(',')
try:
nr = float(strg)
data = np.append(data,[nr])
except:
pass
return data
05-07-2013 09:19 AM
Hi Mike,
I was trying to install the driver for Ni DAC in pi, but the shell script didnt work inthe first place. it gives an error (expecting then). then I tried to do the steps manually and , the extraction of the tar files was not working. So i manually extracted them. After installing evrything (as per the install.sh script) when i try to run the to executables, it doesnt run. Can you help me in this regard ?
05-30-2013 10:31 PM
With regards to the "unexpected end of file: expecting then" error given by install.sh:
The shell script 'install.sh' downloaded from the NI community website appears to be in DOS format, meaning it terminates lines with CRLF (carriage return + line feed), instead of in UNIX format, which terminates lines with just LF. The Linux shell can't correctly parse the file because it's in the wrong format.
To correctly run the shell script first convert it to unix format by running:
sudo apt-get install dos2unix
dos2unix install.sh
06-10-2013 09:31 AM
Unfortunately, I am having a different problem - running either program results in the error message "segmentation fault". Does anyone have any idea why this might be happening or what I could try to fix it?