09-29-2011 01:33 PM
Hi Nharish,
All the files are included except for nixnet.h. Please include this file.
Thanks,
Jackie
09-29-2011 01:38 PM
Where should I include this ? ? pl clarify...
09-29-2011 01:40 PM
If you could upload this file to the FTP site as well, that would be sufficient. CVI is looking for this file when I try to run the project. I will add it to the folder you already uploaded and then navigate to this when CVI prompts me for it.
Jackie
09-29-2011 01:46 PM
NIXNET.H is the NI file for XNET...Anyway, I have dumped it in the ftp incoming.
ftp://ftp.ni.com/incoming/nixnet.h
09-30-2011 04:00 PM
Jackie_B, any success ?
10-03-2011 11:40 AM
Hi Nharish,
Not yet, I am still looking into this.
Regards,
Jackie
10-03-2011 11:45 AM
No problem, I was just trying to keep the communication channel open between us.
10-04-2011 11:47 AM
Jackie_B, Are you able to reproduce my problem ?
Please let me know.
Regards
10-11-2011 06:09 PM
Hi Nharish,
Yes, we was able to reproduce your problem and I have an explanation and solution for you. When you create the Thread Safe Queues like this "CmtNewTSQ(100, EthernetDataSize, OPT_TSQ_DYNAMIC_SIZE, &Queue_TCPRead_EthernetData);" The element size of the items in the queue is specified as EthernetDataSize, which evaluates to 128 bytes. In the threads, data is being written and read from the TSQs with functions like BytesRead = CmtReadTSQData (Queue_TCPRead_EthernetData, BufferEth, EthernetDataSize, TSQ_INFINITE_TIMEOUT, 0); where BytesRead is a 128 byte array, but EthernetDataSize number of elements is being written to it. This means that 128 128byte elements are being read from the queue and being written to a 128byte object. This is where the corruptions is coming from. Normally CVI would throw a Non-Fatal Run-Time Error when you attempt to write too much data to an array, but that does not occur when the datatype is void*. Every CmtReadTSQData and CmtWriteTSQData needs to be changed so that EthernetDataSize parameter is replaced with 1.
This should resolve the issue you are seeing. Good luck with your project and have a great day!
Regards,
Jackie