LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DIO for USB 6008

Hello there folks,
 
I just need suggestions from everyone.  have 5 digital signals and am using USB 6008 to measure using DAQ assistant express VI ( not DAQmx ), and use the digital binary values from the 5 channels to select a case statements. Attached is the word document .
 
 Kindly confirm:
1)  if the PIN numbers are correct
2) the labview part will work with DAQ assistant express VI
3) any other example installed in labview which you can suggest to read more about , so that i can program in labview ?? 
Download All
0 Kudos
Message 1 of 3
(3,044 Views)

Your wiring seems to match the NI document but your program sketch does not make any sense. If you are using the DAQ Assistant where you get a Boolean array as a result, when you do the index array, you get a single Boolean out. If you trull need 5 different case statements, just wire them directly. You could also use the Boolean Array to Number function and wire the output of that to a single case statement. If you are using the DAQ Assistant where you get a numeric value out, you would not do any array indexing. You could AND this output but you could also just wire the numeric to a single case statement.

You could provide some more information about what you are detecting and why you might need 5 different case statements. Can only one input be high at a time? Are you trying to detect certain patterns? The values that you using with the AND function are no help with expaining what you need since you have only four bits and are acquiring 5.

0 Kudos
Message 2 of 3
(3,034 Views)
Hi Miaa,

The best examples for programming your application without the DAQ Assistant are "Read Dig Chan.vi" and "Read Dig Port.vi" (located under Hardware Input and Output » DAQmx » Digital Measurements in the Example Finder).

The "Chan" VI reads each line as a true/false value and returns an array of booleans, and the "Port" VI reads the entire port and returns an integer. You can use both of these data types to drive your case structure, but I think the integer format will make the programming easier.
Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 3 of 3
(2,995 Views)