I have an ASUS K601 with Windows 7. The computer comes on and goes to the screen to start normall or repair. It will not start normally. If I select repair, it cannot fix it. I was led to the scrren that says "System Recovery
Options". There are two options, (1) Use recovery tools. Select an operating system, but there is an operating system listed on the screen to select from. Since there isn't an operating system to select from it say's Load Drivers, but
WHICH DRIVER'S DO I SELECT TO RESTORE THE IMAGE? (2) Restore your computer using a systems image that you created earlier, but I did not create one earlier. I tried to reload the operating system with a disk, but the disk drive isn't being
recognized. It will let me go to config screen, but I don't know what to tell it to do. Thank you in adcance for your advise.
Moved byHengzhe LiTuesday, April 19, 2011 3:04 AMForum Cleanup (From:MSDN, TechNet, and Expression Profile and Recognition System Discussions)
- Is
my idea to have a dll generate an event for Matlab simply not possible?
- Is there a mistake in my code?
- Am I choosing the wrong approach, is tehre a better way?
using System;
using System.IO.Ports;
namespace ComInterface
{
// Prototype for MatLab callback functionpublicdelegatevoid AnswerEvent(object sender, string msg);
publicclass RS232
{
static SerialPort port;
publicstatic AnswerEvent matlabCallback;
// Function to setup and open the serial portpublicstatic SerialPort Open(string portName)
{jutsu// Specify port settings
port = new SerialPort(portName);
port.BaudRate = 115200;
port.Parity = Parity.Odd;
port.StopBits = StopBits.One;
port.Handshake = Handshake.None;
port.ReadTimeout = 10;
port.WriteTimeout = 10;
// Open serial portif (! port.IsOpen)
{
port.Open();
}
// Clear runt buffer data
port.DiscardInBuffer();
port.DiscardOutBuffer();
// Register serial port callback function
port.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);
// Just for debuggingreturn port;
}
// Function to read data from external devicepublicstaticint ReadRegister(int addr, AnswerEvent fnc)
{
// Store Matlab callback function (could this be done differently?)
matlabCallback = fnc;
// Device stecific message protocol:// 1. Byte = Status (0x00 = Read)// 2. Byte = Address// 3.-6. Byte = 4 Byte Databyte[] sendMsg = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
sendMsg[1] = Convert.ToByte(addr);
// Send read request to device
port.Write(sendMsg, 0, 6);
// Just for debuggingreturn 1;
}
// Callback function from serial portpublicstaticvoid port_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
byte[] rcvMsg = newbyte[6];
// Read answer from external deice
port.Read(rcvMsg, 0, 6);
// Call event handler function in Matlab// => This leads to System error (Matlab crashes): ".NET unhandled exception: Asynchronous delegate invocation is not supported."
matlabCallback(port, BitConverter.ToString(rcvMsg));
// What happens here? Does program go to matlab and never come back? Is there another way to generate an event?// Better Question: Is MatLab still waiting to be called back???
}
}
}