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: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Thu, 21 May 2020 17:08:00 -0500
Related question...
Is there any reason this is so small?
caQtDM_Lib/src/knobData.h:
  #define STRING_EXCHANGE_SIZE 8192

I'd really like to dump a configuration file into a string.  But as it stands, the multilinestring caQtDM widget will only display the first 8k characters.

I've shown that I can fix it by bumping this up a lot.  Any reason to keep it so small?

Paul


On Wed, May 20, 2020 at 3:15 PM Paul Nord <Paul.Nord at valpo.edu> wrote:
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>

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
Re: Displaying string Waveform in CaQtDM Paul Nord 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: anyone ever crosscompile pvaPy? Peter Milne 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 Paul Nord 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, 22 May 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·