Hello Guest it is December 07, 2021, 01:58:53 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - adamchapman

Pages: 1
VB and the development of wizards / getting MAC address in VB
« on: October 25, 2012, 02:09:34 PM »
I've found a piece of code that should find the MAC address of the host machine in VBscript.

However, I can't seem to display the MAC address object for some reason.
The code is:

On Error Resume Next
Dim strComputer
Dim objWMIService
Dim colItems

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
 & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery _
    ("Select * from Win32_NetworkAdapterConfiguration")

For Each objItem in colItems

   If Not IsNull(objItem.MACAddress) Then
        'Wscript.Echo objItem.MACAddress
      msgBox("mac address is null?")
    End If


I have no idea why no message box pops up, and I don't know if ojbItem.MACAddress is a string.

If anybody could help I would be massively grateful

Video P*r*o*b*i*n*g / prevent G31 from writing to file
« on: October 06, 2012, 09:46:33 AM »

I'm trying to build a digitizing routine where the probe rasters horizontally by a certain distance, then if it hasn't touched anything, head downwards in z until the probe contacts something.

The problem I'm anticipating is that I'll need to use G31 to stop horizontal motion if the probe contacts before the z-axis movement is initiated. However, if contact ISNT made during the horizontal movement, is a coordinate written to the saved file of measured x,y,z coordinates? If so, that would mean a coordinate is recorded in thin air :(

Is there a way to prevent this? I'm effectively trying to reproduce the raster tchnique in this video: http://www.youtube.com/watch?v=IcVv1So1n_8

General Mach Discussion / Coding Digitiizing Wizard
« on: July 08, 2012, 07:51:42 AM »

I'm trying to write a faster digitizing algorithm for a wizard. I've been reading the "Customising Mach2" pdf documentation and have opened Art Fenerty's wizard in machscreen to interrogate the code.

However, there are two main things that I can't manage to find:

1. Where is the input from the probe considered in the code?

2. Where is the code that writes coordinates to a file?

Any help is greatly appreciated.

Many Thanks

Pages: 1