cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Time Series Chart can't display values of type Long

michaBrunner
5-Regular Member

Time Series Chart can't display values of type Long

Hi 

 

I'm trying to add an time series chart to my mashup in thingworx with values of type LONG from an OPC UA stream.

 

The values for that chart are of type LONG and therefore they are not displayed in the chart. Is there a setting where a time series chart could display LONG values?

 

Is there an elegant way to convert these values by a custom service before sending them to the time series chart?

 

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks for the project @michaBrunner !

 

I imported it and it's only displaying the number.

It seems like for the Chart the Properties have not been bound - I'm not sure if that's due to the export or something missing in the original configuration.

 

Could you please map in the Chart's properties

  • XAxisField = timestamp
  • DataField1 = TestLong
  • DataField2 = TestNumber

This did the trick for me.

I hope it's working for you as well - if not, please let me know...

 

Cheers,

Michael

 

View solution in original post

5 REPLIES 5

Hi,

I've tried the TimeSeries Chart and the TimeSeries Chart version 2 - in ThingWorx 8.3.1.

Both seem to work for me with LONG values coming from a Value Stream.

The biggest number I was trying was 1234567890123456768.

Adding another number e.g. another 9 in the end will not be allowed during the number entry.

 

What's the number range you're using?

Which ThingWorx version are you on?

 

Cheers,

Michael

michaBrunner
5-Regular Member
(To:mneumann)

Hi Thanks for the reply

I am using ThingWorx 8.3.2-b535. This is strange...

 

I've attached 3 files of my mashup. I added an additional property to my C600-EPP_Micha Thing which is of Type Number and has the name "testeff". As you can see this property is displayed in the time series chart.

 

But when I select "Efficiency" which is of type LONG then nothing is displayed. The data seems to load as you can see in the table below the chart. There are a lot of values for Efficiency, Speed and StopsPer100KPicks which are all properties of type LONG. So the query itself must be working.

 

The 3rd screenshot is showing the configuration of the table. Do you have any Idea how this could happen?

 

I did the same with a generic thing, which has two properties one is a LONG and one is NUMBER. The NUMBER one is displayed, the Long one not.

michaBrunner
5-Regular Member
(To:michaBrunner)

I created a small example project. In this project only the TestNumber property is displayed in the chart but not the TestLong property

Thanks for the project @michaBrunner !

 

I imported it and it's only displaying the number.

It seems like for the Chart the Properties have not been bound - I'm not sure if that's due to the export or something missing in the original configuration.

 

Could you please map in the Chart's properties

  • XAxisField = timestamp
  • DataField1 = TestLong
  • DataField2 = TestNumber

This did the trick for me.

I hope it's working for you as well - if not, please let me know...

 

Cheers,

Michael

 

michaBrunner
5-Regular Member
(To:mneumann)

That solved the problem for me. Thanks a lot.

 

Maybe there is somthing wrong in the autoconfig method of the time series chart, but with this manual configuration it works perfectly 

 

Thanks again

Top Tags