Hello Guest it is April 25, 2024, 06:27:12 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 - rrc1962

Pages: « 1 2 3 4 5 6 7 8 9 10 11 »
31
Mach4 General Discussion / Stretching Images
« on: May 24, 2016, 12:39:31 PM »
Is there a way to set a static image so it won't stretch or resize with the screen?  A way to lock the aspect ratio would work also.  Anything to prevent the image from distorting.  I was kind of hoping for a "resized" event attached to the tab panel object, but don't see anything like that.

Thanks

32
Mach4 General Discussion / Getting the value of a text box
« on: May 19, 2016, 04:19:15 PM »
I have a text box named 'Test1' with a description of 'Test Box 1'.  This is what I'm doing, but I get nothing even though I can see a value in the text box.

val = scr.GetProperty('Test1','Value')
wx.wxMessageBox(val)

It doesn't error, just returns a blank in the message box. What could be going wrong?   Thanks

33
General Mach Discussion / CV On Angles
« on: December 09, 2015, 06:53:33 PM »
Is there any way to toggle CV On Angles using VB code?  A function is not jumping right out at me.

Thanks

34
Mach4 General Discussion / G31 and ESS
« on: May 16, 2015, 09:12:09 PM »
Can someone running an ESS confirm whether G31 works or not?

Thanks

35
Mach4 General Discussion / Zero All
« on: May 16, 2015, 12:51:13 PM »
I see button actions to zero the individual axes, but not a "Zero All".  Is there a way to zero all?  Maybe an equivalent to doOemButton() wher you can call the ZeroX, ZeroY and ZeroZ actions?

Thanks

36
Mach4 General Discussion / Persistent DRO's
« on: May 15, 2015, 10:31:36 PM »
Is there a way...or a setting...to make DRO's persistent like in M3?  Or do I have to save them in registers on exit and load on startup?  If that's the case, where would that script go?

Thanks

37
Mach4 General Discussion / Add a tab to a tab panel
« on: May 15, 2015, 09:27:15 PM »
I'd like to add a tab to the Operations Tab that already exists in M4.  How is that done? 

Thanks

38
Mach4 General Discussion / Mach4/ESS sort of working
« on: May 15, 2015, 02:10:29 PM »
When I say sort of, I mean inputs and outputs work, but I have no jog movement.  The DRO's do not move, so I know it's something in M4.  With M3, if there is something going on on the breakout board preventing motion, the M3 DRO's still show motion.  There are no limits or estop triggered.  Everything looks normal.  What would cause M4 to process inputs and outputs correctly, but not move any of the axes?

Thanks

39
Mach4 General Discussion / Output Control
« on: May 05, 2015, 01:27:48 PM »
I have a script that I expected to trigger an output, but it doesn't.  Here is the script...

local inst = mc.mcGetInstance();
local osig = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT1)
local oState = mc.mcSignalGetState(osig)
if (oState == 0) then
    mc.SignalSetState(oSig, 1)
else
    mc.SignalSetState(oSig, 0)
end   

There is an LED that is mapped to OUTPUT1 and the outputs are enabled.  My expectation was that when the button is pressed, the LED for the output should come on.  This is on an un-licensed version.  Would that cause outputs not to trigger?  There is also no motion controller connected or installed.  The plan is to use ESS but for now, I'm just working on the screenset.  Would the lack of a motion controller be an issue?  I've also noticed that jog buttons are grayed out.

Thanks

40
Mach4 General Discussion / Basic scripting question
« on: April 21, 2015, 11:09:34 PM »
I've stared the process of porting all of my macros over to Lua.  I'm familiar with the language, but not the mach4 API.  What I'm trying to do is create a macro that pulls data from DRO's on the screen.  I added the DRO's but so far have not been able access them.  I used the examples in the scripting manual with no success.

If I had a DRO named "test1", how would I read that into a local variable?

Thanks

Pages: « 1 2 3 4 5 6 7 8 9 10 11 »