05-18-2014 11:37 AM
Hi,:
I just start to use Labview. i plan to use the labview to talk to Rs232. here is my question:
i have unsigned 8 bits number, i plan to convert the number into a letter so that i can send it to RS232. for example, i have unsinged number 85, i want to convert it into "U" since "U" is the corresponding letter of ascii code 85,
can you please tell me how i should do it,
thank you,
05-18-2014 11:38 AM - edited 05-18-2014 11:39 AM
Make sure the unsigned number is 8 bit (U8), then use typecast.
05-18-2014 01:42 PM
Hi, Christian:
Thank you for your message!
i used the type cast, but it seems VISA write can not recognize it, what is the problem?
05-18-2014 01:44 PM
Sorry, see the image
05-18-2014 01:48 PM
I don't see any visa write in your image.
05-18-2014 02:25 PM
see this
05-18-2014 02:41 PM
sorry, it seems i can get the correct character of the corresponding ascii code. however, it seems input is wrong. see the attached error message
05-18-2014 03:28 PM
The error is in "cofigure serial port", way before the string operation. Make sure all inputs there are valid. How do you define the visa resource?
05-18-2014 03:40 PM
Thank you for your message.
it seems i did not define the com port correctly