LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

write and read in visa

I have another question having to do with writing and reading messages in VISA and the timing protocols that are necessary.
I write a message in VISA.  The ethernet device I am writing to accepts this message, processes it, and then gathers data.  I have no control of it going through this process of gathering data, I just need to read back the data the device gathers once it is done gathering.  This is where I'm unsure on what to do.  I know I could set up a timer and have that run for more than enough time so that I write my command on one button click and after the message is sent, I wait for 15 seconds (which is more than enough time) and then read back any information the device has gathered.  However, some of the time, it only takes the device 4 seconds to gather data (other times it takes 10 seconds, so its not very consistent, but thats beside the point).  Is there a more efficient way I could go about this process.  I've read some stuff on event handling in VISA... is this a path I should take, or does anyone have a more efficient suggestion.
Thanks
neemtt
0 Kudos
Message 1 of 2
(2,835 Views)
neemtt,

Does your device possiby have a message you could send it to see if has completed yet? Many devices allow you to poll them until they are done. This way as soon as your device is ready you can send the read command.
-Marshall R
0 Kudos
Message 2 of 2
(2,811 Views)