Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for simple example VI on how to control my USB-6501 I/O w/LabView on Mac (just turn a line on/off)

Little programming experience with LabView...  I'm looking for a very simple example on how to turn a digital line on/off on my USB-6501 device.  I use to do this very easily years ago with an early version of LabView on my old Mac with a multifunction DAQ board.  However, not quite familiar with the DAQmx Base and can't seem to find a relevant example.  Any help appreciated.  Thanks!
0 Kudos
Message 1 of 5
(5,751 Views)

Hello BSW,

 

Have you looked in the /Application/National Instruments/LabVIEW X.X/examples/daqmxbase/static/dio directory?  I found a couple of examples in this folder.  They are called Read Dig Port and Write Dig Port.

 

You can also find examples by opening LabVIEW and selecting find examples.  When Example Finder opens, select browse according to directory structure, and then open the daqmxbase folder.  Inside this folder, if found a library called USB-6501 Interactive Control.lib.  When I opened the library, I found a single file called USB-6501 Interactive Control.vi.

 

Best wishes,

Wallace F.

National Instruments
Applications Engineer
0 Kudos
Message 2 of 5
(5,737 Views)

I've been trying to get that VI to work. When I run it I get an invalid device identifier error. The default in the program is Dev1 and my device is set to Dev1 in Measurement and automation program. Self check works there and the test panels but the USB-6501 Interactive Control.vi won't see my device. Any ideas why?

I'm using LabView 8.2 and the newest version of DAQmx base and Measurement and Automation. 

Message Edited by Seth Martin on 11-17-2008 03:20 PM
0 Kudos
Message 3 of 5
(5,577 Views)

Hello Seth,

 

The reason that you are getting the invalid device identifier error is probably that your USB-6501 is set up to work with DAQmx and not DAQmx Base.  This is evidenced by the fact that your device shows up as Dev1 in Measurement & Automation Explorer.  If it was configured to work with DAQmx Base, it would show up in a program called NI DAQmx Base List Devices.  In order to configure your USB-6501 to use the DAQmx Base driver, you will need to switch the firmware.  For instructions on switching the firmware between NI-DAQmx and DAQmx Base, please read the knowledge base article titled 'Firmware Incompatibility With Different Versions of DAQmx Base.'

 

Regards,

Wallace F.

National Instruments
Applications Engineer
Message 4 of 5
(5,557 Views)
Thanks for the quick answer.
0 Kudos
Message 5 of 5
(5,553 Views)