Jon Sweeney Posted October 3, 2007 Report Share Posted October 3, 2007 Does anyone have a DAQmx example or description for setting DIO lines (eg, NI6225M) at runtime - some lines to outputs and some to inputs. I have done this with the old Daq "Port Configure" vi but am having trouble determining how to do it with DAQmx. Thank you. Jon Quote Link to comment
ned Posted October 4, 2007 Report Share Posted October 4, 2007 QUOTE(Jon Sweeney @ Oct 2 2007, 03:31 PM) Does anyone have a DAQmx example or description for setting DIO lines (eg, NI6225M) at runtime - some lines to outputs and some to inputs. Here's one way to do it. If you need to change the direction of lines as your code is running, you can clear the existing tasks and create new ones with the lines set as necessary. The VI on the left is "DAQmx Flatten Channel String" from DAQmx - Data Acquisition -> DAQmx Advanced -> DAQmx Utilities; the one on the right is "DAQmx Create Virtual Channel". http://lavag.org/old_files/monthly_10_2007/post-3989-1191415376.gif' target="_blank"> Quote Link to comment
Jon Sweeney Posted October 5, 2007 Author Report Share Posted October 5, 2007 QUOTE(ned @ Oct 3 2007, 07:47 AM) Here's one way to do it. If you need to change the direction of lines as your code is running, you can clear the existing tasks and create new ones with the lines set as necessary. The VI on the left is "DAQmx Flatten Channel String" from DAQmx - Data Acquisition -> DAQmx Advanced -> DAQmx Utilities; the one on the right is "DAQmx Create Virtual Channel". Thanks. I'll give that a try. Jon Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.