Skip to content

Can't write lists or arrays from script to PV's #559

@dheeraj539

Description

@dheeraj539

I have a python list in my embedded python script and I want to write it to a PV. But, there are errors while I am trying to do this.

I have tried the below

pv_name = "SIM:EXAMPLE"
values = [1,2,3,4,5,6,7]
PVUtil.writePV(pv_name,values,100)
pv_name = PVUtil.createPV(pv_name ,100)
pv_name.setValue(values)
PVUtil.releasePV(pv_name)

Is there any way I can do this?
@kasemir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions