Building A Simulator Of An Actual Hardware?

Mar 30, 2011

I have a 3-axis robotic machine. But due to training purposes, i would like to create a simulator/emulator that act just like the 3-axis robotic machine. I want the simulator to be able to create its own virtual parallel port. So instead when i execute the coding that operates the actual 3-axis robot,whenever i send a trigger to my virtual parallel port, my simulator will start working. So my question is,

1) How to develop a simulator/emulator using Visual Basic.NET

2) How to access and create a virtual parallel port within my computer.

View 4 Replies


ADVERTISEMENT

Build Electronic Circuit Simulator In .net?

Mar 29, 2010

i want to build my own electronic circuit simulator which is use mathematical models to replicate the behavior of an actual electronic device or circuit. Simulating a circuits behavior before actually building it can i do that with vb.net is there any library that deal with simulation or something

View 6 Replies

VS 2010 Trying To Make A Windows Simulator?

Dec 9, 2011

I'm trying to create a Windows Simulator. It will do basics, of course not the whole systemWhat I have currently:esktop with full screen (Optimizes for your screen and streches it for your resolution).simple taskbar with the menu.clock at the notifcation area.Desktop refresh (Will refresh icons as Windows does).now how to.

View 6 Replies

Basketball Simulator - Conversion From String Not Valid

Feb 24, 2009

I am new to VB I get this error message "Conversion from string "" to type 'Double' is not valid. when running my app, (the underline codes are the errors), which is a basketball simulator. How can I correct this:
Private Sub playButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handle playButton.Click
Dim rank As Integer
Dim player As Integer
Dim shoots As Integer
Dim RandomGenerator As New Random
[Code] .....

View 3 Replies

VS 2010 Direct2D - Graphical Simulator Application Using GDI ?

Apr 17, 2012

I've been working on a graphical simulator application using GDI. GDI is terrible for rendering what simple graphics I need, too much flickering and definitely not efficient. From what I have been reading GDI and GDI+ are pretty much out of date and what I should be using is Direct2D. But my problem starts when I cannot find ANY reference material to even begin coding. I found some examples for C++, but my little knowledge of C++ prevents me from implementing and translating it to VB2010. I have found someone on VBForums through a Google search that says he is starting a tutorial for Direct2D for VB2010 but I have yet to see anything happen.

All I am rendering are small circular shapes used for simulating cell growth, I have no problem rendering 10-20 moving shapes at a time with a small amount bearable flickering, but any more the lag worsens exponentially and the application will use a ridiculous amount cpu. Overall I want to be able to display and render over 100 shapes at a time. So my question is... Where can I find some reference material regarding Direct3D for VB2010?

View 2 Replies

Simulator To Imitate The Output Of A Gyrocompass On A Ship That Is Moving Around

Apr 23, 2009

A gyrocompass simulator? Basically i work with stabalized VSAT antennas that track a satellite around 30,000 K in the sky from a ship getting tossed around at sea. These antennas need to know where they're pointing so they can find the satellite, this is where the gyrocompass comes in. It tell the antenna how many degrees from north it is pointing.

I need a simulator to imitate the output of a gyrocompass on a ship that is moving around. The program would pass data out of the serial port so i could hook it up to the antenna and it would know where it is pointing when i am testing it.

View 1 Replies

API's In The Microsoft Flight Simulator X SDK About Multiplayer Chatbox Or Any Multiplayer Functions

Jun 2, 2011

I am making a program for Microsoft Flight Simulator X, and When you are in Multiplayer in most games there is a Chat room, or Chat Box. Do you think that there is any way I can reach maybe an API or possibly monitor the Screen so If someone types !Help in the chat box my bot would Respond like "Software by (whoever) other commands" stuff like that. But I cant seem to find any info about API's in the Microsoft Flight Simulator X SDK about Multiplayer Chatbox or any multiplayer functions in that matter.

View 2 Replies

Get The Actual Date?

May 2, 2012

how can I determine the actual date?

Of course I know the Now() function, but what, if the user sets the date on the computer f.e. 2 days back? I have tested it, I get the date from 2 days earlier.

Is there another way to determine the REAL actual date?

View 3 Replies

Does Not Keep Track Of The Actual Rotation

Apr 1, 2011

I have a screen full of puzzle peices they are all rotated at different angles (90,180,270). is there a way to track the peices rotation? I was thinking of using a 2d array to store there rotation. however, I am using this code to rotate the peices:

[Code]...

View 6 Replies

Get The Actual Pixel Coordinates?

Feb 24, 2011

how can i get the actual pixel coordinates, in the pb_mousemove event, from an image with sizemode stretched or centered or zoomed?

the e.location property returns the location in the picturebox, but i need to compensate for scale + the left + top offset of the image.

View 3 Replies

Get X / Y Point Of Actual Form?

Jan 2, 2012

How can I get the coordinates of a form (current form => Me) of the upper left angle of it on the screen?

View 2 Replies

No Actual Image Displays

Jun 16, 2010

I am running windows xp media player. Everthing works fine except my photos. They show in library normal but when I select them to play they look as if they have visualized bars. No actual image displays. How can I correct this?

View 3 Replies

Print Preview Different Than Actual?

Oct 22, 2010

The Print Preview document is set to the print document.[code]...

When I print the document (from print preview or my print button) the papersize/margins are different...this is how:

1. If I draw a rectangle from (0,0) to some width or height the point is in the corner of the print preview but on my actual printed page it is about 1/4 in to the right and 1/8 in down.

2. I have an extra inch or so on the right side and bottom of the "page" that print preview will print to but will be cut off in actual printing.

I am assuming that there are some default settings (like the printer gutter and letter paper size) that print is getting from the printer that print preview is not, possibly. I need to have my print preview look exactly like my actual printed page.

View 4 Replies

Add A Checkbox To The Actual Top Of The Listview Colunm?

Dec 22, 2009

Right say you had 4 columns and decided to add a new one at the start just for checkboxes. originally your code is

[Code]...

View 5 Replies

Chart Displaying Value X10 Greater Than Actual Value?

Dec 15, 2009

I am having the following problem with a chart displaying a value that is heldwithing a variable but 10 times lager. But this is only happening in my programfor a user that is located in the Netherlands.If I run it from the UK or other people run it from other countries the valuesare displayed correctly, it only seems to be a problem for this one userin the Netherlands.I have checked my code and all is correct and there are no Multipliers added tothe value.To show what I mean see below, as I do not have the code to hand as I am currently at work.

View 2 Replies

Copy Or Export Actual Files?

Nov 12, 2009

I'm using VB2008 and I have a CmdButton and a Listbox. When the CmdButton is clicked, it will look for all the files contained on a fixed directory and the names of the files will be enumerated to the listbox. I have that piece working perfectly.

The question is -- after the listbox is populated with the filenames, can I select one or multiple items from the listbox and copy the actual files from the original directory to a directory that the user will specify via browse folder dialog? Maybe right click on the selected item(s) then export? Just a thought..

View 3 Replies

Day Of Week And Time To Actual Date

May 12, 2011

lets say i have a string that holds "Monday" and another string that holds "9:45:00 PM". would it be possible to look at the Date.Now() function and see when the next Monday is, and then convert those two strings into a date? lets say the next monday was 05/20/2011. I would want the date variable to hold "05/20/2011 9:45:00 PM". any ideas guys?

View 1 Replies

Determine The Actual Type Of A ToolStripItem In C#?

Jul 31, 2011

I am converting a VB.Net application to C#. Everything else is going great. Except this bit. I have a function which builds menus,sub menus and seperators from a database. It can build a MenuStrip or a ContextMenuStrip which can then be assigned to a form.

This means that menus can be extensive and conpmex but managed outside the application, which I also use as part of my security access model. All menus are controlled from the database externally, it also means I can develop visual tools (Treeviews etc) to manage user menus. The application uses menus extensively which is by design.

Programmatically I want to assign an eventhandler to every item that isnt a dropdown or a seperator

In VB I would do this, (works perfectly)

[Code]...

"System.Windows.Forms.ToolStripItem' does not contain a definition for 'DropDownItems' and no extension method 'DropDownItems' accepting a first argument of type 'System.Windows.Forms.ToolStripItem' could be found (are you missing a using directive or an assembly reference?)"

View 3 Replies

Get The Actual Property Name When Referencing An Interface?

Oct 29, 2010

Consider the following case:

Public Interface IHasDateUpdated
Property DateUpdated As DateTime
End Interface
Public Class MyClass

[code]....

Now, assuming I was referencing an instance of MyClass as an IHasDateUpdated; how would I determine the actual name of the property that implements the interface property via reflection?For example:

Dim x As IHasDateUpdated = New MyClass()

' How do I derive "MyDateUpdated" from "x" using x.DateUpdated?

View 1 Replies

Know Actual Header Sent By Webclient In Program?

Jan 27, 2012

I used webclient to surf a site with a proxy and I got no result. I use firefox to access the same site with the same proxy and I got result.

I want to know what sort of header webclient send and compare that with livehttp add on in firefox

View 1 Replies

Make The Actual Tabs Different Sizes?

Jun 29, 2009

Is there a way to make the actual tabs different sizes? I just want the tabs themselves different sizes not the whole thing. Seems like the itemsize property does this but it will only allow you to set one size. I want each tab to be a different size depending on its text.

View 11 Replies

Updating Actual Database Rather Than Just The Dataset

Jun 12, 2011

so I was originally having problems even saving the data, but I can now get it to stay in the dataset, and when I switch to another page it stays there when I go back to it. Although when I close the form and reopen it, the changed data has not saved. I know that it is because I have only updated the dataset and not the database, so was hoping someone could give me pointers of how to approach it.

[Code]...

View 1 Replies

Use The CallByName Function In Actual Script

Mar 29, 2011

There appears to be a problem when I use the CallByName function in my actual script. While testing it I used some hardcoded arguments to pass to the procedure in CallByName function. This worked fine. In the actual script these arguments are coming from an XML file. When I read this XML document the values are string values by default:

<Parameters>
<Parameter>A string value</Parameter>
<Parameter>False</Parameter>

[Code]....

View 5 Replies

Way To Snap Side Of DGV To Actual Data?

Feb 21, 2009

It seems that the autosize columns will only make them bigger. For example, if I have a DGV that fills most of the form and then only three small columns are loaded, there is a whole bunch of darkgrey empty space. Is there any way to snap the side of the DGV to the actual data?

View 8 Replies

Asp.net - Image Appearing Larger Than Actual Size In PDF?

Nov 17, 2011

I have the following barcode image:

I'm using the following iTextSharp VB.NET script to generate a PDF document containing this barcode:

Dim pdfDocument As iTextSharp.text.Document = Nothing
Dim filename As String = HttpContext.Current.Server.MapPath("barcode.pdf")
pdfDocument = New iTextSharp.text.Document()

[Code]....

When this PDF is generated, however, the image is appearing larger than expected, and is distorted:

I can't see anywhere where I'm setting the image to be a specific size, so why would it distort like this? And how can I prevent it?

It's crucial that this image remains the size it is intended to be so that it can be read by barcode scanners.

View 1 Replies

C# - Determine A Mapped Drive's Actual Path?

Jan 14, 2010

How do I determine a mapped drive's actual path?

So if I have a mapped drive on a machine called "Z" how can I using .NET determine the machine and path for the mapped folder?

The code can assume it's running on the machine with the mapped drive.

I looked at Path, Directory, FileInfo objects, but can't seem to find anything.

I also looked for existing questions, but could not find what I'm looking for.

View 8 Replies

C# - How To Get Actual EventHandler Delegate Instance From An Event

Nov 5, 2010

In C#, I could do something like this:

EventHandler handler = this.SomeEvent;

...which would allow me to, for example, do:

Delegate[] attachedHandlers = handler.GetInvocationList();

In VB.NET, I can't seem to figure out how to do a similar thing.

This doesn't work:

Dim handler As EventHandler = Me.SomeEvent

...due to the following error:

Public Event SomeEvent(sender As
Object, e As EventArgs)' is an event,
and cannot be called directly. Use a
'RaiseEvent' statement to raise an
event.

But this doesn't work either: [Code] So how can I actually get an EventHandler from an event in VB.NET? The only idea that's immediately coming to mind is to use reflection, but that seems pretty ridiculous.

View 2 Replies

Change Actual Printer Settings To Landscape?

Jul 13, 2010

I managed to print in landscape, however this setting is not being passed onto the printer driver, and when I click on 'preferences' in the printing dialog the printer seems to think that it is printing in portrait. Is there a way to change this in the code, without having to ask the user to do it?

View 5 Replies

Changing The Actual Shape Of The RichTextBox Caret?

Jun 21, 2006

How would I go about changing the actual shape of the RichTextBox caret?

I have tried using the CreateCaret and ShowCaret API calls, but they only seem to work with normal text boxes. Is there any way to modify them so they work with RichTextBoxes?

View 6 Replies

Convert Hash To ASCII / Actual Letters?

Feb 20, 2009

as part of a small encryption program i am making, i am converting the contents of a textbox to hashcode. I used the built in feature for this:.GetHashCode Now once i have the hash code how do i convert it back to regular letters?

View 3 Replies







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