Jump to content

How To Access NI-DAQmx in a LabVIEW Project


lvb

Recommended Posts

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

post-4274-1203192074.jpg?width=400

post-4274-1203191622.jpg?width=400

Link to comment

QUOTE(crelf @ Feb 16 2008, 06:16 PM)

I was attempting to use the XML file as a last resort. Has anyone made any discoveries if using DAQmx property nodes?

Link to comment

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.