Delay Between Sending The Pulse Signals?

Aug 19, 2010

VB 2005 conversion from VB6 I basicly have 2 questions. I am pulsing a relay up to 99 times per incident. I need to delay between sending the pulse signals. The delay time cannot change when I change between CPU speeds. I am assuming the sleep() function will work fior this. (This is a count of the number of game tokens to despense).

The second question is.. after I have pulsed the relay x number of times, I pulse another relay to send this number to a token machine to actually despense the tokens. While the tokens are despensing (about 1.5 minutes do despense 99 tokens) I want to release the computer CPU so that the cashier can continue to sell items. What command will allow me tho do this?

View 7 Replies


ADVERTISEMENT

C# - Sending Emails Without Delay?

Mar 14, 2012

Now there's a user "A" who has 100 followers...now what i want to do is whenever user "A" submits an article in the website all his followers should get an email with the article link...that is okay i can do it.

Problem: Now, there's a submit button on the page which stores the article in the DB and sends email to the followers...as there are many followers it takes a lot of time sending the emails...so the page keeps showing loading msg till all the emails are sent..how can i send all the emails asynchronously ??

i mean after the article has been submitted ...the emails should go automatically to the followers without putting the email sending function in the click event of the button....hope am not confusing you folks.

can i do something like store the article in the DB , redirect to the article page , start sending emails in a batch of 10 per 10 mins automatically...this process should start as soon as an article has been submitted by an user.

View 4 Replies

Sending Emails Without Delay?

Mar 18, 2011

Now there's a user "A" who has 100 followers...now what i want to do is whenever user "A" submits an article in the website all his followers should get an email with the article link...that is okay i can do it.roblem: Now, there's a submit button on the page which stores the article in the DB and sends email to the followers...as there are many followers it takes a lot of time sending the emails...so the page keeps showing loading msg till all the emails are sent..how can i send all the emails asynchronously ?? i mean after the article has been submitted ...the emails should go automatically to the followers without putting the email sending function in the click event of the button....hope am not confusing you folks.

View 6 Replies

Forms :: Make An App That Gets The Progress Bar To 'pulse?

May 11, 2009

I want to make an app that gets the progress bar to 'pulse'

My code doesnt seem to work though!?!?!

Public Class Form1
Dim Value
Dim NoValue = "Add"

[Code].....

View 3 Replies

VS 2010 How To Generate Signals

Apr 16, 2012

I need to make a program that whatever user enters in bits, then corresponding Return-to-zero signal would generate.. how to generate signals.. so would it be possible to make it in VB.NET?

View 8 Replies

Time Delay - Make GUI Program To Delay Before The Next Command

Dec 21, 2009

I know that time delays have been covered before around almost everywhere. however a method that forgoes forcing the GUI to become temporarily non-responsive, is all but a myth, or at least to my findings. i have the need for a GUI program to delay before the next command, however using the current method, detailed following, it causes the desired effect however it dose make it much less polished as when you click anything else on the GUI it goes un-responsive for the directed time. [Code] make a sub called say Tdelay( milseconds as integer) and have it run a loop as many times as the milseconds variable indicates and each time making the thread delay for 1 milsecond and then update the GUI/form in some way, then re-loop.

View 7 Replies

Writing A Exponent And Give Signals Out At The Same Time

Nov 9, 2009

I work with the Visual Basic Express Edition 2008. I'd like to write in a text box : 1s5 but the 5 has to be the exponent of s like 1s5 does anyone know how I've to write this in Visual Basic?

Second problem is:

Dim foo As New clsParallelPort(&H378, &H379, &H37A)
foo.communicate(2, clsParallelPort.switch.SWITCH_ON) 'switch data 1 on
foo.communicate(3, clsParallelPort.switch.SWITCH_ON) 'switch data 2 on

[Code]...

The problem is that I give out a signal to the 8 data lines and then to the control line 10 and then to the control line 1 but what I'd like to do is to give firste a signal out to the 8 data lines and then at the same time a signal out to control line 10 and 1. How can I do that?

View 2 Replies

VS 2010 - SerialPort Lagging - Serial Port Is Open And Waiting For Some Signals From The Dyno

Sep 9, 2010

I have things set up so that the program is ready to start logging ,only when Recieving=true.This is controlled with Button1. So I click button1,Serial port is open and waiting for some signals from the Dyno.When 1 signal come it put a "1" in TextBox1 ,and for the second a "2" and so on. Thing is sometimes it starts right away, like I want it to,and sometimes it lags a fraction of a second, even though the Port is open.When it lags there are already 5 to 10 signals gone by before it starts logging 1,2,3,...and so on. Sometimes it don't start at all.Then I have to close and re-open the form and it works,but with lagging on the first "set"

"Textbox1 > 0 then" triggers a timer (not seen in this code)that samples Textbox1 once pre interval and writes the value to a listbox. On the upside as soon as a "1" is displayed in textbox1 the timer starts like it's supposed to.I noticed this behaviour before I added the timer and besides the timer has nothing to do with the signals coming from the SerialPort. I have my form setup so I can run "sets".Run one "set"...save...reset...run another "set" ...and compare.It's always the first "set" thats off.If I run multiple "sets" the first one is completely "whacked", and the rest are consistent.

Think this could be the SerialPort lagging,or code problems?

Public Class Form1

Dim resetValues As Boolean = False
Dim RPM As Double

[CODE]...

View 19 Replies

Sending Email - Operation Timed Out / Not Sending Error

May 27, 2012

I am trying to Send an Email with an attachment (using Gmail) but I keep getting errors like "Operation Timed out" or Failure Sending Email". It was working earlier today but I found out that i needed to add Using statement because the email was having a file open that had to be deleted after it was sent but afterwards it doesn't work.

Here's what I have (Portion of it):
Private Sub SendMailOneAttachment(ByVal un As String, ByVal pass As String, Optional ByVal smtp As String = "smtp.gmail.com")
Using oAttach As Net.Mail.Attachment = New Net.Mail.Attachment((Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & "\" & My.Computer.Name & "_" & fName & " .zip"))
Dim client As SmtpClient = New SmtpClient(smtp)
[Code] .....

The ports are correct I believe, no firewall up on my PC...

View 1 Replies

Sending Files/Sending Images/Msg For P2P Chat?

Mar 4, 2010

Which is better for Sending Files/Sending Images/Msg for P2P Chat?

View 1 Replies

Sending E-mail - Getting Error Message "5 Failure sending Mail At System?

Jul 13, 2010

I am tring to send e-mail used VB 2008. Below is my code. The error message I am getting is "5 Failure sending mail at System.Net.mail.client.send(MailMessage message).I have two questions. 1.) What am I doing wrong? & 2.) Is there a way the get a more description error message.

message As
New System.Net.Mail.MailMessage
Dim mySmtpsvr[code].....

View 2 Replies

How To Set A Delay

May 11, 2009

how to set a delay in my code so that it waits for a new page to be returned before it cliecks on another button?

[Code]...

View 5 Replies

How To Add Timer Delay

Apr 2, 2010

I'm trying to figure out the best way to add delay. From looking online I believe a timer would work best but I'm having trouble with the code. Basically what I'm trying to accomplish is a GPI debounce set to 200ms. the Timer3 properties interval is set to 200 and its enabled = false. Here is what I am working on.

[Code]...

View 5 Replies

How To Make A Delay

Sep 6, 2009

How would i make a delay,

so that when you click a butten it will delay, then continue?I like.....

CODE:

View 11 Replies

How To Put A Delay In A VB Application

Jun 22, 2010

i'm developing an app where i'm reading a value from a device and putting it into a mysql db, i have setup a function where the vb will calculate whether the new value being read has changed by 3% from the last value and if it has run the mysql query. What i need to do it read the value into a variable, then a new value and compare the two with the % function, how do i read a value and maybe add a delay before reading the new value (and it being overwritten) and doing the calculation?

Here is my current code:
Imports System.Data.SqlClient
Imports System.Data

[code]......

View 13 Replies

Play An MP3 In NET Without Delay?

May 25, 2010

I'm working on a game that plays MP3s at various points using the Windows Media Player component and it takes a long time to load and play MP3s. Would anyone know how to decrease the load time? I've considered multi-threading but I'm not sure how I would do that or if that's even the proper direction.

View 2 Replies

Set Delay Between Code?

Dec 8, 2006

I would like to enquire how I can set a delay in between chunks of code.For example, after some code which interacts with a server, I am supposed to get a corresponding information from the server before it is appropriate to proceed on to the next part of the code. As the server response is not immediate, therefore an arbitrary delay is needed.What is the proper code format that I need to add?

View 7 Replies

VS 02/03 .NET + VB6 Web Application Delay?

Dec 1, 2011

I am dealing with a web application that includes VB.NET (UI) & VB6 middleware (DLLs).One of our installs, a Win 2003 Server/IIS 6 environment shows a 2 minute delay after the application login page.The application has been added to Trusted Sites & is not in a DMZ. It uses Forms authentication.

I am looking for ideas on what might be causing the delay. The code is difficult to access and I would like to leave that as a last resort. I realize it's not much to go on but I am hoping someone here has run into a similar problem.

View 2 Replies

.NET WebBrowser Control Delay?

Mar 26, 2012

I have this code in VB.NET :

Having:
1 TextBox
1 Button

with this code:

Code:
Public Class Form1
Dim m As String()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
m = TextBox1.Text.Split(Environment.NewLine)

[code]....

it navigates only to the last website [URL] i think that's because the for loop is faster that navigation process?

View 6 Replies

C# - Delay The Need To Specify T In Asp.net User Control?

Aug 16, 2011

My dilemma: I have a POCO: "ReportSource" that is generic. I have a user control wrapping up some report building logic. My user control defines a ReportSource property but it will ultimately be the job of the page that calls the user control to assign that ReportSource property. How can I define the property in my user control without specifying a T? Btw, I tried (just for larks) to make the user control generic... That ended badly. public ReportSource<T> ReportSource {get; set;} (Note that I've tagged this as C# and VB.net... C# is my norm, but I'm having to deal w/ legacy.

View 2 Replies

Craeting A Delay In VB 2010?

Dec 2, 2010

I am writing a project for class and have come across a problem that I have been unable to solve and am loking for a little help. 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 19 Replies

Create A Delay In Hour?

Nov 18, 2010

I tried to convert my VB6 code to VB2005 and it seems like some syntax cannot be use. I had tried to make it work but it still failling me.how to create a delay timer which can delay up to 5 hours and this will repeatly in 10 loops.

View 8 Replies

Creating A Delay In VB 2010?

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

Delay A SendKeys.Send?

Aug 16, 2011

I'm making an auto typer that has multiple textboxes from different forms to send and it looks like this[code]...

View 4 Replies

Delay A TXT File From Opening?

Nov 14, 2009

Is there a way to delay the start of a text file? I am using this to call the TXT file after clicking a button: (opens txt file)Process.Start("text.txt")I was wondering if there was a command to delay the TXT file from opening for a number of seconds?

View 2 Replies

Delay Drawing When Using Tabpanel?

Apr 1, 2011

Whenever I switch tabs in my tabpanel.for example when switching from 'armory' to 'Mystats'.You can clearly see there's a serious delay in drawing the containers, textboxes, pictures.. The 2 backgrounds of the tabs are different and the Mystats tab has several very small images like 1kb each about 24 of them ).PS: at the moment of the screenshot the upper half is of the Armory tab and the bottom half is of the Mystats tab.

View 2 Replies

Delay In Showing Result

Sep 4, 2009

I have 3 file to compare.[code]Now my problem is it take more than 1 minute to show the output which is very late. I dont know where i did wrong.

View 1 Replies

Delay In Showing The Output?

Sep 3, 2009

I have 3 file to compare.

File 1
[1 09.73 78.9] X16.070 Y2.064 104.066
Short +104.067

[code].....

View 4 Replies

Delay Objects For Game?

May 8, 2012

I am creating a simple game for school in an Intro to VB 2010 class. I have already creating everything I need but want to add the effect of delaying an object flip method.

Background: The game; you drop a marble in one of 3 slots at the top. The marble will pass through each object changing its color and then exit either to the left or right. Currently when I click the button it will change all Flippers at the same time. I want to add in a delay to get them to change one at a time as the marble would pass through from top to bottom.[code]....

View 4 Replies

Delay Or Pause VB Code?

Jan 31, 2006

I am having trouble with an Access form which runs some VB code behind it. The form accepts lots of user inputs and these are then grabbed by my VB code to calculate a result. This all works fine but does take some time for the calculation to complete due to the size of the datasets. Rather than the user having to stare at the same screen and wonder what is happening, I have another form which pops up to tell the user the calculations are in progress. The problem I am having is that this window will not display properly until after the calculation is completed. It seems as though Access cannot handle displayinging my window whilst the calculation is being caried out.

Is there any way to delay the calculation in VB so that my window will display correctly? The calculation can then take place after this. Here is my code:Private Sub Calc_Click()Dim ccombo(11) As IntegerDim Total As IntegerDoCmd.OpenForm "calcsinprog"

I would like some kind of delay or pause here to allow the window to open properly before the calculations below.

ccombo(2) = Me.c2combo.Column(1, Me.c2combo.ListIndex)ccombo(3) = Me.c2combo.Column(1, Me.c3combo.ListIndex)ccombo(4) = Me.c2combo.Column(1, Me.c4combo.ListIndex)ccombo(5) = Me.c2combo.Column(1, Me.c5combo.ListIndex)ccombo(6) = Me.c2combo.Column(1, Me.c6combo.ListIndex)ccombo(7) = Me.c2combo.Column(1, Me.c7combo.ListIndex)ccombo(8) = Me.c2combo.Column(1, Me.c8combo.ListIndex)ccombo(9) = Me.c2combo.Column(1, Me.c9combo.ListIndex)ccombo(10) = Me.c2combo.Column(1, Me.c10combo.ListIndex)ccombo(11) = Me.c2combo.Column(1, Me.c11combo.ListIndex)ccombo(1) = Get_PostCode_Score(Replace(Me.TextBox1, " ", ""))

[Code]...

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved