How do I concatenate 2 HWS files or 2 WDT waveforms?

In SignalExpress, I would like the generated data AND the acquired data in the same HWS file.  I tried to do 2 'Save to HWS' steps, the first with the outputs, the second with the inputs. SignalExpress will not allow me to do this since it cannot write to a file that's already opened.
I thought LabVIEW could help me. I would like to take the WDT from the generate file and the WDT resulting from the acquire process and combine them before saving them. Any ideas?

You can only combine samples within a single HWS file. HWS does not support the concatenation of signals in a digital waveform datatype.
It is easy in LabVIEW to do this before saving your data to HWS.  There is a built in digital waveform datatype VI called "Append Digital Signals.vi". This VI takes two waveforms as input, and concatenates the signals together into a new waveform. For instance, if waveform A had 4 signals and 1000 samples, and waveform B had 12 signals with 1000 samples, the resulting waveform will be 16 signals with 1000 samples.  I think this is what you are looking for.
To find this VI in the palettes, go to the Waveforms palette, then click the Digital Waveform palette. The VI will be in the Digital Waveform palette.

Similar Messages

  • How does I read a HWS file that contains 2 traces, in labview? (error -21508)

    Dear experts,
    I have been using a PXI-5105 acquisition card to save data from 2 channels at the same time (coming from different sensors).
    Up to now I have been reading the files in Matlab, taking into consideration the group name, the trace name and the coefficients of each channel. I was able to do the post-processing of the data in Matlab. I attach an example of the kind of files I'm handling if it helps, inside a zip.
    Now I would like to implement this post-processing (FFT, etc.) in Labview. I have tried to use a couple of examples such as "hws_low_level_read.vi" or even the HI-HWS Express load utility to check the file, but it seems difficult to read it because of the 2 channels saved inside the same file.
    The error -21508 appears at the "niHWS Get Wfm reference.vi". That refers to:
    Error -21508 occurred at niHWS Get Wfm Reference.vi
    Possible reason(s): NIHWS:  There is no group in the file that matches the provided group name
    And it seems odd to me, as I'm using the same name for group (wfm_group0) and trace(vector0) than I was using in Matlab.
    Anything I'm missing? Any hint on how to read it in any way?
    Thanks you very much in advance for your help
    Best regards
    IñigoA
    Solved!
    Go to Solution.
    Attachments:
    EjempleHWS2channels.zip ‏44 KB

    Dear all,
    I have been struggling with that problem today and I just wanted to post here how I have finally found a way to read the data.
    It is so easy that I'm a bit ashamed, but I think it is worthy to answer in case anyone would need it.
    The "niHWS Get wfm Reference" is asking for a Group Name and for a waveform name. I have used the "niHWS Get Group Name" and the "niHWS Get wfm Name". Both have direct outputs (strings) with the information that "niHWS Get wfm Reference" understands. You can directly link them.
    But actually, in the reading of the data I found that the group name doesn't need to be fulfilled and the waveform name is "0" or "1" in cae you have 2 channels.
    So, you see, it was very easy for my HWS file: put a control and select "0" or "1" for waveform name. The simpler the better, jejeje.
    I hope it helps. And sorry for opening the question I'm now answering myself. I was completely lost yesterday.
    Best regards
    IñigoA

  • Saving a plot as a hws file while pressing a button

    I wanna save a plot received from a digital scope as a hws file while the button shown on the figure (its just a cutting/the important part of the program) below is in pressed (true) state.
    But when im running this program and i press the button always a hws file of a constant length is saved. It makes no difference how long the button stays pressed.
    What could be wrong?
    Attachments:
    save hws file.jpg ‏103 KB

    Without knowing all of the details of your app, I see two issues that don't match up with what you mentioned you are trying to do.
    1) The Open Waveform VI is set to "Create New Always", so at each iteration of your while loop, the old HWS file is being destroyed and a new one is getting created in it's place. If you are intending to append data to an HWS file, you must use the "Read/Write" permissions only.
    2) Your inner for loop has a Create New Waveform VI inside of it. So what is happeing is that each iteration of your for loop is creating a new waveform inside of your HWS file rather than appending to the already existing one. HWS files can save multiple waveforms into one HWS file. I see you are naming each waveform, so I'm guessing this was intentional.
    If you are trying to stream to a file only when the button is pressed, my guess is that your problem is with item 1) above. When the button is pressed, any existing HWS files at that filepath are getting destroyed, and a new one is getting created in it's place. So when your application is finished, you will have one file with one set up data in it. The data will be from the last while loop interation when the boolean was set to true.
    If you are trying to append to an existing HWS file, you will need to open the file with Read/Write permissions and then use the Open Existing Waveform VI rather then the Create New Waveform VI inside of your for loop.
    -JaredW

  • How to use HWS files?

    I'm using Soft Front Panel version 2.6 and I obtained HwS files but I can't read them so how could I read them or convert them into notepad file. 
    Other option are Lvm file but use very short time that's why I want to use hws files.

    In the utility section of the NI-SCOPE driver is a link to the HWS file API.  It looks like a folder with waveforms on it.  This will allow you to read the file.  You can convert it  to a text file using the standard LabVIEW file tools.
    Alternately, if you are into real pain, you can download the HDF5 toolsets from NCSA and create a C program to do the same, but I wouldn't advise it.  HDF5 has a very steep learning curve and the internal structure of the file is fairly complex.
    Let us know if you need more help.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How can I convert on HDF file from HWS file?

    how can I convert on HDF file from HWS file?

    Well by opening up the HWS file with HDFView, it contains the below structure.  In the axis0 properties (time axis) there is a field called increment that is the sampling rate I used (5 nanoseconds).  But I do NOT see any additional info in terms of triggering modes or delays, etc.
    wfm_group0
    axes
    axis0
    axis1
    data_vector
    data (here is our data, I verified it is correct)
    id
    traces
    trace0 (we don't care about this, I think)
    vectors
    vector0
    data (not sure what the difference is between this and axis1
    wfm_group0 (1576, 2)
        Group size = 4
        Number of attributes = 5
            major_version = 2
            minor_version = 0
            release_version = 6
            type = NI-Waveform
            writer = NI-HWS
    axis0 (7424, 2)
        Group size = 0
        Number of attributes = 5
            implicit? = 1
            increment = 5.0E-9
            numDigits = 57
            ref_time = 0
            start = 0.0

  • How to load a long flat file field into BW

    Hi all,
    I have a field from flat file with 256 characters to be loaded into BW. As we all know the max length an info object can take is only 60. How can I split the flat file field so that I can load that data into BW and how can I then concatenate them in the BEx.
    Can anyone suggest a way?
    Thanks in advance.
    Vinay

    Hi Vinay,
    we already had this discussion in this forum. In short:
    1. create a number range object
    2. create a table with a number field a key and a text field
    3. while loading the data check your text against the table. If the text already exist, get the number out of the table. If the text doesn't exist, get a new number out of your number range object and post this number + the text into your table.
    4. in your loaded data always work with the number you assigned to the text
    5. create a infoobject for the number-field
    6. create a variable that takes it's value out of the table.
    regards
    Siggi

  • Concatenat​ing TDMS Files

    Hello,
    I'm writing a script in DIAdem 2011 which combines data from multiple sources into a single TDMS-File. Exporting into multiple TDMS files works fine( I can open them in DIAdem) but I'm having trouble combining all files to one TDMS-File. Speed is important, so I tried to avoid loading all data into the dataportal and saving again (this works though).
    If I understood correctly it is possibly to directly concatenate the binary contents of the files into a single file. Is this correct? Because using the MS-Dos copy command or using a VBS-Script in DIAdem with Stream-Objects both results in TDMS-Files that I can't open anymore.
    The error message says:
    "TDS Exception in Intialize: Tds Error: TdsErrNotSupported(53):"
    It seems only one of the files produces these problems. When I load this one file and save it again as TDMS I can sucessfully combine them and load the resulting TDMS without errors.
    Perhaps the file is fragmented and this leads to the error (the offending file is measurement data)? Is this expected behaviour for fragmented files?
    How can i efficiently combine these files? I have to be able to combine multiple hundreds of files ( in pairs. e.g. combine 400 TDMS in pairs to 200 TDMS files) fast and i guess opening 200 files, saving again and combining is rather slow.
    Is there an efficient way to solve this task?
    As the offending file is actually TDMS-Data from a BLOB-Datafield in a SQL-database another solution might be loading the TDMS directly from the database into the dataportal and saving from DIAdem, instead of dumping the BLOB-data into a TDMS-File on the HDD( i guess this results in a defragmented file as opening and saving resolves the problems).
    But I'm not sure how to achieve this. I'm using ADO to interface with the SQL-DB. The code looks approximately like this:
    Set recordSet = CreateObject("ADODB.Recordset")
    recordSet.Source = 'QUERY
    recordSet.open
    Set fso = CreateObject("Scripting.FileSystemObject")
    'Create Stream object
    Set BinaryStream = CreateObject("ADODB.Stream")
    do
    chunkSize=100
    lngOffset=0
    lngFileSize=recordSet.Fields.Item("Field").ActualS​ize
    'Open the stream And write binary data To the object
    BinaryStream.Open
    do while lngOffset<lngFileSize
    varChunk=RecordSet.Fields.Item("TDMS_DataInBLOB").​GetChunk(chunkSize)
    Call BinaryStream.Write(varChunk)
    lngOffset=lngOffset+chunkSize
    loop
    'Save binary data To disk
    Call BinaryStream.SaveToFile("path", adSaveCreateOverWrite)
    BinaryStream.Close
    Call RecordSet.MoveNext
    loop until RecordSet.EOF
     How can I change this code to write the data into the dataportal?
    Thanks in adavance.
    Best regards,
    grmume

    Hi Brad Turpin,
    I have already tried concatenating the files with the copy command. I don't have a hex-editor at work but by looking at the filesizes and checking the contents with a texteditor the script seems to work but I can't open the created file.
    The script I used looks like this:
    private Sub mergeFiles(filePath1,filePath2,outFilePath,bDelete​Input)
    if bDeleteInput then
    Call ExtProgram("cmd.exe","/Q /c copy /b """&filePath1&""" + """&filePath2&""" /b """&outFilePath&""" &del """&filePath1&"""&del """&filePath2&"""")
    else
    Call ExtProgram("cmd.exe","/Q /c copy /b """&filePath1&""" + """&filePath2&""" /b """&outFilePath&"""")
    end if
    End Sub
     To test your script I defined the following variables:
    NewFileName="C:\Documents and Settings\username\Desktop\new folder\combined.TDMS"
    ChanNames(0)="file1"
    ChanNames(1)="file2"
    Folder="C:\Documents and Settings\username\Desktop\new folder"
    DosDrv="C:\Documents and Settings\username\Desktop\BatchFile"
     It completed sucessfully but the result is the same. I can open the two seperate files(file1.tdms and file2.tdms) but I cannot open the combined.tdms.
    Sadly I can't share the original files and I can't use DIAdem to fill the files with dummydata because opening in DIAdem and saving resolves the problems.
    Do you have an idea what causes these problems? The possibility to combine tdms-files like that was a big bonus for me...
    Can I somehow fill the files with dummydata without opening them in DIAdem? Or tell DIAdem to keep the original file structure but change the values?
    Best regards,
    grmume

  • How to convert bytes[] into multipage File object

    Hi,
    How to convert bytes[] into multipage File object??
    I used the java.io.SequenceInputStream to concatenate two input streams (basically .pdf files) into a single input stream. I need to create a single multipage pdf file using this input stream.
    Thanks for you help in advance..

    Only text format allows you to concatenate two files together to get a longer files.
    Most formats have a header and a footer and so you cannot simply add one to the other.
    You need to use a PDF API which will allow you to build the new document (if one exists)

  • Digital waveform editor can not open hws file generated by niHWS store waveform

    Hi,
    I am using a simple VI to store the U32 array to a hws file in LabVIEW, however, the file generated can not be opened by Digital Waveform Editor. The VI used to be working well before I upgrade LabVIEW from V7 to V7.1.
    Meanwhile I also found out that the hws file generated by DWE can not be read out by niHWS. retrieve waveform.vi if the number of channels is not 32.
    I would be grateful if any one can give me some help. Please find the VIs and hws files as attached.
    The software I am using is
    Digital Waveform Editor 1.0
    LabVIEW 7.1
    Best Regards, YJ2003
    Attachments:
    question Get ArrayU32 from HWS Data.vi ‏108 KB

    Dear Brian,
    Thanks for your quick response.
    I tried again but still failed to open the hws file with my DWE V1.0. Since the version is the only difference between our software, I suspect the problem is caused by my DWE of old version.
    Would you please help me to check if the new attached questionretrievepattern.hws file can be opened by the HWS.VI? (Please change the extention from txt to hws as I can not attach file with hws format in this forum)This file is generated by DWE1.0 and contain only 16 channels. It can not be opened by the niHWS retrieve waveform.vi in my computer with erroe code "-21558", but if I added another 16 channels signals with DWE, the data can be read out properly.
    If we can confirm the problem is caused by DWE1.0, would you please also let me know how to upgrade my DWE? Thanks.
    Best Regards, YJ2003
    Attachments:
    questionretrievepattern.txt ‏35 KB

  • Concatenate sysdate with file name in shell script

    Hi,
    I have one shell script which i am using to transfer data(SFTP).
    Now I have one requirment to use sysdate along with the file name as the file name for the data being transfered.
    script is like this...
    function connect
    sftp $USER@$HOST <<END_SCRIPT
    lcd $FILE_DIR
    if [ $FILE="PO" ] then
    quote site recfm=fb
    quote site lrecl=230
    pwd
    put $FILE 'OPENPO'
    fi
    quit
    END_SCRIPT
    Can any one tell how i can concatenate sysdate with the file name (put $FILE 'OPENPO')?
    Thanks in Advance,
    RR

    it gets even easier with the 'scp' command.
    please try to use the "code" tags. it is very well possible the forum software did transform parts of your script.
    to get into 'code mode': put { c o d e } on a line (without the spaces), then the code, then { c o d e } again to switch back to normal mode.

  • USB-5133, hws file to matlab

    Hi all,
    I use USB-5133 to measure voltages from two channels simultaneously. For that I use the NI-SCOPE. The scope saves the measured data as hws-file. I need these files in Matlab but I cannot open them. What would be the simplest way to export and open this data in Matlab?
    All help is greatly appreciated!
    Joonas
    Solved!
    Go to Solution.

    Dear Colleagues,
    Sorry for answering to this entry 2 years and a half later than the last comment, but my doubt is alligned with what you have been talking about. (Of course, if you consider that I should open a new line in the forum, just tell me, please.)
    I have followed all your key points to read some *.HWS files i capture with a PXI NI5124 (12 bits, 2 channels).
    I'm already able to read the data in labview and in Matlab, BUT I found a problem with the scaling of the data i have stored:
    I took the signals simultaneously (2 channels) from -1V to +1V, but all the data have been stored in INTEGER number like:
    16 112 32 128 96 64 80 80 0 32 -48 16 64 48 48 0 16 48 80 16 48 48 16 -16 16 -48 -80 -48 -96 -96 -80 16 -64 -16 -16 48 64 64 144 176 160 128 160 176 160 128 96 32 -16 -64 -160 -128 -160 -160 -176 -176 -192 -96 -32 0 48 48 112 80 192 192 192 192 208 160 64 144 32 -160 16 -64 -128 -256 -176 -128 -192 -208 -144 -48 -128 -256 112 320 16
    These are only few samples, as I took 1.000.000 Samples @ 50 MSamples / s per file. I had some values up to +32000 and down to -29000, aprox.
    I was surprised as i should had values like 0.001, 0.002 -0.2, -0.00005, etc.
    The point is that I have found the scaling coefficients that are applied for each channel:
    CH0 a:-1,143859 and b:3,2599724
    CH1 a:-1,427364 and b:1,6671666
    But I don't know how to scale the values i have registered down to the real ones. And I haven't found how this scaling works on the HWS files.
    Thank you very in advance. I wold appreciate any help or int...
    Best regards,

  • How can I combine different pdf files in one?

    How can I combine different pdf files in one?

    Sara,
    It is not working. I wish to decline in having the pdf pack. How can I give up this purchase? I definitely do not want the Adobe PDF Pack anymore.
    Who do I have to contact or what do I need to do to cancel this purchase?
    Flávia
    Enviado do Email do Windows
    De: Sara.Forsberg
    Enviado: terça-feira, 6 de maio de 2014 14:59
    Para: Eu
    How can I combine different pdf files in one?
    created by Sara.Forsberg in Adobe PDF Pack - View the full discussion 
    Hi Flávia,
    Adobe PDF Pack is an online subscription--it definitely allows you to combine several files into one PDF file. For more information about PDF Pack, see Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack. If you don't have the full version of Acrobat, this is a great solution for combining PDF files.
    However, if you're using Acrobat (not Adobe Reader), you combine files by following these steps:
    Open a PDF file that you want to add pages to.
    Click the Pages pane on the Tools panel (on the right side of the application).
    Click Insert From File, and choose the file that you want to combine with the PDF that you opened in step 1.
    Make any changes necessary in the Insert Pages dialog box--these settings determine where the new file will be inserted.
    Click OK.
    Please let me know how it goes.
    Best,
    Sara
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6358990#6358990
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe PDF Pack by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How can I move an icon/file from one screen of my ipad to another?

    How can I move an icon/file from one screen on my ipad to another?

    Press and hold the icon until they start to wiggle. Then while holding it, drag it to the edge of the screen and wait for the page to switch, then let go of the app

  • How can I convert an audio file (speech) into a text?

    Hello everybody!
      Can someone explain how I can convert a garageband file (voice speech) into a text? My Mac is a Mac OS X 10.5.8 version, so I don't have programs such as mountain Lion. I thought to use googlevoice. Is this option available? If yes, how can I use it?
    Thanks.

    Hello, I only find google voice available for Abdroid!?
    http://www.ehow.com/info_10033225_google-voice-system-requirements-android.html
    Some possibilitities, not sure if they have 10.5.8 compatble versions anymore...
    http://atmac.org/speech-to-text-dictation-software-for-os-x
    Some reviews of later Dragon Speak...
    http://www.finetunedmac.com/forums/ubbthreads.php?ubb=showflat&Number=22962

  • ,how can I retrieve all my files? photos, songs, games, etc. please help me.. Thank you

    I thought I will just reactive my iPad form the "find my iPhone"apps.instead I deleted my iPad! All my files has been erased, like photos, songs, games, etc. I really want to recover all of these. Is there a way you can help me?  Thank you and god bless
    sheent totoh

    iPad Photo Recovery: How to Recover Deleted Photos
    http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
    How to Restore Lost or Deleted Files from iPad
    http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
    How to Recover Deleted Files from iPad
    http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
    iSkysoft Free iPhone Data Recovery
    http://www.iskysoft.com/iphone-data-recovery/
    Recover iPhone/iPad/iPod touch lost data, Free.
    Free recover iPhone/iPad/iPod touch lost contacts, photos, videos, notes, call logs and more
    Recover data directly from iPhone or from iTunes backup
    Preview and recover lost iOS data with original quality
    Wondershare Dr.Fone for iOS
    http://www.wondershare.net/data-recovery/iphone-data-recovery.html?gclid=CJT7i9e 6gb4CFcvm7AodbUEAJQ
    Recover contacts, messages, photos, videos, notes, call history, calendars, voicemail, voice memos, reminders, bookmarks and other documents.
     Cheers, Tom

Maybe you are looking for

  • Interest calculation on bank loan

    Hi guru, we have taken long term loan from 10 banks.we have to calculate interest on loan from each bank.we have maintained each bank loan a/c as a vendor.As we know the procedure as given by sap for balance interest calculation will be followed here

  • Application that loads in different browsers

    I have an application in ADF runs on Google Chrome but in Firefox or any other browser other than Chrome the application works but does not load the data dependent nested or someone I can work through

  • Stuck in an infinate loop

    try      URL temp = new URL(urls);      BufferedReader bufRed = new BufferedReader(new InputStreamReader(temp.openStream()));      String stringBuf = "";      while(!stringBuf.equals(null))           stringBuf = bufRed.readLine();           StringTok

  • Filter Data in Java

    am developing a screen on which user can see various details of an Employee. Details includes fields like Name, Date Of birth, Salary etc. Server side code retrieves data for an employee using different data sources. Some fields are retrieved from th

  • IDVD stops responding when encoding the audio of a project

    I was wondering if anyone has a suggestion I can try to solve an iDVD burn problem? My project is 4.7 GB and I am burning it to an external DL burner using an 8.5 GB disk. The available space on my hard disk is 12.96 GB. I created the video in iMovie