Possible data loss whlie transfering from Labview 7.0 into Matlab [binary]

Greetings,
I am kind of confused on binary data processing from labview to matlab. I tried to follow this thread by C. Minnella:
http://forums.ni.com/ni/board/message?board.id=170&message.id=211371&query.id=131675#M211371
And it was a great help for me to understand many of my issues. However there is something wrong with data that I am writting and retrieving in Matlab
Here is how signal looks in Labview
http://img126.imageshack.us/my.php?image=picture1va4.png
And its spectrum
http://img126.imageshack.us/my.php?image=picture3hn6.png
http://img146.imageshack.us/my.php?image=picture4br6.png
And this is what I am getting in Matlab:
http://img357.imageshack.us/my.php?image=picture7jq7.jpg
my vi:
http://img146.imageshack.us/my.php?image=picture2wn0.png
The only change I did was replacing DAQ task with Global chanel constant, since it has original scaling for the data from Load Cell (Fx Axis in particular), this is the device I am getting data from, it is in rest, sitting on the table.
I can't figureout what is happening, looks like it is clipped, besides the amplitude is not correct.
Would really appreciate any insights,
Oleks 

Hello Ton,
Thank you for the fast reply, here is a part of the code that reads from Labview data file:
%Read header information, return in a structure[headerInfo,fileMark] = GetHeader(fileName,pathName, dataBytes);
 %Open binary file Big endian formatfid=fopen([pathName fileName],'rb','ieee-be');  %Move file marker to begining of scansfseek(fid,fileMark+startScan,'bof');  %Read number of requested scansy=fread(fid,headerInfo.NumChannels*scans,dataType);
 %Reshape data into a matrix [scans x channels]y=reshape(y,headerInfo.NumChannels,[])';
 %Close binary filefclose(fid);
I basically followed example posted in 2006 on NI forum. I think my major concern is whether data is getting to matlab scaled correctly (it is scaled within global channel to Newtons) and looks like I am not getting the same data type in Matlab.

Similar Messages

  • Is it possible to export a histogram from labview to excel

    is it possible to export a histogram from labview to excel,and of course get a fancy one

    Hi achfire,
    The LabVIEW Report Generation Toolkit allows you to create different graphs in Microsoft Excel, including Bar Graphs.  Check out the Report Generation Toolkit section of the White Paper below for more information.  I've also linked to a section of the Report Generation Toolkit Help document which gives more details on the different types of graphs you can export.
    Moving Data From LabVIEW Into Excel: http://www.ni.com/newsletter/51339/en/
    Common Graph Types for Reports: http://zone.ni.com/reference/en-XX/help/370274G-01​/lvrgthelp/graph_types/
    Thanks,
    Myriam D.
    Applications Engineer
    National Instruments

  • The actual date is not transferred from the (PS) milestone

    Hello ,
    In an order with header billing plan dates that are value-based, the actual date is not transferred from the Project System (PS) milestone, even though the actual date of the assigned milestone was changed via transaction CJ20N.
    We are repeatedly facing this error , I have applied Note number 1395078 but still once in a while I am still facing the issue
    Regards
    Muralidharan.S

    Check the following path in SPRO
    IMG - PS - Revenue & earning - planned revenues - Automatic Plan Revenue cal - Maintain Billing Plan Settings
    There, you use the billing plan to plan dates on a WBS element whose payment requests or invoices relevant to sales are to be sent to customers.
    The system updates the planned revenue and planned payment receipts to the relevant WBS element. The planned revenue is updated using the revenue element stored in the planning profile for the work breakdown structure and using the financial item assigned to the revenue element.
    You make the settings given below for the billing plan. To do this, you carry out the following steps:
    - Maintain billing plan type
    - Maintain date description for billing plan
    - Maintain revenue element for billing plan
    - Assign billing plan type to project profile
    Hope this can assist you.
    Thanks & Regards
    JP

  • Write data on database ACCESS from labview

    Hi!
    I want to write on a table of database from labview... I have already succeeded in opening the base and the table but I don't know how write on it... I know that I must use
    with Table
    .Addnew
    Table.Fields(0)=what I want to write
    .update
    end with
    But how do it with labview ???
    Thanks in advance
    hasna
    Attachments:
    lecture_de_la_base.vi ‏35 KB

    Hi Kiki,
    I believe you have another Developer Exchange Forum open for this issue. To keep them similar, I am attaching an updated version of your VI. It is wired to read any errors which occur in the VI. I received error -2147221164. This does not help too much, because the meaning of this error depends upon the ActiveX server. You will want to run this VI yourself, see which error you get, and then consult the ActiveX Server documentation to find the meaning of the error.
    J.R. Allen
    Attachments:
    criture_de_la_base.vi ‏37 KB

  • Getting correct Date/Time data in DIAdem 11 from LabView tdms data

    I've got a handful of large tdms  files (9-18 million data points) collected with LabView that I need to extract elements of, and export as a text file, with the time data as a string.
    I'm using DataFileLoadSelect and the Register option and then DataBlCopy to bring in a chunk of data at a time, but I'm having to explicitly convert each time value from a LabView timebase (1/1/1904) to the DIAdem timebase (1/1/0000), not to mention the offset,  before writing the date-time as a text string - this really slows the process down. 
    I't strikes me that DIAdem(11.1) has got to have a way to read LabView timestamps correctly, but I'm a DIAdem novice, so any suggestions would be helpful. And no, I don't have LabView installed locally, so using a LabView vi is not an option for me.
    Thanks,
    Eric
    Solved!
    Go to Solution.

    WfmToDateWfm works great, but there is a bug in the code if you want to use DataFileLoadRed and your starting point is not at the beginning of the file.  There is a provision in WfmToDateWfm to handle the offset, but it's not hooked up:
    OffStartTime = ChnPropValGet(Channel, "wf_start_offset") ChnDeltaTime = ChnPropValGet(Channel, "wf_increment")
    RelStartTime = 24*3600*(Trunc(ChnStartTime) + 693958 + Abs(Frac(ChnStartTime)))
    To make WfmToDateWfm work with an offset, simly add the variable OffStartTime to the RHS of RelStartTime
    Eric 

  • Write Data to Wonderware Historian from LabVIEW

    I am looking to log data acquired using LabVIEW and CRIO to a Wonderware Historian.  If someone has experience in this area, would you mind sharing the way you accomplished it?  The cRIO unit will be connected to a TPC-2212 also.
    Thanks in advance!
    Bob C

    Hi BobbyCee,
    I am not familiar with the Wonderware Historian since it is not an NI product, but it looks like it is a SQL server.  Where will you be hosting the SQL server?  How are you planning on communicating with it?  
    The Database Connectivity Toolkit is typically used for communicating with SQL servers.  
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/209​060 
    You may want to contact Wonderwave to see if it is compatable.
    Hope this helps!
    Dayna P.
    Applications Engineer
    National Instruments

  • I'm trying to execute and possibly terminate a PERL script from Labview.

    I am currently using the system exec.vi to run my perl script. I would like to be able to terminate it as well. Any suggestion?
    I'm running from windows xp.

    Try looking at http://www.jeffreytravis.com/lost/labperl.html
    The download (LabPerl) gives you comms between Labview ' Perl and viceversa.
    And doesn't take too long to fathom out how it all works.
    The perl program is set running (manually or by labview command window - don't wait for completion) followed by labview control etc.
    N.B.
    Each labview write string requires a Linefeed - then chomp at perl end
    The secret is to  have a good handshake method - each LabView read returns to perl an "ok"

  • Song data no longer transferring from iPhone to iTunes since iOS 7 update?

    I recently updated my iPhone with iOS 7 and iTunes to 11.1.  Since I've done this, when I plug my phone into iTunes, iTunes does not register songs that I've recently listened to on my phone has having been played.  The "Last Played" column does not update.  This creates issues with my Smart Playlists, which I have set up to to choose only songs that I have not listened to in the last 5 weeks.  I've tried creating a new Smart Playlist to see if the old ones just weren't working properly anymore, but that doesn't seem to be the issue.  It's the lack of updating in the "Last Played" information for my songs.  Does anyone know of something I can do to try and fix it?  I really like having Smart Playlists that keep me from having to hear too many of the same songs over and over.  Thanks!

    I recently updated my iPhone with iOS 7 and iTunes to 11.1.  Since I've done this, when I plug my phone into iTunes, iTunes does not register songs that I've recently listened to on my phone has having been played.  The "Last Played" column does not update.  This creates issues with my Smart Playlists, which I have set up to to choose only songs that I have not listened to in the last 5 weeks.  I've tried creating a new Smart Playlist to see if the old ones just weren't working properly anymore, but that doesn't seem to be the issue.  It's the lack of updating in the "Last Played" information for my songs.  Does anyone know of something I can do to try and fix it?  I really like having Smart Playlists that keep me from having to hear too many of the same songs over and over.  Thanks!

  • Data not getting transferred from LBWQ to RSA7 - LO(Purchasing)

    Hi Gurus,
    Please advise.
    We have queued delta method in our purchasing set-up. Iam running job control (LBWE). The job getting finished, but I do not see data comming into delta queue(rsa7), the records are still available in LBWQ. Please help...
    Thanks
    Syed.

    I had the same problem.  For me datasources 2LIS_11_VASTI, 2LIS_11_V_SSL, 2LIS_11_VAITM were not pulling records when I ran my loads in BW.  The runtime of LIS-BW-VB_APPLICATION_11_200 kept growing as well.
    Anyways my solution was found in SAP NOTE: 728687.  I suggest you check that one out.  At the very bottom of the note is SOLUTION 2.  This was the solution that I used.
    Let me know how you do!
    Thanks,
    Nick

  • Factory reset and possible Data loss

    Need to do a factory reset but I am not sure what "Data" will be lost when the reset is done.
    Could someone tell me what I will need to save and where it is best to save it too so that the Data is not lost.
    Thanks in advance.

    When a factory reset is done, it usually wipes everything in the phone's memory.  If you are worried about losing pictures or music, those can be moved to your SD card if they aren't already there.  Your contacts can be saved two ways, through your Google account and backup assistant.  I have done factory resets many times on various phones, and only issue is having to redownload a couple of apps that didn't make it.  Let me know if you have any other questions ok.
    Please mark as solved if this answers your question.

  • I want to use my macBook Pro 2,2 (mid 2007) to display video being fed from a Canon 5D video out into the vectorscope in Final Cut Pro 7.0.3.  Is it possible to input live video from another digital camera into the MacBookPro

    I know that the built in iSight camera records video.  I want to set up a Canon 5D video camera and feed the Canon's video output into the MacBook Pro so that I can use the vectorscope in Final Cut Pro to adjust the exposure of the Canon 5D.  Basically I don't want to buy a vectorscope to have on set to make sure the picture is properly exposed and color balance is correct. (In your response it doesn't have to be the full scenario I've described.  If you can just tell me if there's a way to feed live video into the MacBook and display it on the screen and possibly record it, then I'll figure out the rest.)

    Dear Ben,
    Thanks for your help. Apple and I dealt with this. It was an FCP, NOT Motion problem. As It seems you understand, we simply trashed my FCP prefs. Problem went right away.
    Thanks. Do you live near Hammond? Played in a rugby tournment down there once. I was transformed.
    MS

  • Is it possible to move applications etc from the phone back into itunes

    does anyone know how to move applications and ringtones notes etc etc back into the itunes ? i dont mean back up I have for example tom tom i uploaded onto my phone, however old pc died and now i have no apps other than on my phone, i would like to get them saved onthe pc in itunes

    The iphone is not a back up device. The music/apps/movie sync is one way - computer to iphone.
    The exception is itunes purchases: File>Transfer Purchases from itunes will move itunes purchases to your computer.
    You should maintain a backup for this very reason.
    You can also re-download apps (unlike music):
    http://support.apple.com/kb/HT2519

  • Arbitrary data param not importing from Premiere Pro project into After Effects.

    Hi,
    I have an AE SDK plugin effect that works in Premiere Pro and After Effects... the effect has a bunch of standard parameters and one Arbitrary Data parameter.
    I believe that the Arbitrary data parameter is implemented correctly, and I have implemented all of the cases for PF_Cmd_ARBITRARY_CALLBACK...
    PF_Arbitrary_NEW_FUNC
    PF_Arbitrary_DISPOSE_FUNC
    PF_Arbitrary_COPY_FUNC
    PF_Arbitrary_FLAT_SIZE_FUNC
    PF_Arbitrary_FLAT_SIZE_FUNC
    PF_Arbitrary_FLATTEN_FUNC
    PF_Arbitrary_UNFLATTEN_FUNC
    PF_Arbitrary_INTERP_FUNC
    PF_Arbitrary_COMPARE_FUNC
    PF_Arbitrary_PRINT_SIZE_FUNC
    PF_Arbitrary_PRINT_FUNC
    PF_Arbitrary_SCAN_FUNC
    The only issue I have found, is that when importing a Premiere Pro project into After Effects with the "Import -> Adobe Premiere Pro Project" option, the value in the Arbitrary Data
    parameter is always the default. There is no problem saving or re-opening projects within AE or PP... and there are no problems with cutting and pasting instances of the effect.
    Importing a Premiere Pro project into After Effects using the Dynamic Link works correctly... the Arbitrary data is imported.
    Thanks.

    Some kind of answer would be awesome... there are Adobe staff members on here right?

  • Transferring from camera to external into MBP

    While my G5 is in the shop I'm wondering how best to transfer DVX 100B footage to an external IOMEGA FW 800 drive. The drive has an available 400 firewire port and I am using the 800 port going into my MBP. Before I tried going through the 400 fw port in the Iomega I wanted to ask if this is a possibility or would everything start burping and smoking? And is there a better 'plan B' I should be looking into? Thanks.
    Using FCP 2.

    It took me a while to understand what is happening here - but let me try to recap so I make sure I understand.
    You want to take your external drive - send the 800 port to the MBP and send the 400 to the DVX100B - and capture to the drive - basically making your MBP a pass through - and hope that it all plays nice together?
    I can tell you - I have done this sort of daisy chaining on a few occasions and not had any issues. However, I didn't do with different FW speeds - but, I don't know if that would matter.
    Maybe try to log and capture one clip and see what happens.
    I don't think it will burp at you. Maybe ***** and moan...
    pJ

  • Possible? output a string from a java program into a running program

    I'm not sure if it is plausible, but this is my dilemma. My java program searches for street names in a specific region, then outputs the nearest street. I would like to synch this up with Google Earth, and output the street name into it, so it would go ahead and be able to search it right away. Is this possible, or should I attempt some other route?

    Check out my runCmd method. It gives an example of running another program and listening for the output. I built this to run javac and show the output in my custom editor.
    You'll see some classes in here that are not standard java classes, in particular InfoFetcher. Don't worry, this is just a utility I wrote for convenient handling of inputstreams. You can handle the inputstreams without it, but if you really want it, it's probably posted somewhere in these forums.
            private void runCmd(String cmd) {
                 try {
                      System.out.println("cmd: " + cmd);
                      Process p = Runtime.getRuntime().exec(cmd);
                      InputStream stream = p.getInputStream();
                      InputStream stream2 = p.getErrorStream();
                      InfoFetcher info = new InfoFetcher(stream, new byte[512], 500);
                      InputStreamListener l = new InputStreamListener() {
                           int currentLength = 0;
                           public void gotAll(InputStreamEvent ev) {}
                           public void gotMore(InputStreamEvent ev) {
                                String str = new String(ev.buffer, currentLength, ev.getBytesRetrieved());
                                currentLength = ev.getBytesRetrieved();
                                System.out.print(str);
                      info.addInputStreamListener(l);
                      Thread t = new Thread(info);
                      t.start();
                        InfoFetcher info2 = new InfoFetcher(stream2, new byte[512], 500);
                      InputStreamListener l2 = new InputStreamListener() {
                           int currentLength = 0;
                           public void gotAll(InputStreamEvent ev) {}
                           public void gotMore(InputStreamEvent ev) {
                                String str = new String(ev.buffer, currentLength, ev.getBytesRetrieved());
                                currentLength = ev.getBytesRetrieved();
                                System.out.print("(Error) " + str);
                      info2.addInputStreamListener(l2);
                      Thread t2 = new Thread(info2);
                      t2.start();
                 catch (IOException iox) {
                      iox.printStackTrace();
            }

Maybe you are looking for

  • Encountered the symbol "COLLECT" error message, without a collection?

    Okay, once again I'm confused and lost. I'm working on a 'variation' of the Issue Tracker sample application at: http://apex.oracle.com/pls/otn/f?p=23133 Once there, select "Projects", then on the "Projects" page, click the edit button. The error app

  • Error while reading data from backend system.

    Hi all,        When i click on personnel information iview i am getting following error EIC Authentication    An error occurred while data was read from your ERP system. Contact your system administrator. I used SQL TRACE and RFC TRACE to find where

  • How to replace oracle  OCR disks commands are notworking in cun solaris

    Hi in our datacentre we are configuring new storage in ORACLE 10g rac system with sun solaris system if i type the commands at root # ./ocrconfig - replace ocr /dev/did/rdsk/d10s6 it is giving the optinns list if i type #./crsctl add css votedisk /de

  • Dv6-1308ew TV TUNER problem codecs mpeg4 dvb t

    Player form HP do not search for any of tv programms. My signal is ok, but my country support only mpeg4 - support said this codecs will be downloaded automaticlly after configuation HP MediaSmart - but with no sucess. I installed all software, drive

  • NW04s Upgrade

    Hi. I might be posing an irrelevant question here but I just wanted to be sure. Do we require any ALPHA conversion activity in case of an Upgrade from NW04(3.5) to NW04s? Or is it history from 3.1 onward? Cheers Anand