Lvm time column negative value

Hi,
I have made a simple data logger to write temperature and pressure values to a lvm file using the write lvm express vi in labview 7. I works ok but the time column in the lvm file does not start at zero but begins with a negative value. There is a difference between the time stamp in the header and the time at the top of each of the columns I am logging which appears to be resposible for the problem. Any ideas how I can solve this.
Cheers,
Oli

Hi Oli,
I've had a look at this and am seeing the same behaviour as yourself. I've looked into why this is happening and I think it has something to do with the way the express VI converts data before writing it to file.
When I test this, the time data starts at 0 when I uncheck the Ask User to Choose File option. The issue is worse the longer the file dialog box is open and doesn't seem to appear when you don't have the file dialog box open at all.
If you want to be able to browse for your file, you can use the File Dialog Box VI which is located in File IO >> Advanced File Functions. Place it outside the loop.
I hope this helps.
Sarah
Applications Engineer | National Instruments | UK & Ireland

Similar Messages

  • How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance

    How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance, As it is shown in the figure below. and enter this signal in a daq.
    Solved!
    Go to Solution.

    By the time you spend for the nice diadram you might have done the vi
    Your DAQ like to have a waveform (array of values and dt ak 1/samplerate)
    If you set the samplerate you know the array length , create a array of zeros, and set the values of both amplitudes ... 
    Since I don't want to wire others homework here are some pictures
    And there are some drawbacks is room for improvement in my solution, just think of rounding errors ... and what might happen if the arrays get bigger ....
    Spoiler (Highlight to read)
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Write to Measurement File time column wrong starting value

    I am using Write tp Measurement File express VI.  I select to write one time column.  The values writtent in the time column start from a value that does not seem to correspond to anything in the program -- sometimes as much as 2-3 days before the saving begins.
    Can I force the starting value  of time to something, or get it to write the time since we started saving, or something predictable?

    Include code whenever available.  Asking somebody to troubleshoot your software without any code is like asking your mechanic to fix your car without taking your car to him.
    Source
    I don't recommend using the Write Express VI.  I recommend using the File I/O primatives because they allow for much more control over what gets written and how.  Still I would expect the Express VI to be able to write time properly so I'd assume there is some kind of bug with the data being given to the function.  Post some code so we can see what is going on.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Writing 2-D array to spreadsheet file changes value of time column when saved

    I have a program that creates a new row in a table each time the loop performs.  Each time the loop performs and a row is added to the table, the program uses the "write to spreadsheet file.vi" to save this new table over the previous table.  The array is also visible on the front panel of the vi.  The program works in such a way that you can stop adding data to the array, start adding data to a new array, then come back to the original by using the "read from spreadsheet file.vi".  My problem comes after opening the spreadsheet file.  The first column of the array, which corresponds to the time when the data in that row was taken, has different values than those that were seen when the array was originally displayed on the front panel.  In fact, all of the rows that were created the last time the program was run with that array have the same value in the time column, while all of the other columns keep their correct values.  Here is an example of what is happening...
    When I start the program, and run it for 5 iterations, I get a table like this displayed on the front panel:
    3241713920
    85.88012
    93.88012
    1.735015...
    3241713930
    85.97603
    93.97603
    1.747003...
    3241713940
    84.58855
    92.58855
    1.573568...
    3241713950
    84.48096
    92.48096
    1.560119...
    3241713960
    84.93667
    92.93667
    1.617084...
    This array is saved to the spreadsheet file with each added row.  If I initialize and build another array, then come back to this first array using "read from spreadsheet file.vi," I will receive the following table:
    3241713920
    85.88012
    93.88012
    1.735015...
    3241713920
    85.97603
    93.97603
    1.747003...
    3241713920
    84.58855
    92.58855
    1.573568...
    3241713920
    84.48096
    92.48096
    1.560119...
    3241713920
    84.93667
    92.93667
    1.617084...
    If anyone could tell me why this is happening and/or how to fix it, that would be greatly appreciated.  One option I have contemplated is just having each individual row appended to the file instead of resaving the entire array with each iteration.  However, I would prefer to do it the way I am currently doing it, so I can pass the array through each time and perform different tasks on it, such as averaging the values in columns over different time periods.  Thank you in advance to anyone who can help. 

    DWDerr wrote:
    If anyone could tell me why this is happening and/or how to fix it, that would be greatly appreciated.  ...
    This KnowledgeBase article may help.  I think things changed in LV8.20, but I could be wrong.
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • Negative values in Inventory report

    Dear Guys,
    When we are doing BW Inventory, we are facing one problem. I have searched previous topics. There some guy gave the same problem. But there is no answer. I am giving the details as per his words:
    We have been struggling to reload our Material Movements cube (0IC_C03). We have been following the SAP documentation titled 'How to handle inventory management scenarios in BW'.
    Our initial loads (Stock Opening Balance, Movements Init, Revaluations Init) have all been successful and validation looks good. The problem is that when the first delta UPDATE runs we end up having many negative inventory quantities appearing. We are not sure what we could be doing wrong.
    Compression settings are as follows
    1) Run stock opening balance (2LIS_03_BX)
    2) Run statistical setup for 4/3 only for Revaluations and Movements (2LIS_03_BF, 2LIS_03_UM)
    (Compress with Marker option NOT CHECKED)
    3) Load Stock infoPackage 2LIS_03_BX with 'Opening stock balance checked ' (ie: not full update)
    (Compress with marker option NOT CHECKED)
    4) Run delta init for Movements
    (Compress delta init with marker option CHECKED)
    5) Run delta init for Revaluations
    (Compress delta init with marker option CHECKED)
    6) Setup job control in logistics cockpit
    7) Run delta update for Movements
    Compress delta with marker option NOT CHECKED
    8) Run delta update for Revaluations
    Compress delta with marker option NOT CHECKED
    The issue seems to occur with steps 7 and 8. The initial time we do these steps we get zero records and everything looks good. Then the next day the same steps occur in our nightly process chain and then the data is bad with negative values.
    Any ideas what we could be doing wrong?
    Thanks!
    Regards,
    Vivek.V

    Hi Vivek,
    I had exactly the same problem.
    In my case the issue was with the configuration of material movements in R3
    In the R3 IMG goto Materials Management/IM & Phys Inventory/Movement Types/Copy, Change Movement Types execute
    Select movement type (enter)
    select all Movement Types say 101 to 901
    Look for column header "Stat. Relevant" and make sure they are set to 2 or 3. If they are set blank the movements are not picked up by the extractors

  • Export Time column to Excel

    I know SSRS doesn't really have a time data type outside of the datetime type, but I'm trying to have a time column which exports to excel as a time data type.  I've tried a few different ways, but the only way that seems to convert over is having the
    textbox expression =TimeValue("00:30:00").  The problem is this creates a datetime and displays the date portion.  I've tried using custom formats of hh:mm:ss, and those look fine while running the report, but excel sees it as a negative datetime
    which produces a malformed value.
    To clarify by example, I have a time 00:30:00 which exists in a textbox on the report that I want to export to excel as 00:30:00 but as a data type of Time so that if someone were to write excel formulas based off of those cells, it would be able to perform
    time-based arithmetic on them.
    Any ideas?

    Bin Long,
    I'm wanting to preserve the datatype such that Excel recognizes the column as a Time type.  Formatting the column will make it look right, but it will be recognized as a string in Excel.
    Ravi,
    This functionality also does not preserve the actual datatype.  It is really just a wrapper for the format function.  What I need is for the data itself in the column to be recognized as a Time datatype in Excel and not just be formatted
    like one.
    I'm getting the feeling this just isn't possible in SSRS which is disappointing.  I've tried writing custom code for it and creating custom types but neither of these work either.  I have also looked into converting the column into a SQL time type
    (newly available in 2008 R2), but that also isn't giving me the desired result.  I feel that SSRS is really lacking in the available datatypes arena.

  • Using conditional formatting on negative values in Web Analysis 931

    Hi All,
    Can I please have your thoughts on the below:
    We open a web analysis report in Analyze View.
    The scenarios are in the columns and we are trying to apply conditional formatting on negative values.
    We right click the scenario in the columns and click Formatting...
    We then tick the Conditional Formatting check box and we want to add a condition on negative numbers.
    However we can only enter positive values as the - sign is not accepted. This means we cannot apply conditional formatting on negative values.
    Does anyone know how this can be done? Am I missing the obvious?
    Thanks for your help.
    Seb

    Gotcha. Ok. Have you thought about creating a new hidden calculated ColumnB whereby you multiply the values in ColumnA by -1 and then set your formatting based on the result in ColumnB. If the value in B is positive then you know A was a negative number so you can go from there, in a round about way? I don't have time at the moment to think it all the way out but something to think about. If your formatting involves just colors you could use Traffic Lighting to set the color on ColumnA based on result in ColumnB. Traffic Lighting out of the box is limited but it's a start until you have time to build your own.
    -Karen

  • Apex 3.2 SVG Chart - How to plot Stacked Bar With Negative Values ?

    Currently Apex 3.2 Flash Chart (AnyChart 3.x) does not support Stacked bars with negative values.
    I try with SVG Stacked bars with positive values only, chart ploting works fine. When I add a new series with negative values (i.e -1) and I get a blank Chart region with no error.
    Based on this statement from Apex's documentation:
    *"AxisLine Indicates zero on charts that have negative values."*
    I appreciate your help on how to translate this statement into action ?
    (i.e how to override .Axisline class in CSS section ?)
    Thank you very much for your time.

    User614143,
    try to add the minumm negative value (but positive) to the parameter for the axis.
    e.g. show value+3000 (assuming -3000 is the minimum value)
    If you don't have a limitation for the negative values, it doesn't work. (or try to calculate first the most negative value in a before header process)
    hope this helps.
    Leo

  • Service PO Creation With Negative value

    Hi all,
    I am trying to create a Services PO using the BAPI 'BAPI_PO_CREATE1'
    In my scenario, First time PO will create with negative value.
    Then I will remove some conditions in Services line.
    Then PO value will becomes positive.
    When i create the bapi in ME21N, its working fine. Net values of PO become negative.
    But When I try the same using the BAPI, net price of the PO stored as 0(ZERO).
    If I create a PO with positive value using the same BAPI, everything is fine.
    If I change the PO after creation(removing the service line to make bapi value as positive), Net values are doubled since value stored as zero instead of negative value.
    Kindly help me to get out of this issue.
    Note: I need to create a Services PO with negative value using the BAPI
    Thanks in advance.

    Hi,
    No need to create service PO with negative quantity!
    If payment not done for your servicePO, you can cancel invoice document and then revoke SES.
    If any other process involved you can do subsequent debit or subsequent credit  for your service PO in t.code:MIRO.
    Regards,
    Biju K

  • Conversion error in Table control for Negative values

    hello all,
    Iam using table control with 6 columns and in that columns values are coming from Ztable. and out of that one column is of value which is input/output field and having negative value's also.type of that column is DEC.
    Now when i run the report dump occurs showing error message as COnversion Error.
    I think its because of negative value even the in attributes of that column i had selected With Sign checkbox.
    Now when i run the report then if in Ztable negative value is there then i want to display negative value in table control also.
    Please suggest me...
    <removed_by_moderator>
    Thanking you.
    Regards.
    Edited by: Hemant Baviskar on Sep 10, 2008 3:07 PM
    Edited by: Julius Bussche on Sep 10, 2008 1:13 PM

    Hemant
    Refer to following link:
    Table Control : Conversion error
    Thanks
    Amol Lohade

  • Issue with Negative Value for Total valuated stock 0VALSTCKQTY.

    Hi Experts,
    we loaded the Cube with datasources 2LIS_03_BX, 2LIS_03_BF and 2LIS_03_UM.
    We mapped the quanity field from 2LIS_03_BF in transformation either into Key figures "Quantity issued from valuated stock" (0ISSVALSTCK) or "Quantity received into valuated stock" (0RECVALSTCK ) of the cube.
    For obtaining the Total Valuated stock, we used the Key figure 0VALSTCKQTY. This key figure is having the Inflow and Out flow values as 0RECVALSTCK and 0ISSVALSTCK. When i tried to check the content of 0VALSTCKQTY, the key figure  0VALSTCKQTY is not present in the infoCube content. I understood that the value for this key figure would be calculated at the time of query execution with the formula
    { Last obtained Valuated stock + (Received Valuated Stock u2013 Issued Valuated Stock ) }.
    The issue is the first records in the query is obtained with negative value for the total valuated stock 0VALSTCKQTY even though the values of Received Valuated Stock  and  Issued Valuated Stock are with Zero.  Could any one please help me on how the first record in the query is with a negative value eventhough the inflow and out flow fields of it are with Zero.
    Many Thanks in advance.
    Jeswanth

    Hi Srini,
    I observed an interresting reason for the stock being with negative in the first record.
    Issue : While executing the BEx report, we have the first record with a negative value.
    Let me explain with an example
    Material  : XYZ
    Plant      : A
    Date of Stock Initialization for data source 2LIS_03_BX -
    >  12th April 2009.
    So on 12 Th April 2009 consider that we have a stock in store with a value of 2640.
    Then we have loaded wih Data source 2LIS_03_BF for all Historic Movement types.
    At the time of query execution we will have the first record with a negative of available stock present on the day of initialization .
    So, as we have initilized the data source 2LIS_03_BX on 12 th April 2009, we have at that time a stock of 2640 in availability.
    Exactly with the same value of 2640, we are having a negative value i.e. -2640.
    and also one more point to be noted is ...as we have initialized the data source 2LIS_03_BX on 12 th APril 2009...it has created a
    opening balance of 2640 on the day of initiailization i.e on 12 th April 2009 in infocube....(which is an extra record...)...so if the previous record of 12,04,2009 is having some value in it..then it will get added to 2640 EA..which will give incorrect stock
    So in the query the records will appear in the below following manner
    Calendar Day     Total stock                                                                Received stock                                          Issued Stock         
    28.12.2005 --->  - 2640 EA
    29.12.2005 --->    2000 EA                                                                       640 EA                                                        0
    10.04.2009 --->      0                                                                                0                                                               2000 EA      
    11.04.2009 -
    >    0                                                                                0                                                                0          
                                 (For making
                                  the earlier record of  initilization to 0  a negative value -2640 EA is created in the first record )
    12.04.2009 (Initializtion day) --->  2640 EA                                                 0                                                                0
    13.04.2009 
    the day before initialization the total stock will be 0 due to the negative effect introduced by the first record and from the day of initialization the records will be the accurate values...  On 12 th april 2009 we can see that a stock of 2640 is brought into the total stock. In fact if there is no negative value i.e. -2640 in the first record then ...the value on 11.04.2009 will be 2640 Ea and this will get summed up with the Opening balance of 2640 EA created by 2LIS_03_BX on the day of intitialization. So on 12 .04. 2009 the total stock will be shown as 5280 EA...so in order to prevent the double value only we observed that the first record is created with the negative of available stock present on the initialization ...to make the record before the day of initialization i.e. 11.04.2009...to be 0...so that from 12 th April 2009 ..will start to see the actual total stock in the query result...
    This is happening only if we use  both the data sources 2LIS_03_BX and 2LIS_03_BF  for loading into BW.....
    If we load alone by 2LIS_03_BF ...then as 2LIS_03_BX is ruled out in the loading...then no negative of available stock will be created ...because there will be bno opening balance created on the day of initialization.....and the opeing balance available will be flowing into consecutive records due to the movement types and 12 th April 2009 will be shown with avaialable total stock of 2640 EA.
    Kindly let us know your opinions on this...
    Thanks.
    regards,
    Jeswanth

  • How to remove negative values for non-cumulative amount

    Hello
    I have a requirement from the user, wherein he needs to see the balance amount from credit and debit without calendar day being a factor. Hence, they do not need a bank passbook kind of scenario.
    I kept the balance amount aggregation as sum+last value. It works fine when I keep calendar day in rows. However, removing it shows negative value in the balance amount in case of just debit.
    They wish to see 30,000 on 07.12.2014 and 25,000 on 04.02.2015 in Non-cumulative key figure column. This works if I drag 0calday, but doesnt work in this scenario.
    Is it possible?

    Hi Yasemin
    Credit & Debit are inflow and outflow amount key figures. The user want the data somewhat like this:-
    GL Account No.
    Credit
    Debit
    Non Cumulative Balance
    1
    1000
    1000
    1
    500
    500
    1
    100
    400
    However, as of now, I get this data only when I keep 0calday in rows. If I remove it the data turns into this:-
    GL Account No.
    Credit
    Debit
    Non Cumulative Balance
    1
    1000
    1000
    1
    500
    -500
    1
    100
    -100
    I also tried suppressing result rows, yet it didnt work. This scenario is sort of like an account passbook debit and credit amount balance report, but they want that amount coming in without the 0calday row.

  • Negative Values of Library Cache Hit Ratio in AWR Report

    Hi all,
    We are getting Negative values of Library cache hit ratio in AWR Report of 11g(11.2.0.3) with Solaris[tm] OE (64-bit).
    Please suggest us why it shows negative value.
    Instance Efficiency Percentages (Target 100%)
    Buffer Nowait %: 99.87 Redo NoWait %: 99.99
    Buffer Hit %: 92.17 In-memory Sort %: 100.00
    Library Hit %: -3,321.23 Soft Parse %: 81.95
    Execute to Parse %: 92.88 Latch Hit %: 95.11
    Parse CPU to Parse Elapsd %: 87.25 % Non-Parse CPU: 81.39
    Regards,
    Madhan
    Edited by: user12078989 on Jul 25, 2012 7:40 AM

    Hi Aman,
    DB not restarted during this time.. we don't have production access. we will get awr report automatically from customer daily. also i am getting issue in our local environment v$rowcache view gets values is negative for dc_users and dc_tablespaces parameter may be it's related production issue...

  • Negative values in Bar chart

    Hi,
    I have to plot negative values in a horizontal bar chart. Only the +ve values of the data column comes up in  the bars,
    How should i modify the xsl code
    Thanks in advance
    Krishna

    Hello,
    XI3 has several types of horizontal charts and there are some that seems to describe your requirements.
    I attach some pictures allowing you to see if it meets your needs.
    http://imageshack.us/photo/my-images/207/generalkg.jpg/
    http://imageshack.us/photo/my-images/513/deski1.jpg/
    Regards,
    Philippe

  • Negative Values

    Hi
    Can we use Negative values in BLOB and CLOB.
    Please help me
    Thanks
    Ramesh

    user9077483 wrote:
    Can we use Negative values in BLOB and CLOB.CLOB stores character data and BLOB stores binary data. So all you could is to store string representation of a number (negative, zero or positive) in a CLOB and binary representation of a number (negative, zero or positive) in a BLOB. Question is why would you do that? Anyway, number to clob conversion is done automaticallly (implicitly), while you would need to use something like utl_raw package to convert number to blob:
    SQL> create table tbl(b blob,c clob)
      2  /
    Table created.
    SQL> insert into tbl values(-1,-1)
      2  /
    insert into tbl values(-1,-1)
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected BLOB got NUMBER
    SQL> insert into tbl values(utl_raw.cast_from_number(-1),-1) -- this stores number as blob and as clob
      2  /
    1 row created.
    SQL> select * from tbl
      2  /
    SP2-0678: Column or attribute type can not be displayed by SQL*Plus
    SQL> select c from tbl -- this returns clob, not a number
      2  /
    C
    -1
    SQL> select utl_raw.cast_to_number(b),to_number(c) from tbl -- this returns both blob and clob converted back to number
      2  /
    UTL_RAW.CAST_TO_NUMBER(B) TO_NUMBER(C)
                           -1           -1
    SQL> But again, even though you could (at a relatively large cost of associated conversions and storage expenses) I do not see any reason to store numbers as blob/clob.
    SY.

Maybe you are looking for

  • Can't get sub vi to process button pushed in main vi.

    I'm trying to control whether or not data will be written to a spreadsheet through the use of buttons on my main panel. I have 5 sets of data and want to be able to tell the program when to save them by pressing a button. To do this, I created 5 sub

  • CREATION OF NEW MOVEMENT TYPE

    Hi,        I have a query regarding creation of a new Movement Type. Is there any specific rule to start creating new Movement Type only with numbers starting with digit 9 or we can consider numbers starting with any digits. Please clarify this as so

  • Global Address List and Address Book

    I have MS Exchange server 2007 and Active Directory at my school. I have moved all of my teachers to Mac and everything is right with the world, until this morning. I noticed that the global address lis in Active Directory does not show up in the Add

  • Transaction associated with std SAP Program

    Hi friends, I have a custom transaction ZR01 and there is and associated abap program to this which is a std SAP program starting with GP3E*. This program although a std program has been stored as a local object. The report program has a few commente

  • Inner Join Subquery data display

    I have a query that uses a sub query on a INNER JOIN  SELECT  SUM(A.qtyord), A.Item, A.Description, A.Class, B.Forecast,                  CASE                          WHEN B.Forcast = 0                 THEN A.Item                  ELSE