Jump to content

Task filtering


amorris

Recommended Posts

I have written a program that allows users to dynamically add read and write tasks while the program runs. These task names are saved to a preferences file when you click 'apply' and then reloaded the next time the program runs. If a task is added for which hardware devices are not present, of course, the program throws an error. However, it also writes the troublesome task to my preferences file and will not allow me to apply new changes to correct that file programmatically. I have to manually open the file and change the text.

Is there a way to filter which I/O tasks are displayed to the user in an I/O control on the front panel? I would like some sort of "type matching" where I can check to see if the task has the right number of channels, data type, etc. that my program requires and not display the ones that don't. Alternately, any sort of type matching that would allow me to reject a user's selection that is invalid would be great.

Thanks!

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.