Jump to content

String to DAQmx Task Name


mje

Recommended Posts

  • 2 weeks later...

I have a string containing a task name that is serialized to file. I'm currently just casting it back to a task and all's well:

post-11742-093212100 1277733197_thumb.pn

But is there a better way to do this?

Dare I to say that both are identical except with the manual typecast a person can be more assured of the resource being allocated?

Would it be incorrect to use the manual method of typecasting ?

Link to comment

I can't say I know exactly what the native DAQmx Task Name type is, it might be equivalent to a string, but there also might be underlying info which can't be resolved via the cast (though it seems to work...no idea how robust it is). As such I'd go with the implicit cast, if for no other reason than historically implicit operations can be faster.

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.