Showing posts with label exchange. Show all posts
Showing posts with label exchange. Show all posts
Sunday, March 1, 2015
How to exchange data with a running SIMULINK model from MATLAB workspace
I have a SIMULINK model to filter and process sensor data. I wanted to access some of model data from MATLAB workspace while the model was running.
How-i-fixed-it:
In my simulink model i added a non-blocking UDP receive block, a triggered subsystem ad a UDP send block.
The Status output of the UDP receive block triggers the subsystem which contains the UDP send block and received as Input the model data i want to send to the workspace.
In the workspace i create a UDP object to communicate with the UDP blocks in the SIMULINK model.
When the model is running, i send just a single byte on UDP from Workspace to the UDP Receive to Trigger the send. Next step is to read the desired number of bytes from the udp port in the workspace.
I found out, that the timing of this solution is not very performant. When the model is very busy (or at least the CPU is), then there can be significant delays in the model sending out the data on UDP. I think this does not work for real-time Systems, but its a simple solution to get it working.
Read more »
How-i-fixed-it:
In my simulink model i added a non-blocking UDP receive block, a triggered subsystem ad a UDP send block.
The Status output of the UDP receive block triggers the subsystem which contains the UDP send block and received as Input the model data i want to send to the workspace.
In the workspace i create a UDP object to communicate with the UDP blocks in the SIMULINK model.
When the model is running, i send just a single byte on UDP from Workspace to the UDP Receive to Trigger the send. Next step is to read the desired number of bytes from the udp port in the workspace.
I found out, that the timing of this solution is not very performant. When the model is very busy (or at least the CPU is), then there can be significant delays in the model sending out the data on UDP. I think this does not work for real-time Systems, but its a simple solution to get it working.
Friday, February 27, 2015
ISS and OWA Damaged on Exchange 2007 Server
I had a really nasty crash on my Exchange 2007 server the other day.
Here is the Technet "Disaster Recovery Procedures" to help you fix a crash:
http://technet.microsoft.com/en-us/library/aa998890(EXCHG.80).aspx
I was able to use the recovery tools to fix the databases, but OWA and IIS were toast.
You can recover your database with Eseutil /R (Recovery Mode).
See help here:
http://technet.microsoft.com/en-us/library/bb123479(EXCHG.80).aspx
One of my first issues was to repair WMI. That worked fine, but then IIS was still damaged.
Here is a batch script that i found that fixes that:
Then I had to fix the transport database. See help here:
http://technet.microsoft.com/en-us/library/bb217853(EXCHG.80).aspx
The next step was to remove and re-install IIS and then reinstall the CAS role and use the Exchange shell to re-install OWA and ActiveSync.
Technet help on that here:
http://support.microsoft.com/kb/320202
None of this worked, and my OWA and ActiveSync are still down.
Im using the Test-OwaConnectivity cmdlet to test the OWA that I have now:
http://technet.microsoft.com/en-us/library/aa997682(EXCHG.80).aspx
It tells me this:
The test was unable to establish a connection to Outlook Web Access.
Not very helpful.
OAB (Address book) seems to work, so I dont think its IIS.
I did find two technet MVPs that say that if you screw up IIS on Exchange 2007 that you may as well just format the box and start over. Great....
Ill post more as I go along.
Read more »
Here is the Technet "Disaster Recovery Procedures" to help you fix a crash:
http://technet.microsoft.com/en-us/library/aa998890(EXCHG.80).aspx
I was able to use the recovery tools to fix the databases, but OWA and IIS were toast.
You can recover your database with Eseutil /R (Recovery Mode).
See help here:
http://technet.microsoft.com/en-us/library/bb123479(EXCHG.80).aspx
One of my first issues was to repair WMI. That worked fine, but then IIS was still damaged.
Here is a batch script that i found that fixes that:
net stop winmgmt
c:
cd %windir%system32wbem
rd /S /Q
repository
regsvr32 /s %systemroot%system32scecli.dll
regsvr32 /s
%systemroot%system32userenv.dll
mofcomp cimwin32.mof
mofcomp
cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in (’dir /b
/s *.dll’) do regsvr32 /s %%s
for /f %%s in (’dir /b *.mof’) do mofcomp
%%s
for /f %%s in (’dir /b *.mfl’) do mofcomp %%s
mofcomp
-n:rootcimv2applicationsexchange wbemcons.mof
mofcomp
-n:rootcimv2applicationsexchange smtpcons.mof
mofcomp
exmgmt.mof
mofcomp exwmi.mof
net start winmgmt
Then I had to fix the transport database. See help here:
http://technet.microsoft.com/en-us/library/bb217853(EXCHG.80).aspx
The next step was to remove and re-install IIS and then reinstall the CAS role and use the Exchange shell to re-install OWA and ActiveSync.
Technet help on that here:
http://support.microsoft.com/kb/320202
None of this worked, and my OWA and ActiveSync are still down.
Im using the Test-OwaConnectivity cmdlet to test the OWA that I have now:
http://technet.microsoft.com/en-us/library/aa997682(EXCHG.80).aspx
It tells me this:
The test was unable to establish a connection to Outlook Web Access.
Not very helpful.
OAB (Address book) seems to work, so I dont think its IIS.
I did find two technet MVPs that say that if you screw up IIS on Exchange 2007 that you may as well just format the box and start over. Great....
Ill post more as I go along.
Subscribe to:
Posts (Atom)