Send The STX And ETX Before And After The File Data Respectively?

Jan 12, 2011

Hi friends, I am working on an application in which I have to send a data of a text file to a PLC machine. Now the convention is that

send start of file (0x02)
send data bytes (file data)
send end of file (0x03)

how to send the STX and ETX before and after the file data respectively. The PLC should receive them as 02 and 03 i.e. in their Hex values. If there is any ready function like vbCrLf for STX and ETX

View 5 Replies


ADVERTISEMENT

File I/O And Registry :: Create Some Data Inside An App And Send It To Another App As A File?

Feb 20, 2010

This is what I am trying to do. I need to create some data inside my app and send it to another app as a file. But this 'file' should never be written to the hard drive. It will only ever exist in RAM.

View 17 Replies

Send Data To .vb File In Backend?

Dec 17, 2010

i am using thickbox in asp.net and everything works fine. I load it, have textboxes and dropdowns in it. I also made modal=true, so it only closes when i click the "Thank you" button. The problem is that behind in the aspx.vb file, i need the data from the thick box, so i can insert, update in my database. How can i do that? Right now all that is happening is that onclicking the button the thickbox closes, but how do i send data to .vb file in backend?

View 1 Replies

Send And Receive Data From ONLINE Text File?

Oct 18, 2009

from and to a text file. that's no problem and was done within a hour. (tnx to google)Now the problem. i want this textfile to be online. Normally with webpages you can read and write a file very easy but i've never done this withSo far the read code works. write code works in local mode, the only thing is he won't write to an online file.i don't get any errors the code looks fine for the debugger.the code so far (local mode for testing)

read:
Private Sub read()
If runlocal = False Then

[code].....

View 1 Replies

Getting The Data From 3 Table In Linq And Produce The CSV File And Send The Mail

Jan 19, 2011

I am using window programming in visual studio(2008) and i am using LINQ and need to get the data from three table's column e.g A table's 1st column(x),b table's 2nd column(y) and c's table third column(z), and then i have to produce the excel sheet(CSV file).I want to get the table's data in string format in visual studio and then produce the excel sheet.I don't want to use Store procedure and grid view in my program.

View 5 Replies

Send XML File Error 'Data At The Root Level Is Invalid. Line 1, Position 39'

Aug 2, 2011

I am attempting to send my XML file through an API. I have done this no problem by using the below code, however when I try and send the FILE over it will not work, I am now getting in the browser:

Data at the root level is invalid. Line 1, position 39.

Without trying to send FILE it works:

' create the Xml that the Msxml2.serverXmlHttp object will send to the Webservice
dim Xml_to_Send
Xml_to_Send = "<?xml version=""1.0"" encoding=""utf-8"" ?>"
Xml_to_Send = Xml_to_Send & "<xmldata>"

[Code]....

View 2 Replies

Send Data From A Windows Form To An Aspx Page And Send Back A Response - Request.Form Vs Request.BinaryRead?

Mar 29, 2012

Im trying to send data from a Windows Form to an aspx page and send back a response. Im running around in circles trying to make this work. The data im trying to send is 4 strings. So fare I have this in my code, using the build-in webclient in visual studio 2010, in the windows form sending to the aspx

[Code]...

View 2 Replies

Get Listbox1 To Be The Selected Comport Used To Do The Send Data And Get Data Back

Nov 14, 2011

I have two issues I am trying to correct...First am trying to get my listbox1 to be the selected Comport used to do the send data and get data back.

My second issue is its requiring me to send two times to get my read data back as complete data and has odd shapes with the data I get back in front of and after the regular txt.

Beware, I am very new at this so please take it easy on me... Most help I did find was for older versions I only have the 2010 Visual studio Professional...

Public Class Form1
Sub GetSerialPortNames()

End Sub

[CODE]...

View 6 Replies

Send Data To An Array With Different Data Type Declaration?

Apr 28, 2011

In order to re-sort the data received in USB easier, I send the data array received in USB (declared as Byte) to a temporary array (declared as SByte) to re-sort. I declared the temporary array as SByte just for easy sorting. After I compiled, an error message came up "make sure not divided by zero". I tried to use convert.SByte but still didn't help. Is it not allowed to send data to an array with different data type declaration?

View 1 Replies

File I/O And Registry :: Send Several Different Txt Fields At One Time And Each Into There Own File?

Jul 9, 2009

I have read the file I/O tutorial and I learned alot. My problem is I need to send several different txt fields at one time and each into there own file. This was simple in vb6 using something like below, I have no idea how to do this with .net. Also on start up I will need to read this information back into text fields.

Code:
Private Sub Command1_Click()
'Save command1 name to file
Open App.Path & "subD.cab" For Output As #1

[code]....

View 3 Replies

Pen File Dialog To Select A File And Then Send It To Another Folder

Jun 18, 2009

I'm currently working on a script that uses an open file dialog to select a file and then send it to another folder.The open file dialog works fine, and I can store the filename/location fine in a variable. What I want to know is how to copy a user-defined file to a set directory. All of the stuff I've found requires you to know what the filename of the thing you're moving is.

View 3 Replies

Send Data From PHP To C# Or .NET?

Sep 18, 2011

Today'm trying to pass a variable and an array of PHP to a desktop application, but I have no clue how to do it.To be more precise in my question I need PHP run the Desktop Application Developed in C # or VB.NET and send a variable.

View 2 Replies

How To Send Data On Email

Jan 25, 2009

i'm having difficulties on how to send data in email using VB.net i'm kind of newbie in VB.net!

View 2 Replies

How To Send Text Data Through Php

Sep 22, 2010

I am using this httpwebrequest, it where I am connecting to a site. So I cannot be able to send the text data to php.

Try
'Address of URL
Dim URL As String = "http://www.mysite.com/myscript.php"

[code].....

View 1 Replies

Send Data Between Subroutines?

Apr 22, 2011

I would like to send the variable "dst" from the Combobox1 sub to the Data sub. [code]...

View 1 Replies

Send Data From PDA To PC Via WiFi?

Oct 11, 2009

I have basic VB.net programming.. Now, i want to make a project, the story is: there is a VB app in PDA and VB app in a PC, the database is in the PC. How can our VB app in PDA send data to update the database on PC via WiFi connection?

View 3 Replies

Send Data To A USB Port?

Jun 9, 2012

how to send data to a USB port.

View 1 Replies

Send Data To MS Access Mdb?

Dec 31, 2010

I am trying to send data to a MS Access mdb. I have looked up tons of different things but I still cannot find what I need. I am not sure of what the correct name of the operation that I am looking for is? I already have the table saved. I just want to fill one cell in the table for now. The table is not in the same folder as my program. Or would it be better to have it in the same folder, if so how do I access the data as an mdb file?

View 3 Replies

Send Data With Socket?

Feb 21, 2011

I want to connect with a barcode printer and sendhim some specific characters and take back anything they send to me

[code]...

View 2 Replies

Send Over Data To A REST API?

Dec 18, 2009

I need to send over data to a REST API.I have a dataset with a datatable with the nececessary data. The data has to be in a specific format. I have a .xsd file with the format needed and a .xml file with an example.

View 26 Replies

Send Raw Data To A Server?

Sep 9, 2009

How do i send raw data to a server that the server will read and print out the data that was sent.

View 1 Replies

VS 2010 TCP Send Get Data?

Jun 6, 2010

well i use winsock6 in vb6...and i've used getdata,sendtada,connect,listen.ecc....today i started using vs 2010 and i dont know where to start and what to use to do the same things as in vb6

View 5 Replies

Way To Send Data To Sql Server?

Sep 18, 2010

What is the best way to send data from vb.net project to Sql server. I am using now first I am Createing like belowFirst: Createing a Insert store ProcudureSecond : Creating a Ent Class where I am Declering the Fild Proper Catagory of all the Field and Second I am Creating another Class wher I am connection with The Sql server and Calling the Parameter and joing the Ent with teh store Procudure

View 1 Replies

Access And Send Data On USB PORT?

Nov 21, 2011

I am currently doing a program to control some device via usb port but i don't know how to interface the usb port using vb.net. i want to send data on a device to make it act like parallel port..

View 10 Replies

Asp.net - Can't Send Post Data To Another Server

May 17, 2011

this is my code right now:

[Code]...

View 2 Replies

Communications :: TCP Communication - Send Data

Oct 29, 2009

I've been playing around with the TCP client/server sample code I found on [URL] but I can't seem to get it to function correctly. The problem I am having is that if I try to send data from the client a second time I get nothing back, not even an error that it couldn't send data. Every time I run the project it works the first time but that's it. When I was running the code line by line it seems to get to 'networkStream.Read(bytes, 0, CInt(tcpClient.ReceiveBufferSize))' and then it jumps over the rest of the routine.

[Code]....

View 2 Replies

How To Send Real-time Data Over UDP

Sep 19, 2010

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.

View 1 Replies

Request Server To Send Data Again?

Jun 18, 2010

i hav got a problemo with my client/server application that i created in vb.net.Actually i want to add a "Refresh button" at the client side such that when it is pressed some specific lines should be executed at the server side.(e.g. when the "refresh button" is pressed at the client side, the server should evaluate some variable "data" and executes this line "winsock.sendData(data)" )

View 3 Replies

Send A Bunch Of Data To Flash?

May 13, 2010

vb.net send a bunch of data to flash. i.e i want all data in a listview will be send in list view of flash and vice versa all items in flash will be send in listview of vb.net ?

View 1 Replies

Send A Data Table (4kbytest)

May 6, 2010

I have a need to send a data table (4kbytest) to an IP addr of 192.168.0.111. I;m usin VB2008 and have access to winsock.dll. My device (digital sign) is connected to the above address. I just need a quick and dirty way to send and receive. My digital signs which I build are connected to a wireless router that all end up at 192.168.0.111. I've done this comm rs232 but never tcpip.

View 2 Replies







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