Thread Subject: Running xPC target on a target PC while having a sensor connected to the host computer

Subject: Running xPC target on a target PC while having a sensor connected to the host computer

From: Nuno Filipe

Date: 1 Dec, 2011 21:18:08

Message: 1 of 1

Hi,

I'm using xPC target to run an application on a target computer. This target computer has several actuators and sensors physically connected to it and all are running fine.

The communication between the host computter running Simulink and the target PC is done through wireless TCP/IP.

Now we acquired a new sensor that will be taken measurements of the experiment but this sensor must be connected directly to the host computer through a serial connection (COM1).

What I want to do is to add to my Simulink file a new block that reads the output from this sensor connected to the host. I'm planning to use the Instrument Control Toolbox blockset for that.

I must be able to build the final Simulink file with xPC target.

Can this be done with the Instrument Control Toolbox blockset?

PS: I have a MATLAB .m file that already does everything I need. Is there any way to call this file from Simulink without jeopardizing the capability to build into xPC target at the end?

Thank you for your help.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
serial Nuno Filipe 1 Dec, 2011 16:19:12
simulink Nuno Filipe 1 Dec, 2011 16:19:12
com1 Nuno Filipe 1 Dec, 2011 16:19:12
xpc target Nuno Filipe 1 Dec, 2011 16:19:11
instrument cont... Nuno Filipe 1 Dec, 2011 16:19:11
rssFeed for this Thread

Contact us at files@mathworks.com