With the latest control software...
Using the "Window On" and "Window Off" and the "Print" command with the AFL (advanced function language), how would one have an image "print" in the popup window?
Or, is there another way to do this? When starting a program, I want a picture of the fixture setup to appear on the screen before the program can continue.
Thanks
Output an image to popup with AFL
Moderators: Mike Iubelt, Jason Susnjara, Larry Epplin, Clint Buechlein, Mike Iubelt, Jason Susnjara, Larry Epplin, Clint Buechlein
-
- Senior Member
- Posts: 204
- Joined: Thu, Oct 20 2011, 12:52PM
- Company Name: Carlton Kitchen and Bath
- Country: UNITED STATES
Re: Output an image to popup with AFL
Not sure about AFL but you could prob. write a script w/ autohotkey that could do something like that.
-
- New Member
- Posts: 22
- Joined: Tue, Aug 25 2009, 7:22AM
- Company Name: Black Swamp Percussion
Re: Output an image to popup with AFL
So how would that work? What I want is for the image to be attached to the specific program. So when the operator hits the start button the image pops up on the screen, and then he will have to hit the start again to continue on with the program. Just sort of a double check on things.
- Brad McIntosh
- Guru Member
- Posts: 539
- Joined: Wed, May 18 2005, 6:59PM
- Company Name: CNC Automation
- Country: CANADA
- Location: St. Zotique, Québec, Canada
- Contact:
Re: Output an image to popup with AFL
Eric,
On the newer generation of THM controls you can try the following:
See my example attached. Just make sure the D:\DATA\IMAGES exists and that the sample JPG is copied into it. The operator will be responsible for closing down the application that displayed the image/PDF.
Of course there should be a program associated to the file type so that the appropriate application is started to display the image or PDF.
Hope this helps.
On the newer generation of THM controls you can try the following:
- % Execute/launch "image" or "PDF" in the background and then proceed on...
% >> Make sure that path and filename does not contain spaces and exists!
[NEWPROC,"CALL", "BACK", "CMD.EXE /C START D:\DATA\Images\eCabs_through_the_Ages.jpg",""]
See my example attached. Just make sure the D:\DATA\IMAGES exists and that the sample JPG is copied into it. The operator will be responsible for closing down the application that displayed the image/PDF.
Of course there should be a program associated to the file type so that the appropriate application is started to display the image or PDF.
Hope this helps.
- Attachments
-
- POP-UP-AND-GO.zip
- Example of the POP-UP-AND-GO concept.
- (240.13 KiB) Downloaded 977 times
-
- New Member
- Posts: 22
- Joined: Tue, Aug 25 2009, 7:22AM
- Company Name: Black Swamp Percussion
Re: Output an image to popup with AFL
Hey thanks a ton!
Now to just get the rest of the $$$ for the upgrade for the Ye Ancient OS/2 Warp.
Now to just get the rest of the $$$ for the upgrade for the Ye Ancient OS/2 Warp.
- Brad McIntosh
- Guru Member
- Posts: 539
- Joined: Wed, May 18 2005, 6:59PM
- Company Name: CNC Automation
- Country: CANADA
- Location: St. Zotique, Québec, Canada
- Contact:
Re: Output an image to popup with AFL
Hmmmmm...
Sorry... for both the "New Generation COntrol Only" solution AND that you are limited to the old pre-2000 OS/2 based controller.
Although, if it still cuts and makes money! Can't complain about that.
NOTE: Even on the newer generation controls, the AFL Print Window is limited to ASCII text only. Won't even support the extended ASCII character set.
Cheers!
Sorry... for both the "New Generation COntrol Only" solution AND that you are limited to the old pre-2000 OS/2 based controller.
Although, if it still cuts and makes money! Can't complain about that.
NOTE: Even on the newer generation controls, the AFL Print Window is limited to ASCII text only. Won't even support the extended ASCII character set.

Cheers!
-
- New Member
- Posts: 22
- Joined: Tue, Aug 25 2009, 7:22AM
- Company Name: Black Swamp Percussion
Re: Output an image to popup with AFL
Ok, finally got my machine upgraded and that little line of code works great! Thanks so much!