Viewing individual bytes of data

I am trying to read the individual bytes of data from a file format that LabView does not deal with. How Would I open the file and see the numeric vualue of each byte in LabView, if it is even possible?
Thanks
Beaton
- there is always an easy way, but it is always the hardest to find

Beaton wrote:
I am trying to read the individual bytes of data from a file format that LabView does not deal with.
One way or another, a file is just a long string of bytes. If you know the structure of the file, you can create appropriate code to parse it. Just read the file as a plain string and feed it to "string to byte array", you'll end up with an array where each element is one byte as U8 representation. Just use "index array" to get the element you want. (Of course you could do the same with substring to get one character, then set the display to hex).
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • View Individual Device Data Usage on Shared Plan

    Hello, I was recently given a smart phone on my employer's plan (I previously had a regular phone, so did not incur data usage charges). I can view the overall plan's data usage on my phone, using the Verizon app, but I can't see where to view my individual device's data use. I created a Verizon account here on the web, and using the online tools here I can see my individual use, but I would like to do so on my phone.
    I can use my phone's settings to see what it says my data use is (which just about matches what Verizon says) but I would rather have the Verizon totals shown on my phone, just to be sure what the actual data being billed is.

        I know keeping tabs on your data usage is important Felderburg. If you are a user on a company account, you may not have the full access to My Verizon Mobile. You would typically be able to see the individual line usage by clicking the "shared data" option under the usage estimate total. I'm pleased you have been able to gain this information online via your computer. As an additional option on the phone if you don't have full access, you can dial #DATA.
    JonathanK_VZW
    VZW Support
    Follow Us on Twitter@VZWSupport

  • Hi, I am using USB 8476s to communicat​e to a slave unit in LIN network using LabVIEW7.1​. Can anyone tell me how i can send a header file plus 1 byte of data to the slave in a LIN network. or how do i use ldf file. i want to read responses from the slave

    Hi,   I am using USB 8476s to communicate to a slave unit in LIN network. Can anyone tell me how i can send a header frame plus 1 byte of data to the slave in a LIN network. or how do I communictae with slave using LabVIEW7.1.
    I want to read responses from the slave. When i tried with labview exapmle programs or even using MAX also, while doing some switching action in my slave, i am getting response as Device inactive with timestamp but there is no data format. 
    And I have Lin Description File. Can you suggest me how to use ldf file.
    I am at customer place and It would be great help from you if you can suggest me at the earliest. Thank you

    you may use the LDF Starter Kit to use LDF informations in your application
    http://joule.ni.com/nidu/cds/view/p/id/665/lang/en

  • Charset declaration in template must be before 512 bytes of data

    I have an HTML5 template (well, as close as I can get to it since BC seems to add an XML namespace attribute on my HTML element) and on line 4 of my Sitewide Template I have the <meta charset="utf-8"> declaration which is required to be within the first 512 bytes of data for it to validate as HTML5.
    I have my homepage set to this Template and I have keyword and description meta data in the HEAD of the homepage and for some reason, BC moves my charset declaration from the 4th line of my Template to just above the keyword and description meta data which is right before the closing of the HEAD tag.
    Here's the site I'm moving over to BC: //mortgageunlimited.ignitemybusiness.com
    What's also weird is that on my homepage I moved a HTTP-EQUIV meta tag that directs IE to use the latest rendering engine or Chrome Frame and that meta tag is just before the closing HEAD tag on my page, but when I view the page with the Template applied to the page, it moves the HTTP-EQUIV meta to the top of the HEAD tag, just below the TITLE.
    Weird. The charset meta tag, if present, needs to be the first sibling of the HEAD element. Even before the TITLE element, since BC also adds an HTML comment <!-- BC_OBNW --> which takes up some of that 512 bytes of data that the charset element needs to be in.

    I'm not using the Admin editor to code my template. If you'd read my thread you'd see that I noted that BC is adding the xml namespace attribute on my html element. I don't have that in the code on my template.  Also, I'm talking about the charset meta tag, not the http-equiv meta tag.  You can still use the http-equiv meta tag to set the charset but the HTML5 spec also says that we can use the new charset meta tag instead and that it be in the first 512 bytes of data.  The Here's my template doctype and head elements:
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Mortgage Unlimited, LLC</title>
    <link rel="stylesheet" href="/stylesheets/mortgage-unlimited.css">
    <link rel="stylesheet" href="/stylesheets/easy.css">
    <script src="//www.google.com/jsapi"></script>
    <script>
      google.load("jquery", "1.7.1");
      google.load("jqueryui", "1.8.17");
    </script>
    <script src="/scripts/main.js"></script>
    <script>
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    <script>
    function validate()
              if (document.frmLoanOfficer.selLoanOfficerId.value == "")
                        alert("Please select a Mortgage Banker");
                        document.frmLoanOfficer.selLoanOfficerId.focus();
                        return false;
    </script>
    <script language="JavaScript" type="text/javascript">
              function validateQuote(){
                        var objForm = document.getElementById("frmquote");
                        if(objForm.loanType.value==""){
                                  alert("Please select Type of Loan");
                                  objForm.loanType.focus();
                                  return false;
                        if(objForm.creditHistory.value==""){
                                  alert("Please select Credit History");
                                  objForm.creditHistory.focus();
                                  return false;
                        if(objForm.monthlyExpenses1.value==""){
                                  alert("Please select Property Value");
                                  objForm.monthlyExpenses1.focus();
                                  return false;
                        if(objForm.loanAmount1.value==""){
                                  alert("Please select Loan Amount");
                                  objForm.loanAmount1.focus();
                                  return false;
                        if(objForm.FirstName.value==""){
                                  alert("Please enter First Name");
                                  objForm.FirstName.focus();
                                  return false;
                        if(objForm.LastName.value==""){
                                  alert("Please enter Last Name");
                                  objForm.LastName.focus();
                                  return false;
                        if(objForm.Email.value==""){
                                  alert("Please enter Email");
                                  objForm.Email.focus();
                                  return false;
                        if(objForm.Phone.value==""){
                                  alert("Please enter Phone");
                                  objForm.Phone.focus();
                                  return false;
    </script>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    </head>
    And here's my page doctype and head elements:
    <!DOCTYPE html>
    <html>
    <head>
    <title>Mortgage Unlimited, LLC</title>
    <meta name="keywords" content="Mortgage Unlimited, LLC, home loan, mortgage, home purchase, refinance, debt consolidation, mortgage calculator, low interest rate, low mortgage rate, home finance, secure online mortgage application, home equity loan, bad credit, pre-qualify, equity line of credit,branch affiliate, net branch, branch partner, wholesale lending, retail mortgages, branch platform, branch, mortgage branch,pre approval, real estate lending, real estate loans, commercial loans,FHA Loans, 3.5% down, low down payment financing , hard money loans,  ">
    <meta name="description" content="Mortgage Unlimited, LLC offers mortgage and refinance services for home owners and home buyers. Experienced mortgage professionals providing full mortgage related services.
    ">
    </head>
    I could just update my http-equiv meta tag to include the charset but I think this is a bug since in the future most people will be using the charset meta tag instead of the http-equiv tag so whatever processes the templates are run under that are moving the http-equiv meta tags to the top of the header should also be configured to work with the charset meta tag as well. I'm still considering this a bug.

  • HT201250 How do I view individual photos in iPhoto on Time Machine?

    I go in to Time Machine, then Pictures and iPhoto Library but cannot open any further - is this where they should be for me to open the whole library as I can't open it?

    Time Machine can't restore individual pictures on iPhoto. If you want to restore a photo from the Time Machine backup, you have to restore the whole library and you will lose recent changes.
    A workaround would be to access to your Time Machine drive manually and restore the iPhoto library from the backup you want to a folder. Open a Finder window, choose your Time Machine drive in the sidebar and go to Backups.backupdb > yourcomputername > backupdate (being the date when the backup was created) > Macintosh HD (or the disk name you selected) > Users > youruserfolder > Pictures, and copy the iPhoto library to another folder. Open the old library, extract the photos and copy them to your current iPhoto library.
    If you just wanted to view individual photos from an iPhoto backup you have in Time Machine, you just have to restore the iPhoto library to another folder (in case you don't want to lose your current iPhoto library)

  • How to parse 10 byte encoded data from Omegatte HH306 Thermometer/Datalogger?

    I am trying to write a simple code for an OMEGAETTE HH306 Thermometer/Datalogger from omega.com.
    Here is the problem. I communicate with the device via RS-232, using Labview 8.5.1 and windows xp. I query it for "all encoded data", which is basically the only option. It returns 10 bytes of encoded data, the manual describes the meaning of each byte, and I understand all of it. The problem is that I cannot seem to parse the information for use within labview, for example: I want to extract the temperature and simply display it.
    upon query, I get: 10bytes (read as a string from the serial port read buffer):     HEX display: 02 00 A8 B6 48 FF EF B6 49 03      This is perfect, and what I expect.     Codes Display: \02\00\A8\B6H\FF\EF\B6I\03               The Normal Display is a series of special characters, which I don't understand, especially since I don't think they represent the ascii characters that should correspond to the hex numbers returned!   For the life of me, I cannot figure out how to extract the information (which is the 6 48 in the hex display) from what is returned. All the string manipulation functions seem to only work on what is given in the Normal Display. (The 4th and 5th byte of the data are the BCD codes for the temperature: for example the temperature was 64.8 degrees farenheight when I took this reading).
    Can anyone help me to parse the data returned by this device?
    Solved!
    Go to Solution.

    Ok... I think I figured it out. I found this: http://digital.ni.com/public.nsf/websearch/77C8F61D36F5A23086256634005ACB38?OpenDocument.
    I guess the garbled normal display is the ascii characters corresponding to each hex number. I am just not used to seeing ascii characters beyond the decimal number 127, or hex 7F.
    So basically, to parse the 10 bytes of data:
    1) break up the string read from the serial port into the 10 individual ascii characters (using  String subset vi)
    2) wire each output string into the left input of 10 distinct Type Cast vi's.
    3) wire a U8 constant into each "type" terminal of the Type Cast vi's.
    4) wire the string output of each Type Cast vi into the input of a  number to hexadecimal string vi.
    5) concatenate or use as you would like the hex numbers (now in string format) that result.
    Cheers.

  • Is there any way of dragging and dropping an iCal event showing in week view across to a date in the left sidebar monthly calendar?

    Hi, Im not a frequent forum poster, as most of my questions can be found already answered on them!
    This is a question Ive had for a long time and it amazes me that no-one else seems to ask it. I check at each OS upgrade but its never there...
    Is there any way of dragging and dropping an iCal event showing in week view across to a date in the left sidebar monthly calendar?
    I was able to do this years ago in MS Outlook, and utilized it all the time when I needed to push things back, now I have to open the event and select an new date in the drop-down calendar for each & every event I want to move to a new month at the end of the month.
    If its definitely not possible, how to you ask apple to consider including it - it doesnt seem like a particularly difficult task.
    Thankyou
    Andrew.

    Andrew,
    Is there any way of dragging and dropping an iCal event showing in week view across to a date in the left sidebar monthly calendar?
    No, but you can use cut/paste. Cut (⌘X) the event, then click on the week where you want to move the event, and Paste (⌘V).
    If you have a suggestion for Apple to change that method use: Apple - Mac OS X - Feedback.

  • Discoverer Viewer not showing correct data when scheduled

    Hi All,
    I have a bit of an ongoing issue and cannot find an answer through Oracle.
    We have an issue that when a cross-tab workbook is run manually in Desktop this returns correct data, when scheduled in desktop it returns correct data in desktop, but when opening the scheduled workbook in viewer, incorrect and irrelevant data is returned
    Here is a little information on the field that is not returning correct data;
    The field is based on a calculation, the calculation (lets call BOB) contains PL/SQL function concatenated with an NVL calculation, this other calculation is a DECODE. I have been playing with changing the content of the BOB calculation, by removing the PL/SQL function and the DECODE calc from BOB and scheduling the report, the data is returned in viewer, in fact i've attempted one without the other and this still does not return the correct data.
    This version of discoverer that is not returning data is V 10.1.2.50.05. I've tested this on a later environment with Discoverer V 10.1.55.26 and the data is returning correctly through the sceduled report in viewer.
    My questions;
    1. Has anyone ever come across something similar to this in version 10.1.2.50.05
    2. Is there any detail available regarding what upgrading to 10.1.55.26 offers?
    3. Know any workaround for using PL/SQL calculations in a scheduled workbook? I am aware that not aggregable items will not be returned in v11 when scheduling workbooks.
    Many thanks in advance for any help.
    Simon

    Bumping this thread
    Thanks
    Si

  • View is not retuning data when creating XML message through workflow

    Hi All,
    This is a very critical problem for me. I am trying to send an XML message (outbound) through XML gateway. This is done from a custom workflow. The message creation is done from the standard procedure ecx_document.sendDirect. The data for the XML file is taken from two views (whcih are created in a custom schema and have synonym in apps). One view for header and another one for line information (I am creating an XML for a purchase order).
    The problem is when the workflow try the first time to create a message, the views are not returning data. So message creation fails. Now, if we restart the workflow after some time, it will work and the message is created. What could be the reason for this sort of a behaviour ?
    I am using business events to trigger the workflow. The data in the table/view will be updated by standard POAPPRV workflow activities. The custom workflow is subscribed to a business event raised from POAPPRV workflow, at a certain point. So this will execute when this event is raised from POAPPRV wf. The subscription has a phase value of 99.
    Any help on this regard will be much appreciated, as this is a critical issue.
    Thanks in advance,
    Arun
    PS : One more thing : this is happening mostly in the production instance where the number of messages is very high (freqency).

    Hello,
    With the BAPI_EQUI_CREATE you can only create PM equipments not IS-U devices that why there is no IS Tab .
    You have to use the dialog transactions IQ01, IQ04 or the MM transaction, where you can create devices through a movement.
    There is objecttype DEVICE (SWO1) with the following methods:
    -> Device.CreateFromData (Create Equipment Master Record)
    -> Device.Create (Create Equipment Master Record)
    -> Device.CreateISU (Create IS-U: Modification for IS-U)
    Please check whether you can use method Device.CreateISU for your requirement.
    Regards
    Olivia

  • List View does not retain date formats from Excel

    i am using List View control to isplay data. When i scroll the horizontal bar inlist view, the date format changes to numbers. is there were to stop this happening.
    regards
    Chandra

    Hi Chandra,
    Are you getting the values from any live connection or is it static data from the excel file?
    You can also try to goto properties of component and in the appearence tab,select the format of the values as "DATE".
    Incase you are getting the values from the live connection, you can select a different cell which would reference to the data coming from the connection and use it into the components.
    e.g.: if values are coming in cell"A1" then goto some empty cell as B1 and type in"=A1" and use this new cell into the component.
    Let me know if this works.
    Thanks,
    Amit.

  • Unable to view enhanced field in Data Source

    Hi All,
    We recently upgraded our R/3 system from 4.7 to ECC 6.0. Now when we are enhancing the data source, the field is visible in the Extract Structure. But we are unable to view it in the data source. We checked out in RSA2 the enhanced field attribute is specified as 'Field in OLTP and BW Hidden by SAP'. We have written code to modifiy the ROOSFIELD table to make the enahnced field visible. But this is the problem with all the data sources. Whenever, we have to enahnce, we have to go thru this process to make the enhanced field visible.
    Is it like that we missied out any patch in ECC 6.0 while upgrade? If any person faced similar situation, please help us.

    Hi Ravi,
    I think you are missing a step here. As soon as you enhance your datasource with new fields, by default, those 2 check boxes are checked ( Hidden and Field in User exit only). You go to RSA6, edit your datasource and here, you can uncheck these added fields so that you can use them. You do not need to write any code to change the fields settings in ROOSFIELD table. Do the step I mentioned above after enhancing and you should be good. Hope it helps.
    Thanks and Regards
    Subray Hegde

  • TCP connection error when sending MODBUS commands to WAGO 750-881 controller after 113655 bytes of data have been sent

    Hi all,
    I am new to the world of labview and am attempting to build a VI which sends commands to a 750-881 WAGO controller at periodic intervals of 10ms. 
    To set each of the DO's of the WAGO at once I therefore attempt to send the Modbus fc15 command every 10ms using the standard Labview TCP write module. 
    When I run the VI it works for about a minute before I recieve an Error 56 message telling me the TCP connection has timed out. Thinking this strange, I decided to record the number of bytes sent via the TCP connection whilst running the program. In doing so I noticed that the connection broke after exactly 113655 Bytes of data had been sent each time. 
    Thinking that I may have been sending too many messages I increased the While-loop delay from 10ms to 20, 100 and 200 ms but the error remained. I also tried playing with the TCP connection timeout and the TCP write timeout but neither of these had any effect on the problem. 
    I cannot see why this error is occuring, as the program works perfectly up untill the 113655 Bytes mark. 
    I have attached a screenshot of the basic VI (simply showing a MODBUS command being sent every second) and of a more advanced VI (where I am able to control each DO of the WAGO manually by setting a frequency at which the DO should switch between ON and OFF). 
    If anybody has any ideas on where the problems lie, or what I could do to further debug the program this would be greatly appreciated. 
    Solved!
    Go to Solution.
    Attachments:
    Basic_VI.png ‏84 KB
    Expanded_VI.png ‏89 KB

    AvdLinden wrote:
    Hi ThiCop,
    Yes the error occurs after exactly 113655 bytes every time. The timeout control I would like to use is 10ms, however even increasing this to 1s or 10s does not remove the error, which leads me to believe that this is not the issue (furthermore, not adding any delay to the while loop, thus letting it run at maximum speed, has shown that the TCP connection is able to send all 113655 bytes in under 3 seconds again pointing towards the timeout control not being the issue here). 
    I attempted Marco's suggestion but an having difficulty translating the string returned into a readable string, (rightnow the response given is "      -#   +   ").
    As to your second suggestion, I implemented something similar where I created a sub VI to build a TCP connection, send a message and then close the connection. I now build each message and then send the string to this subVI which successfully sends the command to my application. Whilst not being the most elegant method of solving the issue, it has resolved the timeout problem meaning I am able to send as many commands as I want. So in that sense the problem has been solved. 
    If you still have tips on how to correctly read the TCP read output, I would however like to see if I could not get my first program to work as it is slightly more robust in terms of timing. 
    Modbus TCP RTU is a binary protocol, as you show in your Basic VI, where you format the data stream using byte values. So you have to interprete the returned answer accordingly with the Modbus RTU spec in hand. Now what is most likely happening is that the connection gets hung after a while since you do NOT read the data the device sends as response to your commands. The TCP/IP stack buffers those bytes and at some point the internal buffers overflow and the connection is blocked by the stack. So adding the TCP Read at strategic places (usually after each write) is the proper solution for this. Is there any reason that you didn't use the NI provided Modbus TCP library?
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Album view in order of date added. Is it possible?

    album view in order of date added. Is it possible?
    In v10 I got used to ordering my music library with the newest additions on top, date added with the album view if it didn't take up more space.
    Now it's just the songs and I really don't like this. Album view is interesting but usless in alphebetical order which seems to be the default.
    I was told by another person here to use a smart playlist but the method they suggested was not clear.
    Can someone please explain how to do this or if there is a better alternative for someone who liked the old song view>date added>with album art?
    -thanks

    Welcome to the Apple Discussions. By "nr" are you referring to the shipping invoice that comes with the book? If so the answer is no. To order a book the library containing the book needs to be used.
    If someone had a copy of the library that created the book initially they could order a book on their own Apple account without you knowing about it. *+BUT they would have to have a copy of the iPhoto LIbrary to do so.+*
    So unless you think someone had access to your computer which housed the library a second copy of the book could not have been ordered.
    OT

  • Grouping of Individual groups of Data Template in the RTF

    Hi All,
    We have a scenario where we may require the grouping of Individual groups of Data Template in the RTF.
    Lets say
    1. I have group of Invoices with the Group Name G_INV
    2. I have a list of Payments done for the Invoices under G_PAY
    3. I also have a list of Prepayment Applications that are happened on the Invoices G_PRE
    All the three groups G_INV, G_PAY, and G_PRE are independent and they are at same level
    G_INV (Main Header)
    G_PAY (Main Header)
    G_PRE (Main Header)
    Extract
    <ROOT>
    <G_INV>
    <INV>I1</INV>
    </G_INV>
    <G_INV>
    <INV>I2</INV>
    </G_INV>
    <G_INV>
    <INV>I3</INV>
    </G_INV>
    <G_PAY>
    <PAY>P1</PAY>
    <INV>I1</INV>
    </G_PAY>
    <G_PAY>
    <PAY>P2</PAY>
    <PAYINV>I2</PAYINV>
    </G_PAY>
    <G_PRE>
    <PRE>PRE1</PRE>
    <PREINV>I1</PREINV>
    </G_PRE>
    </ROOT>
    But in the Report output,
    we need the data to be displayed as follows
    G_INV (Main Header)
    G_PAY (Sub Group of Payments)
    G_PRE (Sub Group of Prepayments)
    Output
    I1
    P1
    PRE1
    I2
    P2
    I3
    So, Can you please suggest us,
    Whether we can get these Individual groups into the above required hierarchical manner. If so, please let us know how to achieve the same.
    Also, it will be great if you advice us regarding the Performance, how best will be if we group the queries in this heirarchical manner in the RTF rather than getting the hardcoded dependency through linking of the Data Queries in the Data Template file.
    Thanks,
    Praveen G

    Hi
    I dont think you can stop the table growing using Word controls. The easiest way to do it would be to limit the amount of data coming in.
    <?for-each:LOOPELEMENT[position()<5]?>
    This is take only the first 5 rows
    Tim

  • Imported ical from outlook and the date across the top of the weekly view all show the date i imported..

    imported ical from outlook and the date across the top of the weekly view all show the date i imported..

    I'm confused, what does iCal have to do with this, it seems as though you went from Outlook to Entourage, is that correct?

Maybe you are looking for

  • Weird new graphical bug in ITunes...

    Check this out... Click here for a more close up view. As you can see, the music listing part of ITunes bleeds over the top menus. Weird. This bug is occurring regardless of whether the window is maximized or not. And yes, this bug persists after a r

  • Possible Join Issue

    I have the following query, part of which I inherited from elsewhere. The table aliased c has 47,000 records in it. What I want to do is select one each of these records by CVBI_KEY (47,000) unique CVBI_KEYS. There is information in other tables as s

  • Firmware update message whenever I try to go online with HotSpot!

     Every time I turn on my HotSpot - Verizon MIFI451OL - i get a message for Verizon EvDo Rev. AE firmware updates. I attempt to sign in using the only password I have, and it refuses, stating my password is incorrect. I have two passwords, one used in

  • I updated my Ipod Touch 2G to ios 5 but since then my apps don't open anymore. It says I need ios 4.0. what can I do?

    I have updated my ipod touch 2G to ios 5 but my apps won't open anymore. When I try, i have a message saying that I need ios 4.0. Before this update, my apps worked fine. How can I do to make them work again?

  • Update by DTW

    Can I update the field SlpCode in the tables OINV and INV1 by DTW? Thanks. Paolo Orlando