LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.

Good afternoon,

Firstable, I'm french. So sorry for my poor english.

I have one PCB (connected to labview) which control motors with a dsPIC microcontroller. This one works properly.
But then, I decided to dupplicate it. But the new one doesn't work.
There's  an error: VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.

I don't know why, but the USB UART converter RS232 was connected in the serial port COM3 for the first one which works and the new one was automatically connected to the serial port COM4. I thought it was the source of the error so I switched the port to COM3 but nothing changed.

I'm new with LABVIEW and has not a lot of knowledges in that domain...
If someone can help me to solve this problem, it would be great.

Thanks

0 Kudos
Message 1 of 5
(7,556 Views)

Hi,

       Just add some delay time between write and read operation and then try once. It seems that the problem is related with handshaking. Search for the example ' Basic serial write and read'.

Message 2 of 5
(7,547 Views)

Hello Yopyop,

 

shjukheter is probably right with the handshaking problem, witch could be fixed by inserting a Wait Function between writing the Command and reading the Answer. I suggest using a Sequence Structure for this Purpose.

 

For additional Debugging you can use NI Spy or its newer "Brother" NI I/O Trace

 

Regards!

 

Moritz M.

0 Kudos
Message 3 of 5
(7,528 Views)

Thanks for your answers,

I tried to insert a sequence flat between writing and reading steps, but nothing changed.
And I don't understand why, for the same circuit board, one works perfectly and not the other one.

0 Kudos
Message 4 of 5
(7,515 Views)

Can you post your code here. What error exactly you are getting? Is it same timeout error with different instrument? If so, try to run highlight mode and see whether it is OK or not and then add much delay time either 500 or 1000ms.

Message 5 of 5
(7,508 Views)