06-06-2007 12:17 PM
06-06-2007 03:16 PM
Can it be possible that your message is sometimes incomplete and the UUT is waiting for completion? This may happen if you miss some termination character under some condition in your code, or even if you have legal NUL characters inside your message and calculate number of bytes to send using strlen on the command string.
In any case, you may want to print all messages on the debug window or on a file and study the last ones after the abnormal condition is met, at least to discriminate wether all messager are sintactically correct or no.
06-07-2007 09:09 AM - edited 06-07-2007 09:09 AM
I got a problem a few times where the bytes sent to my UUT by ComWrt are not actually sent until the code hits a Delay function.
I found the problem to be that the operating system, somehow, queues the messages sent by ComWrt but does not let them out of the buffer.
Similarly, maybe your UUT does not respond because it did not receive any commands at all.
I solved it by configuring the port output buffer size as 0 (using OpenComConfig). In that case the bytes are written directly to the output not to a buffer.
Could you please try this?
When my application caused the problem I mentioned the CVI's sample project serial.prj was working properly. You can also use it as a troubleshooting tool.
You can send ASCII commands easily with it.
Hope this helps.
Message Edited by ebalci on 06-07-2007 05:10 PM
06-07-2007 10:28 AM
06-07-2007 10:50 AM
06-08-2007 04:52 PM
06-08-2007 05:15 PM
I discovered the problem.
I'm taking several readings from product via visa vis. When one stops talking it set a failure in the error cluster. When that failure is passed to a control visa vi it stops.
Work around... Put dumming error in and error out clusters and don't pass it along. So far that seems to work.
I wish the Visa vis wouldn't just stop when there's an incoming error, but alas, I don't have control over that.
Thanks for your input.
Byron Kinnaman