|
thank u for all the info Luc...i just wanted to add tht is these are the only steps that i hvae to follow...or any other instructions also ..thanks regards
|
|
|
|
|
You're welcome.
I can not possibly predict everything you might need in your further development,
that is part of the planning (guessing?) stage. You are in the best position
to know the requirements, the context and the status...
|
|
|
|
|
i think i mail tht java code also ..exactly tht will be in C# but u meant ..tht the code for controlling the servos will be in tht also right..when we open port then we pass on the intructions ..for the movement right..something like tht..or not..
regards
|
|
|
|
|
|
in short how we move servos from software applications like do we have to map the valus for 0-255 or 0-128 depending on the baud rate how ? please explain
|
|
|
|
|
If your target contains one (or more) servos, you should provide a command to
select the servo and give it a new position.
As explained before you either use textual commands (easier to use and debug,
slightly more difficult to receive and decode) or binary commands.
That's up to you.
The baud rate is not really relevant, except for one thing: you need sufficient
bandwidth to pass all the information in time (you can not send 100 bytes per
second over a serial line that operates at 110 Baud !) If you need to download
(PC-to-target) a lot of data (say a speed ramp-up/ramp-down table) or maybe the
target's code itself, then you might want to use a relatively high baud rate...
Please keep in mind that receiving serial data on PC-side is somewhat tricky
(independent of baud rate): a PC is very busy with a lot of processes and threads,
so it is not always ready to capture incoming data. Therefore I recommend you
limit the target-to-PC communication to a few messages per second, and avoid
them to be time-critical.
This also means that low-level algorithms (such as move until micro switch
gets closed) are best handled by the target in autonomous mode, without
involving the PC (so PC says "move till switch closes", target does whatever
it takes to do that, then target reports "OK, did it, switch now closed".
Hope this helps, and fits the plans you have.
|
|
|
|
|
yes thnx alot i will ..follow basic ..as much firstly if its done if i find any problems i will reply u in one day or 2 thnx ..
|
|
|
|
|
I need to write functions that will allow the user to change network settings ( we are doing this as part of an Embedded XP project and need to provide our own interface. )
Can anybody direct me to where I can find documentation on how to do this?
I realize I'll have to write the code myself and probably end up calling Windows APIs but I can't find anything helpful out there.
TIA - Jeff.
|
|
|
|
|
|
Thanks for your help. That worked great. Now on to my next problems:
Getting/setting the proxy settings
Setting the account a machine will log in as.
TIA - Jeff.
|
|
|
|
|
Hi,
can anyone help me , how can i change title of the folderBrowserDialog in c# .
thanx.
-- modified at 13:57 Thursday 5th July, 2007
Praveen Sharma
|
|
|
|
|
|
I guess you will have to try and use P/Invoke to call the Win32 function
SetWindowText() in user32.dll
|
|
|
|
|
Use SetWindowText
The SetWindowText function changes the text of the specified window’s title bar (if it has one). If the specified window is a control, the text of the control is changed.
but to use this function u have to use some other functions too
i suggest u to download and install "API-Guide" and look windows functions in it
|
|
|
|
|
Hey everyone,
This may be a very simple (hopefully it is) question and answer, but I'm having trouble figuring this one out.
I want a SaveFileDialog and an OpenFileDialog to start in a chosen directory. Seems simple enough, I'll just create the directory in case it doesn't exist, and then set the InitialDirectory property of the dialog -- but for some reason it's still opening in the last directory that I had browsed to in a previous dialog.
Here's the code:
private const string ATF_FILTER = "AOI Template Files (*.atf)|*.atf";
private const string C_SAVE_DIRECTORY = @"./Saved Templates";
private void Save_Click(object sender, EventArgs e)
{
Directory.CreateDirectory(C_SAVE_DIRECTORY);
SaveFileDialog diag = new SaveFileDialog();
diag.InitialDirectory = C_SAVE_DIRECTORY;
diag.DefaultExt = ".atf";
diag.Filter = ATF_FILTER;
if (diag.ShowDialog() == DialogResult.OK)
{
DrawBox.SaveTemplate(diag.FileName);
}
}
Any idea what could be going wrong?
Thanks,
Phil
|
|
|
|
|
PhilDanger wrote: Any idea what could be going wrong?
Relative path perhaps? As someone pointed out in the last few days, best practice is to use absolute paths.
|
|
|
|
|
Turns out it works correctly when I switch it from a forward slash to a backslash:
private const string C_SAVE_DIRECTORY = @".\Saved Templates"; //works!
Could you elaborate a bit on the benefits of using an absolute path over a relative path? My intuition and previous web experience tells me that using an absolute path would not be the best solution, but perhaps times have changed.
Thanks,
Phil
|
|
|
|
|
PhilDanger wrote: benefits of using an absolute path over a relative path?
Well they are "absolute". Relative is subject to the Current Directory so it's only as good as a guarantee that it hasn't changed or is not something other than what you expect it to be.
|
|
|
|
|
Hi,
it depends on FileDialog.RestoreDirectory which by default is false, but
it seems you want it to be true.
|
|
|
|
|
Hello,
Has anyone come across the following problem? We are making a client/server application in Visual Studio (C#) that runs on the latest Microsoft Platforms on both the web-servers and the database server.
The users are supposed to download their clients and install them locally. We are usingthe smart client technology to ensure that everyone has the right framework and the correct versions of the client, and this worls perfectly for users who run XP.
However, if the user runs Vista locally, it all falls apart. The version check runs much slower, and when the download finally starts, it goes VERY slow and eventually stops completely.
Anyone have any clue what is going on here? We have tested on several vista installations, and we gat the same results every time.
Any replies would be greatly appreaciated.
Baard Dahl
|
|
|
|
|
I'm working with VS2005, i create Crystal report bind it with DateSet and inside the form i put crystalreportviewer to display report data, after running project i foubd that crystal report is empty but DataSet has data inside it, i tried many time to check why this happend but i can't find any solution (note: i made DataSet with wizerd and crystal report too, so i didn't write any code).
please any one know why this happend please tell me
|
|
|
|
|
You have been here long enough to have read the forum guidelines. Do not use words like 'urgent' or 'help' in your message titles.
______________________
stuff + cats = awesome
|
|
|
|
|
Yep. Shame on him
"That's no moon, it's a space station." - Obi-wan Kenobi
|
|
|
|
|
try to search on google
http://www.vbdotnetheaven.com/UploadFile/sushmita_kumari/Report201242006041121AM/Report2.aspx?ArticleID=d6184a33-ee75-495d-9ef3-1fe3e9a24632
http://www.crystaldevelopersjournal.com/artman/publish/article_132.shtml
may be these articles help u out
|
|
|
|
|
Thanks for your help,I see this link and i didn't found any diffrance between what i did and what wrote in this page, i want to know if that maybe VS setup error?
Thanks again
|
|
|
|