11-16-2006 09:19 AM
11-17-2006 05:48 PM
11-18-2006 05:39 AM
11-20-2006 11:07 PM
11-23-2006 09:05 AM - edited 11-23-2006 09:05 AM
Hi Jason! Thank you again for your answers and interest.
My answer comes later because I was assigned to another project this week and got back to my problem just today. I managed to solve that problem, it seems and I think I know the cause of it, too.
Long story short, the current, working solution can be seen in the attached image.
before I didn't use that while loop before doing the VISA read and I think the error was because, at the time it was trying to read, the required number of bytes was not present in the buffer. I think...
Anyways, that works now. I have another problem, though. After the sequence aabove, I perform another read using this sequence.
The problem is that it only reads up to 8 bytes. I know my messages are longer than this, but I can't explain why they are not received completely. Messages with 6 or 7 bytes are ok. Do you have any idea?
Message Edited by louis_nichols on 11-23-2006 09:12 AM
11-23-2006 09:20 AM
Sorry about that! It won't let me edit the message anymore. The block diagram for the read is this one:
as I said, it won't read the whole message sent by my peripheral device...
11-23-2006 10:23 AM
11-23-2006 11:36 AM - edited 11-23-2006 11:36 AM
Message Edited by louis_nichols on 11-23-2006 11:42 AM
11-24-2006 12:31 AM
11-24-2006 01:35 AM
Hi TonP! Thanks for your suggestion!
The format and length of the message can indeed be deduced from the header. But it would involve more processing that I am hoping to use at this level of my application. I am trying to find a way to receive the message without performing any processing of its contents.