On 09/15/2012 06:17 AM, andy pugh wrote:
> That is what CSV is, "comma separated variables". The special
> character is a comma.
> It is also a really bad choice, as a large proportion of the world use
> the comma as a decimals separator.
I used to think it meant "comma separated values", and I thi
2012/9/15 Przemek Klosowski :
> On Sat, Sep 15, 2012, Viesturs Lācis wrote
>> What is the syntax to put current date in the file name. In Your
>> example the file name is xyz.
>
> import datetime
> open("xyz."+datetime.date.today().isoformat(),"a")
>
>> And how can I specify the folder, in which t
On Sat, Sep 15, 2012, Viesturs Lācis wrote
> What is the syntax to put current date in the file name. In Your
> example the file name is xyz.
import datetime
open("xyz."+datetime.date.today().isoformat(),"a")
> And how can I specify the folder, in which the file is saved?
directory="/tmp/"
open
This might be a little obtuse, but consider putting a small UPS on the
computer and the monitor.
Set the software that monitors the UPS to shut down the computer after
a reasonable time automatically.
The operator would have enough time, if they are around, to get to the
computer and save the file
>
>
> We agreed that saving to a file will be done, when operator
> explicitly presses "save" button. So they are taking a risk that
> powerfailure will cause a loss of unsaved data. I just cannot figure
> out, how to create a reminder for operator to save data in case he/she
> is trying to clo
On 15 September 2012 08:26, Viesturs Lācis wrote:
> Yes, saving to csv would be nice, but I think that I have a solution -
> put in the rows some special characters, like semicolon, and then use
> "text to columns" function in spreadsheet.
That is what CSV is, "comma separated variables". The sp
2012/9/14 Przemek Klosowski :
> On Fri, Sep 14, 2012 at 2:45 PM, Viesturs Lācis
> wrote:
>
>>> Maybe check if the file exists, and if it does, open in append mode;
>>> otherwise open it normally for writing.
>>
>> Yes, that would be nice.
>> Can You share some source, where I can see, how does it
On 09/14/2012 03:53 PM, Stephen Dubovsky wrote:
> Python can make database calls. Just write the lengths to a database.
> Use database tools to do all the analysis like histogramming, etc.
> Thats what they are very good at.
Or, if the end user is handy with a spreadsheet, you could write it out
Python can make database calls. Just write the lengths to a database.
Use database tools to do all the analysis like histogramming, etc.
Thats what they are very good at.
--
Got visibility?
Most devs has no idea what the
On Fri, Sep 14, 2012 at 2:45 PM, Viesturs Lācis
wrote:
>> Maybe check if the file exists, and if it does, open in append mode;
>> otherwise open it normally for writing.
>
> Yes, that would be nice.
> Can You share some source, where I can see, how does it look, when coded?
As it turns out, open
2012/9/14 Przemek Klosowski :
> On Fri, Sep 14, 2012 at 2:26 AM, Viesturs Lācis
> wrote:
>>
>> But if it saves automatically, I do not want to overwrite previous
>> files, especially if there have been several times LinuxCNC has been
>> started in one day - for example, in the morning, then on lun
On Fri, Sep 14, 2012 at 2:26 AM, Viesturs Lācis
wrote:
>
> But if it saves automatically, I do not want to overwrite previous
> files, especially if there have been several times LinuxCNC has been
> started in one day - for example, in the morning, then on lunch break
Maybe check if the file exis
Seems like the data collection would work with a python dictionary. For
example you set up a dictionary entry for how many ranges they want then
each time a board falls inside of a range set by the operator you
increment the integer for that dictionary entry.
http://www.tutorialspoint.com/pytho
2012/9/14 James Isaac :
>
>> Date: Thu, 13 Sep 2012 10:46:28 +0300
>>
> What I do not understand, how to implement is:
>
>> Client wants to define some ranges of the lengths and they want
> machine to count,
>> how many parts fall in particular range and then
> save these data to a
> Date: Thu, 13 Sep 2012 10:46:28 +0300
>
What I do not understand, how to implement is:
> Client wants to define some ranges of the lengths and they want
machine to count,
> how many parts fall in particular range and then
save these data to a fil
this thread covers that too
http://linuxcnc.org/index.php/english/component/kunena/?func=view&catid=48&id=23317&limit=6&start=24#23708
John
On 9/13/2012 1:12 PM, Viesturs Lācis wrote:
> 2012/9/13 andy pugh :
>> On 13 September 2012 19:58, Viesturs Lācis wrote:
>>
#! /bin/bash
loadrt -I
Your in luck I also have a custom GUI tutorial for LinuxCNC.
http://gnipsel.com/linuxcnc/index.html
You can also use halrun and a GladeVCP panel to run simple GUI's that
only need hal components.
http://linuxcnc.org/index.php/english/component/kunena/?func=view&catid=48&id=23317&limit=6&start=2
2012/9/13 andy pugh :
> On 13 September 2012 19:58, Viesturs Lācis wrote:
>
>>> #! /bin/bash
>>> loadrt -I -f thingycounter.hal
>>
>> What do those -l and -f options mean?
>
> Nothing. That was completely wrong.
>
> With "halrun" however, the options mean to keep the HAL sesssion live,
> and to ru
On 13 September 2012 19:58, Viesturs Lācis wrote:
>> #! /bin/bash
>> loadrt -I -f thingycounter.hal
>
> What do those -l and -f options mean?
Nothing. That was completely wrong.
With "halrun" however, the options mean to keep the HAL sesssion live,
and to run a file.
http://linuxcnc.org/docs/ht
2012/9/13 andy pugh :
> On 13 September 2012 18:38, Viesturs Lācis wrote:
>
>> I think that the question, how to make my built-from-scratch gladevcp
>> panel to be the single and standalone GUI (not part of Axis or Touchy
>> or whatever) was not answered there,
>
> You can load only HAL with halru
On 13 September 2012 18:38, Viesturs Lācis wrote:
> I think that the question, how to make my built-from-scratch gladevcp
> panel to be the single and standalone GUI (not part of Axis or Touchy
> or whatever) was not answered there,
You can load only HAL with halrun, then the HAL file can load t
2012/9/13 John Thornton :
> This is a pretty good tutorial on file I/O in python
>
> http://en.wikibooks.org/wiki/Non-Programmer%27s_Tutorial_for_Python_3/File_IO
>
> Have you seen my tutorials on gladevcp and building a gui from scratch?
>
Thank You for the link! I think that I even understood so
This is a pretty good tutorial on file I/O in python
http://en.wikibooks.org/wiki/Non-Programmer%27s_Tutorial_for_Python_3/File_IO
Have you seen my tutorials on gladevcp and building a gui from scratch?
John
On 9/13/2012 2:46 AM, Viesturs Lācis wrote:
> Hello!
>
> I am asked, if I can make a DR
On 13 September 2012 09:46, Viesturs Lācis wrote:
> I think that use of ClassicLadder will handle counting number of parts
> in particular range, and export the counted number to HAL pin to be
> displayed in VCP.
> But how can I write those data to a file?
I think that a GladeVCP panel might be
Hello!
I am asked, if I can make a DRO machine that simply measures the
length of parts and displays the length of the part on the screen.
I find that to be easy task.
What I do not understand, how to implement is:
Client wants to define some ranges of the lengths and they want
machine to count,
25 matches
Mail list logo