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


ADVERTISEMENT

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

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

Output Formatted RTF Text To A Rich Text Box Control?

Feb 24, 2012

Okay, so what I want to do is directly output formatted RTF text to a Rich Text Box control in VB.NET. I don't want to find the text, select it and color it as it is not practical for what I'm doing. I've tried outputting RTF code but that isn't working either. Can I actually do this or will I have to write a dll?

View 1 Replies

WebBrowser Control: How To Send Text To TEXTAREA Control

Dec 8, 2009

I have a WebBrowser control that have a webpage loaded in it. On the webpage I have a textarea control, like this:

<textarea name="text" id="textarea_obj">

View 2 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

How To Control Power To A USB Port

Jul 12, 2009

I have a simple USB fan that just runs on the power from the USB port. I want to be able to turn of and on the fan from a simple application.

View 1 Replies

Interface And Graphics :: Any Way To Pipe Output Of Bat File To Control

Mar 26, 2010

I have a visual basic .NET application that starts up a command prompt window using the following method:[code]The bat file then goes on to start up an application, which has a lot of output to the command prompt.I was wondering if there was any way to pipe the output of the bat file to a visual basic control. I am trying not to modify the bat file, if I can help it.

View 9 Replies

VB Power Control - Make The Light Flash On And Off

Apr 17, 2010

I'm trying to make a USB strobe light type thing. I have a cut USB cord with an led attached to the black and red wires. Now I'm trying to write a script to make the light flash on and off really fast. I've tried several different apis but none are doing it.

View 2 Replies

Output EVERYTHING From A Text File To Screen

Apr 15, 2012

I currently have a system that saves student data to a text file. I can search for individual students and have their information output to screen. How can I make my system output every student in the text file to screen?

View 3 Replies

Write Output To A Text File?

Oct 20, 2011

If I want the my output to be written to a text file do I just need to add:

Respone.clear() , Respone.ContentType = "text", Response.OutputStream.Write(bytes, 0, bytes.length) , Respone.flush()

[Code].....

View 1 Replies

Collection Input/output Text File?

Nov 30, 2011

Normal
0
false

[Code]....

This question has been most likely been asked a number of times, but really hitting a brick wall regarding this.

The issue is that at the moment, I have to create a database using text files on VB.

So far I have managed to get the code working to add new customer and browse added records, but stuck on how to output/input back and fore to a text file, to store information, and after this input/output the text file to a DB ( Not worried about this at the moment)

Public Class Customer
Dim CmrColl As New Collection 'Create the new collection. Think of this as an array of objects.
Dim itemCount As Integer = 0 'A variable to help us scroll through the objects later.

[Code].....

View 3 Replies

Format Date Output In Text File?

Sep 30, 2010

I want to have an output like this in my text file

"30092010_1425","2010/10/30"

This is my code

oWrite.WriteLine("{0,10:ddMMyy_hhmm}{0,10:yyyy/MM/dd}", """" + Now())

View 2 Replies

USB/Serial COM Changes & Output GPS Data To Text File?

Sep 1, 2010

Is there a way to write in the code to dynamically update the COM port if the USB/Serial adapter is plugged into a different port?

2nd: How do I have visual basic output the LAT/LONG coords that I have have show up in a form box to a text file every time it updates from the serial GPS?

View 5 Replies

Get Power Point Note Text?

Jul 29, 2009

Application - Powerpoint 2003

VisualBasic - 2008

I want know, How can i extract the power point note text?

View 3 Replies

Achieve Is Split Or Output From Text File For Each Single ID?

Apr 9, 2009

I am having a perl script through which i achieve is split or output from text file for each single ID , the output text file will contain data of that ID and the anme of the file will be ID.txt so if i am having one main file containing 100 or 200 ID's and for each ID's may be 10000 or more lines i would like to have 100 or 200 files containing data for each single ID which i am able to achieve from perl but is it possible from vb.net

open(TH,"myfile.txt")|| die print "not open1";
open(THG,">error.txt")|| die print "not open2";
open(INFO,">myfileAll.txt")|| die print "not open3";
$gt='0';
$flag=0;

[Code]...

View 1 Replies

Input And Output To A Text File Using Console Application

Dec 30, 2011

need an example of a console application that would allow you to input data to and retrieve data from a text file on disk.

View 2 Replies

Loop Through Datatable And Output Results To A Text File?

Feb 3, 2011

I have a data table that has thousands of entries. The table has employee production information: YearMonth, Employee ID, Pages worked and Jobtypes (e,k,o and r). I need to calculate a sum of each jobtype and a sum of pages worked for each jobtype, for each individual employee. I am pulling this data from an Access database and so unfortunately I am unable to use LINQ.[code]...

View 4 Replies

Output Data To Text File In Asp. Markup Code?

Sep 27, 2010

I downloaded some sample code which includes a database query within the markup code. It makes a query to the database and displays the results of the web form and I would like to divert the output to a text file and I am not sure how to do this?Can this be done from here or would it just be easier to code it in the source and make a new connection to the database?

Sample code:

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringIP %>"
DeleteCommand="DELETE FROM [ip-to-country] WHERE [ID] = ?" InsertCommand="INSERT INTO [ip-to-country] ([ID], [BeginingIP], [EndingIP], [TwoCountryCode], [ThreeCountryCode], [CountryName]) VALUES (?, ?, ?, ?, ?, ?)"

[code]....

View 1 Replies

Sending The Contents Of A Listbox To An Output Text File

Feb 19, 2010

I need some help sending the contents of a listbox to an output text file. Is there any code is visual basic that will allow me to do this.

View 13 Replies

Sorting Text File - Output Should Write 560001002001 At First

Jul 28, 2011

I've this txt file (almost 60 MiB)

[Code]...

Every line starts with 56000 then the first key, the the second key and the rest of the line. I tried to use SORT, that's included with Windows. It does a pretty nice job, but i need to have my own function in case SORT is not available. The output should write 560001002001 at first.

View 3 Replies

Writing To Output Text File Only If All Fields Are Valid

Apr 15, 2012

I have a form that validates a users info, address, phone, etc. I want to have the form submit the data only if all of the fields are valid, but haven't had any luck. Right now the fields are able to validate but the form submits the data to the text file regardless of whether the fields are valid or invalid.

Here is my code
Imports System.Text.RegularExpressions
Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
[Code] .....

How to create an if then statement to only submit the form when the data is valid. I was thinking I might have to set up a separate function but I'm not sure how to set it up really.

View 3 Replies

Get Default Icons For .app .exe .file Etc For A Treeview In A Browser-like Programme

Jan 12, 2012

I have been trying to find code that will enable me to get default icons for a treeview in a computer browser programme. like the WINDOWS browser(Not the internet one but the "Windows Explorer" one) but i can't get icons that are allready there

View 4 Replies

Multiple Text Boxes And Combo Box Selections Output To Txt File?

Nov 1, 2009

I'm using Vb .net 2008

I could use some advice/examples to acheive the following:

I have 1 form, 4 text boxes, (textbox1 ,2, 3, 4)

Textbox1 and Text box 3 and single line text boxes.. Textbox2 is multiline.. (a description field which can be as long or short as the user desires..)

Textbox 4 is a large multi-line textbox that will contain the output of Textbox1,2,3.

I need to find out how to output the contents typed into Textbox1,2 and 3 into Textbox4 while maintaining formatting..

For example, contents of Textbox1 should always be the first text displayed in textbox4, immediately under that should be the contents of Textbox2, and under that, Textbox3

I want to ensure that the text is displayed in that order even if the user enters information into Textbox3 first.. and still displayed in the proper order if Textbox2 has 1 line of text or 20 lines of text.

How could I do this? How can I make the text from one box always be inserted before or After text from another specific textbox when its displayed in the destination Textbox.. (think of Textbox4 like a "preview window" of sorts.. which will later be outputted to an actual txt file.

View 1 Replies

Read Text File And Output Multiple Lines To A Textbox?

Nov 3, 2010

I'm trying to read a text file with multiple lines and then display it in a textbox. The problem is that my program only reads one line.

Imports System.IO
Imports Microsoft.VisualBasic.FileIO
Public Class Form1

[code]....

View 2 Replies

Power Point - Wrap Text In Shape Programmatically?

Jan 11, 2012

I have been working on a small hack around with Power Point to automatically create a Text Box Shape with some preset effect in which the text is dynamically fetched from clipboard. I have quiet a bit of a problem here, the functionality works fine with the following VB script with macros.

Sub ReadFromFile()
' CLIPBOARD
Dim MyData As DataObject
Dim strClip As String[code].....

providing the script for wrapping the text inside the shape which has a defined width and height as in the code above?

View 3 Replies

Write Motherboard Id Into Output File In Plain Text Somewhere In Windows Desktop?

May 20, 2011

I know this script [below] gives the pc motherboard number ,...well I would like to know how to write the result number as plain text somewhere in the windows, in a folder, or registry , or in a harddisk volume,... I know I could use

FileSystemObject CreateTextFile

I dont know how to insert it in the code , I tried but it gives me error

Code:
strServer = "."
Set objWMI = GetObject("winmgmts://" & strServer & "/rootcimv2")
Set objInstances = objWMI.InstancesOf("Win32_BaseBoard",48)[code].....

View 3 Replies

Send A File To Multiple Hosts By Which Sites They Select On Treeview Control?

Sep 4, 2009

I'm Trying to send a file to multiple hosts by which sites they select on the treeview control. I can't figure out how to set it up.[code]...

View 2 Replies

Send Checkbox Items To Text File?

Apr 9, 2010

I have a checkboxlist named cblLike and I need to know how I can get all the values of the checked item and send them to a text file. I currently have other controls on the form that are being sent to a text file, so all I need to know if how to get all the values of the checkboxlist that are checked and then how to send those in the array I already have so that it will save them in the text file along with all the other values being sent.

View 1 Replies

VS 2008 Send Text File To Printer?

Mar 9, 2010

Here at work we send straightup text documents to a Genicom, continuous feed, dot-matrix printer and we use the following code in Visual Fox Pro:

RUN COPY *.353+*.360+*.362+*.354+*.825+*.MSL+*.XMS+*.PQR+*.PJS+*.AJS lpt2
I'm having trouble how to accomplish the same thing: simply sending the files to the print queue.

View 5 Replies







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