Send A Command To A Tenma DC Power Supply Over An RS232 Cable?

Jan 17, 2009

I am doing wrong? I am using VB2008/VB.NET to send a command (set to 4 volts) to a Tenma DC Power Supply over an RS232 cable. I don't have documentation from Tenma that lists the commands that the instrument understands, I got "VOLT040" from a program in an older version of VB that someone else wrote for this instrument. The code is below:

[Code]...

View 2 Replies


ADVERTISEMENT

Get Info From A Scale Using An RS232 Cable Into A VB2010 Program

Oct 28, 2010

So I am trying to get info from a scale using an RS232 cable into a VB2010 program. But before we even start talking about that, I don't know ANYTHING about serial ports. I need to learn how to get the data from the scale without programming first... I am using Win7. I do have a sample program (w/ source) I downloaded [URL]) It runs without any errors, then I have a big USER error, what do I push? How do I tinker to figure out the right settings on this interface? or any interface. These are the sittings for the scale: [URL] I am considering returning my scale and getting something with maybe USB on it, I need to be able to weight things up 100lbs, I am shipping car parts.

View 8 Replies

Communications :: Send A Command Via RS232 Communications

Jan 26, 2009

I am using VB2008 Express and am curious how to send a command via RS232 communications. The string that I need to send is 02h PON 03h. The start and end bits are 02h and 03h.

How can I convert 02h and 03h to its ascii form. In hyperterminal, I use the sequence {(hold)ALT 0 0 2} on the number pad to send the start bit.

I am using this code currently without the start and end bits

Code:

View 8 Replies

Use VB Form To Supply User Credentials To Runas Command In Prompt?

Sep 28, 2006

Is there any way to use a VB form to supply user credentials to the Runas command in command prompt? I basically need something exactly the same as the GUI for RunAs but just for Internet Explorer (yes I know you can right click and go RunAs but that cant be done in this case). So the user would open this VB form, type their username and password in, hit OK and it would open Internet Explorer with their credentials (they log in under a generic account used by many people).

View 4 Replies

Send Commands RS232?

Jul 26, 2010

I have downloaded the vb script and it works as it should, its a program where you have some buttons so that you could trigger the relays.But i need several small scripts, one for each relay on / off so that i can call them from a .bat file with argument.i have a .bat named relaycard and in thet i have created argument like

relay1on
relay1off
relay2on
relay2off
and so on.

The small program relay1on should just do the jobb and then close itself.Maybe its a little bit clearer now.On the link that i posted there is a manual and even links to the vb program,

View 27 Replies

Send / Rcv Msgs Using GSM Modem RS232

Mar 20, 2012

I am using a GSM modem RS232 where a sim is inserted. I want to write a VB.NET application so that i can send or rcv messages using the modem. How to proceed for same?

View 2 Replies

VS 2010 - Sequence Of Commands To RS232 - How To Sure Command Is Received

Dec 20, 2011

I write in VB2010, the software should work with the external hardware via RS232, the thing is when I send a command to the external hardware I have to wait for a reply from the device that command was received, just after I got the answer I want to continue send another command, I have a long sequence of commands i'm supposed to send, but I need to know for sure that the commands were received before I go on to the next command. I did the following code, but I think the code is not effective, because sometimes I do not get an answer and then the whole sequence commands destroyed. Maybe you can help me optimize the code? [Code]

View 1 Replies

Send/receive Messages Via RS232 From Programme?

Jul 14, 2010

how to send/receive messages via RS232 from my programme. I have a USB-serial adaptor

Can anyone recommend any places to look? Is this something that you would expect would be fairly easy to do for someone with a few months of coding practice?

View 2 Replies

Communications :: RS232-USB Converter - Send Data To Microcontroller

Mar 13, 2009

I have a problem regarding rs232-usb converter... I'm using toshiba laptop. The problem i faced is i can receive data from my microcontroller to VB but i cant send data to microcontroller... However, when i use the same VB code and same converter, i try at my friend laptop (other brand), it works... May i konw is there any other setting i need to set for my laptop??

View 3 Replies

Send A Text File To The Power Output Control Programme?

Apr 1, 2009

I am looking to create a VB 2008 Express programme which converts a data stream from a picoscope muscle sensor into a power output board which controls a mechanism.In simple terms when the Muscle sensor reaches a value of 0.8 V or higher I want the programme to send a text file to the power output control programme, and likewise when the sensor is below 0.2 V I want the power to be zero.

So 0.8 V > = send text file (0O=100%)
0.2 V < = send text file (0O=0%)

so when muscles being senced move the device turns on and off.I think I am successfully getting the data stream from the Picoscope which is plugged in the usb. I am using codes and examples that the programming guide for the device provided.here is a quick snap shot of the code (ps2000 is the driver used for the device)

ps2000_open_unit()
ps2000_set_channel(ps2000_handle, 0, 0, 0, 1)
ps2000_run_streaming(ps2000_handle, 250, 1000, 0)[code].....

how to get the data to be displayed or how to tell the programme to do something with the data.The device also came with an example of how it can record data to an excel sheet if anyone needs the code to gain a better understanding.

View 4 Replies

VB In A Laptop Through USB Port And A USB-RS232 Converter To Communicate With A Microprocessor Using RS232 Protocol

Oct 18, 2010

I have developed a microprocessor based devise. It can communicate with laptop through RS232 as a VB application. Now most of laptops have USB port only. So I want to use USB replacing RS232 port on laptop side but not change anything on the device side. Can I do this using a USB-RS232 converter? How to change the VB software?

View 1 Replies

Send A Command To A Command Line And Then Submit The Command?

Apr 30, 2010

First let me say that I am not sure whether or not this should go in this section or the API section, and if it needs to be moved I apologize. My issue is fairly straight forward, but for some reason I cannot get it to work.

I am trying to send a command to a command line and then submit the command. I have been trying without success to get this to work in v2008 Express and v2010 Express, Here is the code I am trying to us:

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String _

[Code].....

View 6 Replies

Using Psexec.exe From PsTools To Send A Command To A Remote System To Fire A Command

Mar 17, 2010

I am currently using psexec.exe from PsTools to send a command to a remote system to fire a command through a command prompt however I am finding that the shell I am doing does not seem to like the spaces in the path.

[Code]...

View 3 Replies

Send Command To Command Line From Windows Form Application?

Mar 11, 2010

I am trying to send a command to the external command line (cmd.exe) from the Windows form application that I'm writing in VB.NET (using VS2008).

I can only access the external program thru the command line (its not my program) and I must do so from a form app.

I am trying to use the following code. I am able to call a cmd.exe window, but I can't pass the command line my command.

Using mp As New Process
With mp.StartInfo
.FileName = "cmd.exe"

[Code].....

View 8 Replies

List All Power Off, Power On Computers In Local Network?

Jul 26, 2010

Im coding an application that needs to list all computers inside my LAN, and get the status of the machines ex. Power On, Power Off.. in order to Wake On Lan, or Turn it Off.. im using Visual Basic .Net.I all ready listed all machines, now i need to get the status of them..

View 5 Replies

DOS Net Send Command Use In VB?

Oct 18, 2011

I use below code to run DOS command Net send through VB code but not work I need help to solve this problem Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]...

View 1 Replies

Send The Command In Hex?

May 24, 2010

I am new to programming and VB.. so go easy my buffer is about full :) I am trying to talk to a box with serial port and only need to send the command in hex. here is the protocol for the device and my code below it to turn on the box. I am not calculating/sending the correct checksum because if I sniff the string being sent to the box from another piece of software that comes with it I get 04 1C 01 DF (spaces put in for clarity) and it works. my code produces 04 1C 01 21..

View 17 Replies

Supply SqlCommand Parameter Value?

Aug 8, 2009

Below is an UpDate Statement I am practising with David Sceppa's book ADO .NET 2.0 Core Reference pages 467 - 468. I can supply the parameter values for "parameter_New" by doing something like:

da.UpDateCommand.Parameters("@OrderID_New").Value = myTextBox.Text

And so on...My problem is how to supply the value of "paramete_Old" to be able to compare before update. I gues it has to do with obtaining the Original values of the rows based on RowVersion but I don't know how to effect it.

strSQL = "UPDATE [Order Details] " & _
"SET OrderID = @OrderID_New, ProductID = @ProductID_New, " & _
"Quantity = @Quantity_New, UnitPrice = @UnitPrice_New " & _

[code]....

View 16 Replies

AT Command To Send Scheduled SMS?

May 25, 2012

Is there any AT Command to send Scheduled SMS from PC via GSM Modem?

View 1 Replies

Can't Send Command Using Pop3?

Jun 3, 2012

my problem is i can't send command using pop3 in vb.net every time i try to send its nothing happen but i can connect in tcp client server and server reply +ok when i connect

View 10 Replies

Send A Command To A Server?

Jul 28, 2009

how to creat a client and a server and pass text between them (like a messenger), and it works just fine

so my question is : how do I send a command to the server, for example, open a program (like notpad) or do tasks or search the remote pc or even shutt it down??

note that am not trying to make a trojan or anything like that, I have two pcs and I was just wondering how to do it ?

View 3 Replies

VS 2008 Send Key's Command?

Mar 17, 2009

i have a textbox that my mouse double click's on so it highlight's the text and i need it to copy that text

sendkeys.send({^+C})

i know it's something like that but it's not working for me i just need to send ctrl+c to copy it and i dont know the code's

EDIT> k someone gave me the code it's
System.Windows.Forms.SendKeys.Send("^c")

now i need the space key what is the code for it i tried this and it dident work

SendKeys.Send("{SPACE}")

View 7 Replies

Difference Between Arrays And Records And Supply

Apr 19, 2010

Can anyone explain to me the difference between Arrays and Records and supply some code showing the differance between the two, as an example.

View 3 Replies

Delay The Execution Of The Send Key Command?

Apr 16, 2012

I am trying to delay the execution of the send key command. In VB script, it was relatively easy:

obj.sendkeys "{enter}"
wscript.sleep 1000
obj.sendkeys "{tab} {tab}"

When I do it via VB express, it is clumping the code together. For example

Threading.Thread.Sleep(5000)
SendKeys.Send("enter was entered ")
Threading.Thread.Sleep(5000)
SendKeys.Send("double tab was input ")

Instead of pausing for 5 seconds, typing the keys then pausing for another 5 seconds, it pauses for 10 seconds and then immediately types the input. I tested this on notepad.

How do I replicate the sleep feature in VB script into VB? There appears not to be a sleep feature in VB Express 2010

View 5 Replies

Send A Command To Another Instance Of My Program In Net?

Jan 12, 2010

I have a program that needs to see if it is already running and if so bring the other instance to the front and then close itself. Now I figured out how to see if another instance of the program is already running using GetCurrentProcess, but how do I tell the first instance to "BringToFront" from the second instance?[code]...

View 3 Replies

Send Commands To CMD ( Command Prompt )?

Jun 24, 2011

In my application I have only one button . That button will open CMD then it will send a command into cmd , now after that command it requires an "enter key" to continue the process .I tried the shell command in order to access the command but then I couldn't press enter in cmd using my application

View 4 Replies

Send Commands To Command Prompt

Dec 13, 2011

I am trying to send commands to Command prompt.The following code should open the text file I specified.However it opens several instances of the cmd window and also several copies of the text file. Sometimes the text file is not opened and if the file path is long, part of the file path gets inserted into my text file.[code]

View 1 Replies

Send Keys To Command Prompt?

May 25, 2009

I have an application that will open a command prompt (cmd.exe), and then types "ipconfig/renew". How do I send the enter key, to execute the command?

View 3 Replies

Supply Textbox2 With Name When Number Is Input To Textbox1?

Jan 11, 2010

I have only really gotten into VB, so am an amateur.I have done quite a lot of search, and have read a lot of conflicting data which has yet to give me the result I'mafter.I have:Windows Form with many fieldsdatabase with 2 lots of data for reference.What I am after if for TextBox2 to give a result from the database when Textbox2 has user input.I have tried If TextBox1 = [Code] then TextBox2 = [Name] from db0 Names$

View 6 Replies

User Can Supply A List Of Proxies To Test?

Feb 27, 2011

I was wondering if somone one could point me in the right direction on this.Basically I am making a proxy testing program. A user can supply a list of proxies to test. What i want to be able to do is have them be able to specify how many threads they want to run. Then have the program go through the list testing each one using the amount of threads supplied. Really not sure even where to start on this. Threadpooling?

View 2 Replies







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