Hello Chris,
Thanks for ur response.
Since i wanted to eliminate problems that could be caused by my actual PDA application, i modifed the LabVIEW PDA VISA example "Basic TCPIP or USB VISA Write and Read - PDA.vi" to show you the problem with VISA functions on PDA when the instrument is switched OFF. First, VISA Open (with my instrument resource name) is called & then in a while loop (with an execution delay of 1 sec), VISA Write (with *IDN?) is called & then VISA Read is called to read the response. Again, i notice that when the instrument is switched OFF, the Visa functions get stuck (instead of returning with error) halting the PDA application. I also used 'Set VISA Timeout' as in the attached "Basic TCPIP or USB VISA Write and Read - PDA_Timeout.vi" but that also did not help.
Please note that on desktop, both the modified "Basic TCPIP or USB VISA Write and Read - PDA.vi" & "Basic TCPIP or USB VISA Write and Read - PDA_Timeout.vi" work fine i.e. when the instrument is switched OFF, the Visa functions (Write/Read) return with error as desired.
The test case that i used is:
1. Switch on the instrument. Wait for a few seconds.
2. Run the VI on desktop OR run the application that uses the VI on PDA. The writing request/reading response happens properly.
3. Switch OFF the instrument. On desktop, the Visa functions (Write/Read) return with error as desired. On PDA, the Visa functions get stuck halting the PDA application.
The PDA that we use is acer n300 Windows Mobile 5.0 PDA. I wait & hope that you will suggest a solution asap.
Thanks and Regards,
Subhashini