Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6008 Digital Input VI question

Greetings!

I have a USB-6008 DAQ device, which I have been working with, strictly with the DIO capabilities of the card.

I am attempting to create some basic VI’s which will allow for simple programmatic “if / then” cases. I have attached the VI that I have (successfully) created to handle the output side of the programming. However, I am having a lot of trouble getting the similar effect with an input VI.

Does anyone know what I might be doing wrong? Would anyone be willing to modify / create a VI that does what I need? I simply want to be able to add a control to select which line I want to read, and an output containing a Boolean T/F.

On another subject, has anyone solved the problem with this device, pertaining to the sourcing on the Input end? Why is it set up like this? And how does one get around it?

Much appreciated,

Alexander S. McGee
Test Lab Co-op
Stryker, Instruments Division
www.stryker.com

Message Edited by magnasmific on 05-25-2005 03:37 PM

Alexander S. McGee
Test Lab Co-op
Stryker, Instruments Division
www.stryker.com
0 Kudos
Message 1 of 4
(3,609 Views)
Hi,

have you seen the examples they where installed with the Daqmx-Base-driver?
You should use them as a start-up for your programming. You can find the examples under:

C:\<-...->\National Instruments\LabVIEW 7.1\examples\daqmxbase\Static or \Dynamic

The function to make a number from an array you know I see in your example. In the other way you have to use the Number to boolean array function in the same palette.

Hope this helps.
Alex
NI Switzerland
Message 2 of 4
(3,593 Views)
Thank you for the reply!

Yes, I have looked at the example files. I have also tried the number to boolean array, but (this is the odd thing) it does not work with the DAQmxBase read output.

Any suggestions?

-ASM
Alexander S. McGee
Test Lab Co-op
Stryker, Instruments Division
www.stryker.com
0 Kudos
Message 3 of 4
(3,591 Views)
Hi,

so far as I know the device answers like this:
line 0 - 0x01 (binary: 0000 0001)
line 1 - 0x02 (binary: 0000 0010)
line 2 - 0x04 (binary: 0000 0100)
line 3 - 0x08 (binary: 0000 1000)
line 4 - 0x10 (binary: 0001 0000)
line 5 - 0x20 (binary: 0010 0000)
line 6 - 0x40 (binary: 0100 0000)
line 7 - 0x80 (binary: 1000 0000)

What do you mean with it does not work? Does the attached example work? You have to index the sampled array first I think!?
Sorry, I´m not able to try because I have no 6008, at my place at the moment.

Alex
Message 4 of 4
(3,587 Views)