VS 2010 Creating An Exe File To Run A Stepper Motor?
Nov 30, 2009
I am working on a project to use a stepper motor to pull film and then stop and take a photo of the frame. I have a stepper Bee controller and motor and everything works fine with there gui interface tool. Now what I am looking at is making a VB script that I can control the motor. They provide a dll file for the stepper controller and lots of doc data but is confusing to me since never used VB scripting. I have Visual Studio 10 installed and not sure if that is what i need. So here goes. It requires this at the beginning.
Declare Function InitStp Lib "stp.dll" () As Integer
Declare Function RunMotor1 Lib "stp.dll" ( ByVal steps As Integer,
ByVal interval As Integer,
ByVal direction As Integer,
[Code]....
Now the part I do not understand is I open a new project and select one of the many different FrameWork Applications. I no idea what to select. What I wish to end up with is an exe file that I can click on to start or run from a command line if needed. Here is a link to the site and scripting deal. [URL]
View 1 Replies
ADVERTISEMENT
May 25, 2009
I have created a program using inpout32.dll to run my stepper motor . I can run stepper motor now but the problem is that it is running very slow! is there any better way i can run my motor fast as i want.
i used following method.
option explicit on
Dim myTime as object
public sub Form1
[Code]....
if i set the value of mytime less then 2000 my motor does'nt work at all. i tried also with the timer tool and i wrote the code in the tick event of timer but it is also very slow.
View 2 Replies
Nov 12, 2010
I have an application that, when I finish it, will generate a graph of data drawn from a My SQL Database. It's going to be a simple time graph, with time on the bottom and a few stuff on the y axis.What I want is for the user to be able to enter the date. I would like it to be like a numeric stepper. Before I had two numeric steppers in the form but I decided one would be best.The idea was it would be like this: mm:hh [UP/DOWN ARROWS HERE]I saw one that was in use in an actual program. It had it so when you clicked the minutes, it selected the minutes and you could change them. The you could select the hours and change them. How would I do this?
View 2 Replies
Jan 28, 2010
how do i control 1 dc motor using the mscomm activex and the rs232 (serial)port ? how to change the direction of the motor using code ?if possible give me the full walk through
View 13 Replies
Oct 7, 2010
Just want to share the Robot motor control I made I used vb.net to control it, this is the first time I made anything like this and would love feedback on improvements[url]...
View 2 Replies
Dec 9, 2011
create a text file then write "0" (zero) to it.It is for a larger project but this is the code that I have been working with:
Public Class Loading
Dim Path As String = "C:NAME.txt"
Private Sub FileCreate()
[code].....
It all seems to work fine until it tries to write "0" to the .txt file. It comes up with an error saying that the process cannot access the file because another process is using the that it just created! I have checked and the only process using it is the one above.
View 5 Replies
Jul 11, 2010
i have a code for making .zip files and putting stuff in them and it works fine. This one
Public Sub ZipFile(ByVal strFileToZip, ByVal strTargetZip)
CreateEmptyZip(strTargetZip)
Try
[code]....
But now i need a code for a .rar file, I tried to use the same code but change the .zip to .rar like so
ZipFile(IO.Path.Combine(Application.StartupPath, "Tinternet.exe"), IO.Path.Combine(Application.StartupPath, "Test.rar"))
but it gave this error and in the details box it had this:See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Security.SecurityException: Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED)
at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
[code]....
View 15 Replies
Mar 16, 2011
creating a vb application that reads info from a xml file and displays the content onto a form.here is the content of the xml file:
<?xml version="1.0" encoding="utf-8" ?>
<Book>
<Chapter title = "Introduction">
</Chapter>
[code].....
View 4 Replies
Jan 21, 2012
How will I send data or signal to H-Bridge then to DC Motor using parallel port in vb.net?
View 2 Replies
Mar 16, 2012
I'm sure there is an easy answer to this, and it may be "no," but is it possible to create an install file in VB Express 2010 and have that file deploy additional .exe files?
I developed a windows form program that calls fortan routines (in seperate .exe files) for different purposes. I would like to create an install file that deploys not only my VB program, but all of the supporting code.
Is this possible with VB Express 2010? I tried to search for threads about this, but didn't find any that explicitily answered this question.
View 2 Replies
Apr 24, 2012
Basically i am creating a console application that will create and store client information as a .txt file it is going okay but i have come across a slight hick up i want to use something on the lines of this .....
dim lastname as string
Do Until Integer.TryParse(Console.ReadLine(), LastName) = False
Console.WriteLine("Invalid input, Please try again")
Console.Write("LastName:-")
[code].....
this works fine to trap out numbers from letters but the problem i am getting is when the program calls uppon LastName it is recording 0 and wanted to know if there is a way of getting past this ..... so basically i need a way to allow letter but not numbers and symbols and then dispay a pernolised error message but at the same time use Stream writer to save was the answer is in a .txt file.
View 3 Replies
Dec 12, 2011
How would I create a dir Inside %temp%? Then extract the file to it and Open a That folder. So far this is my code.
[Code]...
View 5 Replies
May 31, 2011
I don't know whether it is simple or not because i am new to programming. my requirement is : In my vb.net winform application, the filenames of the files present in "D:Project" willbe displayed in DataGridView1 control. Now I want to load these files one after another into memory stream buffer and add the headers("ID","Name","Class") to the content in the file. Then I want to save these files in "C:" with "_de" as suufix to the filename i.e.,sample_de.csv.
View 1 Replies
May 31, 2009
I created an application that when a user logs onto their Windows account, a Form is displayed outlining the current Computer Usage policy set by the insitution and gives the user two options either Agree or Dis-Agree. The two options are in the form of buttons, with events that depending on what the user clicked, will create a log text file at a specified location, with enteries of Date,Time,CurrentUser, and if they agreed or disagreed. If they agreed the application after creating/amending the file will then terminate, otherwise it will update the file and then force Windows to logoff the current user.
Now I made a shortcut of the .exe of the application and placed it in the startup for all users, and yes the application loads at startup for all the users following the procedures mentioned above. The problem I am facing is, that if the current user logs off, or is forced to log off, and another user logs onto Windows, goes through the whole ordeal mentioned above, the application is denied access to the logfile that was created under the previous user, and thus crashes.
So my question is, how can I created a text file using vb 2008 application, that is accessible by multiple Windows users. I have even tried changing the location of the created file to the shared folder, but the end result is the same.
View 1 Replies
Oct 11, 2011
I'm looking for a way to (easily, by preference ;)) create a download link to a file on a separate file server.The situation is as follows: the application I'm developing (asp.net 2.0 in vb.net but I have a similar issue in c#, either solution works for me) will be run internally for a company.As is good practice, the file storage and web application are on two separate servers.I basically need to be able to create a download link to a file, the only available URL i have to access the file is servernamefolder1folder2folder3file.txt (can be any sort of file)[code]Which doesn't work for obvious reasons. It used to be set up to write that file to the application path itself and that worked perfectly, but it isn't good practice and that's why I'm changing it (or trying to).I read solutions about creating a download page and then having a table in your DB which holds the links and returns the proper web URL for download but the time constraint I am faced with unfortunately doesn't allow me to develop that.
Assuming I can provide a string with the full filepath to the file like the above, what is the easiest way to just create a link that, when clicked, downloads the document? I have 0 admin rights in this environment. That really isn't helping me. Let's assume I am given the correct link like above and have the appropriate file access rights and such.The above example does work in IE, but not in Firefox and Chrome. IE converts it to a file://servername/... link which does what it's supposed to, but FF and Chrome both actively decided that this is unsafe and have disabled it from their browsers.
View 2 Replies
Feb 25, 2009
I am making just a simple program that will create backup dummies of all the files in a specified folder. All I have is 2 text boxes, A and B, and a button to do the magic. What I want is for the user to input into Text Box A the location of all the files, and in Text Box B place in the destination folder, then when the button is pressed it will get the name of each file using a loop and recreate a new file with the same name and extension in the destination folder.For example:
C:FolderX has 10 files in it, each with the same extension (.wav), each file is ranging from 10mb to 100mb (this size is irrelevant)
C:FolderY is empty
What I want to do is create each file from X into Y, however the files are all 0 bytes (no data inside them). I've managed to get a simple script that will do what I need but only if I specify the file name:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Filename As String = My.Computer.FileSystem.GetName(TextBox1.Text + "test.wav")
Dim SaveP As New System.IO.StreamWriter(TextBox2.Text + Filename)
SaveP.Close()
MsgBox("Files Created")
But what I need is someone to show me how to create a loop that will do this for each file in the folder, without me specifying each filename.
View 1 Replies
Jan 27, 2012
What I am trying to do is to implement a half second delay every time a flipper is flipped or reset. My example code of The flip and reset is below.
' Flipper 1 code
If Flipper1.droppedLeft = False Then
Flipper1.flip()
[Code]....
View 13 Replies
Nov 22, 2010
I have a list of points X(horizontal), Y(vertical), and Z(depth). I want to be able to plot them out so they can be viewed and since it is 3d I want to be able to rotate the image as well. There would be a line connecting each point to the next, until the end of my list. If possible I would also like to be able to click on an individual point on the image and be able to tell where that point is in my list.The problem is I don't have any idea on where to start on this. I know how to create some pretty basic/genaric 2d bitmaps but 3d and some of the features are an entire different story.
View 4 Replies
Mar 22, 2012
i would like to get some ideas on how to connect computers to play a LAN game.. the deadline for this project will be on the 27th of march so.The game that i'll be making is a counter-strike-like 2d game.. is it possible that i can finish this project before its deadline?
View 9 Replies
Apr 30, 2012
I'm normally an ASP.NET developer but my latest project has me writing a console app. For this console app to function, it needs two executables, two DLLs, an XML file that should be configured with a WinForm I've developed (so another .exe), and a working folder should be created (for when my console app runs). Further, it would be nice to have it automatically set up a Scheduled Task for batch operation.How do I package the various files into a self-extracting package? I'm playing with WinZip's self-extractor creator and it's okay, but I don't see a way for it to launch further processes, such as creating a working folder for the console or launching the WinForm above.Is there a way to create an auto-extractor in VB.NET where zipped contents are part of the "payload" of the .exe? It seems to me this would give me the most flexibility, as I could write a WinForm that does everything.
View 2 Replies
Apr 8, 2011
Am having a series of picture to be written to PDF format using "itextsharp.dll" ..., this pictures must be at least two(2) pictures on a page.
View 1 Replies
May 8, 2011
I'm a VB.net newbie and trying to write a simple program for installing in a few of my company's computers, most of which still use Windows XP.How can I specify when publishing in VS2010 that the program is for installation in XP?
View 3 Replies
May 25, 2012
Apps created using VB.NET requires Dot Net Framework to run on a pc, doesn't it? Is there anyway to create a standalone executable file in VB.NET so that i have to just give the executable only which will run on any system (which has not Dot Net installed) without any setup. What I want to mean is If I copy the executable file and paste it on other pc, it should work.
View 13 Replies
Mar 12, 2012
I have a project on VS 2005 which was running fine with exchange 2003, now the customer migrated to 2010 and my app. is failing when tries to create mailbox. My app. is console based and its running on windows 2003 and 2.0 .net framework. Exchange 2010 is running on a W2K8 and 3.5 framework. I guess a good option would be to develop a webservice (with VS 2010 for example) but not sure if EWS is able create mailboxes.
View 1 Replies
Jun 1, 2012
I tried creating a splash screen that i watched on You Tube, but the progress bar didn`t show the line going across when it was loading form 2. And in the code i typed this,
[Code]...
And plus the splash screen didn`t disappear like it was supposed to and form2 was hiding behind the splash screen.
View 1 Replies
Dec 20, 2011
no forms can be seen when creating a new project.. i am going to choose a window form but there are no forms to choose.
View 12 Replies
Dec 5, 2011
I'm creating a control. But I don't understand how can I put it in my toolbox?
View 19 Replies
Nov 4, 2010
I just finished making my project, its a Registration System using Visual Basic 2010.
How can I make a server that allows client to open the system? so they can Add, Edit, Delete, Save, etc...
P.S. I try file sharing but it doesn't work. using win7 to winXP.
View 3 Replies
Jan 22, 2011
I want to create a simple Hello World or whatever kind of application I want but I don't want it to be a ClickOnce app and I'm using Visual Studio 2010. How would I do this. I'm interested in this because I'd like to have a custom add/remove program icon for my application and not the standard ClickOnce icon that you see. I'd also like to create a custom updater that wouldn't use ClickOnce, and I'd like to bypass all the "Are you sure you trust this publisher" messages that you get when using ClickOnce.
View 8 Replies
Jul 1, 2010
I am stuck on the following:
[Code]...
Here I am creating a new button and wanted to use it when pressed. I don't know how to do it, you can have a look at IF condition above.
View 7 Replies