03-28-2011 09:44 AM
Hi,
I read lot of therads regarding converstions on NI forums and my problem is explained below.
i want to display addresses on a dropdownlist, I have taken dropdownlist as control and wirethe propertynode Strings[] to read visa block inorder to show the read addresses. Read visa block is reading ascii characters and i am converting the ascii to hex string wired to propertynode. I have taken eventcases and i am using the local variable of control in othercases for writing the address that user selected from dropdownlist. So, i am reading characters @ and A from the device and converted to hex 40,41 displayed in dropdownlist. Problem is here that if select any one the address(example 40), In next event cases it is writing 40 to serial device from local varible and in that case serial device does not respond. It should respond only to ASCII characters @ and A. So, for this I am converting the value 40 to ascii string in below shown picture. Even though, the device is not responding because affter converstion it is writing ----- SOMESPACE@OTHERCONCONCATINATION
In other case, it is working perfectly with out these transformations(hex to ascii or viceversa). That I am writing NOSPACE@othercommand. User can not understand if you display characters in your dropdownlist.
I hope you undestand my problem.
03-28-2011 03:13 PM