EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: DAQmxBase with ni usb 6501
From: Alireza Panna <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 15 Sep 2016 17:52:10 -0400
Hello,

I am trying to use the DAQmxBase app https://sourceforge.net/p/epics/svn/HEAD/tree/applications/trunk/DAQmxBase/ with the ni usb 6501 digital io daq.

Here are the specifics of my set up:
KERNEL:
centos 7 (x86_64) 
uname -a
Linux dt-imblin115 3.10.75-rt80 #1 SMP PREEMPT RT Tue Sep 13 16:42:52 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

EPICS Configuration:
base-3.14.12.5
asyn-4-30

NIDAQmxBase version 15.0.0
[admin@dt-imblin115 Desktop]$ lsdaq
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
NI USB-6501: "Dev1"    (USB0::0x3923::0x718A::01B27D57::RAW)
--------------------------------

I am able to read/write to digital ports using the example C code provide with nidaqmxbase drivers.
I don't have nidaqmx drivers compiled.

I compiled the DAQmxBase app and tried to run the digout.cmd with the following output:
[admin@dt-imblin115 iocDAQmxBase]$ ../../bin/linux-x86_64/DAQmxBase digout.cmd
#!../../bin/linux-x86_64/DAQmxBase
cd ../../
# Load binaries on architectures that need to do so.
# VXWORKS_ONLY, LINUX_ONLY and RTEMS_ONLY are macros that resolve
# to a comment symbol on architectures that are not the current
# build architecture, so they can be used liberally to do architecture
# specific things. Alternatively, you can include an architecture
# specific file.
#$(VXWORKS_ONLY)ld < bin/$(ARCH)/DAQmxBase.munch
#ld < bin/linux-x86_64/DAQmxBase.munch
## Register all support components
dbLoadDatabase("dbd/DAQmxBase.dbd")
dbLoadDatabase("dbd/DAQmxBaseSupport.dbd")
DAQmxBase_registerRecordDeviceDriver(pdbbase)
## Load record instances
dbLoadRecords("db/DAQmxBaseDigOut.vdb","DAQMX=XXX")
DAQmxBaseConfig("myport1", "Dev1/port2/line0", 0, "BO","N=1 F=0 m=0 M=5")
Setting daqMode on myport1 = BO
Option = N=1
Option = F=0
Option = m=0
Option = M=5
Created port "myport1" with devices: "Dev1/port2/line0"
asynSetTraceMask("myport1", 0,0x11)
iocInit()
Starting iocInit
############################################################################
## EPICS R3.14.12.5 $Date: Tue 2015-03-24 09:57:35 -0500$
## EPICS Base built Sep 13 2016
############################################################################
2016/09/15 17:46:26.498 drvDaqMxBase::drvUserCreate, attempting to create cmd: DATA
2016/09/15 17:46:26.498 drvDaqMxBase::drvUserCreate, command created: DATA
2016/09/15 17:46:26.498 drvDaqMxBase::drvUserCreate, attempting to create cmd: DATA
2016/09/15 17:46:26.498 drvDaqMxBase::drvUserCreate, command created: DATA
2016/09/15 17:46:26.498 myport1 asynManager::queueLockPort locking port
2016/09/15 17:46:26.498 dmbRead: command = 0 (DATA), signal = 0
2016/09/15 17:46:26.498 myport1 queueUnlockPort
iocRun: All initialization complete
asynSetTraceMask("myport1", 0,0x01)
[epics@ipl]:~$ dbl
XXX:DATA
[epics@ipl]:~$ dbpf "XXX:DATA", "0"
DBR_USHORT:         0         0x0                 
[epics@ipl]:~$ 2016/09/15 17:46:44.554 ### DAQmx ERROR (StartTask): VISA Close in DAQmxBase Stop Task 92xx.vi:2540001->DAQmxBase Stop Task.vi:940001->DAQmxBaseStopTask.vi->DAQmxBaseStopTask.vi.ProxyCaller

I am not sure what this error means. Any help is appreciated. 

Thank you

Best,
Ali




Navigate by Date:
Prev: Question about display history data in the form of data reports table in CSS boy opi ? lzf neu
Next: Re: link: invalid option -- n.....make[2]: *** [install.windows-x64] Error 2 Max Power
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Test Benjamin Franksen
Next: Question about "import MySQLdb" module problem in CSS python script lzf neu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Sep 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·