09-07-2007 12:07 PM
09-07-2007 12:17 PM
09-10-2007 01:03 PM
Hi dphan128,
Bill has a good suggestion about possibly exporting your tasks, but I would also suggest simply checking the device name in Measurement and Automation Explorer (MAX). You can rename a card by opening MAX >> Devices and Interfaces >> NI-DAQmx Devices >> right-clicking on the card, and selecting ‘Rename’.
If you would like, you can export the task and the card, and then the naming convention will be included with the exported data. You can import and export tasks and settings by opening MAX >> File >> ‘Import’ or ‘Export’.
If the problem still persists, I would like to ask that you post a screenshot of the error and MAX configuration, along with any other details that you find may be useful.
Regards,
09-10-2007 01:28 PM
Thank you all for your advices.
If I were to generate code for my tasks/channels this way:
You can generate code for a task or global channel from a DAQmx task name control or DAQmx global channel control, respectively. Complete the following steps to generate code.
Would it solve my problem as well ?
dphan128
09-11-2007 02:48 PM
Doing this would not solve your problem, as it creates constants for the physical channels being assigned to the DAQmx Create Channel. If your card did not have the same name in computer 2, as it did in the development computer, than you would still run into a resource error.
It sounds like you currently either have a task setup in MAX or are using a channel constant to assign what channels will be used in your task. If exporting setting from MAX or manually configuring your card and tasks are not an option and you would like maximum flexibility, I would suggest creating a channel control, therefore giving the user permission to choose the channels. This control is auto-populating, therefore forcing the user to conform to the correct syntax. If you would like the control to keep the same channels each time, you can set this control to have ‘default values’ (Assign the channels you would like >> Right click on control >> Data Operations >> Make current value default. Now save the VI).
09-11-2007 03:30 PM
Dear David L.,
Thanks for your help. So far I have learned of many options for solving my problem. I would need to try out all options before going further. And then may be contact the local NI rep in my area for assistance if more help is needed.
Once again, thank you. This forum really helped me a lot!
Regards,
dphan128
09-11-2007 03:37 PM