LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Formula :Matlab script ?

Hello

I'm trying to run a matlab(R12, ver. 6.0) simulation through labview(ver.6.1)
but i'm having some difficulties:

1- when i open the vi a new matlab window opens even if matlab was already
launched. if i close this new matlab window then i get error when
running the VI. So, i have to close the VI and re-open it to get
it to work which is not convenient.

2- The main problem i have is that i call a simulink file inside the matlab
code something like: sim('filename',stoptime) . However, when i run the
VI i hear a beep sound indicating something wrong but i don't see any
error messages in matlab nor in Labview. Basically, the simulink file
does not run. Also, if i call another matlab m-file from the origin
al
m-file which i included in the matlab script node, i get the same thing.
Does this mean that i cannot use simulink or call other m-files, is there
a way around it ?

thanks in advance
0 Kudos
Message 1 of 3
(2,809 Views)

I have not done much work with Simulink in LabVIEW. However, I did find some resources for you. This Tutorial discusses one way to interface LabVIEW and Simulink and it sounds rather different from what you described. This Example Program sounds like it may be of help also. Try searching for LabVIEW and Simulink on NI's web page and you may find a lot more to help you. I hope this gets you going in the right direction.

J.R. Allen
0 Kudos
Message 2 of 3
(2,808 Views)

Thanks I'll check these links.

I also hope anyone who's worked on this might share his experience.



JRA wrote in message news:<506500000005000000F1F40000-1042324653000@exchange.ni.com>...
> I have not done much work with Simulink in LabVIEW. However, I did
> find some resources for you. > "http://zone.ni.com/devzone/conceptd.nsf/webmain/196C59B70896492686256AF0005280C0?opendocument">This
> Tutorial  discusses one way to interface LabVIEW and Simulink and
> it sounds rather different from what you described. > "http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B4D79A403D5E6D20E034080020E74861&p_node=DZ53042&p_submitted=N&p_rank=&p_answer=&p_source=Internal">This
> Example Program  sounds like it may be
of help also. Try searching
> for LabVIEW and Simulink on NI's web page and you may find a lot more
> to help you. I hope this gets you going in the right direction.

0 Kudos
Message 3 of 3
(2,808 Views)