I currently have a program that, when I select an option from a drop down menu, will transmit a character to a microcontroller. I then have to click another option after 10 seconds to send another character. What I would like to do is modify this program to transmit one character for a period of 10 seconds, then transmit another value for another 10 seconds and so on for a defined period of time, say 30 seconds in total.
I need some information on broadcasting front. I have a program which gives data every few minutes to my friends. The logic is data is prepared on a local computer, the file is then uploaded to my webserver and then the programs at friend's end download the file and process it.
Though the above logic works, but its plagued by time delays, uploading & downloading basically. Is there an alternate whereby the program on local computer which prepares & uploads file is able to broadcast data and client apps can read that data and work on it. For e.g. if you see apps that show live stock market data, the data is refreshed for so many stocks every sec. They use some other system similar to broadcasting I guess. In-order to transmit data fast how can I go about it?
The short story is that I have a 5.1 audio system that is linked to my pc and I would like to make a tool to help me to transmit audio from my laptop to my pc to be played back.
I have a home network provided by a wireless router. (Bandwidth is about 54 mb/s so that shouldn't be a problem)
Router ip : 192.168.16.1 PC ip : 192.168.16.100 Laptop ip : 192.168.16.101
I want to be able to send a copy of the currently opened form to a number of remote PCs every couple of seconds and be able to view the form as it is received.Although I have been programming for a number of years, I have virtually no knowledge of reading and writing image data.
In my project, I got a page that creates guest users for a number of products chosen.Basically you tell the application how many users to create for each product you choose.When you click 'Save' I generate the guests, save their username + password (before encryption) in a csv file that I transmit at the end of the process, and finally redirect the user to the index page.The problem happens at the file transmission and the consequent redirection to a new action:
Private Sub DownloadCsv(ByVal csv As List(Of String), ByVal filename As String) Dim sb As New StringBuilder() For Each Str As String In csv
[code]....
What's happening is the page transmitting the file to the browser and never doing the redirect that follows.I read a bit on the matter and found out that once you add an Header to our Response object and Write a file, it will automatically close the Response. If I'm wrong, please correct me.How can I make it possible to transmit this file after the user has being redirected to the Index or Redirect to the Index after he either saves or cancels the file download?
It's been a while since i've posted. Happy Valentine's day! Requirement: I would like to interface my .NET application to a "virtual webcam driver" for the purposes of SENDING image frames. I'm happy to use an open source .NET or COM component if that exists or indeed implement a "webcam driver" from scratch if someone can point me in the right direction. My first priority is the functionality.
My second priority is low dependancy on 3rd party libraries and tech (aside from .NET of course I'd prefer not to involve directshow if possible?
I would like to know how can I transfer some data bits from one location e.g. Location X to the location Y. I am already moving MS (mobile station which I take as an image) from one location to other. Now I want to check or you can say add some data while MS is moving and make it reach successfully to location Y as I already can do with MS movement, mean to say data transmission along with MS and on that basis I want to find handover failure rate and if any data loss during the data transmission from x to y location. And check if the data delivered is successfully reached to location Y from Location X, check bits transmitted and bits received
i wrote small programm based on joyGetPosEx which read ION Drum Rocker commands as gamepad events and converted it to midi notes signal to MidiYoke or other virtual midi cable.With this program ION Drum Rocker xbox360 drums with cymbals can be used as midi device for PC. Also if edit source for read another command can be used any gamepad device as mididevice.If any someone have ION drum rocker drumset then try to test this program.
I have some issue with it, drumset do not transmit any commands which can be used for sensitivity of hits. But drumset have some sensitivity of hits if connected them to xbox360 console. Maybe problem in HID gamedevice driver, or joyGetPosEx?
I am working on a program for work and I am stuck on trying to make a new XML file from VB.NET 2010. I have the old code which was done in C# and it works but even using a C# to VB converter didn't help. I will paste in both the C# and what I have in VB
I want to be able to click on the save icon and have the data on the form save to the original database. Right now I seem to have a disconnected dataset I have tried to change everything from read only to a false statement but it just will not work. It saves to the form fine just not the orignial data base.
I have 10 panels on a form and I was wondering if there is a more efficient way to loop through them to pass the data to my procedure instead of writing out each one the way I am doing
' sample shows only 3 but there are 10 For i As Integer = 1 To 3 Select Case i Case 1
I am trying to write the TOURN structure and then read the TOURN structure back in.. the file gets created on my desktop and the program does not have any syntax errors, but when I READ the file none of the Data gets retrieved. So I am not sure if the DATA was actually saved or it is just not being retrieved?? This is what I have coded so far...
I am doing the project to make a microcontroller communicate with PC. I am facing the problem writing the C++ code for command button to ask uC to display the data in my label. How to write the code for C++ to get the data from the microcontroller?
i'm using a C8051F320-dk which already have a USB connector and a RTC.
my data will be the date, and time provided from the RTC.
I am trying to write data back to my database in my project, but it keeps disappering when I make any changes to code. I can build the project, add data, close the project and build it again and the data is still there. But as soon as I make any changes to anything, on the next build, all of the data is gone.
The table will not be bound to any controls in the final project, but for testing purposes I have a datagrid control that it is bound to. My code started as follows:
I am having trouble writing information to a 2007 access database. I just want to write a numeric value into a data base. My table name is KW and my field is also referred to as Kw.
Dim theOleDbConnection As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=C:\Documents and Settings\HP_Administrator\My Documents\value.accdb") Dim theOleDbCommand As New OleDbCommand("INSERT INTO[KW] (Kw)VALUES (@P1)") theOleDbCommand.Connection = theOleDbConnection
I have data that has to be collected from my database and sent to a supplier's edi system. The file has to be in ascii format so their system can read it. I am writing what I see as an ascii format file but they say it's in edibc format when they receive it. I am posting my code and hopefully somebody here can help me out. Funny thing is that I have done this before successfully and am using virtually the same code but to no avail!!
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim filed As String = "Y" ' get records to be transmitted and plop them into an array list Dim con As VICSClaimDAO = New VICSClaimDAOSQL()
I want to import my data, which I receive over USB (every second), to an Excel sheet. Thing is, I want to open only one Excel file and write everything to this one file, and by pressing a "STOP" button, data reception will be canceled and data in the Excel file should be saved and Excel file should close right after that. Here my code,
Dim excel_cnt as Integer<br/>Dim sv_var as Integer = 0<br/><br/>Sub write_to_excel() Dim xl As New Excel.Application
I'm having problem while writing data to serial port. This piece of code is meant to write all the integer numbers in a text file to the SerialPort (connected to a USB-Serial Converter) when StartButton is clicked. However, it only managed to send two numbers and stopped at "USBSerialPort.Write(t, 0, 2)".
Private Sub StartButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StartButton.Click USBSerialPort.DiscardOutBuffer()
The program that I am writing has three default variables that I would like it to store and also be able to change. I have them in a text file called "settings.txt" The format of the text file is as follows:
The field descriptions eg "Default Source" take up 30 characters, so the variable data starts with character 30. I know their has to be an easy way just to pull out the data from a particular line starting with character 30 but I can't find it.
I was developing a software with related to Excel, in which I have to write and SAVE the details at appropriate columns. I am currently having a problem in saving the data.
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Open
[Code].....
Very first time I debug the coding I haven't got much problem. But debugging it again gives me an Error AS: "A file named 'Resume.XLW' already exits in this location. Do you want to replace it?"
I was able to see this since I have enabled the display alerts. Disabling it generates a save as window.
I'm attempting to use symmetric encryption to encrypt some data, and store the key necessary to decrypt with the data in a MemoryStream. (While I know that this alone is really dumb security-wise, I'm going to use RSA to encrypt the symmetric key. Right now, though, I'm trying to just get this part to work.)I'm using the FileHelpers library to parse the data for my delimiter (the semicolon, as I don't believe I'll ever have a semicolon in the data). Unfortunately, in my decryption function, when it's parsing, it only returns back one record. And, if I show the entire string of encrypted data created at the end of this function, it doesn't appear to be using multiple records.I'm wondering if when I create the new cryptostream, it's defaulting to the beginning of the memory stream, so when I write my encrypted data, it overwrites the data I had just written to the memory stream.[code]
I�m currently working on a school project and I have encountered a problem in my code. When i write the contents of my listbox to a file called stock.txt it seems write an invisible linebreak in-between each data entry, my problem is that when I load my array on the next form those invisible linebreaks causes my array to load the data incorrectly.
I have attached a pic of my stock.txt file
The Code that Edits and writes to stock.txt
Private Sub BtnRemove_Click(sender As System.Object, e As System.EventArgs) Handles BtnRemove.Click 'Removes the selected item from the listbox then updates stock.txt lbxStock.Items.Remove(lbxStock.Text)[code].....
I have looked over this and can't see where i'm going wrong, all i'm trying to do is add an item to a listbox when i a tcpclient logs on to the server. Code in question... If i put a breakpoint in i can see that initialclientresponse is set correctly.
Public Sub ConnectClient() Dim pendingClient As TcpClient Dim InitialClientResponse As String
Im trying to get some particular content from a site and place it in text file. i have used a listbox for loop of urls i want to process and another to see output of data. now i want all data in text file each item seperated by "~" sysmbol.
Exmaple Link i used in my.txt file: [URL]
Data expected in text file:
Abbeville High School Basketball Stats ~ Team: Varsity 11-12 ~ Colors: Maroon, Gray, White ....
I use Visual Basic in Access, and I have no problem writing data directly to a cell in a database table. But I can not figure out how to write the code for Visual Basic 2008. For example I would use Me![cust_Cost] = 20 to input 20 in the database table. I have purchased two different Books on Visual Basic 2008 and not one of them show how to input data manually.