This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DLP4710: How to connect and display custom images using MATLAB

Part Number: DLP4710
Other Parts Discussed in Thread: DLPA3005, , DLPC3479

Hello,

I am trying to use some code I found in a previous forum post to connect to the DLP4710 using MATLAB (controller DPLC3439, Driver DLPA3005). My aim is to project a set of .bmp images in sequence and simultaneously control a camera. I have not had an issue connecting to the projector or controlling the display through the GUI (EVM version 7.4) but I am unable to connect successfully through MATLAB using the code (copy of the code and output below). Should this code run correctly or are the IP and port numbers in tcpip('192.168.1.100',21845) incorrect for the projector I am using? I am quite new to programming so may be missing something simple. Any suggestions on how to fix the issue or alternative code to use for connecting and projecting a set of my own images would be great.

Thank you.

Copy of the code used from a previous forum post: 
%create / load simple image
im1 = zeros( 684, 608, 3 );
im1 (300:380, 300:380, :) = 255;
imwrite( im1, 'im1.bmp' );
imFile1 = fopen( 'im1.bmp' );
imData1 = fread( imFile1, inf, 'uchar' );
fclose( imFile1 );
%connect to the device
tcpObject = tcpip('192.168.1.100',21845)
fopen(tcpObject)
status(tcpObject)
%talk to the device
L=LightCrafter()
%various implemented commands
L.setBMPImage( imData1, tcpObject )
L.setStaticColor( 'FF', 'FF', 'FF', tcpObject )
L.setPattern('0A', tcpObject)

Output in command window:


Communication Settings
RemotePort: 21845
RemoteHost: 192.168.1.100
Terminator: 'LF'
NetworkRole: client

Communication State
Status: closed
RecordStatus: off

Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0

Error using icinterface/fopen
Unsuccessful open: Connection timed out: connect

Error in untitled (line 11)
fopen(tcpObject)