arteta Posted April 15, 2006 Report Share Posted April 15, 2006 The "typecast" has 3 "pin", 1 for input, 1 for output, and the last one for the type that the data trasform into, that's what i've learn from LV Help. But what kind of controls should i connect with the "type" pin? I've seen in the "serial61.vi" that the programmer does not connect any thing to the "type" pin (he use it to convert a number to string) . Another question, so what can i do if i need to do it reversely : convert a string read from serial port to a number. Thans for helping me and excuse my bad English. Quote Link to comment
klessm1 Posted April 15, 2006 Report Share Posted April 15, 2006 The "typecast" has 3 "pin", 1 for input, 1 for output, and the last one for the type that the data trasform into, that's what i've learn from LV Help. But what kind of controls should i connect with the "type" pin? I've seen in the "serial61.vi" that the programmer does not connect any thing to the "type" pin (he use it to convert a number to string) . Another question, so what can i do if i need to do it reversely : convert a string read from serial port to a number. Thans for helping me and excuse my bad English. The reason they do not have to pass in a type when converting to a string is because a string is the default type to convert to. If you need to convert to anything else, you have to pass in the type. To convert form string to a number you pass in the string on the input and a number into the type (any number...all it needs is the type of the data, it doesn't use the value). Quote Link to comment
arteta Posted April 17, 2006 Author Report Share Posted April 17, 2006 Oh, I see. Thank alot, i will try it when back to home. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.