LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DAQ mx for digital I/O

Hi,

I created a LabView program in LabView 7.0 that wrote to and read from the digital I/O lines of a PCI DIO96 card.

I recently upgraded the machine to Mac OS 10.3 and LabView 7.1.

There are'nt the same write to and read from digital line/port functions in LV7.1 so I downloaded NI-DAQmx Base as recommended.

Having installed DAQmx I ran the 'lsdaq' program and it came up with a device list but instead of listing a DIO96 card which I'm sure is what is installed, it came up with NI 6508 - Dev1 (see attached screen shot). Why? - Any ideas?

Now in the LabView functions menu I have NI DAQmx Base - Data Acqusition palette. From here I've selected the NI-DAQmx Base Read function but when I create a constant on the channel input there's nothing listed as though no card has been recognised.

Do I have to use the Create Virtual Channel function first?

Is there a clear write up of how to use these functions somewhere on the NI website?

Can I use these functions to read/write from/to a single line rathere than a whole port?


Thanks,
Dave
0 Kudos
Message 1 of 2
(2,620 Views)
Hello,

I think that 6508 is simply the new name that they have given the DIO96 in DAQmx, as they are standardizing board nomenclature, so you should be able to simply choose 6508 and have your dio96 working normally.

I am attaching an image showing how you have to choose the correct version of the polymorphic VI DAQmx Write to be able to write to a single digital line instead of to a whole port.

If a VI is polymorphic, it means that you can use the same VI for different functions that require different inputs. It makes it simple, because you always use the same VI, and you simply need to choose the right settings to use it for what you need. If you don't see the polymorphic selector underneath the VI, right click on it, and put a checkmark under Visible items >> Polymorphic VI selector.

The VI on the left in the image is the DAQmx Create Channel VI, which is also polymorphic. Make sure that that VI is also set to digital, so that it does give you the option of selecting the 6508. (I suspect that the reason you don't have it available as an option to select is that the VI is set to analog input, and the 6508 cannot do analog input, so it is not an option).

Hope this helps,

Alejandro
0 Kudos
Message 2 of 2
(2,608 Views)