LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading from DIO port. Configuring DAQmx card in MAX

I have just started using Labview, and am using the "Read from Digital Line.vi" and am getting the following error:
"Error -10401 occurred at DIO Port Config. Possible reason(s): NI-DAQ LV:  The specified device is not a National Instruments product, the driver does not support the device (for example, the driver was released before the device was supported), or the device has not been configured using the Measurement & Automation Explorer."
I have hooked up Dev=1, Channel (port)=0 and Line=1 to the vi, and am just trying to read the line state output.
 
I can see my PCI-6221 card in MAX and it passes the self test. Not sure what needs to be configured. I think I installed all the drivers correctly.
 
 

Message Edited by Shoab on 09-16-2005 12:37 PM

0 Kudos
Message 1 of 7
(3,647 Views)
In MAX, did you test it under DAQmx or traditional DAQ. I think the default is DAQmx and you should use the DAQmx functions instead of the traditional DAQ functions in LabVIEW.
Message 2 of 7
(3,640 Views)
I tested in under NI-DAQmx Devices. This card does not appear under traditional DAQ devices. Maybe as you suggested, I should try to use the DAQmx vi's.
0 Kudos
Message 3 of 7
(3,638 Views)
It should work just fine there. It took me a while to get used to DAQmx after many years of traditional DAQ but now I won't use anything else. Also, I suspect that sometime in the future, DAQmx will be the only supported driver.
0 Kudos
Message 4 of 7
(3,632 Views)
It did work when I used the DAQmx vi. Thanks a lot, am just starting out on LABview and trying to use the dscussion forum, I really appreciate your help.
0 Kudos
Message 5 of 7
(3,629 Views)

Hi All-

Shoab, the reason you are seeing the -10401 error is because you are attempting to use a Traditional (Legacy) NI-DAQ VI with your M Series card which is only supported by NI-DAQmx.  As Dennis mentioned, NI-DAQmx is the newer API and all new products (including all M Series boards) will only be supported in NI-DAQmx.

Best of luck with your development-

Tom W
National Instruments
Message 6 of 7
(3,619 Views)
Hey all

I am currently experiencing the same problem (or at least a very similar) as Shoab. My problem is that I currently programming in LabVIEW v8.0 but I am using some old vi's, that was made in LabVIEW v.7.2, as subvi's. It is this subvi's that are controlling my instrument (an AES) and retriving the input as well.

How do I solve the problem? Is there someway to update ones NI-DAQ to NI-DAQmx? I already got bot LabVIEW v. 7.0 and 8.0 installed on the computer, where the program is used.

Chr.Maden

Edit: Forget it. I was another error messege

Message Edited by Chr.Maden on 10-14-2007 11:31 PM

0 Kudos
Message 7 of 7
(3,291 Views)