Showing posts with label Programming/debug technique. Show all posts
Showing posts with label Programming/debug technique. Show all posts

Tuesday, January 7, 2014

OPAL RT-Lab Debug

OPAL RT-Lab is a sophisticated super computer with numerous input/output channels and communication cards. Its operation system is redhat. Normally the simulators are connected to LAN and PCs at the same subnetwork can automatically find them: targets. From time to time, with the change of IP addresses of networks, PCs now lost connection with RT-labs.

The way to setup OPAL RT-lab is to treat it like a PC by equipping it with a monitor, a keyboard and a mouse. Reboot the machine and we are into the redhat operation system. OPAL RT provides good instruction manuals to facilitate the setup. In this case, we need to configure the network, type an IP address and make sure the subnetwork IP is the same as the host computers.

Reboot and test the connection using PING. If the host PC can get response from the supercomputer, it is done.

Wednesday, October 16, 2013

Matlab Simulink Errors

The Matlab 2010a/simulink. installed cannot work when there is an embedded function. RT-lab does not adopt Matlab function and only adopts embedded function. The reason: embedded function will be compiled to be mex file and the computing speed is much faster this way.

Simulink complains it does not recognize eml, in addition, it cannot find mexopt.bat. It suggests the users to run mex-setup. Running mex-setup pops some option to select C compilers: one is 2010 Visual C and the other is 2008 express. The first compiler won't make the simulink file run. Change it to the second compiler => it works.