[2008] Mixing Different Concepts Together?

Mar 15, 2009

This is my first post as I don't like to ask questions without making sure I've exhausted all other means. I'm new to VB2008 and programming in general but I'm learning. I want to do several simple tasks. Doing each separately is easy but when I put them together I don't know what to do. For one thing to work all the code must be changed and everything else doesn't work.

1. Plot a graph of data from a DAQ. I can do this by using a Timer1_tick method and displaying the data on the linegraph as long as the timer is turned on. I've decided to stick with this method of acquisition. I want to acquire data for long periods of time (perhaps 3 hours) so a timer is pretty good. No problems here.

2. Apply a filter to remove noise from the plot dynamically as the data comes in so that I get a smooth curve instead of a jagged graph. I know I can do this with for loops if I'm using an array. But how do I do it since I'm using a timer? Here the problem begins.

3. Log every piece of the filtered data that the timer is getting to be exported to a CSV file. I learned how to do this with do loops but not with a timer or array. But I really need to use the timer this time.

4. Acquire statistics for the data like maximum value, minimum value, and average value dynamically as the data changes. I know how to do this with an array of data after all the data is acquired. But How do I do this with a timer while the data is still being collected?

5. Monitor the data coming in to execute an alarm (Or event, like stopping the acquisition) when the data coming in has plateaued and is constant (eg: The voltage I'm monitoring starts to become constant and becomes one constant value) - Ok I don't know anything about this.

6. Execute a mathematical operation on the data that has been acquired (post acquisition) like finding gradients and such. Basically this means "How do I now manipulate the data I have and where is this data stored?"

Here's my starting code that gathers data with a timer. How do I work from here?:

Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Timer1.Enabled = False

[code]....

View 3 Replies


ADVERTISEMENT

[VB 2008] Merging Different Concepts Together?

Mar 15, 2009

I want to do several simple tasks. Doing each separately is easy but when I put them together I don't know what to do. For one thing to work all the code must be changed and everything else doesn't work. I want to:

1. Plot a graph of data from a DAQ. I can do this by using a Timer1_tick method and displaying the data on the linegraph as long as the timer is turned on. I've decided to stick with this method of acquisition. I want to acquire data for long periods of time (perhaps 3 hours) so a timer is pretty good. No problems here.

2. Apply a filter to remove noise from the plot dynamically as the data comes in so that I get a smooth curve instead of a jagged graph. I know I can do this with for loops if I'm using an array. But how do I do it since I'm using a timer? Here the problem begins.

3. Log every piece of the filtered data that the timer is getting to be exported to a CSV file. I learned how to do this with do loops but not with a timer or array. But I really need to use the timer this time.

4. Acquire statistics for the data like maximum value, minimum value, and average value dynamically as the data changes. I know how to do this with an array of data after all the data is acquired. But How do I do this with a timer while the data is still being collected?

5. Monitor the data coming in to execute an alarm (Or event, like stopping the acquisition) when the data coming in has plateaued and is constant (eg: The voltage I'm monitoring starts to become constant and becomes one constant value) - Ok I don't know anything about this.

6. Execute a mathematical operation on the data that has been acquired (post acquisition) like finding gradients and such. Basically this means "How do I now manipulate the data I have and where is this data stored?"

7. Know any good free linegraphs with autoscaling?

Here's my starting code that gathers data with a timer. How do I work from here?:

Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Timer1.Enabled = False

[Code].....

View 5 Replies

VS 2008 TCP Control - Mixing Bytes With String

Aug 8, 2010

I am currently writing a VB.net app to control an Integra AV receiver. I have success controlling it via Serial, but it also has a network port for TCP control. I can control it using CommandFusion iPhone app but am now wanting to create a windows app to control it. I have created client/server software that I use to talk from one PC to the which works well. So I am going to use the same client software to talk to the AV receiver. I can connect fine to it, I just haven't quite got the protocol right to actually control it.

[Code]...

View 8 Replies

[2008 Express] Merging Different Concepts Together

Mar 15, 2009

This is my first post as I don't like to ask questions without making sure I've exhausted all other means. I'm new to VB2008 and programming in general but I'm learning. I want to do several simple tasks. Doing each separately is easy but when I put them together I don't know what to do. For one thing to work all the code must be changed and everything else doesn't work.

[Code]...

View 1 Replies

Mixing C# & VB In The Same Project?

Aug 14, 2009

Can you mix vb and c# files in the same project for a class library? Is there some setting that makes it possible? I tried and none of the intellisense works quite right, although the background compiler seems to handle it well enough (aside from the fact that I, then, had 2 classes in the same namespace with the same name and it didn't complain). We're trying to convert from VB to C# but haven't finished converting all the code. I have some new code I need to write, but didn't really want to make a new project just for it

View 13 Replies

Fileshare - Mixing Exe Forms?

Jun 24, 2010

i wanta fileshare i think thats what it called prob not but his my code make it vb 2008 ||...these are two DIFFERENT EXE's

FILESHARE = "@JIOJDOSIAMDOSMAMPCA@"
public class shareReciever
Private sub btn1_click(blah)[code].....

View 3 Replies

Forms :: WMI WndProc Not Mixing Well?

Jul 23, 2010

I'm using the WndProc To get messages about USB flashdrives connecting and removing from the users computer. It works grand. I also use WMI queries to get the info about the flashdrives. It works as it shouold. The problem is when both of these are in the same solution. I ended up creating an extra .EXE that uses the WMI queries to get the drive info and output the info to a CSV file which my Main will parse. I tries creating a seperate class of each and i also tried to make a DLL that I import to no avail.

View 4 Replies

.net - Stop Using Asp Concepts In Asp.net?

Sep 30, 2010

I get the feeling I am still using asp type scripting techniques in the script below instead of proper asp.net scripting...

If this is true, how do I do the below the proper .net way?

<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>

[Code].....

View 2 Replies

Mixing Console And Form Together Fail

Mar 29, 2012

My app is basically console based but I need a Form to run in background. Adding a form in the app works but using Form1.Show didn't work, so I used VB.NET Application.Run(New Form1) However, in Form1_Load Me.Hide didn't work. I have no idea why. It works in buttons or other components in the same form.

View 1 Replies

Sockets Losing Or Mixing Up Data?

Oct 9, 2010

First let me start off by saying that I have dealt with Winsock for MANY years and am attempting to convert my project over from vb6 to VB.Net.This program was made to handle up to 70 connections at a time and constantly sending data from Server to clients and back.

There is one packet however, that reaches up to be around 177kb when sent. The sockets are set up to sent 1kb at a time.... (No other packet actually uses the whole kb). It seems that after the server sends this large packet... the client receives the data out of order. After debugging and monitoring I find that it normally happens between 3-4kb. While the first 3 are good and in order.My question is, is there a different system I should use instead of just Sockets (I have had similar problems with TCPClient) and/or can someone maybe link me to a sample project that would not have this error?

View 1 Replies

Does VB Support OOPS Concepts

Aug 12, 2010

Does VB Supports OOPS Concepts?

View 1 Replies

Stuck Understanding OO Concepts?

Dec 14, 2010

so i have a class called FOOTBALL,then another 3 classes/forms that inherit FOOTBALL, they control score (SCOREBOX), possession (POSSBOX), and quarter (QUARTERBOX).the FOOTBALL class has 4 variables, "score" (array of 2 ints), "teams" (array of 2 strings), "possession" (boolean), and "quarter" (int)after that i have another form called MAINBOX, which creates new instances of the 3 classes (SCOREBOX, POSSBOX, and QUARTERBOX) (like this: private scoring = new SCOREBOX)... however they all technically create their own FOOTBALL classes, so I cannot connect them.

View 4 Replies

C# - Use The Multithreading Concepts And Deadlock Concept?

Mar 27, 2009

I will connect with one database from several machines. In all machines they need to insert the data in single table. In that time: how to use multithreading and deadlock concepts? Using the MySQL database and also MS Access.

View 2 Replies

Forms :: Any Way To Implement Inheritance Concepts?

Jul 4, 2009

I m new to vb.net need some ideas about how to implement inheritance concepts in vb.net

View 1 Replies

Game, Unable To Grasp Certain Concepts?

Jul 1, 2010

Ok, I've researched for hours about classes, creating classes, creating obj's of that class, but every tutorial I've seen has either talking about things that are different from what I'm doing, or they were written with the assumption that I understand X or Y. What I want seems simple enough but it's just not clicking. Here's what I'm trying to accomplish:

1. Player chooses from a list of characters
2. That character has specific attributes (power level, experience points, ect..)
3. When entering the combat page, the specific attributes are displayed in text boxes
with respective labels.
4. When battle is over, experience points are handed out and saved in player class.

It's probably laughable to some how simple this is but I'm really struggling with it.

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

Vb Figthing Game Concepts/Thoughts?

Jun 11, 2012

Recently I decided it might be kind of neat to make a "fighting' game in Vb similar to a Mortal Kombat or Street fighter style game. If I understand everything it should be mostly collision detection and a lot of animation? What does everyone else think?

View 2 Replies

Write A Single Program That Uses OOP Concepts?

Mar 11, 2010

I am very new to VB.NET coding..My manager assigned me to write a Single Program that uses OOP concepts like Abstraction,Encapsulation,Inheritence and Polymorphism.As there is a time limit.

View 1 Replies

IDE :: Crash VS2010 IDE By Mixing Lambda Expressions With SyncLock?

Jun 30, 2011

Can someone who is using a 64 bit machine help me pintpoint this crash to either the VS2010 IDE itself or one of the plugins I have installed?

It's the code fragment below. When I copy & paste it into the Main() function of a new VB.Net console app on my Win7 64 bit machine, the VS IDE crashes and dies onthe spot, every time I try it.

Doing exactly the same on a 32 bit XP machine, nothing abnormal happens.

The 64 bit machine does have some IDE plug-ins installed, the biggest of which is DevExpress (the free version), so i think either one of those or the fact that the IDE is running on 64 bit must be the culprit.

This is the code. The static variable can also be made a module-level variable, with the same result.

View 2 Replies

Error: A First Chance Exception Of Type 'System.NullReferenceException' Occurred In Click Game Concepts.exe

Nov 29, 2011

Here are parts of my

Dim setting As My.MySettings
lvl As Integer
Dim xp As Integer
Dim xpt As Integer

[code]....

I have done the settings as type integer and set the values that I wanted but I get this error: A first chance exception of type 'System.NullReferenceException' occurred in Click Game concepts.exe

View 10 Replies

[2008] Mixing BOUND Controls With Non-BOUND Controls?

Jan 26, 2009

We are binding most of our text boxes and dropdown boxes to a BINDING NAVIGATOR (with a DATA SOURCE of a DATA TABLE).When the BN is clicked through the text boxes all change immediately.We need to use some non-bound controls as well.First one is 4 radio buttons that when clicked will change a single value in a DATA TABLE.What would be the best method to do this? Should I track when the CURRENTCHANGED event occurs on the BINDING NAVIGATOR.I'm thinking that I could trick this by BINDING the SINGLE FIELD to a HIDDEN TEXTBOX and when that textbox CHANGED event occurs mess with the radio buttons and visa-versa.

View 5 Replies

Mixing C# And Projects = Broken "Go To Definition"?

Aug 11, 2011

I have a large-ish solution, with C# and VB.NET projects mixed. Whenever I try to o to definitionon a class, property or method thats defined in the other language, Visual Studio just takes me to the Object Browser, which is pretty annoying. Same for debugging: I cantep into a project that's written in the other language.

View 2 Replies

VB Mixing Characters When Change Position Of Two Characters In Word

Aug 27, 2011

I'm making an application that will change position of two characters in Word.

[Code]...

Program works good, it is mixing characters good, but it doesn't write text to the file. It will write text in console, but not in file. Note: Program is working only with words that are divisible by 2, but it's not a problem. Also, it does not return any error message.

View 1 Replies

Office Automation :: Excel Process Continues Running (.Net Framework 3.5, VS.Net 2008, .Net 2008)

Apr 15, 2011

I'm calling the following method from a button click event to export a datatable to excel. After the export is completed, the excel application object is quit, released and assigned to nothing. But in reality it's not getting released and stays active unless the entire application is closed. So every time the button is clicked for export, a new excel application object keeps on running. The problem doesn't occur if two of the lines from the method below are not used. But I can't omit them as they are really needed. Check the * marked lines.

Code:
''' <summary>
''' Exports data from a datatable to excel.
''' </summary>

[code]....

View 1 Replies

VS 2008 Change Frame Rate In Visual Basic 2008 Media Player?

Feb 26, 2010

How to change the frame rate in Visual Basic 2008 Media Player? I have error: System.NullReferenceException was unhandled Message: Object reference not set to an instance of an object. IS there any way to fix this? Here's My Code

[Code]...

View 2 Replies

VS 2008 VB 2008 Express Edition Softare - Specific Installation Directory For A Program?

Aug 9, 2009

Where in Visual Basic 2008 Express Edition Software program do you specify a specific installation directory for a program?

c:Program Filesfinished program

I want to publish my program to try it out on another system and I want to ensure its installed in the directory structure I want.

View 3 Replies

VS 2008 Visual Studio 2008 Randomly Crashing When Simply WRITING Code?

Oct 25, 2009

i'm running Visual Basic 2008 Express Edition (latest service pack ... 9.0.30729.1 SP) on XP Pro SP3 with .Net Framework version 3.5 SP1 I have a rather large project I've imported from Visual Studio 2003 (Standard).The project compiles and runs just fine ... my compiled program itself never crashes.

But while I actually have the code up in the IDE, and simply adding/deleting code the whole IDE will randomly crash (usually without warning) and I loose my changes since last save.If/when I do get some hint of why it crashed, I get a window about illegal whitespace or something.... but that's rare ... usually it just crashes without warning and the whole IDE completely shuts down instantly. just deleting/adding a character is enough to trigger it maybe once every 30 minutes.

This is on a computer that is otherwise very rock solid .... no other program ever crashes, etc.

View 1 Replies

VS 2008 Access Windows Form Designer Generated Code In 2008?

Jan 20, 2010

Is it possible to edit the Windows Form Designer generated code in VS2008?

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

DB/Reporting :: Visual Studio 2008 + Crystal Reports 2008 Viewer Click Event?

May 10, 2008

this event works ok, but the problem is that I don't know what field was clicked. Should I use objectinfo or something else? VB.net won't recognize for example e.objectinfo.

View 1 Replies







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