Wpf - Web Resources For Industrial HMI Software Exists?

Mar 14, 2012

I am developing Human-Machine Interface industrial applications for touchscreen computers running on Windows XP embedded. At present, all our applications are written using Visual Basic 6, with some portions in OpenGL.

We are on the verge of adopting a newer technology. We are experimenting VB.NET with .NET Framework and WPF, but we wonder if it is a good choice for us.Our software is not real-time, as the real-time portions are confined to other hardware or software modules, but of course it should be rather responsive.

We found that WPF is not really oriented to embedded software nor to touchscreen user interface. In addition, our embedded computers must be fanless and therefore not really powerful, and WPF looks a bit slow on such hardware (compared to VB6).We are proficient in Basic language, and prefer this kind of language to C-like languages.Which Web resources are available to provide advice regarding our kind of software?

View 1 Replies


ADVERTISEMENT

Duplicate Concept, Industrial Simulation Program To VB Conversion?

Jul 19, 2009

I am trying to convert an industrial simulation program to a VB program There is one hard concept that I have problem with, it is called "Duplicate" Ex: When 1 person pass the duplicate block A, then 2 persons comes out, (that person is cloned). 1st person goes path 1, has delay time of 1 hour. 2nd person goes path 2, has delay time of 2 hours. At the end of the 1st hour, 1st person arrives at the detour, at the end of 2nd hour, 2nd person arrives at the detour, but 1st person already moves on to the next task for an hour.

So you can consider them doing their separate tasks simultaneously. Then complication comes in when somewhere down the path, 1st and 2nd person pass another duplicate B, then total of 4 persons will run into their own separates paths and delays. Then they will come back to the starting duplicate block A, thus creates total of 8 persons and follow the same path above again.

Until some condition has been met (ex: total number of persons pass through duplicate B), then all of them will leave the system.Anyone has any idea what is the best way (logically easy to follow) to program the concept? I hope I explained it clearly. It's unfortunate that MSDN doesn't allow attaching image or video.

View 2 Replies

Industrial App: Raise An Event For Something That Doesn't Have An Event?

Sep 15, 2010

I want to raise an event for an opto-input state change but not sure if I can. Basically I have 4 opto-inputs on a PCI control card - one of which changes pretty rapidly - that I currently poll with a timer. I'm looking at getting a proper hardware counter for that but the other 3 are production status indicators. I'd prefer it if they alerted the app to a state change though.

Depending on the state of one of the inputs I have to fire a relay which simulates a button push. Having been playing with serial ports and getting a very useful app built for logging production data into a SQL Server DB I want to re-visit a proof-of-concept system I built a few months ago.

Current code - which works fine - but I'd like to change is like this:

Private Sub tmrOptoInput_0_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrOptoInput_0.Tick
'Read OptoInput_1 to Monitor Track State...
Dim aType As Byte ' replace Byte with any other type

[code].....

Having 4 inputs so I need 4 timers, plus another one that polls the database and checks a status flag which triggers the app to start logging. I'd like it to be event driven rather than timer driven if at all possible but I don't know how and there's nothing in the control card docs. Also I can't seem to find anything relevant on the web.

View 2 Replies

Unable To Debug Project - Warning    1    Could Not Find Type 'WindowsApplication1.My.Resources.Resources, Time Table'?

Feb 28, 2009

i'm unable to debug my project that i made. i save it and everything, but it just won't playit says Warning 1 Could not find type 'WindowsApplication1.My.Resources.Resources, Time table'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. C:SchoolIPTTime table, using 2 loopsTime table, using 2 loopsForm1.Designer.vb 123 0 now when i open it up and try to debug it , it comes up with an error, i even try referencing it but it does nothing ,

View 2 Replies

Error: The Item "objdebugassociateassist.frmdbsetup.resources" Was Specified More Than Once In The "resourceS" Parameter

Jun 22, 2010

error: the item "objdebugassociateassist.frmdbsetup.resources" was specified more than once in the "resourceS" parameter. duplicate items are not support by the "resources" parameter.

View 1 Replies

Error "objReleaseRadni_nalozi.GlavnaForm.resources" Was Specified More Than Once In The "Resources" While Debugging

Sep 24, 2009

I don't understand. Till now this little app was working ok. Error1 The item "objReleaseRadni_nalozi.GlavnaForm.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter.Radni nalozi What gives?

View 4 Replies

How To Use If Exists

Apr 15, 2012

i am trying to use the if exists command to check if a database exists but it seems i cant declare the "EXISTS" its always giving me problems.i am now using the code with the try and catch if there is an exception it will give a msgbox that will say db already exists.but if there was no error it will say db created successfully the problem is now even if the db exists or no the " finally " condition will excute and show the msg will appear which is db created successfully.on both cases

View 14 Replies

Add DLL Reference ONLY If It Exists?

Jun 8, 2011

In my project I have add-on .dll files. Right now my DLL is called "FTP.dll". What I was wondering was if there was a way I could make it to check if the dll exists in a certain folder

View 9 Replies

Cannot Add An Entity That Already Exists?

Mar 9, 2010

in my database there are 3 tables

CustomerType
CusID
EventType
EventTypeID
CustomerEventType
CusID

[Code]...

View 1 Replies

Check If A Xml Tag Exists?

Sep 25, 2010

I was wondering if anyone could show me how to check if a tag exists?Here is the code that I am using to get the information from the xml.

Dim XmlFile As New XDocument
XmlFile = XDocument.Load(WorkingDirectory & "ToolsMediaInfoMediaInfo.xml")
Dim Manage = XmlFile...<track>
For Each XmlTag In Manage
If XmlTag.FirstAttribute.Value = "General" Then

[Code]...

View 2 Replies

Check If URL Exists?

Jul 10, 2009

This is the standard way of checking if URL exists [code]....

return true; } catch (Exception ex) { return false; } But my problem is that we have to check it for around 100 URL's. It takes more then 2 minutes to check for all as it is trying to get response of all of them. Is there any way that we can check if URL exists without getting complete Response so that total response time is less.

View 2 Replies

Don't Add Value If Already Exists In Datagridview

Sep 28, 2011

I have a datagridview with two columns: name and str.

i have this inside a for loop:

DataGridView1.Rows.Add(namevariable, strvariable)

this adds a row in the datagridview.

sometimes the value of strvariable could be the same of a value that is already in the datagridview in the str column.

when this happens i dont want to add the row.

basically: if the value of strvariable is already in some row of the str column, do not add the row.

View 4 Replies

How To Verify If Value Actually Exists

Feb 10, 2011

I've created a little procedure that I use to verify if a value does actually exist. I'm currently using this all throughout my application for things such as verifying if a control's EditValue actually has a value. I was wondering if I have missed any scenarios where a value would not be available, missing, non-existent, blank, etc., and how would I incorporate in my procedure.

Public Function ValueExist(ByRef CheckValue As Object) As Boolean
Try
ValueExist = True
If IsDBNull(CheckValue) Then
ValueExist = False
[Code] .....

View 2 Replies

Inserting SQL But ID Already Exists

Jun 22, 2010

This is the code I have
NewCustomerTable.Clear()
NewCustomerconnection.ConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source=G:Shop.mdb"
NewCustomerconnection.Open()
[Code] .....
I have a button called btnUpdate and when I click on update I want the program to check to see if the ID number already exists within the database but I cant seem to figure out how to do that.

View 1 Replies

Know When Handler Already Exists?

Oct 28, 2009

When adding a handler I want to be sure adding a unique(single) instance of the delegate. [code]...

View 18 Replies

Listbox To See If A Value Already Exists?

May 8, 2011

I have a form that I want to check if the listbox contains a value then I want it to delete the image inside btnHouse, insert text into that button, and disable the use of the button. I have that done, but the problem I am having is that my if statement is only checking the first item inside the listbox, not all the items. Is there any way to have the statement check every item?[code]...

View 5 Replies

See If A Folder Exists?

Feb 3, 2009

I want a if to say like IF "C:Program FilesTEST1 Exists Then do my code how would i do it i have this code so far:

If "C:Program FilesTEST" Then
ProgressBar1.Increment(100)
End If

View 1 Replies

Seeing If Value In Listbox Exists

Sep 4, 2011

i have 2 forms, when the listbox on form one wants to add to the listbox on form 2 i want to see if the item being added is already in listbox on form 2. I am not using searchlite as i don't understand it so this is what i have.LINE 4 IS THE LINE THAT IM TRYING TO IMPLEMENT.[code]i know that i can send selected listbox value to textbox and check that way but didn't want to code it that way.you wouldnot believe it, while writing the main post i re read it after i sent it and worked it out.[code]

View 5 Replies

VS 2008 Use VB To See If A Certain URL Exists?

Sep 23, 2009

Is it possible to use VB to see if a certain URL exists. For example see if [URL]

View 3 Replies

.net - Row Doesnot Exists In DB- Exception?

Oct 25, 2010

We have a dataset dsActualCost which fetches query value: MonthName in one column and Cost in another.We have a code to display data in table format.

For MonthIndex = 0 To dsMonth.Tables(0).Rows.Count - 1
Dim tdMonthlycost As New TableCell
If dsActualCost.Tables(0).Rows.Count > 0 Then[code]....

This code works fine when,we have data in all rows.we have no data at all But it gives exception for all other cases.I tried to debug and issue arises when it searches for any row which is not available in DB. Say the dataset has only 2 rows for Feb month,so when it executes line

IsDBNull(dsActualCost.Tables(0).Rows(2).Item(1))

It throws Db null exception.

View 2 Replies

2 Exists Function In 1 Sql Statement?

Jul 1, 2009

Is it possible to use 2 exists function in 1 sql statement. Below are part of my

select m.ModuleName,sh.Day,sh.Time,sh.Venue FROM Module m INNER JOIN Schedule sh ON m.ModuleID = sh.ModuleID INNER JOIN Student s ON sh.StudentID = s.StudentID WHERE EXISTS (Select * FROM MsgIn WHERE MsgIn.MsgNumber = s.Phone) AND WHERE EXISTS (Select * FROM MsgIn WHERE MsgIn.MsgContent LIKE '%MON%' = sh.Day)

I tried to do like this but an error occured.

View 1 Replies

Asp.net - Check If Referrer Exists?

Jul 25, 2011

In my code, I want to check if a referrer url exists and if the referrer url contains a specific sub string. I know how to check for the sub string:

If( InStr( Request.UrlReferrer.ToString(), "some sub string here" ) > 0 ) Then

But I don't know how to check if a referrer exists or not. No refer exists if the url is entered in manually in the address bar. So I tried this, but this does not work:

If (Not (Request.UrlReferrer.ToString() = "")) And (InStr(Request.UrlReferrer.ToString(), "some sub string here") > 0) Then

how do check if a referrer exists?

View 2 Replies

Asp.net Mvc - Getting String Value When Delimiter Exists?

Oct 18, 2011

I am working on finishing up a mvc 3 vb.net app... I have to parse about 2000 entries in a database and get the string value to the right of a " : " delimiter from one of the columns... Everything to the left I am not worried about but I need the value that is to the right of the colon for that item.. I have more issues involving needing to select string characters to the right or left of a delimiter... But if someone can show me how to achieve the above I can figure out the rest from there...

a example of the string is Jackson Smokehouse Fish Food:John Jacob JinggleHimer Schmit I would want to eliminate the first part of the string or just select the second part and put it in a variable for later processing...

View 1 Replies

Can't Find Table Even Though It Exists

May 10, 2009

I'm using the following code (System.Data.SQLite within VB.net)[code]...

I know the table exists because I can write to it via the command line through sqlite and through Autoit and can see it and edit it in the SQLite browser when I open the database. I don't understand why VB can't see it (I know it sees and opens the database file just fine).

View 3 Replies

Check If A Column Exists In ADO.net

Sep 13, 2009

I have a windows service which fetches data from various datasources and build a XML file and send it to a webservice. For example first I will get customer details from Oracle Database and build the XML file and then the SQL Server database and build the customer details XML. I am planning to use the same function below to build the customer object irrespective of what the datasource is. But dr("age") column is not available in SQLserver datbase How can I check if a column exists or not.[code]

View 3 Replies

Check If A Folder Exists?

Sep 30, 2009

I am trying to check if a folder exist, it doesn't work if the folder name has a space or "_" or "-". .

here is an example of cases that don't work:
"Folder test"
"Folder_test""
"Folder-test"

View 4 Replies

Check If FTP Directory Exists?

Jan 29, 2010

I know how to make a new directory on an FTP server, but I wanted to know how I can check if a direcogtry exists, and if it exists display a message?

View 2 Replies

Check If Permission Set Exists?

Mar 17, 2010

I am using Caspol.exe to install a custom Permission set and add Code Groups for my .Net 2.0 Windows Application.

I have created a Console Application that uses caspol.exe to add Permission Set and Code Groups. I first install the Permission Set and if I do not get an error, I continue to install the Code Groups

Now sometimes I need to add a new Code Group to the client machine, so I make the changes to the console app and it is executed on the client machine. If the client machine already has the Permission Set installed, it returns an error and stops the further processing.

So, I want to know if I can check whether a custom Permission Set is already added or not?

View 5 Replies

Check If Process (URL) Exists

Aug 4, 2011

How would i just if a website exists, and, if so, launch a browser to open it. I am making a little tool for one of my freinds and it allow then to quickly launch websites. How would I check if that is a valid website to launch, so i don't get an error if it is not valid.[code]The error i want to stop is "Cannot start process because a file name has not been provided."So basically i want to make sure that the program can launch the URL so i don't get this error

View 3 Replies

Check If Regestrykey Exists?

Nov 17, 2011

I cant get the following code to check if my regestrykey exists can some one help. the idea is to check if it exists if so do nothing if not create it, along with its value...

the full key is HKEY_LOCAL_MACHINESOFTWAREVTSAdvanced Offset 2AdminAccess
> If Dir$("HKEY_LOCAL_MACHINESOFTWAREVTSAdvanced Offset 2Admin", vbDirectory) <> "" Then

[Code]....

View 2 Replies







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