|
Do you have an answerto my question Sebastian ?
I will keep the caps to a min.
Please let me know, i did not know about the caps thing.
|
|
|
|
|
ROVIO wrote: file is corrupt, it pops up about 30 times with a window saying Privilaged Instruction.
The file is not corrupt. Although I am not a Delphi/Pascal software engineer... I downloaded the source code at the URL you provided and viewed the source code. The instructions which are privileged are located in this function:
procedure outvalue(value : smallint);
begin
asm
mov dx,0378h
mov ax,value
out dx,al
mov dx,037ah
mov al,00000001b
out dx,al
mov dx,037ah
mov al,00000000b
out dx,al
end;
end;
The assembly instructions are performing raw port I/O which are indeed privileged. You can probably get this software to work by giving it permission to read/write raw I/O ports in protected mode. I would suggest using PortTalk - A Windows NT I/O Port Device Driver[^] to give this application the correct permission mask.
Best Wishes,
-David Delaune
|
|
|
|
|
Good day
Thanks for your post.
I have found an easier way to fix this app.
If you right click the application file, then go to properties, then click on the compatibility tab, click on the Run this program in compatibility mode tickbox, then select Windows 98 / Windows Me and click ok.This fixes the app to be used in XP.
If anyone knows of an better app to control more than 4 servos, directly connected(No hardware eg. servo motor controlers or any other electronic components)to the 8 data lines of the Parallel port please let me know.
Thanks again.
Riaan Deyzel
|
|
|
|
|
Good day.
I have tested the app (Servo Commander in my original link),and noting is happening, i have connected the servo to a 5vdc power source, and the data cable of the servo to the data pin on the parallel port, but nothing happens if i move the sliders, can anyone help me please??
I am still new to programming, and do not quite know what i am doing.
can someone please see what the problem with the app might be, and may it work if i anstall windows 95 rather than my current XP Pro.
Please guys i need help, please reply.
|
|
|
|
|
ROVIO wrote: i have connected the servo to a 5vdc power source, and the data cable of the servo to the data pin on the parallel port, but nothing happens if i move the sliders, can anyone help me please??
I gave you the correct answer in my original post. You cannot perform raw i/o under windows XP.
ROVIO wrote: can someone please see what the problem with the app might be, and may it work if i anstall windows 95 rather than my current XP Pro.
The application is performing raw i/o and failing because XP is executing under protected mode[^] and those instructions are privileged. The assembly code in the software is essentially performing the same functions as _outp, _outpw, _outpd[^] and as the MSDN states:
Because these functions write directly to an I/O port, they cannot be used in user code in Windows NT, Windows 2000, Windows XP, and Windows Server 2003
You have three choices:
1.) Give your application the correct i/o permission mask using PortTalk - A Windows NT I/O Port Device Driver[^] or another similar technique.
2.) Execute the application under Windows-95 or Windows-98
3.) Write a device driver to perform the i/o.
Best Wishes,
-David Delaune
|
|
|
|
|
Good day Dave
Thank you for your post.
I think i will go for option 2 on your list.
You guys are realy good at this stuff.
Thank you for your quick responce.
Regards
Riaan Deyzel
|
|
|
|
|
Good day
Thank you for all your help so far, I never even knew that you can not write directly to a parallel port in XP, i thought the app (servo cammander is faulty.
I found an easier app to give me access to the LPT1 port http://www.embeddedtronics.com/design&ideas.html[^] (userport.zip file [USERPORT])I will install it tonight & test it, but i am sure it will work fine.
Looks like my robotic tank might be up & running in no-time.
1. Does anybody know of an app that control more than 4 servo motors directly from the parallel (LPT) port, because in(Servo Commander)like this http://users.swing.be/philippe.jadin/servoen.htm[^] there is only 4 displays & 4 data line sliders.
2. Can anyone edit the source file to support all eight ports and with all eight sliders?
I do not know how to get the source files to an .exe file, so if someone is daring enough and can do this, please send me the completed.exe file & not the code.
Thank you guys, and i do hope someone can acheive this task.
Have a great day
Riaan Deyzel
|
|
|
|
|
Or use dedicated hardware for the motor controller instead of risking the parallel port because the motors drew too much power and blew out the I/O chip.
That way, you won't have to be doing any privileged I/O (which can only be done in a device driver!), and the SDK that comes with the hardware will make it MUCH easier to control the motors.
A really good example of such can be found here[^].
|
|
|
|
|
Good day Dave.
I am already thinking of using the PhidgetMotorControl HC for my robotic tank, but it works out too expensive to buy a seperate controller just to control 4 to 5 servos.
I think the best bet will be to install windows 98SE on my robotic tank. I do a remote login to control my robotic tank, annd do not like Tight/real or any other VNC app.
1.Is there a way to install the Microsoft Remote Desktop app in Windows 98 Second edition?
2.& will all my apps (eg creative webcam NX software & other camera,wireless card,3g Modem software)work in win98 if they work in XP Pro?
Thank you very much for your post.
|
|
|
|
|
ROVIO wrote: 1.Is there a way to install the Microsoft Remote Desktop app in Windows 98 Second edition?
No. RDC Is an XP or later only feature. There're a number of VNC implementations, you can probably find one that will still work in 9x if you look.
ROVIO wrote: 2.& will all my apps (eg creative webcam NX software & other camera,wireless card,3g Modem software)work in win98 if they work in XP Pro?
Debatable. 9x support is being dropped in a number of apps and drivers.
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
ROVIO wrote: 1.Is there a way to install the Microsoft Remote Desktop app in Windows 98 Second edition?
Nope, not supported on 9x. You'll have to find a third party solution for that.
ROVIO wrote: 2.& will all my apps (eg creative webcam NX software & other camera,wireless card,3g Modem software)work in win98 if they work in XP Pro?
Yes, IF AND ONLY IF you canstill find drivers and software that still works on 9x. Since the entire 9x line of Windows was retired, a long time ago, driver and software support has all bust disappeared.
No, the XP drivers will NOT work, nor should they even install, on Windows 9x.
|
|
|
|
|
Good day
I installed Windows 98SE last night, and i can not believe i paid for that crap back in the day.
Well at least the app (servo commander) worked like a dream.
You were right, almost no XP apps worked in Windows 98SE, so that means, revert back to XP and try to get direct RAW I/O access to the LPT1 port so the app (servo commander)will work in XP.
David Delaune suggested using PortTalk - A Windows NT I/O Port Device Driver[^] to do this, but i had a look, and it seems very complicated.
Please let me know if anyone knows an easier way to get direct RAW I/O access to the LPT1 port.
Thanks to all you geniuses out there for helping out
Regards
Riaan Deyzel
|
|
|
|
|
ROVIO wrote: David Delaune suggested using PortTalk - A Windows NT I/O Port Device Driver[^] to do this, but i had a look, and it seems very complicated.
It does not get much easier than this:
1.) Download PortTalk[^]
2.) Download Servo Command[^]
3.) Copy the Servo.exe executable into the PortTalk folder.
4.) Right click in the PortTalk folder and create a new shortcut which executes 'allowio Servo.exe /a'
5.) Double-click the newly created shortcut.
In under 30 seconds you could be experimenting with your servo motors. It doesnt get much easier than that.
Note that you will need to execute allowio from an administrative account.
Best Wishes,
-David Delaune
|
|
|
|
|
Good day David
Thank you, if the other app fails i will use your method.
I had no clue it is that easy.
Can you perhaps edit Servo commander so that it can control 8 servos, and not just 4 with a mouse or joystick, the topic says control 8 servos, but in the app i can only see 4 sliders?
Thanks.
|
|
|
|
|
Good day
Thanks David Delaune, your method worked perfectly.
All i need now is to be able to control 8 servo's with this app, The heading on this page reads "How to control 8 servo motors with a PC ?" http://users.swing.be/philippe.jadin/servoen.htm[^], but i only see four sliders, am i missing something, or is it possible to edit the app to be able to have 8 sliders controlling 8 servo's?
If anyone know what they imply, or if you can edit the app to have this functionality, please let me know.If anyone is good with programming, please have a look at the source code provided in the link, and see if you can get the app to work with 8 sliders.
Thank you guys, i would still be stuck in the stone age if it was not for the great help you guys give.
Have a great day
|
|
|
|
|
Have you tried the contact link at the bottom of the page?
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
Good day Dan
Yes I have treid the contact link, but did not get an reply.
Thanks anyway.
Regards
Riaan Deyzel
|
|
|
|
|
ROVIO wrote: The heading on this page reads "How to control 8 servo motors with a PC ?" http://users.swing.be/philippe.jadin/servoen.htm[^], but i only see four sliders, am i missing something
Yes, you are missing 4 more sliders.
ROVIO wrote: or is it possible to edit the app to be able to have 8 sliders controlling 8 servo's?
The source code would need to be modified, it appears the application was designed to only operate 4 servomechanisms. The reference to the number 8 in the website you provided is most probably referring to DB25 data pins 2 through 9[^].
ROVIO wrote: If anyone is good with programming, please have a look at the source code provided in the link, and see if you can get the app to work with 8 sliders.
Unfortunately the software you are using was developed with Delphi3 which was released way back in 1997. I have not developed anything with Delphi in many years. I *do* however own a copy of Borland Delphi 3 which I havent used in nearly a decade.
Hmmm, I will volunteer to modify the application for nostalgic purposes. You will have to wait until I get off work and I will make an attempt.
Best Wishes,
-David Delaune
|
|
|
|
|
Good day David
I will appreciate that alot.
Could you please create an .exe file when you are done, because at the moment i have Visual Studio 2008 Standard edition installed, and i have oppened a few source codes, but have no idea what to do with the code to create an .exe file (run file)yet.
Thank you so much
Regards,
Riaan Deyzel
|
|
|
|
|
Visual studio won't compile Delphi. You need the Borland compiler to do that (dunno if there's a free version or not).
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
Riaan,
It was an adventure and brought back some old pascal memories. I modified the servo application and hopefully added the ability to command 8 servos. I have not tested it at all, I simply modified the source code. Perhaps you should say a short prayer before running it.
You can download it here:
Modified Servo Commander[^]
I can only provide limited support. If you need any additional bug fixes or modifications to the application we can discuss the issue through e-mail. I have included the modified source code and also the porttalk drivers.
Good Luck,
-David Delaune
|
|
|
|
|
Good Day David
I have downloaded the .zip file & run the servo.exe file, It looks very good.
I will test the app on the servo,s today after work.
Quick question - Where you put the Hardware Address in the app are those 3 choices 3 different Parralel ports (eg LPT1 / LPT2 /LPT3)
Can i just run the SERVO.exe file, or do i need to do anything something else to run the app.
It works fine here at the office.
Spotted a minor bug in app - when i add the channels 1 - 8 & a few entries down in the table on the right & hit play the blue highlighted box does not seem to move down the list to the next channels down the line & the channels on the left does not move to the corresponding value when it goes down the list.
I will let you know the results tomorrow.
I feel like a kid with a new toy with this app you created.
I have to say, you did a great job,I an very impressed.
Thank you very much.
My personal e-mail address is riaan.deyzel@gmail.com for direct correspondance.
I do not have your e-mail address, but if you send me an e-mail i will reply to that address.
Regards
Riaan Deyzel
modified on Thursday, May 14, 2009 3:08 AM
|
|
|
|
|
Good day David
I have not heard from you in a long time, looks like Code project & your job is keeping you very busy.
I would just like to see if you made any progress with the Servo Commander?
I have made allot of progress with my robotic tank, but it will still be better with your new & improved version of Servo Commander.
Please let me know.
Thank you & regards
Riaan Deyzel
|
|
|
|
|
hi all
Any freeware network simulator tool kit is available for windows and linux ...???/
Regards
Sunny
|
|
|
|
|
[Previously: I am not aware of any software that meets your specs. Most network simulators involve some kind of specialized hardware, so you can just put them between both partners and plug them in on either end. For software solutions, you'd probably need a properly configured machine as a bridge, which also has to be fast enough to manipulate the network messages in realtime. That is why there is probably no free solution as well. Yes, you might receive the SW for free, but the specialized box it runs on costs $$$.]
I stand corrected. Randor has provided you with a link, please check it out.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
modified on Tuesday, May 5, 2009 4:46 AM
|
|
|
|
|