Menu
Using National Instruments USB-6501 with Linux The is a Full-Speed USB 2.0 (12 Mbit/s) device that provides 24 digital I/O lines channels and one 32-bit counter. National Instruments provides a driver for Linux but it is huge (over 80 MB!) and buggy and, worst of all, it's not open-source! There is neither an open-source driver in the official Linux kernel. But things are going to change!
Support is planned to be integrated in release 3.17. In the meantime, if you want to use this device with Linux, you can patch the kernel sources and have fun. In this document I'm going to show you how to do this. Install NI USB-6501 kernel module For this step you need to download kernel sources and run your own kernel. I presume you already did this and have kernel sources at hand. I'm not going to explain it, there are a lot of documentation on the web. Next, you have to download this and apply it: # cd /path/to/your/kernel/sources # cp /path/to/0001-Add-support-for-NI-USB-6501.patch.
# patch -p1 Data acquisition support (comedi). Comedi USB drivers NI USB-6501 support Compile/install the kernel and modules: # make && make modules # make modulesinstall If everything went fine, you should have a module called niusb6501.ko in this directory: /lib/modules/$(uname -r)/kernel/drivers/staging/comedi/drivers Check that the module loads correctly: # modprobe niusb6501 If you don't get any errors your driver is ready to be used. Install comedilib Download comedilib from Extract, configure and compile: $ tar xzf comedilib-0.10.2.tar.gz $ cd comedilib-0.10.2 $./configure $ make $ sudo make install If you get configure or compile errors, make sure you have the following packages installed in your system:. flex. bison.
byacc Digital I/O testing Subdevice 0 is Digital I/O which is made up of 24 channels (three 8-bit ports) When you first connect the device, all channels are set as input (default settings). A simple testing can be made using the applications found in the demo directory of comedilib: $ cd $ cd demo You can use inp for channel reading. For example if you want to read channel 5 (-s means subdevice): $./inp -s 0 -c 5 If you want to see the inputs change value, you can simply connect one of the pins present on the device marked GND or +5V to the selected input. For testing output capabilities, you first need to configure the pin as output. For this you can use the dio demo application. For example setting pin 7 as output: $./dio -s 0 -c 7 1 and then for setting a value of +5V to the output you can use outp: $./outp -s 0 -c 7 1 setting it to GND (0 V) can be done with this command: $./outp -s 0 -c 7 0 Counter testing Subdevice 1 is a 32 bit counter which gets incremented on falling edges on port 2.7.
You can read and write the counter as usual with inp and outp (this time using option '-s 1'). Get counter value: $./inp -s 1 -c 0 Set counter value to 255: $./outp -s 1 -c 0 255 There isn't however a suitable demo application for arming the device (start the counter) so I've written one which can be downloaded. Put armcounter.c in the demo directory and compile it: $ gcc armcounter.c common.c -L/usr/local/lib -lcomedi -lm -o armcounter You can now reset and start the counter with this command: $./armcounter -s 1 -c 0 For simple testing you can connect with a wire a generic digital I/O of the device to port 2.7 (for example DIO 0.0). Set it as output: $./dio -s 0 -c 0 1 Toggle it: $./outp -s 0 -c 0 1 $./outp -s 0 -c 0 0 and see the counter incrementing: $./inp -s 1 -c 0 Have fun!
So I am trying to use the USB 6501 with Labview on an older XP machine with SP 3. Under MAX, the 6501 shows up as 'dev1'. I have read through and watched a video that talks about updating the firmware on the NI USB-6008/6009 with the DAQmx Base Driver 3.x.
I am not sure if this is the solution that I need. For one thing, in the video before loading the new firmware into the device, the driver is updated to the 'NI-USB-6008 Multifunction IO'.
Is there a 'NI USB-6501 Multifunction IO driver' somewhere that I should be able to download and use? Only a 'USB-6501' is shown when I try to select a device.
Where would I get this? Would this driver also be the correct one to use with Windows XP? - and that is another thing, nowhere in the video does it say what OS the computer is running. I already have a GPIB-USB-HS device installed successfully that shows up as 'GPIB0', and a 3rd party relay board which seems to work just fine with the system without issue.
I would like to add the 6501 to this computer as well. Please advise.
I don't want to use another computer and want the 6501 to work with the system I have LabVIEW installed on without making the existing GPIB or relay board to stop working.and also continuing to use XP pro. I am running(when I look in MAX help system information Windows XP Professional 5.01.2600 Service Pack 3 CVI Run-Time 10.0.1.434 DAQmx Device Driver 15.5.1f0 NI-488.2 Software 3.0.2 NI I/O TRACE 15.0.0f0 LABIEW 11.0.0 LABVIEW RUNTIME 2010 SP1 10.0.1 MEASUREMENT AND AUTOMATION EXPLORER 15.0.0f0 NI-USI 1.9.0.4551 NI PXI 15.0.0f1 NI PAL 15.1.0 NI SYSTEM CONFIG 15.0.0f0 NI VISA 5.1.1 LABVIEW RUNTIME 2011 11.0.0.0 LABVIEW RUNTIME 2014 SP1 f1 14.0.1 LABVIEW RUNTIME 8.5.0 LABVIEW RUNTIME 2009 SP1 9.0.1. I agree that should be able to see the USB 6501 in DAQmx and for instance use 'Test Panels'.
That has nothing to do with Labview so if you can't interact with the device there is something strange going on. Still, you will not be able to use the device with Labview 11 and DAQmx 15 anyhow, there is no workaround You can only have version of DAQmx installed. Will I lose the ability to communicate with the peripherals that I have now and have to relink them? Only if you have any device that is only supported by 15 and not 14. Check the DAQmx notes, it is clearly outlined. My advice would be to buy a new computer, install Windows 10 (or maybe 7 depending on your IT department). Review which devices you can keep and which you need to replace.
I know that is not what you want to hear, but seriously, you will save that money by not needing to go through lots of headaches. Windows XP is doomed anyhow. I am finally getting rid of my last lab computer with XP in a month and it will be a bliss! Perhult wrote: My advice would be to buy a new computer, install Windows 10 (or maybe 7 depending on your IT department). Review which devices you can keep and which you need to replace. I know that is not what you want to hear, but seriously, you will save that money by not needing to go through lots of headaches. Windows XP is doomed anyhow.
I am finally getting rid of my last lab computer with XP in a month and it will be a bliss! With the exception of the quoted piece, that was great advice you just received. You can only install a single version. If everything was working prior to purchasing the new device and installing the drivers, everything will continue to work. You'll just need to uninstall 15 and install the older version. Then, everything should work again.
As far as the quoted part, this makes absolutely zero sense with respect to solving your current problem. You have a working PC for your application.
The drivers you need are supported both on XP and the newer PCs. If you're looking to purchase anything (which I don't think you need to be), you'd want to take a look at a version of LabVIEW that isn't old enough it can't use drivers that were released over a year ago. That means any bug fixes moving forward won't be applicable to your system. If you find you want to use hardware that isn't supported on your OS, you might consider the new PC at that point.
Depending on your PC, it might be a bit cheaper to just pick up the new OS as well. But, don't throw money at a problem where money isn't the solution. I guess it is more than just a concern. I don't understand why these things are not intelligent enough to just be plug and play.
With my current MAX setup, if I open MAX while the 6501 is already plugged in, it shows up under 'devices and interface: USB-6501 'dev1' '. However, if I open MAX, then plug in the 6501, MAX crashes and sends an unexpected error message and has to close. Are you saying that I won't see MAQmx in Labview because I have an incompatible version of MAQmx and I need to install version 14? Would this allow lme to use a digital output or input via DAQmx with LabVIEW 11? Or maybe it is there and I am just looking in the wrong place.
Ni Usb 6501 Manual
Where do I fid the DAQmx icon? Check out: This will give you all compatible versions. Yes, the problem you're seeing in LabVIEW is you have a version that is too new for LabVIEW 2011. The crash is something unexpected. It probably requires a bug report (CAR) if you can reproduce it and wasn't something that happened just the once. Plug and Play is a bit arbitrary here.
You're plugging the device in and can immediately use it. You're hoping everything goes smoothly with development software that was written in 2011, the measurement explorer written in 2015, drivers from 2015, and an OS service pack released in 2008. You've got a lot of moving pieces created over the course of nearly a decade. You should expect some hiccups. If the entire fix is rolling back the drivers, that's a pretty easy fix.
Copyright (c) 2016, The MathWorks, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. In all cases, the software is, and all modifications and derivatives of the software shall be, licensed to you solely for use in conjunction with MathWorks products and service offerings. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Hello, I have a problem with the drivers when I am using the device USB-6501. I need to get a program, where I can configure some ports as inputs, others as outputs and one of them as a counter. I have found two very useful examples.
One is the?Count digital events? That appears on the list of examples and the other one is?USB 6501 Interactive Control? However, to use the first one I need to have installed NI-DAQmx whereas to use the second one I need NI-DAQmx Base. I can switch between them but the problem is that I can only run one of the programs each time. I would like to put everything together in another program, but how can I do it? I would appreciate any suggestion.
Thanks in advance Vicente. It is simply not true that the fields for some of the subVIs don't match exactly. Here's the subVI. It took me about one minute to do this. I also don't understand why you don't simply use one of the shipping examples I mentioned. Message Edited by Dennis Knutson on 08:18 AM 6501 subVI.PNG: subVI.PNG 6501.UpdateDIO.vi: http://forums.ni.com/attachments/ni/170/280319/2/6501.UpdateDIO.vi. Hello; Can anybody please point me to 'IXXAT USB-to-CAN (PC CAN Interface)' LabVIEW Drivers?
I have searched in the Net But I was not able to find LabVIEW Drivers. Regards, Karthik. We would like to operate our home made devices using the I^2C interface of the Trinamic USB-2-X module.
(We have bought it with the TMC222-eval kit package). Did any body developed drivers for this module?Thanks. Thanks Chris, I tried to developed one, so far with no success. I followed the instructions given in the USB Instrument Control Tutorial to create a NI-VISA?inf?
![]()
The Trinamic USB converter is?RAW? And it seems like I succeeded. The Trinamic USB-2-X converter has a communication protocol that I tried to implement. However, I could not put it to work, yet. While communicating with the converter I do not get any error message, but also could not get an acknowledgement either. I borrowed an 8451 and indeed it works like a charm.
It seems that I will have give up on the Trinamic and spend the money to. Hi, every body, I am facing a project using USB-1096HFS from MCC's product, but I hasn't that vi driver, it tell me I should purchase, but I don't need serval vis and this project is urgent, I can't wait more, I need Digital in and out vi is OK. Who can provide that vi's download link or enclose here? Many thanks @!
Well, I have found a CD and install its driver, can see user manual and a dll (cbw32.dll), and I have made cbFlashLED vi, it works, but for the cbDOut function, I don't know why, it is fail to control,maybe I can't undestand well user manual's meanings (my poor English), anybody can help to read my enclosed user manual, and try to explain more, see page 79 for me? I don't know what the PortNum's data type should be, and 'DataValue' too, it is string or I32 number? any focus I should pay more attention as I want to realize this function(yes, cbDConfigPort but I don't know how to config this), or help me to make a simple sample for cbDout? Thanks in advance.
Series from website. Filter.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |