Serial IO - Build Inputs And Outputs Interface Board

Feb 20, 2009

I would like to build inputs and outputs interface board (if you have schematics for the hardware or where I could purchase such thing) I need 9 inputs and 8 outputs, 24 volte DC for the inputs and I want to build a form in visual basic that utilizes the serial port so for example when I press Button1_Click it will make output number 1 goes high in the board and when input 9 goes high in the board label9 or Button3 will change color in the form.

So basically the IO interface and the form will only be used to energize relays and monitor these relays. I am not worrying at this moment about if this input is high make this output high but if this is possible in visual basic currently running Visual Studio 2008 Express.

View 7 Replies


ADVERTISEMENT

.Net To Communicate With A Small Unit That Outputs Data Via A Serial Port

Oct 15, 2010

I will be using .Net to communicate with a small unit that outputs data via a serial port. I have used an application that monitors the data between an application and this little box. What I see is functions such as IRP_MJ_CREATE, IRP_MJ_READ, etc. At first I thought I needed to build functions and I would send these via the serial port (a novice thought) now I see that the above functions are part of the Windows Driver Kit. So is it true that I call these functions in my code and then the underlying drivers communicate to the serial port and the approppriate data is seen at the serial port. So for .Net (VB) I need to find and use the appropriate functions and communicate to the serial port.

View 1 Replies

Communications :: Arduino Board: Communicate With It Using Serial Port

Jan 27, 2011

I have a problem with something.I have a Arduino board I wan't to communicate with by serialport.
In "Form1", I'll retrieve values from the Arduino board, and I want it to calculate and display data in TextBoxes.How can I do this?[code...]

View 8 Replies

Generate An Interface For The User To Update Parameter Of A PCB Board MCU?

Jul 18, 2006

Currently, I am using a VB.NET to generate an interface for the user to update parameter of a PCB board MCU. However, I found that some data might be having a problem while transmitting.

Previously, I am using a chrW() to change the transmit data before put into the MyRS232.Write(), however, some data have corrupted or changed while I transmit. The signal show the checksum is wrong while sending the set of data.

After I use an oscilloscope to check the signal transmitted. I found out that, when I sent the data is between &H80 to &H9F (&b 100* ****), the signal will change to &H3E (&b 0011 1111). Anyone have any idea why this happened? Now the temporary solution I found for this one is I use a chr() instead of chrW() for the data between &H80 to &H9F.

[Code]...

I am using another function ChrWt instead of Chr or ChrW only. I remember that, I change from Chr to ChrW because some data corrupt also while I sent using Chr only. Did anyone of you having this problem as well? Any suggestion instead of using another function?

View 7 Replies

VS 2008 Mobile Applications - Device Board Serial Number In Vb 2008

Oct 15, 2011

My some problem for vs 2008 in mobile applications How to learn mobile device board serial number in vb 2008?

View 2 Replies

Built A USB Interface Card Which Transmits A Binary Value To The Computer Dependant On Which Inputs Are Active

Feb 25, 2011

I have built a USB interface card which transmits a binary value to the computer dependant on which inputs are active. For example, if inputs 1 & 2 are on, the output will be 3, likewise if inputs 1 & 3 are on, the output will be 5.My problem comes as I wish to get the binary integer into a format whereby I could have 16 checkboxes (one for each input), and 'check' the ones to which the inputs are on. For example, if inputs 1 & 2 are on, then checkboxes 1 & 2 will be selected, likewise if inputs 1 & 3 are on, then checkboxes 1 & 3 will be selected.The largest binary number that will be going to the computer is 65535.The only way I can think of doing this at present is to do the following a lot of times:

[Code]...

View 10 Replies

Implement The Serial Port In The Interface?

Jul 30, 2009

Do i have to implement the serial port in the interface again if i have put it in the behind code? Do have any links that can make me understand.

View 8 Replies

Interface Spi Using Parallel Or Serial Port?

Dec 29, 2010

i need to interface an spi analog switches using either a parallel or serial port. Is this possible?

View 1 Replies

Interface And Graphics :: Build An Application With A Simple MENU?

Mar 31, 2009

current version is 2008 I'm trying to build an application with a simple MENU. When the user clicks on a Menu Item i want the container to show some controls, now when the user clicks another Menu Item, the container needs to change and show other controls, and so on with every menu Item the user clicks, one at a time.

I thought of panels showing and hiding for every menu Item clicking, but that would use a lot of memory as ALL the controls would be created, some of them just not showing. I also though of an MDI application, but i dont want multiple forms (with the menu bar) opening inside one form. I just want the actual container of one form to change.

View 5 Replies

.net - Build Simple SQL Admin Interface To Change A Few Values In A Table

Jan 5, 2011

I am currently building a system in SQL Server 2005.

I have a table that holds information about certain insurance schemes such as overheads and other things. These values will change occasionally and currently I administer the database straight through the management Studio.

I would like to build a simple interface that will allow my colleagues to change these values by selecting the company in a dropdown and the current values will populate. They can then edit these values and submit them to the database.

Is this possible in the current Visual Studio supplied with SQL Server 2005 or do I need to get another product.

View 1 Replies

Interface And Graphics :: Plot The Graph From The Serial Port?

Sep 20, 2011

I new in vb .net. Now doing the robot mapping project from the arduino serial port and VB 2010 as a GUI. The serial port can read the text from arduino sensor but how to plot the graph from all the sensor value? So when ultrasonic detect the distance will give the pixel or point. I using the picture box as a background grip map.

[Code]...

View 1 Replies

Graphical Interface - Need To Filter Data Received From Serial Port?

Jun 4, 2010

I'm doing a project and want to do a graphical interface using V. Studio 2010. I want to use VB.NET as a programming language.
- Do I have to add any software to define VB.net?
- What is the function that reads the data from the serial port?
- If I want to receive more than one type of data, and I want to put/read them in separate text boxes, what is the function to filter the incoming data?

View 4 Replies

Function Gives 2 Different Outputs?

Sep 7, 2010

I have a very strange thing going on...I got a lot the CheckErrorStatus (Int32) error...and so I started to dig into my created functions. At the end I found what gave that error and so I added a new breakpoint on both computers where I want to run it (one is the developping computer, the other is the clients computer).

Developping computer : Windows 7, VS2008, .NET Framework 3.5SP1
Clients computer: Windows XP SP3, VS2008, .NET Framework 3.5SP1

the code of the function is a follows:

[Code]...

how it can that with the same input this function gives 2 differents (of which one is fault) output?

View 10 Replies

String - Different Outputs ?

Jul 24, 2010

About the following code:

Dim vDeletedMessageSubject As String = oMessage.subject
oMessage.Delete()
System.Diagnostics.Debug.WriteLine("Message with subject: {0} deleted.",

[CODE]...

Why the different outputs?

dp.SyntaxHighlighter.ClipboardSwf = '/dp.SyntaxHighlighter/Scripts/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('3ab83152232341d6a1b8a6f4a3419500')

View 3 Replies

Class Structure For Three Outputs?

Feb 20, 2012

Could someone write me a Class structure for passing the data array below.

Function function1(Byval input1 as Double, Byval input2 as Double, Byval input3 as Double)
'code'
data.data1=value1

[code].....

View 4 Replies

Pause In Between Screen Outputs?

Oct 7, 2008

I've got a little code that just reads and displays all the folders in a particular directory. What I want to happen though is for the program to pause 1 second after adding a new folder to the listbox. When I have Sleep(1000) it simply freezes completely.

Code:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 4 Replies

Create Function With Multiple Outputs?

Dec 8, 2010

Is it possible to create a VB function with multiple outputs. Note: I am not looking for an array containing me three outputs or a variable using delimitters

View 3 Replies

How To Question On Listbox Outputs And Arrays

Jul 11, 2009

I a program that you can store stocks in,such information as name of the stock, price of the stock when you purchased it and so forth.This is stored in a file that is read and can be changed.My button that displays the information is giving me some problems as I have it setup and it will read my original file but when I add files its not going to display the new files.I need a way to make it output to my list box the new files as well as the old ones.right now my listbox outputs 5 lines, and each line has 5 records now the amount of records per line will not change but the number of lines I have will.I cannot pre write lines for something that has not happened, and I am stumped on how to fix this problem..

I am still learning and new to code so for me to write code that writes other code seems like some fantasy out of the terminator so I am sure there are much much simpler ways to do this than that.I am guessing using a loop and a variable in my array than the actual number something a long the lines of csvData(i)However I am just not seeing what syntax to use and how I would go about putting this together... Never came across anythign like this in the past.[code]any thoughts for ways to attack this problem and the type of syntax that would have to be used?

View 1 Replies

Same Project Concepts And Funtions But Different Outputs?!

Sep 12, 2010

I started programming 6 months ago, Visual Basic is kind of easy and I made lots of programs. Now I am confused now. I have a serious problems about DLL's but I didn't made them but I knew how to make use of them. Okay I have 2 programs and one was having a problem and other one has no problem, they have the same framework, same code, but they have problems.url...

View 12 Replies

VS 2010 Overloading A Method With Different Outputs?

Aug 2, 2010

i recently discovered a nice feature called overloading, now the question is can i also do that for outputs? for example i want to call a function that would automatically return the datatype i assign the function toright now im geting an error saying "blabla and blabla cant overload eachother because they only differ by return types

View 3 Replies

Input A Part Number And It Outputs A Image?

May 12, 2010

I'm doing a school project with arrays and I want it so that I input a part number and it outputs a image, price, and name for the part. I need to accomplish this using the array. We've only ever done arrays where you input a part number and one thing comes back out, not multiple.

View 1 Replies

VS 2008 : Build An Application To Monitor A Site To Build Statistics From The Data Being Read?

Mar 3, 2010

I'm trying to build an application to monitor a site to build statistics from the data being read. This HTML looks like this.

<div id="history">
<h4>HISTORY</h4>
<table border="0" cellspacing="0" cellpadding="0">

[code]...

Now I can read the html and put the text anywhere, I just don't how to read specific parts so I can separate the data out.

View 17 Replies

Make A Leader Board?

Apr 28, 2011

i have made a pong game and it is relatively simple, but i want to add a timer to time how many points you loose with in 5:00 minutes. then i want to make it save to a form where the user can view it. the code i have used so far is

Public Class Pongmain
Dim speed As Single = 10 ' Ball Speed
Dim rndInst As New Random() ' Random instance

[code]....

View 2 Replies

Axinterop.wmpLib.dll Works OK In Debug Build - Not OK In Release Build

Feb 15, 2012

I have a Form with a Media Player in it. Which plays a Song.

[Code]...

It's playing in the background since the Form is hidden. When I play itin Debug, everything works fine. When I run the app outside Debug, I get this error: [URL] The Music File is there, but strangely, there comes this weird error.

View 4 Replies

Merges Two Files Together And Outputs One File In Ascending Order

May 1, 2009

[Code]...

Loop 'Bottom of Main Program Loop 'Close the files when you are done with them

readerInputFileA.Close()
readerInputFileB.Close()
writerOutputFile.Close()

Else 'Path/file for one or both input files does not exist - message

[Code]...

View 1 Replies

Service - Update Dictionaries And Outputs XML File Of Contents

Jan 30, 2012

I have created a service that updates dictionaries and outputs an xml file of the contents. It will do it fine first time round, but then I get the following exception when it tries to do it the second time
system.argumentexception an item with the same key has already been added
Is there anyway I can set it so that the dictionary contents are overwritten each time?

View 1 Replies

VB 2010 Underscore And Small Rectangles In String Outputs?

Dec 1, 2010

I've made some good progress with my first attempt at a program, but have hit another road block. I'm taking standard output (as a string) froma console CMD window (results of dsquery piped to dsget) and have found small rectangles in the output. I tried using Regex to clean the little bastards but it seems they are related to the _ (underscore), which I need to keep (to return 2000/NT logins). Odd thing is - when I copy the caharcter and paste it into VS2K10 Express it acts like a carrige return?Going to try using /U or /A CMD switch next..

View 2 Replies

VS 2010 Make A Program Which Outputs A Price Of Something Into Currency

Oct 18, 2010

i'v started learning visual basic on a software development college course and i have to make a program which outputs a price of something into currency only when i click on my calculate button it only comes out as a whole number so instead of �1.00 it just says 1, this is my output code.

qty = txtQty.Text
money = 100
If lstItems.SelectedIndex = (0) Then

[Code]......

View 3 Replies

2010 Programs Won't Run With New Mother Board

Jul 5, 2011

I have a number of programs written in VB.NET 2010 that load and run on every computer I've tried them on. This week I replaced my mother board with an IBM mother board using a Pentium 4 running Windows XP Pro. I install the programs but as soon as they start to run, they immediately shut down. If I run them in Visual Studio 2010, they run fine.

View 2 Replies

Create A High Scores Board?

Aug 20, 2011

I am trying to create a high scores board - currently i was experimenting with just typing a number into a textbox and having it automatically order the numbers (in labels) from largest to smallest however i cannot get them all to work. either just the first and second (label) works or the second and third display the same number or the second decreases in value even though it shouldn't[code]...

View 7 Replies







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