NI Home > Community > NI Discussion Forums

Digital I/O

Reply
Active Participant
NitzZ
Posts: 558
0 Kudos
Accepted Solution

Error 200120 at DAQmx Start Task.vi

Hi All,

 

I am trying to create an input and output task in two different lines of the same Port. When I am doing this in the Measurement and Automation Explorer, the port works fine with both Input and Output lines, but when I programmatically do it in LabVIEW, I get an error in the DAQmx Start Task.vi.

Error.JPG

 

I would be glad if any of you could let me know why this is happening. (As the code has to be kept confidential, I can't provide the VIs :smileysad: )

 

Regards,
Nitz 

Active Participant
NitzZ
Posts: 558
0 Kudos

Re: Error 200120 at DAQmx Start Task.vi

Any help?? :smileysad:

Knight of NI
Dennis_Knutson
Posts: 33,155
0 Kudos

Re: Error 200120 at DAQmx Start Task.vi

Seems that you are not configuring a line but a port.

 

At the very least, you should be able to post the DAQmx Create Channel with the physical channel.

 

Active Participant
NitzZ
Posts: 558
0 Kudos

Re: Error 200120 at DAQmx Start Task.vi

Hi Dennis,

 

Thank you for the reply. I have attached herewith a sample code with the functionality of my code. I am using simulated devices in the MAX for testing this. What I found out so far is most of the PCI and PXI devices do not support simultaneous Input and Output which generates the error. But some devices like PXI 6289 supports the functionality. 

 

Please correct me if I'm wrong or I'm missing something.

Regards,
Nitz 

Knight of NI
Dennis_Knutson
Posts: 33,155

Re: Error 200120 at DAQmx Start Task.vi

I have no errors and I have a simulated pci device and with real devices, I have been able to do this as well.

Active Participant
Mcdan
Posts: 480

Re: Error 200120 at DAQmx Start Task.vi

Nitz,

 

What device are you seeing this error with?  Most more recently designed devices (M Series, X Series) allow digital lines to be individually configured.  However, some devices that were designed longer ago support only per-port configurability.  This would be true of PXI-65xx devices, or E Series devices.

 

Hope that helps,

Dan

Active Participant
NitzZ
Posts: 558
0 Kudos

Re: Error 200120 at DAQmx Start Task.vi

Thank you Dennis and Mcdan,

 

My VI works with the devices lilke PXI6289.. I was trying it for devices like PCI 6503... Anyway i'll try some different approaches for those devices. Thank you once again for you help..


Regards,
Nitz