Hi tukayo < http://www.urbandictionary.com/define.php?term=tukayo >
I remember when I started on the project, I thought that realtime was needed. Initial version were actually supposed to compute production efficiency with real time data. But during testing we agreed that data was better processed as batched. THe final process flow was this way: 1. An RFID tag is attached to a production part 2. There are scanners at strategic points and all are connected to an RS232 hub connected to a pc. 3. PC polls the data from the scanners using a provided ActiveX/OCX control and data is saved immediately to fixed width ascii text files 4. J would then read the text file and compute for capacity and efficiency. My initial design was the VB6 application would feed the data directly to J using OLEAUTOMATION. This design doesn't scale ... and the more data being held in memory to be processed, the slower J execution goes. So it was bater to write them to file directly and just open and process data from these files as needed and memory released ASAP. Hope this helps. r/Alex On Fri, Nov 5, 2010 at 4:12 PM, Alex Gian <[email protected]> wrote: > Thanks for the clarifications/suggestions Bill, Alex. > > Alex you say: > "The data from there is fed to J but the polling application is in VB6." > > Was that in real time or for subsequent processing? If in real time, > what mechanism did you use for the feed? I did consider writing a > serial-to-socket bridge, but I'm trying to avoid too much low-level > stuff distracting me from the main task. > > I think I'll try for opening the port as a file for now and see how that > goes. I actually managed to find some likely looking code on this site, > ( http://www.jsoftware.com/svn/base/trunk/packages/misc/telecom.ijs ) > but it claims to work for W95 only and I do not not enough of CE's > quirks (or J's for that matter) to know what problem to anticipate. > > Perhaps just opening a DLL might be a better idea. > > Thanks anyway gents! > I'm trying to avoid using Java or C++, especially since processing GPS > position data would be a brilliant job for J, but sometimes it just > ain't easy (to avoid, that is ;) ) > > On Fri, 2010-11-05 at 13:25 +0800, Alex Rufon wrote: > > > J can actually call an OCX/ActiveX control directly but I don't know how > it would work out for you on WinCE. > > > > I guess googling for "file open COM1" would help out. :) > > > > -----Original Message----- > > From: [email protected] [mailto: > [email protected]] On Behalf Of bill lam > > Sent: Friday, November 05, 2010 10:36 AM > > To: [email protected] > > Subject: Re: [Jprogramming] Accessing the serial port > > > > There is no inbuilt support for serial port in J. However I guess you can > open a file handle for the serial port, and perform some read or write. > > This need admin rights, not sure those api will also work in vista or > win7. > > > > untested. > > > > Чтв, 04 Ноя 2010, Alex Gian писал(а): > > > Hi, > > > Could anyone point me at any documentation on the foreign functions I > > > need to read directly from the serial port? > > > > > > I have a GPS application in mind, to which J may be very well suited. > > > At the moment I am working with j602 on Windows Mobile 5, (which also > > > has a simplified GPS dll, so any info on foreign functions for dll > > > access would also be good) but I do intend this to be as generic as > > > possible, so I'll probably go for direct interpretation of the NMEA > > > data, without dll "stablizers". > > > > > > TIA > > > > > > > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > -- > > regards, > > ==================================================== > > GPG key 1024D/4434BAB3 2008-08-24 > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- The right questions are more important than the right answers to the wrong questions. - Dr. John Romagna ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
