LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert string type to DAQmx Task type

Solved!
Go to solution

Hello All,

 

I'd like to know, if it's possible, to convert string type to DAQmx type (DAQmx Task In)

 

Thanks!

0 Kudos
Message 1 of 7
(4,769 Views)
Use the Type Cast function.
Message Edited by Adnan Z on 02-18-2009 12:14 PM
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 7
(4,762 Views)
I attached a picture.
0 Kudos
Message 3 of 7
(4,757 Views)

Why?

Normally you can connect a string to a DAQmx terminal.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 7
(4,752 Views)
Solution
Accepted by topic author Samoth

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 🙂

Message Edited by Adnan Z on 02-18-2009 01:09 PM
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 5 of 7
(4,739 Views)
I've tried before, but after the DAQms Create Channel it occured an error.
0 Kudos
Message 6 of 7
(4,737 Views)

Sorry, was my fault. The channel wasn't correctly initialized. So it can convert directly string  -> DAQms Task

 

 

 Thanks

0 Kudos
Message 7 of 7
(4,734 Views)