Results 1 to 4 of 4

Thread: Saving two data sets to the same file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2016
    Posts
    3
    Qt products
    Qt3 Qt5
    Platforms
    Windows

    Default Re: Saving two data sets to the same file

    I want the resulting file to be in the format of:
    Amp1(t1) Amp2(t1) Amp3(t1).... Amp32(t1) Aux1(t1) Aux2(t1) ... Aux8(t1) Amp1(t2) Amp2(t2) .... Amp32(t2) Aux1(t2) Aux2(t2) ... Aux8(t2) and so on.
    So far I'm not sure What I'm getting but it's not that.
    I want to use the the "information preserving" option (uint16 to int16): translate (shift) to the -2^15 to 2^15-1 range which changes the values but preserve the data.

    Best wishes,
    Amir

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Saving two data sets to the same file

    if you want this to be grouped by time, then you need to put the amp loop and the aux loop into the same time loop.

    Currently you are iterating over your time range, then first write all amp values, then repeat the whole thing for aux.

    I.e. you get

    Amp1(t1), Amp2(t1), ..., Amp32(tMax), Aux1(t1), Aux2(t1), ..., Aux8(tMax)

    Cheers,
    _

Similar Threads

  1. QTableView and Large data sets
    By KenJustKen in forum Qt Programming
    Replies: 3
    Last Post: 25th January 2016, 09:16
  2. Replies: 5
    Last Post: 2nd July 2012, 20:49
  3. Replies: 1
    Last Post: 22nd September 2010, 15:39
  4. Saving pure plot data to image file
    By Debilski in forum Qwt
    Replies: 4
    Last Post: 7th April 2009, 17:02
  5. Creating images from sets of data.
    By maverick_pol in forum Qt Programming
    Replies: 5
    Last Post: 26th February 2008, 09:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.