11-28-2006 10:24 PM
11-29-2006 12:18 AM
Hi
Try to insert a VISA event. Using it you can react if there is data at the port. Now you read what is available a short time after writing. If you look at the data (the second string visible in the picture), you see that the data you wrote is there, but not in the correct order. It seems as if your HW writes the answer several times. If you do not react on incoming data but read after some time, you do not exactly know where you start reading the data.
If you don't know how to use VISA events, let us know.
Thomas
11-29-2006 02:51 AM
Thanks for your valuable inputs !
Please guide on using VISA events. If possible send some sample code. My HW doesn't send answer several times, instead it just sends single responce to my single command/Query. I am reading data back after sufficient time (Tried it till 1000ms).
Thanks
Vikas
11-29-2006 03:07 AM - edited 11-29-2006 03:07 AM
As I don't know which LV version you are using, I attach a picture of a simple example. All the necessary Event vis are available in the VISA Events subpalette.
Thomas

Message Edited by becktho on 11-29-2006 10:07 AM
11-29-2006 03:20 AM
11-29-2006 11:29 AM
11-29-2006 11:55 AM
11-29-2006 08:52 PM
Thanks for all the replies!
My problem solved combining your suggestions .
Thanks a lot!
Vikas