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.
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 )
Solved! Go to Solution.
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.
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.
I have no errors and I have a simulated pci device and with real devices, I have been able to do this as well.
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,
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..