EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Displaying string Waveform in CaQtDM
From: Paul Nord via Tech-talk <tech-talk at aps.anl.gov>
To: Jaroslav Adam <jaroslavadam299 at gmail.com>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Wed, 20 May 2020 15:15:02 -0500
Thank you Jarda!!

I've been banging my head on this for a couple of days now.

Below is a complete working ioc.

Paul


PYTHON FILE
===========
#!/usr/local/epics/modules/pythonIoc/pythonIoc

from softioc import builder, softioc
import numpy as np
import pandas

d = {'col1': [1, 2], 'col2': [3, 4]}
x = pandas.DataFrame(d)
x_string = x.to_string()

a_PV = builder.WaveformOut("name",length=len(x_string),FTVL="CHAR")
a_PV.set(np.array([ord(i) for i in x_string]))

print(a_PV.get().tostring())

builder.LoadDatabase()
softioc.iocInit()
softioc.interactive_ioc(globals())


caQtDM FILE
===========
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>Form</class>
 <widget class="caFrame" name="Form">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>400</width>
    <height>300</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Form</string>
  </property>
  <widget class="caMultiLineString" name="camultilinestring">
   <property name="geometry">
    <rect>
     <x>30</x>
     <y>30</y>
     <width>311</width>
     <height>191</height>
    </rect>
   </property>
   <property name="channel" stdset="0">
    <string notr="true">name</string>
   </property>
  </widget>
 </widget>
 <customwidgets>
  <customwidget>
   <class>caFrame</class>
   <extends>QFrame</extends>
   <header>caFrame</header>
   <container>1</container>
  </customwidget>
  <customwidget>
   <class>caMultiLineString</class>
   <extends>QPlainTextEdit</extends>
   <header>caMultiLineString</header>
  </customwidget>
 </customwidgets>
 <resources/>
 <connections/>
</ui>

Replies:
Re: Displaying string Waveform in CaQtDM Paul Nord via Tech-talk
References:
Displaying string Waveform in CaQtDM Paul Nord via Tech-talk
Re: Displaying string Waveform in CaQtDM Mark Rivers via Tech-talk
Re: Displaying string Waveform in CaQtDM Paul Nord via Tech-talk
Re: Displaying string Waveform in CaQtDM Mark Rivers via Tech-talk
Re: Displaying string Waveform in CaQtDM Paul Nord via Tech-talk
RE: Displaying string Waveform in CaQtDM Mark Rivers via Tech-talk
Re: Displaying string Waveform in CaQtDM Paul Nord via Tech-talk
RE: Displaying string Waveform in CaQtDM Mark Rivers via Tech-talk
Re: Displaying string Waveform in CaQtDM Johnson, Andrew N. via Tech-talk
Re: Displaying string Waveform in CaQtDM Paul Nord via Tech-talk
Re: Displaying string Waveform in CaQtDM Johnson, Andrew N. via Tech-talk
Re: Displaying string Waveform in CaQtDM Jaroslav Adam via Tech-talk

Navigate by Date:
Prev: Re: PVI Prototype - a framework for specifying the interface to an EPICS driver in a single YAML file Peterson, Kevin M. via Tech-talk
Next: EPICS Frame Documentation Pilar Gil via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Displaying string Waveform in CaQtDM Jaroslav Adam via Tech-talk
Next: Re: Displaying string Waveform in CaQtDM Paul Nord via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 21 May 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·