AnsweredAssumed Answered

vrf ARRAY DATA MANIPULATION

Question asked by gurday on Dec 9, 2003
Thomas.Mitchell@Autoliv.com wrote:
> I have a question for all of the experts on using Matlab in VEE.  I'm
> trying to import some Matlab code into my VEE program.  We're decoding an
> Manchester encoded digital signal and one of our engineers wrote a Matlab
> script to do this.  As part of his script, he reads and writes to excel
> from Matlab.  I'm assuming with some ActiveX control.

from your code snippet below it appears to use the Excell Link Toolbox.
Not at all sure that Matlab can do ActiveX.

>
> When I copy and paste his script in my program, it runs fine until it gets
> to the point where it tried to read the data from excel.  I haven't tried
> the write section yet, but I'm sure it will not work in its present form.
>
> %Import Excel lookup table to convert digital messages from hex to decimal
> format
> [xlsdata xlshex] = xlsread(' Output_02.xls');
> for j = 1:length(hex_data_message),
>     accel_dig(j) = xlsdata(strmatch(hex_data_message(j), xlshex));
> end

Are you using the Matlab Script that comes with VEE or have you linked
to a full install of Matlab? If the former you will have problem
since script doesn't include Excel Link.

If the latter- do you have Excel Link toolbox available?

Stan


--------------------------------------------------------------------------
Stan Bischof  Agilent Technologies  707-577-3994  stan_bischof@agilent.com
--------------------------------------------------------------------------

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes