lvb Posted February 17, 2008 Report Share Posted February 17, 2008 In the "Project Explorer" for a .lvproj file, you can create NI-DAQmx tasks/scales/channels. I am looking to modify these dynamically and achieve the following goals: How to read all channels/tasks/scales in a project? How to write a channel/task/scale in a project? How to delete a channel/task/scale in a project? Below is some code I used to detect what DAQmx items exist, but how can I acess them using the DAQmx property nodes dynamically? Thanks Quote Link to comment
crelf Posted February 17, 2008 Report Share Posted February 17, 2008 QUOTE(brianafischer @ Feb 16 2008, 03:02 PM) In the "Project Explorer" for a .lvproj file, you can create NI-DAQmx tasks/scales/channels. I am looking to modify these dynamically... I know it's kin-of brute force, but the lvproj file is just an XML file - you could edit it and then reload it... Maybe we need to start a new wiki article on the lvproj file structure (just like the one we've already got for the LabVIEW.ini file)? Quote Link to comment
lvb Posted February 17, 2008 Author Report Share Posted February 17, 2008 QUOTE(crelf @ Feb 16 2008, 06:16 PM) I know it's kin-of brute force, but the lvproj file is just an XML file - you could edit it and then reload it...Maybe we need to start a new wiki article on the lvproj file structure (just like the one we've already got for the LabVIEW.ini file)? I was attempting to use the XML file as a last resort. Has anyone made any discoveries if using DAQmx property nodes? Quote Link to comment
Ton Plomp Posted February 19, 2008 Report Share Posted February 19, 2008 Well first to get all tasks from a project you could get all descendents and filter for DAQmx tasks as type. Then I think you can call most of the DAQmx functions with a string instead of a DAQmx datatype. I don't have DAQmx installed on my current computer but it should work. Ton 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.