Create a project and add your 951x. Add this VI to your project, create an axis and select the axis from the Resource constant drop-down on the block diagram. You can choose different digital input lines from the Line numeric control on the front panel. The state of the digital channel is displayed on the Data boolean.


Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hi! Michelle_B How are you! I a student in China, could the NI SoftMotion or NI SoftMotion for SolidWorks simulate realistic machine running condition? which include the assembly tolerance ,combination and auxiliary device such as sensor . However ,the real machine system are not drived by serv motor, most of them are drived by screw rod , belt drive and hydraulic pressure device. If NI company solve these factor, it is not reliable for us to use these data generated by Virtual prototyping to produce physical prototyping .But there are many constraint for us to use NI SoftMotion or NI SoftMotion for SolidWorks to simulate realistic machine running condition. If that ,we choose the ADAMS software to simulate the kinematic or dynamic of machine at all .Why NI SoftMotion or NI SoftMotion for SolidWorks module are not downloaded freely. May I make friend with you? I am a student pursuing a master's degree in zhejiang sci-tech university in hangzhou zhejiang province of china.,my major is mechanical design and mechanical engineering. I have been studying the NI Labview ,NI SoftMotion or NI SoftMotion for SolidWorks for one month,but I have not any progress, so I want you give me some resource ,such as the website that can download NI Labview 2009 or later, NI SoftMotion 2009 or later, NI SoftMotion for SolidWorks module free of charge. I will be appreciated if you give some number of communication such as MSN,or QQ that is very prevail in China , there are many problems for me , there are not any website to introduce knowledge about NI SoftMotion or NI SoftMotion for SolidWorks in China. If you could give me help ,I will have great improvement in studying NI Labview ,NI SoftMotion or NI SoftMotion for SolidWorks, and it is also will be usefull for me to improve my English skill. My English is poor , forgive me if there have any difficulties for you to read my text. I will be appreciated if you give me a email attaching your email ,MSN number ,or other contact mode.My email is hanyang19861017@163.com, mobile phone number is 13634129375 and QQ is 575748306, my address is zhejiang sci-tech university, jianggan district, hangzhou zhejiang province in china. my chinese name is hanyang ,my english name is harry. If you want to make friend with me ,I am looking forward your email