06-12-2008 08:51 AM - edited 06-12-2008 08:51 AM
06-12-2008 08:54 AM
06-12-2008 09:08 AM
Your are not reading the answers given to you. If you choose to use the String to Byte Array, you merely have to use the Index Array function to get the first element in the array which will give you a single number. If you use the typecast, you will get a single number.
LabVIEW is not converting anything to ASCII. You are using ASCII when you use the Normal display format of your string constants for the VISA Write. You can right click on the string constant and select Hex display. Enter the number you want. You could use the type cast with a numeric U8 input. The string output will be correct. You could use a U8 array with the values you want and use the Byte Array to String function. The output will be correct.
06-12-2008 09:09 AM
06-12-2008 09:21 AM
06-12-2008 09:27 AM
06-12-2008 09:35 AM
06-12-2008 09:50 AM
i was doing same, you got me. ok i am trying to make a loop.
now another problem which i remember that if i open VI in my home 800x600 resolution, which i made in university 1024x768 resolution monitor, all the front pannel objects are misplaced.
how to fix it?
06-12-2008 10:00 AM
GerdW wrote:
when all you get from serial port is just one byte then take that one single byte you get after the U8 conversion (& index array) operation. It's all you need!
06-12-2008 10:10 AM - edited 06-12-2008 10:11 AM
ehsanelahimirza wrote:
after receiving data in single byte i will check it from which sensor it is and then i will send it to front panel display of that sensor.there i am also checking limits of this data i.e. if i need temperature to 050 only then after receiving data >50 and <101 will send a constant to serial out.