Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 18 Apr 2015, 04:48
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
A few gtkdialog electronic panels
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 17:52    Post subject:  A few gtkdialog electronic panels  

I'm always looking to make panels for various electronic applications I use, so'll show here does anyone if it is useful.

The first thing I made a while and programmed in gtkdialog:









_________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
meter_panel.png
 Description   
 Filesize   40.24 KB
 Viewed   232 Time(s)

meter_panel.png


Last edited by mister_electronico on Sun 01 Mar 2015, 17:56; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 17:54    Post subject: Some electronic panels  

Easy to adapt to our needs.









__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
meter.tar.gz
Description 
gz

 Download 
Filename  meter.tar.gz 
Filesize  62.64 KB 
Downloaded  27 Time(s) 

Last edited by mister_electronico on Tue 03 Mar 2015, 17:26; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 17:58    Post subject: Now I'm working on this  

Now I'm working on this






__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
display.jpg
 Description   
 Filesize   6.53 KB
 Viewed   216 Time(s)

display.jpg


Last edited by mister_electronico on Sun 01 Mar 2015, 18:01; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 18:00    Post subject: Now I'm working on this  

Also easily modify








__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
display.tar.gz
Description 
gz

 Download 
Filename  display.tar.gz 
Filesize  1.74 KB 
Downloaded  37 Time(s) 
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 18:50    Post subject: The next panel  

The following program hize one pet, the structure of the files in this pet is:7

./root/temporal/temp/gtkrc
./root/temporal/temp/timer
./usr/bin/meter

We have opened a terminal and type meter and it opens the following program:







__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
meter.png
 Description   
 Filesize   13.98 KB
 Viewed   197 Time(s)

meter.png

Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 18:56    Post subject: The next panel  

Any number that we introduce in entry is displayed on the screen after pressing the button Getin

The code is as follows:

Code:

#!/bin/sh

export WORKDIR=$HOME/temporal/tmp
export GTK2_RC_FILES=$WORKDIR/gtkrc:/root/.gtkrc-2.0 #include theme stuff with system themes

function getin()
{
 echo $1 > /dev/shm/data.dat
}

echo "         0" > /dev/shm/data.dat #graba archivo memoria ram virtual de control

export -f getin

###############################################
#                                             #
#               M A I N   G U I               #
#                                             #
###############################################

export diagnostico='
<window title="Panel_meter" default_height="200" icon-name="gtk-no">
<vbox>
 
  <entry name="timer" width-request="420" height-request="65" editable="false" xalign="1">
   <variable>ENTRY1</variable>
   <input>cat '/dev/shm/data.dat'</input>
  </entry>

  <frame Enter a value between 0 and 9999>
  <hbox>
       <text width-chars="10" height-request="42"><label>""</label></text>         
        <entry width-request="0" max_length="7" height-request="25" Expand="no" Fill="no">
           <variable>numero</variable>
        </entry>
       </hbox>
  <hbox>
      <button>
        <label>Get in</label>    
        <action>getin $numero</action>    
       </button>
  </hbox>
  </frame>
 
  <timer milliseconds="true" interval="250" visible="false">
      <action type="refresh">TIMER</action>
      <action type="refresh">ENTRY1</action>
   </timer>

 <hbox>
   <button width-request="70" height-request="48">
    <label>  Exit  </label>
    <action>"killall contador"</action>
     <action>exit:Exit</action>
   </button>
 </hbox>
 
 </vbox>
 
 
</window>'

gtkdialog4 -p diagnostico






__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 18:58    Post subject: The pet  

easy program to modify








__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
meter.pet
Description 
pet

 Download 
Filename  meter.pet 
Filesize  1.29 KB 
Downloaded  37 Time(s) 
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Wed 11 Mar 2015, 05:23    Post subject: Other four displays  

Continuing with the mount display this program with four displays and can be activated four blue, red, green and white colors display.

besides you can do to mark each of the decimal points in the four digits.

This program is a pet to make sure that is placed in the directory
/ usr / bin

It is the Display4 that by itself does nothing is an executable.

Whose mission is to create an SVG image into / tmp / display with the name:

num.svg

This image can then be embedded in any our program through a pixmap within our program gtkdialog.

How does the execution of this is:

number display (four-digit) number (indicating the decimal position)

The color of the display must previously stored in:

/tmp/display/colour.dat

Having options blue green red white even if we can create many more.



Well the executable is this pet.




______________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
display4.pet
Description 
pet

 Download 
Filename  display4.pet 
Filesize  4.13 KB 
Downloaded  25 Time(s) 
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Wed 11 Mar 2015, 05:25    Post subject: Application program  

The program to use the previous program and see how it works can be done like this:


The look of it is:







__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
display4.png
 Description   
 Filesize   35.21 KB
 Viewed   131 Time(s)

display4.png


Last edited by mister_electronico on Wed 11 Mar 2015, 05:30; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Wed 11 Mar 2015, 05:29    Post subject: panel_display  

The program we have put 4 digits long, no less and always numbers without commas













__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
panel_display.tar.gz
Description 
gz

 Download 
Filename  panel_display.tar.gz 
Filesize  1.09 KB 
Downloaded  27 Time(s) 
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Wed 11 Mar 2015, 05:40    Post subject: Thanks  

I would like to thank all the people gtkdialog forum has taught me so much withyours post, to Sigmund Berglund where Ptiming kick panel. to don570 whose post about SVG has given me many ideas for my programs and all the people this forum.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
don570


Joined: 10 Mar 2010
Posts: 3680
Location: Ontario

PostPosted: Wed 11 Mar 2015, 20:37    Post subject:  

Very nice work!!! Cool

_________________________
Back to top
View user's profile Send private message 
mister_electronico


Joined: 20 Jan 2008
Posts: 778
Location: Asturias_ España

PostPosted: Thu 12 Mar 2015, 13:54    Post subject: Hi.  

Hi don570 Thanks to your posts SVG I can make these programs now

Now I am working in this light panel:


https://www.youtube.com/watch?v=-B6hQdiPCaM


But I have to handle many details of the code so then I'm doing it in C.


Regards
LIGHT_PANEL.png
 Description   
 Filesize   20.36 KB
 Viewed   77 Time(s)

LIGHT_PANEL.png

Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0895s ][ Queries: 12 (0.0087s) ][ GZIP on ]