I am working on a project that is able to display real time data from sensors from micro-controller. I am able to do so by sending the data through the serial port and then use vb 2005 to show the data. However, I want to save those data from vb 2005 to excel. How am I able to do it ? I am able to use vb to insert data to excel step by step, cell by cell using the following codes.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
Lets say TextBox1.Text and TextBox2.Text is my real time data. How do I save it to the excel sheet displaying the data in cell A2, A3, A4 when the time goes by. Eg. If I want to save TextBox1.Text to excel it would be, the data in the 1st seconds in cell A2, data in the 2nd seconds in A3, 3rd seconds A4, 4th seconds in A5, A6 and so on...
i have a program that function as a DAQ System.i have input channel to gather information from sensors. The reading of each sensor such as voltage, current and temperature are displayed in the textbook. As we all know, DAQ system is involve taking data real-time measurement.My problem is:
1. how to update each row automatically as time goes on. the value in the textbook is updated by each second.Below figure shows how the excel can be written automatically row by row, as time ticking for a sec. this update will stop as the timer stop.
I m into automation development of FMCG products using Micro-controllers. I get real time data Barcode 2D from TCP/IP connection. My task is to compare the result do some Computation with them and Store the incoming Barcode and results into a Excel sheet in a folder. I m successful with the basic working. Am currently working at slow speed of 1 barcode(22 char info) per second from the TCP/IP data (barcode scanner). Now, comes the real issue. I need to process atleast 5 barcodes per sec ( <200ms per process). I m partially successful with 3 Barcode per second(300 ms per process). so, thats like 300ms per processing. I need to achieve less than 200ms for entire processing. I have used threads and timers. but I m unable to achieve. Seems like storing in Excel takes more than 250ms. Since i come from micro controllers background 1msec is a lotta time to process for me. I m not sure how much time does it take and trust me i find it difficult to guage the time here.
I have an Excel based algo-trading app that needs to take in lots of real-time data, and make trading decisions based on the calculations driven by the data. It is not one of those "read-only" stock ticker kinda spreadsheets.I created a COM object with VB.NET that runs in its own thread space which collects data from a socket, and when the data is read it raises an Event with data attached. In Excel VBA, the event handler parses the data, puts them to the right places on the spreadsheet to feed calculations (so far it sounds like a stock ticker app), and then, based on the results of the various calculations it does something.The problem is that when the user starts to click around the spreadsheet while there is large amount of data coming, the event handler's cell updating breaks apart. If the app is left alone without user action, it stands well. My frustration comes from not understanding what happens to the main thread when a user clicks around. Either the event handler blocks the user action, or the user action blocks the event handler (under which case I will put in some queuing facility). But I just don't see how user action can break the code (like causing VBA to stop executing)
I have a project to make a GUI using VB.net and retreiving data from an excel spreadsheet every three minutes and draws a graph in real time. The excel file is filled every 3 minutes by a new value (level of water in a tank).As I made started making this interface and I have a problem with retrieving data from a cell of the excel spreadsheet and update this action automatically every three minutes.
I have a DataGridView that I'm loading into Excel through the use of an ADODB.Recordset. It works fine, except for a column I have that displays the time. Not the current time, but the time when a file was sent. It displays correctly in the DataGridView but displays 12:00 AM for every row in excel. I'm adding it to the DataGridView like this:
I typed this question once already, hit preview, and somehow never got the preview and lost what I typed. It has been that kind of a day.So here is my quick overview then I am going shopping. I am using OLE DB to select from an excel spreadsheet. It has over 15000 rows and 33 columns. Sometimes even when a cell is not null, it is returning a null value. If I just do a "select * where [termination date] is not null", for example, it will return no rows even though I can see with my own eyes that sometimes termination date is not null.
I'm working on a windows forms application (.NET 4.0).My form contains a 'Fast Line' chart using the Microsoft chart control included in VS2010.The chart gets filled with about 20,000 datapoints.My application then starts receiving market data from a server via DDE (Dynamic Data Exchange) in real-time and adds it the chart.
I have to send a sequence of video frames over UDP as fast and real-time as possible and while I got the basics working, I am running into all sorts of difficulties. Some of my goals:Data will normally be sent over dial-up (hence UDP instead of TCP), but also needs to support fast Ethernet.It's OK to occasionally drop frames (hence UDP instead of TCP).Need low latency. The frame the remote receives should be one that was recently sent (no more than a few frames waiting in buffers).I need to be able to detect the effective bandwidth so that I can compress the frames more or less to keep frame rate up.I break up frame data into one or more datagrams of about 500 bytes and each has a sequence number and other info. The receiver reassembles the entire frame and detects if any datagrams are missing.If the receiver detects more than a certain percentage of dropped frames (e.g. 50% over the last 10 frames), I send a TCP message to the sender to slow down by 50%. Sender than slowly increases speed by 5% each subsequent frame.Using System.Net.Sockets.UdpClient to send and receive the data.I have a separate TCP channel used for control messages back to sender.My main difficulty right now is detecting the effective bandwidth and dealing with latency, especially over dial-up (max ~4,000 bytes/sec). For example, if I try to send 100,000 bytes/second using TcpClient.Send() they ALL seem to arrive (no dropped datagrams) but with large latency by the time last datagram arrives. I think the TcpClient.Send() function is blocking until the buffer is able to send which messes up my current algorithm.
Can anybody point me to any sources of information for how to:Detect actual bandwidth over UDP.A better algorithm for dynamically adjusting bandwidth to suit the available pipe.Send data smoothly at the desired bandwidth.A way to detect and keep latency down to a minimum.I have been spinning my wheels over the last week and every time I solve one problem it seems another rears up is head.
are there any ways that i can extract my data from database and display it into my listbox in real-time? which means that whatever is updated in my database must immediately be inserted into the listbox without the need of refreshing or pressing any buttons. Immediate display.
methods/procedures for sending real time data from a VB.net app to a web server (asp.net) for real time display. My question relates to the best method to send the data from the desktop app and the best way to receive and handle the data on the server. I'm not asking for sample code, just some idea of what methods to research. I am currently using a text file upload method but I'm sure there is a more efficient way of achieving this.
I have been trying to find and/or think up a way for data to automatically update a data table.I have a log that shows all the customers that came in today with various information. There could be twenty or thirty employees adding to this log or updating or doing things with that customer. This information is in a Data Table on a ASPX page in Visual Studio 2010 that the code is binded in the aspx.vb page that is calling a page in my APP_CODE database file that calls a query in my Database to get the information.My question is could someones actions on a different computer make my computer refresh or to re-bind that data.I have thought of some kind of timer/counter maybe that looks to see if the count of the log is different.
I'm using EF version 4.1, and would like to have the data from the database in realtime, i.e. if you open the application it detects if there is new data in the database, and update the above it! is It possible to do this? I am using EF 4.1 code first time
Basically I have a program that receives real time data from microcontroller and displays it in a text box. What I would now like to do is to store the values received into a table that can be viewed when the receive program finishes. However I still want the values displayed as they are received in addition to being stored in a table of some sort.
I'm having a bit of an issue receiving a stream of serial data and displaying the data real-time in my GUI. I am fairly new to VB.Here's what I'm trying to achieve: I have an I2C device (bank of LED's) connected to my Arduino. Using the VB.NET (2010) GUI I request which LED I want on (via buttons) and the I2C device then sends a reply confirming which LED actually turned on (basic feedback). Ok, sounds great right? Here's where I get issues. Well when I try to read the serial data sent to VB and display the real-time stream on the GUI, a) I get a bit of a mess as an output (values are ok, just spewn across GUI) and b) when I select a new LED to turn on, the GUI data does not refresh to this change. The stream being sent from the Arduino is ok, I looked at the data in a serial monitor.
I've use VB net to create a application that can download the real-time data from a device for every second. Now I want to upload the data to a website in real time. (So some who is far away, can also check the data through the website)
HBasically I will have two forms. Form1 will control form2 which is the media display. Form2 will give back the media status and info back to form1 in someway. I was thinking of creating properties in form2 and having form1 polling these values to display the elapse run time etc... ideally i wish to have form2 somehow send events back with data when it values gets updated.
On VB.NET 2005 and 2008, if you were debugging you could roll over the variable you set as an array and a little "+" would pop up next to the array variable and you could click it and see all of the data loaded into the array.
connected to my Arduino. Using the VB.NET (2010) GUI I request which LED I want on (via buttons) and the I2C device then sends a reply confirming which LED actually turned on (basic feedback). Ok, sounds great right? Here's where I get issues. Well when I try to read the serial data sent to VB and display the real-time stream on the GUI, a) I get a bit of a mess as an output (values are ok, just spewn across GUI) and b) when I select a new LED to turn on, the GUI data does not refresh to this change. The stream being sent from the Arduino is ok, I looked at the data in a serial monitor.
Public Class Form1 Dim ticktock As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
I am busy with a VB2008 EXPRESS program that reads is data via a network cable. Saving the data on the same computer as my program is not a problem, but I must also make this data available to other users in the network and update their screens in real time. In other words I need a COPY of my running program on each networked computer when requested by the user in the network. I have looked at SQL, XML pages and inheritance. But I am confused, what is the best way???
- I'm working on a windows forms application (.NET 4.0). - My form contains a 'Fast Line' chart using the Microsoft chart control included in VS2010. - The chart gets filled with about 20,000 datapoints. - My application then starts receiving market data from a server via DDE (Dynamic Data Exchange) in real-time and adds it the chart.
Note: I have no control over the server and so I have to deal with DDE only even though it's an outdated technology. VS doesn't support DDE anymore and so I use the Ndde library which works like a charm.
Private Sub StartDDE() 'first we connect to the DDE server: Dim client As DdeClient = New DdeClient("ServerApplication", "Bid")
I have a question about reading data from txt file and importing(transfer) to the existing excel file.for example I have "test.text" which includes some numbers listed below.[code]I want to put each number to separate excel cells by using Vb.net.
im trying to design a program where a user inserts text into some text boxes, and selects an item from a dropdown box, and clicks add, i want it so when they click add, it puts the data from the text boxes into an excel worksheet, so say, textbox 1 is product, put product in A1, the second would be cost so put the cost in B1, but the product type in C1(this is the drop down box) and then clear the visual basic form, so the user can enter a second set, and then when they click add, it adds the information into A2, etc, etc.
I have the following code which works fine. However, I want to change one format when I export it to excel ..
Colum 3 is Sort Code and have the format 00-00-00, I want to change it to 000000 i.e., remove the dashes.
When exported to excel I use a formalue (Substitute(A1, "-", "") and this removes the dashes. But what I want to do is remove the dashes before exporting to excel... see the code below for datagrid - excel export, highlighted is where I think the one line code should be...
Code: Private Sub ExporttoExcel() 'verifying the datagridview having data or not If ((DgvQuarCommit.Columns.Count = 0) Or (DgvQuarCommit.Rows.Count = 0)) Then
i want to transfer data from my textboxes to excel but in the same sheet because the data that i have is more than 50 lines and i want to put it little by little in the same sheet instead later to make some calculations in excel.i have code that is working but each time i click it creats a new book a new sheet i dont want that i want to add data in the the same sheet.
I am currently building a tool which uses access as the backend and excel as the user interface (I am unable to change the applications).I would like to be able to use the listview option, howver I haven't a clue and searching on the internet is causing me a headache.
Basically what I would like to do is get the heading names from the table in access and populate the listview, later on I will what it to look at specifc data to populate the list view.
My connections is already open, I think I'm ok witht he sql, its just the other bits.
I making a simple online chat using an ftp server by downloading and uploading text. I use a thread to update the chat log continuously. But it doesn't update in real time. Is there a way to create a server that clients can upload to and download from extremely quickly? How do programs like MSN messenger or better online multiplayer games do it?