Re-2: write to and read from a hardware address directly, possible?
Hi Stephen, There are some hardware tasks (f.e. drivers for special PCI cards to manage relais or OPTOIN cards) which need to communicate through one byte in a hardware address. And the status has to be read fast ... As in Perl it should be possible, but not recommended ... But it seems not to be possible, because nobody could tell me a solution in runrev. Thanks, Franz Original Messageprocessed by David InfoCenter Subject: Re: write to and read from a hardware address directly, possible? (19-Jan-2007 17:24) From:Stephen Barncard [EMAIL PROTECTED] To: use-revolution@lists.runrev.com You are looking for a PEEK or POKE type command in Rev. ummm... I don't think it's advisable to do that directly anymore, certainly on macs. Most resources on modern hardware are managed. Hello, Is it possible to write to a hardware address directly from runrev? Did not find any command for this task in the docu. 0xA000 FF 8 bit to the address A000. Can I set or get the value with native commands in runrev? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Show file and application icons in stacks
Hello, I have been working on a Mac OS X version of a library that is able to display file and application icons in stacks. Now, I am looking for hints to do the same in Windows, Linux and Mac OS 9. Any ideas? Thanks, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re-2: write to and read from a hardware address directly, possible?
Franz, I didn't say it was impossible, but you'll have to write some XCMDs to access special hardware. This would be true in most other 3GLs as well. If you want to try to write an XCMD, check out Mark Waddingham's most excellent article about writing one. http://www.runrev.com/newsletter/november/issue13/newsletter5.php http://www.runrev.com/newsletter/november/issue13/newsletter5.phpNEWSLETTER ARTICLE ABOUT WRITING AN XCMD Before going any further you will need: * Revolution 2.7.x (any edition should do) * Visual C++ 2005 - any edition including Express (if you want to build externals on Windows) * XCode 2.4.x (if want to build externals on Mac OS X) * The Revolution externals build environment: * A set of pre-constructed environments for each step in the tutorial article: * A cup of coffee (not strictly required, but I find it helps when coding in lower-level languages...) I sympathize, as this was my first complaint when I first touched a mac after coming from the super-open Apple II, where all the hardware addresses were IN THE BOOK. On the mac, until Hypercard arrived, there was no way to get to anything except by using Pascal. I also understand about the speed issue. Most data acquisition I've seen is 8 or 16 bit, and not particularly fast (compared to audio DSP, say), so a quick PEEK or POKE command could be quickly created, and even with the overhead of going in and out of the API, it could be fast enough for most data acquisition. if you're not up to writing an external, it might be cheaper or easier to find some alternative relay-OPTO cards that have drivers already made that will talk to your chosen OS. There are MANY out there now... You also might consider controlling and acquiring through the serial port using a Keyspan USB adapter. Some systems can acquire on the hardware side while streaming to the computer at its convenience. in 1989 I built a huge cassette controller system using the serial port, a hardware chip (cybernetics Cy-233), and hypercard. http://www.controlchips.com/cy233.htmController Chip http://barncard.com/amstudios/htdoc/Pages/welcome_PP.htmlAM tape copy room run with hypercard this is a big industry. There are scores of companies that make acquisition equipment. sqb Hi Stephen, There are some hardware tasks (f.e. drivers for special PCI cards to manage relais or OPTOIN cards) which need to communicate through one byte in a hardware address. And the status has to be read fast ... As in Perl it should be possible, but not recommended ... But it seems not to be possible, because nobody could tell me a solution in runrev. Thanks, Franz -- stephen barncard s a n f r a n c i s c o - - - - - - - - - - - - ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re-2: write to and read from a hardware address directly, possible?
I might add that unless one is intimately knowledgeable about the hardware or it was self-made, that one should avoid touching anything in the memory map directly, 'behind the back' of your OS, so to speak., unless the makers of the I/O card have made a certain memory space available. These addresses, still, are not 'fixed' but must be calculated carefully. Computers these days don't like us poking around without 'management'. Major damage could result. This is probably why there is no PEEK and especially POKE commands are available in REV! We'd all blow up our computers. I'd add another plug for using serial based data acquisition: expand ability isolation from host long wire lengths use any software, even a dumb terminal, to test in early stages. if one uses good wire, one can get pretty high speeds. There are even ways to send 'serial' data over a Ethernet network to a remote box which has several serial ports. If I've underestimated your knowledge or your applications, I apologize. sqb -- stephen barncard s a n f r a n c i s c o - - - - - - - - - - - - ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
current handler(s)
I use the wait with messages command frequently. Is there a way to determine which handler(s) are currently executing and/or unfinished? Whereas the waitdepth function returns the number of currently paused handlers, what about their names? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Infinity Char on Windows
At 3:14 PM -0700 1/28/2007, Mark Greenberg wrote: I am trying to port my math stacks from Mac to Windows. Some of the stacks use the infinity character (like a sideways 8), but in Windows it displays as a box instead. Does anyone know how I might make that display properly in Windows? If the solution involves Unicode, be explicit because I've never tried to make Unicode work for me in Rev. Are these characters stored in a field or custom property? -- jeanne a. e. devoto ~ [EMAIL PROTECTED] http://www.jaedworks.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: current handler(s)
check out pendingMessages I use the wait with messages command frequently. Is there a way to determine which handler(s) are currently executing and/or unfinished? Whereas the waitdepth function returns the number of currently paused handlers, what about their names? -- stephen barncard s a n f r a n c i s c o - - - - - - - - - - - - ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: current handler(s)
sorry, I didn't read your request properly. you might use a global array to log the ids created every time you use 'send in' or 'wait' get the message id from the result right after executing 'wait with messages' - then you could associate the id with the handler it's in. check out pendingMessages I use the wait with messages command frequently. Is there a way to determine which handler(s) are currently executing and/or unfinished? Whereas the waitdepth function returns the number of currently paused handlers, what about their names? -- stephen barncard s a n f r a n c i s c o - - - - - - - - - - - - -- stephen barncard s a n f r a n c i s c o - - - - - - - - - - - - ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
[OT] Building Mac Installers
This is an off-topic request for anyone who has experience building installers on the Mac platform that rely on scripts. I received a request from a client to build installers that need to do some condition checking and be editable on the client's end, via text-editing a script or similar. DMG drag-install is not an option due to file-checking needs, and packages that charge per seat/year usage fees are not acceptable. I came across a package called MacInstallerBuilder which looks promising, but am wondering if any folks around here have other experience and/or suggestions. Please contact off-list. Thanks Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [OT] Building Mac Installers
Scott, the installer must be a .pkg? can't you build a stack that is an installer and will execute the scripts and everything? it might be easier... Andre On Jan 29, 2007, at 8:03 PM, Scott Rossi wrote: This is an off-topic request for anyone who has experience building installers on the Mac platform that rely on scripts. I received a request from a client to build installers that need to do some condition checking and be editable on the client's end, via text-editing a script or similar. DMG drag-install is not an option due to file-checking needs, and packages that charge per seat/year usage fees are not acceptable. I came across a package called MacInstallerBuilder which looks promising, but am wondering if any folks around here have other experience and/or suggestions. Please contact off-list. Thanks Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Reminder: SoCal RUG mtg Monday, 12 Feb
Just a quick reminder about the upcoming soCal Rev User Group meeting -- please RSVP if you plan to attend: The SoCal Revolution User Group will be having a meeting on Monday, 12 February, at 7PM at the Fourth World Embassy in downtown Los Angeles. We have an exciting lineup based around a theme: Collaboration 7PM: Richard Herz of UC San Diego will introduce a work-in-progress - a dynamic process simulator (e.g., water flowing in pipes between tanks) in which process units (e.g., tanks) can be distributed over the Internet to allow team collaboration. 8PM: Dinner at Barbara's, the restaurant here in the complex. 9PM: Josh Mellicker of DV Creators will present a mysterious technology called Green Bongo. He's come a long way since our last meeting -- I got a preview tour of Green Bongo last week and it's quite a treat. The meeting will officially adjourn at around 10PM, but any hardy souls who like can stay late for a game of Extreme Shuffleboard (be forewarned: Ken Ray will be in town and I have reason to believe he cheats g). All are welcome to attend. Please RSVP by sending me an email so I can make sure to have enough dessert on hand. If you need directions to the Embassy just drop me a note and I'll send the details. Looking forward to seeing all you RUG rats there - -- Richard Gaskin Fourth World Media Corporation ___ Ambassador at FourthWorld.com http://www.FourthWorld.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
XML Question
Hey, I was just debugging the project I have been working on (with all of your help) and it kept getting erratic results. I ran my XML through a parser, and it came up with several errors. I think I had a giant misconception when making this project. Is the following legal: Object Object Object /Object /Object Object In other words, can nodes with the same name be nested within each other? The parser keeps claiming that it expected the end of the Object node every time it encounters another Object node within the first. Does this mean that I did it all wrong? Thank You, Bridger Maxwell Christa McAuliffe Space Education Center ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: XML Question
Never mind guys. I made a horrible mistake. In my format handler, I accidentally replaced something with a lowercase letter that should have been uppercase, which matters in XML. I fixed it, not major harm done, just wasted time. Sigh... Good thing the rest of Revolution isn't case-sensitive. Thank You, Bridger Maxwell Christa McAuliffe Space Education Center ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Fonts on Windows
I reported this problem related to fonts not showing up in Windows builds before. And it came back after I recreated my original stack by copying and pasting. I downloaded a Windows version of Revolution and began to fiddle around with the fonts that were not showing up. The problem is definitely related to the font that is being used. In my case I used Arial, which does not work well even with the Windows version of Rev! Aria was highly recommended as one of the fonts you could use on both Windows and the Mac. So far I found that the Tahoma font works better but it has problems with formating. If you format for center alignment, it will not be in the center. i have not had the opportunity to check the other Window fonts, which I will do tomorrow. My first question then is what Windows XP fonts do Rev Windows developers used? My second question: Has the owner's font problem associated with formating (bold, etc) been corrected? I find it unusual that the Rev Manual only gives a fleeing mention of owner's fonts. I did not know about owner's font until I used the text menu in the menu bar. I always used the inspector, which does not list it. I would greatly appreciate any information on this subject!! Charles Szasz [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Visibility Problem in Windows XP
Charles Szasz wrote: I reported this problem related to fonts not showing up in Windows builds before. And it came back after I recreated my original stack by copying and pasting. I downloaded a Windows version of Revolution and began to fiddle around with the fonts that were not showing up. The problem is definitely related to the font that is being used. In my case I used Arial, which does not work well even with the Windows version of Rev! Aria was highly recommended as one of the fonts you could use on both Windows and the Mac. I've been waiting to see if anyone has anything to add about this, but I guess not. I suspect the reason is that no one has seen it (I never have.) I regularly use Ariel in stacks on Windows without any problem, so I'm not sure why you aren't seeing a display. Does your field text contain high-ascii characters? Maybe the Ariel font doesn't contain the characters you're using; each font is a little different. That's about all I can think of. Ariel does fine on Windows for me. I've never seen a centering problem either. As an experiment, try making a new stack with a single field and no scripts. Type some words in the field and make the field's textfont Ariel. Now open it in Windows. Does it display there? If so, then the problem is something in your particular stack rather than in the field or font. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution