02-18-2009 01:44 AM
Hello All,
I'd like to know, if it's possible, to convert string type to DAQmx type (DAQmx Task In)
Thanks!
Solved! Go to Solution.
02-18-2009 02:12 AM - edited 02-18-2009 02:14 AM
02-18-2009 02:26 AM
02-18-2009 02:41 AM
Why?
Normally you can connect a string to a DAQmx terminal.
Ton
02-18-2009 03:09 AM - edited 02-18-2009 03:09 AM
That error is not associated with converting the string type. I really don't know what's going on in your application but I suspect you are getting the error because you have not configured/saved your task correctly, possibly in another application on the same system. I have seen this issue before when using functional globals to save a task in one application and then reading the task from the functional global using another VI. This usually happens because the functional global will save the number value associated with the particular task. I would recommend you search for the error code on the website and have a look at the following article. I apologize but my knowledge is limited on this error.
Programmatic Saves of NI-DAQmx Tasks, Channels, and Scales Examples
TonP, I was avoiding the coercion dot 🙂
02-18-2009 03:11 AM
02-18-2009 03:19 AM
Sorry, was my fault. The channel wasn't correctly initialized. So it can convert directly string -> DAQms Task
Thanks