# Read vales of Dataset Tag

**URL:** <https://forum.inductiveautomation.com/t/read-vales-of-dataset-tag/105337>\
**Category:** Ignition\
**Tags:** ignition80, vision\
**Created:** [April 21, 2025, 5:21pm UTC](https://forum.inductiveautomation.com/t/read-vales-of-dataset-tag/105337 "2025-04-21T17:21:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HCampos](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@HCampos](https://forum.inductiveautomation.com/u/HCampos)\
**Post date:** [April 21, 2025, 5:21pm UTC](https://forum.inductiveautomation.com/t/read-vales-of-dataset-tag/105337/1 "2025-04-21T17:21:44Z")

</div>

I'm trying to read the values of a tag dataset using `system.tag.readBlocking` but it gaves me this result:  
`[[Dataset [47R ⅹ 1C], Good, Thu Apr 17 11:34:44 MST 2025`  
I tried to point to a value like this:  
`result = system.tag.readBlocking(["[default]PLC/TestTag[0]"]`

I found a couple topics about something similar but is a litle old when the function system.tag.read was available.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 21, 2025, 5:24pm UTC](https://forum.inductiveautomation.com/t/read-vales-of-dataset-tag/105337/2 "2025-04-21T17:24:15Z")

</div>

The value of a Dataset tag _is_ the dataset.

```python
result = system.tag.readBlocking(["[default]PLC/TestTag"])[0]

```

`result` is a `QualifiedValue` here. You can get the dataset value doing something like:

```python
ds = result.value

```

Then you can index into the dataset value or call functions on it.

> **[Scripting Object Reference | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/reference-pages/scripting-object-reference#qualifiedvalue)**
>
> This page describes several common scripting objects

> **[Datasets | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/platform/scripting/python-scripting/variables-datatypes-and-objects/datasets)**
>
> Datasets and PyDatasets

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 21, 2025, 5:27pm UTC](https://forum.inductiveautomation.com/t/read-vales-of-dataset-tag/105337/3 "2025-04-21T17:27:47Z")

</div>

> [@Kevin.Herron](#):
>
> `result` is a `QualifiedValue` here

Well, a _list_ of qualified values, because who doesn't love extra subscripts.

So:

```python
listOfQualifiedValues = system.tag.readBlocking(["[default]PLC/TestTag"])
theFirstQualifiedValue = listOfQualifiedValues[0]
theDatasetInsideThatQualifiedValue = theFirstQualifiedValue.value

```

Or all together:

```python
ds = system.tag.readBlocking(["[default]PLC/TestTag"])[0].value

```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 21, 2025, 5:28pm UTC](https://forum.inductiveautomation.com/t/read-vales-of-dataset-tag/105337/4 "2025-04-21T17:28:50Z")

</div>

Oh yeah, I forgot the `[0]`.

---

<div class="post-metadata">

**Author:** ![HCampos](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@HCampos](https://forum.inductiveautomation.com/u/HCampos)\
**Post date:** [April 21, 2025, 5:32pm UTC](https://forum.inductiveautomation.com/t/read-vales-of-dataset-tag/105337/5 "2025-04-21T17:32:17Z")

</div>

I did it once, but I didn't think it would give me the data set as I needed, my bad.  
Thanks for your help, both of you!
