Sanjeev,
Walter and I are working in this project, and implementing the code together. Here are few things that are still not working alright.
1- Suppose, I run this code:
tcpObject = tcpip(192.168.1.100,Port Number)
fopen(tcpObject);
count = 1
while count < 20
fwrite(tcpObject,uint8(hex2dec(['02';'01';'01';'00';'01';'00';'00';'05']))); %switch display mode to static
fwrite(tcpObject,uint8(hex2dec(['02';'01';'03';'00';'01';'00';'00';'07']))); %switch to internal pattern: checkboard
end
I don't exactly remember what I exactly used in these two lines, but I am sure I tried to execute two different patterns one after another. If I try to execute this code, after a while, the lightcrafter keeps projecting these patterns sequentially, even though I exit MATLAB.
Now, this might mean that too many data get in the LightCrafter buffer, while the code above executes, and the lighcrafter keeps projecting the data even though MATLAB is closed. Following your comment, if I try to execute after each of the lines above as follows:
ack = fread(tcpObject),
I read some bytes. Please let me know which of these bytes will let me know there is no error and I can send the next set of data.
2- It will be good if I learn how to clean the memory of lightCrafter. I think the problem is we are sending too many data; they are getting occupied in lightCrafter memory; and eventually lightCrafter gets frozen. I may be wrong, but I would expect that the new data should replace the old data, and due to this, old data should be removed from the lightCrafter memory. Question is how can I delete things from the lightCrafter memory.
fwrite(tcpObject,uint8(hex2dec(['02';'06';'01';'00';'01';'00';'00';'10']))); %switch display mode to static
This did not work.
3- We tried to power off the red and blue LED and keep only the green LED on. We used:
fwrite(tcpObject,uint8(hex2dec(['02';'01';'04';'00';'06';'00';'00';'00';'01';'0C';'00';'00';'26']))); %switch display mode to static
It did not work. For data bytes, we used '00';'00' to keep the red and green LED off, and '01';'0C' as 112 in hex to send 633 mA as specified for the green LED to let it remain on.
It did not work.
4- Finally, it could be just that the lightCrafter that we have has some hardware issues. It may be a faulty module that we have. Please let us know what would be our quick test to know that the projector is working as expected....
We appreciate your quick response.
Many thanks,
Pinaki