Jump to content
Sign in to follow this  
oferyosef

How to save trend data in csv format on SD card?

Recommended Posts

Hi

I have a project with USP-104-B10 (UniStream 10 inch) ַַ&  Unilogic 1.15.70 and in the project I build a trend screen. Now I have to save the data into the SD card ,transfer the data to my computer and convert the data to csv and generate a graph. It's a very long process.

how can I shorten it?

can I save the data straight to csv?

is there  a software that can take the data format of the trend file and make a graph?

 

Share this post


Link to post
Share on other sites

The Data Sampler struct has a bit called "Create CSV". If set, then when the file is saved into SD Card, a CSV file is also being created.

In the email options. you have a file type CSV (attachment), zip

The CSV file is being zipped and emailed. You can contact out support for more details and help about this subject.

 

 

Share this post


Link to post
Share on other sites

thank you

so i can save the trend data in csv directly to the sd card and open it with excell and creat a graph..

is their a software that can make a graph automaticly from the file in the sd card? in unitronics format or in csv forma?

Share this post


Link to post
Share on other sites

If you know C#, then you can create a software that will do it for you.

Either way, if the csv is compressed, you will need some kind of a code to extract the file from the Zip. 

Btw, Unitronics has a tool called Trend to PDF that takes either UniStream or Vision Trend file (not the CSV), and create a PDF with the graph.:

http://unitronicsplc.com/software-unilogic/

(look under the Software Utilities,  "Unistream Data Converters Suite"). You are probably using these tools for converting the Data Sampler raw data to a CSV file.

 

As much as I remember, the Unitronics.Utr2Pdf.DLL can be used (You will need the 3rd part dlls, at least some of them, in order to generate the graph) for converting the Trend to PDF by code (by referencing the dll)

For example:

Unitronics.Utr2Pdf.Services.Convert(inputFile, outputFile,  new Tuple<int, int>(yAxisDivision, yAxisSubDivision),  openPdf);

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...