|
Hi,
I doubt a PC-based solution will ever be satisfactory. A PC (more accurately Windows) is not a real-time system, hence you will not be able to get the step times sufficiently accurate and constant (or accurately ramping up and down) so the motion will be erratic, and so will the sound be that your stepper motor is going to produce.
The right solution requires a microcontroller that takes care of the stepping; in such a solution the PC is used for the user interface, and passing high-level commands (such as stepping frequency, number of steps) to the microcontroller, which has to execute the steps with accurate timing.
As an added bonus, the interface becomes much simpler: instead of connecting the motor to the PC, the only thing connected to the PC now is a low-energy microcontroller, possibly through an RS232C serial port or something similar.
|
|
|
|
|
Hi
Thanks for the quick replies..
The stepper will have reduction gears so the steps will be very very small.
Type of steps will be added later with other things...as I say..working slowly and trying to learn.
I will look at the timer idea though..not sure how to work it but experimenting works..
John
|
|
|
|
|
Hi John,
reduction gears tell me the motor steps will be many, so my accurate timing concerns remain.
Good luck anyway.
|
|
|
|
|
Hi Luc
There is going to be buffering after the LPt1 port.
As long as it moves the motor in very small steps....I think all should be ok.. ( The cap works not so bad now with just a DC motor and reduction gear..I just want a bit more control..
John
|
|
|
|
|
Hi,
I am developing an application for Windows Mobile Pro 6. I realized that a picturebox's GotFocus and LostFocus events are not functioning. I tested it with the code shown below. Neither msgboxes popped up nor mousemove event got fired up but just click event. I have developed this Mobil App. under Windows Vista 64. What would be the reason for such problem? THANX.
Private Sub PictureBox5_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox5.GotFocus
MsgBox("Gotfocus") 'not working
End Sub
Private Sub PictureBox5_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox5.LostFocus
MsgBox("LostFocus") 'not working
mtt.Dispose()
End Sub
'the below procedure suppose to fired up when we go over the picture by mouse but it is fired up when I click the picture
Private Sub PictureBox5_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox5.MouseMove
Call ToolTip("Hello World", sender)
End Sub
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Are you sure you've got the mouse on PictureBox5??
|
|
|
|
|
Dear all
I am having xml file that look as below
<people>
<person id="001">
<name> ABC </name>
<age> 16 </age>
</person>
<person id="002">
<name> XYZ </name>
<age> 26 </age>
</person>
<person id="003">
<name> AAA </name>
<age> 26 </age>
</person>
</people>
Now i want to read every name and age from the xml file.
The code used as
Dim XMLDoc As New DOMDocument30
Dim NodLst As IXMLDOMNodeList
Dim Node As IXMLDOMNode
Dim Nod As IXMLDOMNode
Dim nodCnt As Long
Dim Data() As String
XMLDoc.async = False
'Loading the XML file on C drive
If XMLDoc.Load("D:\XML\123.xml") Then
'==========================
'Assigning root node to the node list variable
Set NodLst = XMLDoc.selectNodes("/People")
ReDim Data(NodLst.length)
For nodCnt = 0 To NodLst.length - 1
Set Nod = NodLst(nodCnt).selectSingleNode("Person")
Data(nodCnt) = Nod.Text
Set Nod = NodLst(nodCnt).childNodes(0)
'===========================
'Appending data inside "from" to "to"
Data(nodCnt) = Data(nodCnt) & vbTab & Nod.Text
Text1.Text = nodCnt
Text3.Text = Data(nodCnt)
Next nodCnt
Else
MsgBox ("Can't load file")
End If
The result is
ABC () 16
where as i need Name="ABC" & Age="16"
Please help
Thanx in advance...!!!
Shazz here to help you...
|
|
|
|
|
It appears that you're relying on the Nod.Text property to format the field names and values for you. Don't. Just get the Name and Age values for each person and format the output string yourself.
|
|
|
|
|
Hi all,
In my application video is not playing. i am using <embed> tag
here it is..
<embed src="<%=VideoPlay>" quality="high" allowfullscreen="false" allowscriptaccess="always" flashvars="&height=240&width=320&shuffle=false&repeat=list&autostart=true" style = "width: 480px; height: 270px;" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
Here src="<%=VideoPlay>" is this i get flv format file.but video is not playing.
please help me.
JohnDas
|
|
|
|
|
You may want to ask this question in the Web Development forum. I can't see anything that has to do with VB.NET or the .NET Framework.
|
|
|
|
|
Hello friends,
How can i create a folder having system date and time. After that i want to move some files to that created folder?
when i run my application, one folder has to be created having the present time and want to copy some files to that folder.
How can i do these..
Thanks and regards
dens
|
|
|
|
|
Have a look at the SYSTEM.IO namespace it does everything you need.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi,
At the time of creating Registry Key in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run the error message shows "Attempted to perform an unauthorized operation.". I am developing application in Vista Environment whether UAC is Enable.
Thanks
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
First don't double post
Why do you need to write to this registry key? Its considerd bad practice.
This sounds alot like you are trying to write some sort of malware.
So without more explanation to what you want and why I doubt anyone will answer your question.
|
|
|
|
|
I want to set application to Startup for running at windows loading.
If you have any idea for that help so Help me.
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
I'v never done this before so I could be wrong (and I don't use vista so might not work in vista) but isn't it enough to set a shortcut in the 'startup' folder to your program (wich I think you can do within the setup).
There is no need for a registry entry.
And once more unless you explain why you want this I doubt you'll get more info than that.
It's more and more starting to sound like a malware program and nobody will help you write one off those.
|
|
|
|
|
The only way your user can write to that key is if they run your application as an administrator.
|
|
|
|
|
I am already login with Administrator account.But the problem is generat when UAC is enable.
mailto: anubhava.prodata@gmail.com
modified on Wednesday, December 10, 2008 11:51 PM
|
|
|
|
|
No, your not. Admin level accounts are still running as normal users, until you need the Admin level access. Right-click the app's icon and pick "Run as Administrator" to really run it as an admin.
|
|
|
|
|
Hi,
I have found a idea for Creating registry entry in HKEY_LOCAL_MACHINE in Vista whether UAC is enable.
You can use Exe with MANIFEST as admin Previleges. Or Run the programme as Administrator.
Best Regards
Anubhava Dimri
mailto: anubhava.prodata@gmail.com
modified on Monday, December 22, 2008 1:03 AM
|
|
|
|
|
Good luck with that. I highly suggest creating a normal user test account on the machine and testing your application under that account instead of the one you used to develop the app under.
|
|
|
|
|
hellooo frds plzz help me out
I want to retrive data from a stored procedure after execution of it into recordset
Stored Procedure is executing but in vb its giving error "Operation is not allowed when object is closed" at line no 10
below is my vb code plzzzzzzzzzz help mee its urgent
1 Dim con As New ADODB.Connection
2 con.Open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=CM;Data Source=(local)"
3 Dim cmd As New ADODB.Command
4 cmd.ActiveConnection = con
5 cmd.CommandType = adCmdStoredProc
6 cmd.CommandText = "Sp_selectlocation"
'Dim rec As New ADODB.Recordset
7 Dim rec As ADODB.Recordset
'rec.CursorType = 3
'rec.CursorLocation = 3
'rec.LockType = 1
'rec.Open cmd
8 Set rec = cmd.Execute
'Navigate through the multiple recordsets..
9 While Not rec Is Nothing
10 While Not rec.EOF 11 For i = 0 To rec.Fields.Count - 1
12 Debug.Print rec.Fields(i).Name & ": " & rec.Fields(i).Value
13 Next
14 rec.MoveNext
15 Wend
' Move to the next recordset..
16 Set rec = rec.NextRecordset
17 Wend
' ‘rec.Close
18 con.Close
Thanks in advance plzzzzzzzzz help me out
Parag
modified on Wednesday, December 10, 2008 4:46 AM
|
|
|
|
|
First, it's not "urgent". Second, you seem to have something leaning on the "z" key. Remove it please.
It looks like your connection isn't really opened. You may want to check for this before you call your Execute method or single step through your code, line-by-line, checking what's happening yourself.
|
|
|
|
|
How to USE TAPI in vb.net
I want to develope a software that can dial a phone and when answer the B party play a wave file automatically.Please help me....
|
|
|
|
|
Phone spam program?
Do you have a specific question, because no one here is going to write your program for you?
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|