01-17-2012 07:31 AM
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
01-17-2012 07:43 AM
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'.
01-18-2012 03:38 AM
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.
01-19-2012 02:18 AM
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.
01-19-2012 05:53 AM
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.