Skip to content

Commit

Permalink
Added some README and few modifications in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
robertobucher committed May 13, 2024
1 parent 05e75a0 commit 9d25077
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
16 changes: 16 additions & 0 deletions BlockEditor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# BlockEditor

This folder contains some utilities related to pysimCoder,

* defBlocs.py is an application thar can be used to create new blocks for the editor
* xblk2Blk.py transforms the new block into an element of the class "Block", included the skeleton of the C code for the "devices" folder

The folder contains also some utilities that allow to connect the generated code to external plot applications

* RTScope.py which uses plots from PyQT qwt
* qtRTScope.py which interfaces the generated code to pyqtgraph
* PlotJugglerInterface.py which sends the data to PlotJuggler (**to be open as external application!**)

PlotJuggler can be simly installed using "snap".

The plot applications allow to save and reload custom configurations (saved as json files).
6 changes: 4 additions & 2 deletions DriverNRT/README → DriverNRT/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Driver nrt.ko

The driver nrt.ko allows the normal user to lauch some
speciali commands for changing scheduling policy and priority and
other operations usually only permitted to superusers.
Expand All @@ -11,7 +13,7 @@ insmod /lib/modules/`uname -r`/misc/nrt.ko
In programs simply put this lines or similar in your source before using
the threads

....
```
uid = geteuid();
if (uid!=0){
fd=open("/dev/nrt",O_RDWR);
Expand All @@ -21,6 +23,6 @@ the threads
}
close(fd);
}
....
```

to set the new permissions.
14 changes: 10 additions & 4 deletions toolbox/supsisim/supsisim/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,13 @@ def connectOutPort(self, item):
self.conn = None

def deleteConn(self):
self.scene.DgmToUndo()
self.scene.item.remove()
self.removeNodes()
self.redrawNodes()
try:
self.scene.DgmToUndo()
self.scene.item.remove()
self.removeNodes()
self.redrawNodes()
except:
print('Error by deleteConn...')

def addConn(self):
self.scene.DgmToUndo()
Expand Down Expand Up @@ -461,6 +464,9 @@ def deleteSelected(self):
dgmSubsystems.append(item)
elif isinstance(item, Block):
dgmBlocks.append(item)
elif isinstance(item, Connection):
self.scene.item = item
self.deleteConn()
else:
pass
for item in dgmBlocks:
Expand Down

0 comments on commit 9d25077

Please sign in to comment.