VS 2005 Accessing Stored Data On Serial?

Feb 15, 2011

My problem is that i have a usb-to-serial device which creates a virtual serial port ( Com 4 for example )on the computer i need to connect to it and get the data stored on it I already have worked out how to use the System.io.ports to connect to the port ( baud rate, stop bits, parity ,ect) and it connects to the usb fine. But once the connection is open i don't know how to retrieve the data. Everything i have tried relies on events. But as the usb does not send data i don't know how to access the serials memory.

View 3 Replies


ADVERTISEMENT

Accessing Data Without Using Database (.Net 2005)

Jan 31, 2010

Is it possible to add, edit, view and delete records using a file only (instead of a database) and .Net 2005 (VB.Net/C#)? The concept is that a file that'll work more-or-less like a database. One can add, edit, view, delete and query data to and from the file. The file, either cannot be opened directly or data inside the file should be in some encrypted form so that even if the file is opened no one can comprehend it. Data inside the file can only be manipulated by a front end application i.e. .Net 2005.

View 1 Replies

VS 2005 Accessing Data Connections On Form2 And Other Sub's

Oct 11, 2009

I have a small databse program. Form1 uses the Private Sub OpenToolstripmenu to Openfiledialog box and creates a connection and adapters. I need a second form that will access the same connections and adpaters what is the best /correct way to do this? Also other sub functions on form1

View 8 Replies

VS 2005 Accessing The Controls Of Multiple Data Window(mdw) Forms

Oct 21, 2009

I have to make some automatization on a web server, I use Visual Studio 2005 Visual Basic Windows Console Application. I want to make a load/performance test of the web server, so I open several Internet Explorer instances, and I login the application, that is not a problem. But after that I have a mess on the page and I cannot make any more automatization...The composition of the page after the login is like this: I have the default form, another form and a multiple data window(mdw) controller, which dinamically can switches the forms on this part.

The problem is that I don't know how to access the controls of this mdw forms. I couldn't find much about this mdw controller and I am not an expert.

My code is here:

Imports System
Imports System.Diagnostics
Imports System.Web.Ui.Webcontrols

[Code].....

View 5 Replies

VS 2005 Can't Read Any Data From Serial Port

Mar 14, 2010

I have a problem with my program. i can't read any data from serial port. when i click on open the rs232 has to read but it doesn't.i use the program in a pdf(ADAM-4000_Ed-15).[code]

View 3 Replies

VS 2005 - How To Access Stored Procedure Data

Jul 7, 2009

I wish to create a stored procedure with multiple select statements. In addition, I then want to access each of the statements on the page load event. The purpose of the statements is to create multiple 'counts', and a number of labels on the page will each contain an individual returned count. At the moment I have created a basic stored procedure with two select statements:

CREATE PROCEDURE [dbo].[Finance_CustomerCount]
AS SELECT COUNT(Quote_ID) AS Count1 FROM dbo.generatedquotes WHERE (status = 2)
AND (Contract_End_Date >= GETDATE()) OR (status = 4) OR (status = 7) OR (status = 1)
SELECT COUNT(invoice_id) AS Count2 FROM dbo.invoices GROUP BY invoice_open HAVING (invoice_open = 'Y')
RETURN

I can then access the result of the first select statement by using this code:
Dim newconn As String = Session("ConnectionString")
Dim connection As New Data.SqlClient.SqlConnection(newconn)
Dim MyCommand As Data.SqlClient.SqlCommand = New Data.SqlClient.SqlCommand("Finance_CustomerCount", Connection)
[Code] ....

So what I basically need to know is, how do I access the second select statement result set for another label.

View 2 Replies

VS 2005 Data Stored In Tables And Rows

Oct 31, 2009

I am looking for some advice on this since I know nothing about database projects or sql, except that they have data stored in tables and rows. I have a sql back up text file from my forum, and I would like to bring that in to a VB.net sql db project. What do I need to do, to accomplish this?

View 2 Replies

Accessing The Serial Port?

Oct 21, 2011

I can find documentation (preferably with code samples) that will guide me through all the steps to activate and read from a serial port?

View 6 Replies

Accessing Hard Drive Serial And GUID

Jul 25, 2010

I've been checking endlessly on MSDN and the net in general trying to find out how to get the computer's "C:" drive serial number and also the GUID.Everything I've found seems to pointing to the System.Management library using the ManagementObject, but "ManagementObject" doesn't appear to be recognized by the IDE?!I've imported: System.Management, System.Management.Instrumentation, Microsoft.Win32 and System.IO, but ManagementObject is still coming up as an error.I'm aware I can simply access the registry to get the GUID, but can anyone simply give me the code to access these 2 elements please.

View 10 Replies

Pass Serial Data From Serial Data Received Event

Dec 13, 2009

I'm trying to pass a data packet from the serial data received event.The code can capture the data without any issues.I'm spinning my wheels on getting the data packet out of the thread for further processing.[code]

View 4 Replies

HSD 32 Bit Data Bus To Serial Converter Via A Microcontroller - Data Sniffer To Read The Data Bus (32Bit)

Sep 3, 2008

Im working on a HSD 32 bit data bus to serial converter via a microcontroller. Now first I want to make a sort of data sniffer to read the data bus (32Bit) .All on the controller side is working and the stream of bytes are coming in via RS232 as 4 bytes in HEX like FD,A5,45,8B . I already converted the bytes in Dec and ASCII to determine what is passed true the bus and how fast and stuff.. Now that is all correct and working very well if the LSB (least significant bit) of the 32 data bus is Data line 0 and the MSB (most significant bit) is Data line 31 but if that is not the case I need to invert the 32Bits (like as I would invert the connector on the bus) . How do I best do this using the 4 bytes I send from the micro controller.

Example:

(MSB) 01001000 01100101 01101100 01110000 (LSB)
HEX= 48 65 6C 70
DEC= 72,101,108,112
ASCII= H E L P

I need to invert it with a button to:

(MSB) 00001110 00110110 10100110 00010010 (LSB)
HEX= 0E 36 A6 12
DEC= 14,54,166,18
ASCII= (SO) 6 : (DC2)

View 3 Replies

Reading Serial Port Read Data From Serial Port?

Aug 16, 2011

i am a absolute beginner and i want to use vb to receive data from micro controller through serial port using rs232 standards, i found this code to receive the data serially, can any one tell me where should i paste this code, so that the data received will be displayed in message box.Private Sub DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) HandlesSerialPort1.DataReceived

[Code]...

View 9 Replies

Accessing Excel Within .net (2005)?

Mar 9, 2010

What i would like to do is change the color of a column in excel. I cannot seem to get the right command string to accomplish it.

View 2 Replies

VS 2005 Accessing A Database?

Dec 12, 2010

I'm having some issues with a game I've been writing for several years. It's an on/off project and recently I purchased a new computer and formatted my old computer so all of my installations of windows and visual basic 2005 (express edition) are fresh. I'm getting the following error:

View 11 Replies

VS 2005 Accessing A USB COM Port?

Nov 17, 2011

I have am using an XBee ZigBee wireless module to communicate with a project of mine. I currently have it set up to the point where I can open a hyperterminal session to COM 4 (which is the usb com port), and recieve the data that is being sent via the microcontroller on the other side of the wireless link.

I would like to make an app that takes the data and puts it in to a more user-readable format. (Via VB 2005) So far all I have come up with is some problems. It doesn't seem like I can use the built in serial port tool to access a "virtual" com port. From the following link:Quote:

Note You cannot use the Microsoft .NET Framework classes to directly access other types of ports, such as parallel ports or USB ports.[URL]..Do I have to use a "COM port redirector" to make it seem like a real COM port? Or is there some easy way that I am not thinking of?

View 1 Replies

VS 2005 - Multithreading - How Are Threads Accessing The Sub

Oct 15, 2010

I have 10 threads each using the same sub to do work. This sub is calling a function to save the results. How are the threads accessing the sub? Is each one getting a fresh copy of the sub to do its thing or are they using the same piece of code and need to wait for each other to finish processing? I don't get any hits when searching for such a specific scenario. I am wondering because it is about using sockets (usually lightweight stuff) to retrieve a resource and the cpu is working at 100% all the time. Still it is very fast, 900 internet queries finish in about 3 minutes.

View 4 Replies

VS 2005 Accessing SqlDataSource In Code Behind?

Apr 21, 2010

I am trying to programatically use my SQLdatasource in my code behind so that I can select a certain field from a table based on the selectedindexchange event of a listbox control on my form. I have one datasource already set to the listbox control but i want a seperate datasource to select a field based on the value of the listbox. I declared a new datasource sqlDataSource2, set the connectionstring to the same database/table and i have the following line set for the select statement

View 1 Replies

[2005] Accessing Device On USB Port?

Nov 10, 2008

I have been doing some research into accessing devices on a USB port and it's kind of helped, but not really. From what I understand, I can use the IO.Port namespace to access a device on a USB port (usually). Let me know if this is incorrect.

First, I made a simple program that looped through the ports available. I get COM1 and COM3, but I have 4 USB ports. Where are the others?

My
Dim comm As New List(Of IO.Ports.SerialPort) 'list of comm ports
For Each PNstr As String In IO.Ports.SerialPort.GetPortNames() 'get a list of Com Port Names

[Code].....

View 13 Replies

VS 2005 Accessing A Remote Access Database?

Jul 14, 2009

I have an issue with am access database source located on a remote computer.I tried using ADODB to access it, it works, but when I change( update insert or delete) the database on the remote computer, the changes is not reflected in my application

View 1 Replies

[2005] Accessing Sytem Tray Icons?

Jan 8, 2009

"Getting a list of system tray icons/programs has been a thorn in my side for the past year can get the list as long as explorer is running, but the second explorer is closed, the list will not populate. I'm frustrated beyond belief that I can't find the proper API calls to get the information. If anyone knows how to do this, PLEASE share it here!! I know it is possible, because other shells do it. -Ray"

View 9 Replies

[2005] UnauthorizedAccessException Accessing Comm Port

May 3, 2006

I'm debugging a VB app where I'm using a comm port attached to a bluetooth radio paired to another bluetooth radio in order to communicate with a remote barcode scanner. The pair of bluetoooth devices basically work as a serial cable replacement. Sometimes it works fine, but after a while I get an UnauthorizedAccessException message which breaks the program (see attached jpeg).

I only get this when I use the radios and not when I use a direct cable. I wonder if it has something to do with other bluetooth devices nearby trying to communicate with mine. I've used the .NET Framework 2.0 Confuration tool to adjust the zone security to give full trust to MyComputer, so I don't think it has to do with security, but I'm really going beyond my area of expertise here. I don't know what's going on.

[Code]...

View 2 Replies

VB 2003 - Handling Data - Transmitting Data From A Comm Device Via Serial Port

Nov 10, 2009

I'm currently working on a project where I am transmitting data from a comm device via the serial port and resorting the raw data (in binary) to its respective ascii values. The problem I'm facing is determining the most efficient method to accomplish my goal. Essentially, I have 68 bytes coming in, the first and second bytes represent the page and packet number and the data itself ranges from 3 to 64, the remaining for my checksum.

What I am needing to do is, grab 50 consecutive bytes per variable in my array, and that is where I'm confused. I have easily pulled my 3-64 bytes and stored that data to a string. I just don't know the most efficient method to accomplish my goal. Should I write directly to file all my data, as there are like 8 pages, of 128 packet data. [Code] I can capture the the first 50 by using a for-loop easily, but what would be the preferred method to track what data chunk I've taken? The more I think about it, I think I may just want to write to file, all my data, and then just take them back to back in 50 byte chunks. Is that the most efficient method?

View 3 Replies

VS 2008 Serial Data - Make Sure The Correct Data Is Received?

Jun 28, 2009

I am using Visual Basic express to create a serial interface to a multi-room audio controller. I have started by creating a form that can connect to the controller and I can receive data from the Controller and display Zone status, volume etc in corresponding texts box thaks to help from Stanav and Tassa in my previous thread.

My next problem is to do with receiving lots of data from the serial port and my application getting out of sync. This is mainly caused by turning the volum control as each time it is turned a little bit the controller sends out the new status of the Zone being effected

eg
****Turning Volume knob on Zone 1***
Status returned from Controller:
#Z01PWRON,SRC3,VOL05<CR>

[Code].....

View 7 Replies

VS 2005 Read A Serial Port In .Net?

Dec 10, 2011

Actually I have a Weigh Bridge (A Large Scale weight mechanism which weighs in Tons) , for which we use an ELECTRONIC WEIGHT INDICATOR which display the weight on its own digital screen while it has an option to connect with a pc via Serial Port,,I just want is to have its weight (Digits) in a text box of my VB.Net Program,Here I want to mention that I know technical settings of my weight machine such as

Bite Per Second
Data Bits
Parity
Stop Bits
Etc,,,

View 17 Replies

.NET 2005, Serial Port, Dispose Windows CE?

Apr 12, 2011

I write program for Windows CE that should work with Serial ports. I use object System.IO.Ports.SerialPort. Everything works well but when I close program and open it again, I receive error: Port is in use! At the end I write:

port.close()
port.dispose()

And If I add this:System.GC.collect() than everything begins to work But problem is that computer gets stuck when garbage collector is called for each port. If I tried to use collector somewhere else, it doesnt "collect" ports and they look like used if program starts again.

View 3 Replies

Add Serial Key On 2005 Setup At Installation Time?

May 14, 2009

How can i add serial key at the time of installation when i install vb.net 2005 setup on any system like windows to proceeed installation you must enter the related serial key.

View 4 Replies

VS 2005 Reading HDD Manufacturers Serial Number?

Jul 27, 2010

(1) easy way of learning WMI, because i red many articlas on net but i could,t fallow whats what and MSDN is also not very understandable is there any MVP articles regarding please send me link

(2) how can i read HDD manufacturers serioal number

View 4 Replies

[2005] Serial Port Genius Wanted?

Jan 13, 2009

My app runs perfectly with debug but I'm having a couple of little problems with the actual build on another machine.'m getting a "safe handle has been closed" (most of the time, but not all the time) when I button click out of a certain area.The problem, no doubt, is related to the serial port and I think I can solve it but I do want to ask something very basic....I have several points in the code where I'm doing a serialport.open and serialport.close....and clearing some registers etc.....like I say, in debug all is well.

View 4 Replies

Get Value From SQL Server 2005 Stored Procedure

Jun 20, 2010

This is my Stored Procedure Code to get the customer mobile value:[code]I was try to get this value into lblGetCustMobile (Label Control) using this [code]but nothing happened, can any one make this code get the mobile NO. into lblGetCustMobile?

View 3 Replies

VS 2005 Run A Stored Procedure Using ODBC

Aug 27, 2010

How do I run a SP using an ODBC data source name?I can do it using a hard-coded connection string, but I don't want that. I want my program to be more flexible, so it will run on any computer.[code]How would I do that with ODBC, instead of a hard coded string?

View 1 Replies







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