Coversion from Number to Engineering value
In my VI, I want the actual value to be displayed with the number and 3digit after decimal point. But I dont understand the engineering string format? I just want the actual value to be displayed in the array.
Attachments:
test1.vi 10 KB
Use %#.3f to format your string.
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community.
Similar Messages
-
Hii ..
need help on this ..
This what I am doing ..
I am using a DATAEXPORT function to export level0 data from my essbase 11.1.2.2 to Microsoft SQL 2008 tables.
So what I did first I exported the level0 data to a flat file using DATAEXPORT and the created the SQL columns by the same in that order only in my SQL table.
When I run it fails with this error:
ODBC Layer Error: [21S01] ==> [[DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Column name or number of supplied values does not match table definition.]
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1021014)
ODBC Layer Error: Native Error code [213]
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Error(1012085)
Unable to export data to SQL table [dataexp]. Check the Essbase server log and the system console to determine the cause of the problem.
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1021002)
SQL Connection is Freed
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Warning(1080014)
Transaction [ 0x1c50001( 0x51ee7d66.0x80342 ) ] aborted due to status [1012085].
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1012579)
Total Calc Elapsed Time for [test.csc] : [1.44] seconds
=============================================================
I did a simple test on my Sample.basic application then ..
loaded the calc data to it and then used the below script to export to a flat file
//ESS_LOCALE English_UnitedStates.Latin1@Binary
SET DATAEXPORTOPTIONS
DataExportLevel "Level0";
DataExportOverwriteFile ON;
DataExportColFormat OFF;
DataExportDimHeader OFF;
FIX(
"Jan",
"Sales",
"Actual"
/*DATAEXPORT "File" "," "/home/hypadmin/samtest.txt";*/
DATAEXPORT "DSN" "Abhitest" "sample" "sa" "welcome1";
ENDFIX
out put as below:
"Sales"
"100-30","California"
"Jan","Actual",145
Now In sql I created only 3 columns with name Jan/Sales/Actual and when I run this script again with comments removed .. I get the same error as what I have got in my first test case with other application ..
but when I create the columns with same name as what its in export
Sales/100-30/Califirnia/Jan/Actual
It created the new rows successfully ..
So with this I think the error which I am getting with my other application might be because of the same column issue .. but then I have created all the columns by looking at the export file only as I did in sample ..
Any idea would be helpful ..
Thanks
Abhishek
IFirst make sure you add
DataExportRelationalFile ON;
to your set commands it is missing
I alwats like to also add
DataExportColHeader dimensionName;
so I am sure what dimension is getting put into the columns.
Then count the number of dimensions in your outline (exclude attribute dimensions). You need at least that many columns in your table -1 + the number of members you will be returning as columns in the export
Taking your example Sample basic has 5 dimensions
Measures
Years
Scenario
Product
Market
Since you did not specify a dataexportcolheader it took the dense dimension Scenario as the columns. Your fix statement is limiting that to one member. Doing the math
5 -1 + 1 = 5 columns in your table which is what you found works. Suppose you fixed on bothe Actual and budget in scenario then you would need 6 columns 5 -1 +2 -
Passing a large number of column values to an Oracle insert procedure
I am quite new to the ODP space, so can someone please tell me what's the best and most efficient way to pass a large number of column values to an Oracle procedure from my C# program ? Passing a small number of values as parameters seem OK but when there are many, this seems inelegant.
Passing a small number
of values as parameters seem OK but when there are
many, this seems inelegant.Is it possible that your table with a staggering amount of columns or method that collapses without so many inputs is ultimately what is inelegant?
I once did a database conversion from VAX RMS system with a "table" with 11,000 columns to a normalized schema in an Oracle database. That was inelegant.
Michael O
http://blog.crisatunity.com -
Change data type from number(11,6) to number (11,8)
I have a table, which has a million records...I have to change data type of some of the columns from number (11,6) to number (11,8).
I thought of taking the backup of the table , truncating the original table, change the data type and then insert data back.
Is it a safe option considering so many records ?the first number is precision and the second is scale:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/schema002.htm#sthref472
so yes, 11,6 can hold larger numbers than 11,8
create table foobar (two number(5,2),
three number(5,3))
insert into foobar values (123.45,12.345);
--works fine
insert into foobar values (123.45,123.45);
--gives error ORA-01438: value larger than specified precision allowed for this column -
Maximum number of key/value pairs in btree or hash database
It's not clear to me from the documentation what the limit is on the number of key/value pairs in a Btree or hash database. The documentation on logical record numbers says that the db_recno_t type is a 32-bit unsigned type, "which limits the number of logical records in a Queue or Recno database, and the maximum logical record which may be directly retrieved from a Btree database, to 4,294,967,295". What does "directly retrieved" mean in this sentence? Does this mean that Btree is limited to 4,294,967,295 key/vaue pairs? If so, is this also the limit for a hash database?
Hi mcgarvek,
In case of Queue, Recno and Btree configured for logical record numbers - you can do that by setting DB_RECNUM flag: http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/db_set_flags.html#DB_RECNUM , the maximum number of records is 4,294,967,295 and after that limit, the next record will be inserted as record number 1.
In case of Hash and Btree, the maximum database size depends on the page size selected by the application. Berkeley DB stores database file page numbers as unsigned 32-bit numbers and database file page sizes as unsigned 16-bit numbers. Using the maximum database page size of 65536, this results in a maximum database file size of 248 (256 terabytes).
Database limits: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_misc/dbsizes.html
Logical record numbers: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_conf/logrec.html
Regards,
Bogdan Coman -
Row Insert Failed - Column name or number of supplied values does not match
Hi ,
I am trying add a new field to an existing table in MSSQL and access it in portlets,
I added the new field in the table, and making necessary updations to the accessing java code seems to look fine. but when i insert the new rwo, fails with exception listed below.
My code tidbits is as follows.
System.out.println("Column Location of outsidePhysician"+ aResultSet.findColumn("outsidePhysician")); // works and returns 24
if (anIntake.getOutsidePhysician() != null && !(anIntake.getOutsidePhysician().equals("")))
System.out.println("Now Alternate Physician will be added to resultset");
aResultSet.updateString(24, anIntake.getOutsidePhysician());
aResultSet.updateString("outsidePhysician",anIntake.getOutsidePhysician());
System.out.println("Now Alternate Physician already added to resultset"); // also printed
}else{
aResultSet.updateString(24, "new Physician");
aResultSet.updateString("outsidePhysician","new Physician");
//NOT NULL
aResultSet.insertRow(); // fails here
System.out.println("Inserted");
The table has the right field name too, which is proved when i retrieve the fieldno, based on field name. I tried to delete the field and removing these changes work ok..
Any ideas would be of help
Thanks in Advance
Usha
[Microsoft][SQLServer 2000 Driver for JDBC]Row insert failed. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseImplUpdatableResultSet.executeStatement(Unknown Source) at com.microsoft.jdbc.base.BaseImplUpdatableResultSet.insertRow(Unknown Source) at com.microsoft.jdbc.base.BaseResultSet.insertRow(Unknown Source) at com.microsoft.jdbcx.base.BaseResultSetWrapper.insertRow(Unknown Source) at com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.insertRow(WSJdbcResultSet.java:2181) ... 14 more Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Insert Error: Column name or number of supplied values does not match table definition. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceI haven't ever used that method of inserting rows, but from the example in the API documentation it looks to me like you have to callaResultSet.moveToInsertRow();before you callaResultSet.insertRow();Or are you just "inserting" the physician's name into existing rows of the database? If that's what you are doing then you need to callaResultSet.updateRow();Message was edited by:
DrClap -
Extract arrays according the number of consecutive values
Hello I would need some help on one problem to search the
number of consecutive values in an array. I am using Labview 8.1
First I have a 2D array with 3 columns: Col (A) Col (B)
Col (C). I would like to plot points from Col( B)=f(ColC) at Constant
value in Column A. The problem is that in Column A the values changes. My
problem is to extract arrays when the values in column A are the same and when
the number of values is higher than a number that I can choose. In my case I
chosse this number by the threshold function on the peak detector.
Let ‘s take an exemple:
Col (A) Col(B) Col(
C)
12 343 45
654 65 33
121 65 65
18 31 45
12 456 98
787 361 787
121 156 123
12 32 545
Let ‘s say I want to plot Col(B)=f( Col(C)) at constant value in
Column A when I have more than 2 constant values in Column A
The aim would be to have different arrays to plot 2
different graphs for different constant value in Col( A).
Col (A) Col
(B) Col( C) Col (A) Col(B) Col(C)
12 343 45 121 65 65
12 456 98 & 121 156 123
12 32 545
What I do with the VI is:
1) sort
the 2D arrays accordind the values in
the Col (A) and extract Col(A)
2) Search
the index of elements in Column A when they I do not have consecutive values
3) Subtract
each new indexes indexes 2 by 2: this gives me the number of consecutive values
in a new array.
4) Detect
the indexes of the peak (number of consecutive values) that I want (in the
exemple= 2)
My problem is now to come back in
the initial array and extract the arrays that has more than n consecutive values
(n=2 in the exemple) according to the index found by the peak values.
I am sure that there is a simpler
and better way to do this (maybe by a for loop or by using an histogram);
Thank in advance for the help
Olivier
Attachments:
extract values.vi 33 KBFirst, I wanted to thank you, Kumar for the quick answer: 5
stars for the answer, this is exactly what I was looking for. I would not have
found it by myself.
I have an other problem to plot now Col( B)=f (Col( C))
What I would like to do is plot Col (B)=Col (C) with
different plots (colour) on a same graph when the value in column A changes.
I managed to have 2 arrays (thanks to the forum with some
modifications):
-One to tell me each first indexes when the value changes
-One to tell me each last indexes when the values changes
My idea would be to use theses indexes to split the initial
array by a loop when the value in Column
A changes and then in an other loop (or
in the same) connect the XY graph to the build arrays.
The only problem is that before running Labview I do not
know how many different values in column A I have so I do not know how many
arrays will be created when I will try to split the initial array.
Is someone know if this solution is possible?
Thank you in advance for the help.
Olivier -
Maximum number of field values for an Authorization object
Hello Experts,
What is the maximum number of field values can be put into the role, Is there any restriction for number of values in any authorization field?
I have put 326 values for field OBJTYPE in authorization object S_DEVELOP but not able to generate the role it is showing error.
I know I can split the values in two or more instance but wanted to know if there any other way out for this (without creating more instances)
Thanks
DKIf the values for OBJTYPE are not uniquely the same, then the system will not merge them - so nothing will be lost.
Here is another trick for you: Choose one of the transactions in the role (or create a "symbolic" one for it") where you want to have the OBJTYPE proposed automatically from. Now maintain one or two of them in SU24 and then download it to your PC. Now from the F4 value range of the OBJTYPE, add all of those values you want via copy&paste into the file and then upload into SU24 again. A read old / merge new in PFCG will then swing all the values in for you.
Single values are always better, as you do not know what else is hidden in the range or might be added in future. It is however common to see FROM / TO ranging around values such as DEBUG and FUGR although all aspects of S_DEVELOP are dangerous - even in display mode.
Cheers,
Julius -
From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?
Hi,
Use NVL or COALESCE:
NVL (col_a, col_b)
Returns col_a if col_a is not NULL; otherwise, it returns col_b.
Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
Restart number is not in the check file or is not a From-number
HI!
I had posted payment Document but i got below error while reprint check from FBZ5
Restart number is not in the check file or is not a From-number
"Message no. FS562"
on that base, I had check below settinng
1) I had check Cheque no register . It's proper in series.
2)Tcd:FBZP -> Pmt methods in country -> select your country
and payment method 'C'. If 'Bank details' is checked on, then bank
details of vendor master is mandatory for that payment.
Awaiting for reply soon,
thanking you,
Rupang shahHi,
Commonly it will come for below situations:
1. Client decided to use this check lots for manual payment & this checks already used, so this type of checks system not allowed to take reprint.
2. You can only reprint checks created with F110, FBZ4, F-58 or FBZ5 (this checks have been printed by the system)
Check the Payment method wise checks it is already issued / not PAYR - RZAWE
system not allowed to reprint already exist in PAYR table checks.
if you already use one check with payment method C now you want to use the same lot for payment method X then system not allow to print.
Regards,
Viswa -
ALV Report how to display from and to date values in the header.
I develoeped alv report . i want to display selection screen from and to date values in top of page...
any sample code pls guide me..You have to do many things...
first find the selection details using the FM.
RS_REFRESH_FROM_SELECTOPTIONS
use the Blog to Align/populate the Header from the selection table
/people/community.user/blog/2007/05/07/alignment-of-data-in-top-of-page-in-alv-grid -
How to prevent a text in script from displaying if its value is zero
Dear all,
How to prevent a text in script from displaying if its value is zero
for eg Price = 0.00
if price is 0 it should'nt appear in output.
I tried with if price ne 0.
price = &price&
endif.
but it's not working.
Regards
Raj
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Jan 20, 2009 8:59 AMHello Nagaraju,
What you were doing is partially right.
The correct format to write in the script is as follows :
/: if &PRICE& ne 0.
&PRICE&
/: endif.
This should work. Let me know how it goes.
Nayan -
How to populate form fields by choosing a parameter from a list of values?
I have a unique field (say claim #)that is displayed at the top right of the page. Whenever I choose a value from the list of values and query the DB, all the subsequent forms(representation of one or more tables, linked by claim#) present below the search field should be populated with apt values.
The issue here is, the forms displayed in the bottom of the page represent different master tables linked by the universal identifier(claim#) for my system.
Please guide me if anyone knows a solution for this issue.
Regards
ArunYou might want to look at the Acrobat Forms Data Format (FDF) Toolkit to create an FDF file that has the webbased PDF form refereced as the form source for the FDF data. You could also look at PDFTK and PDF Hacks.
This is more of a developers issue than a simple Acrobat JavaScript issue.
If may salary were to be doubled, I would still receive the same amount.
If you do not like the responses ask for double your fee back.
What do you expect for free? -
RFC destination from XI ABAP engine to 4.5 B system
I tried to create an RFC destination from XI ABAP engine to 4.5 B system.
It does not work and gives an error.
<b>Error Details DETAIL: NiIGetSockName</b>
-Naveen.Hi Naveen,
First of all try to ping 4.5B system from XI system (Through TELNET)... This is to ensure the connectivity and the access. The error is not a common error, i suppose, So better first we check the phisical connectivity...
Plz. confirm...
Regards,
Audy -
Maximum number of "Single values" accepted in "Multiple Selection"
Hello gurus. I wonder if you could help me with this.
You know how in transactions like the Data Browser (SE16), you want to look up records in a table, for example MARA.
If you want to list only individual values, then you can press the yellow arrow to the right of the fields, and this opens the "Multiple Selection" window. In it you can add single values, ranges, etc.
My question is, what is the maximum number of single values that you can put in here?
For example, sometimes if I put like 5000 lines, instead of getting a result I get an ABAP runtime error that reads:
Runtime errors DBIF_RSQL_INVALID_RSQL
Exception CX_SY_OPEN_SQL_DB
"Error in the module RSQL accesing the database interface".
But if I put around 1500 or less, then I don't have that problem. It lists the results just fine.
How do I know what the maximum number of lines these functions allow?Hi
Yes even I had the same experience and based on my several tests I dont put more than 2000 valeues.
Please advice if you have any question.
Thanks
Maybe you are looking for
-
How to create empty text box in wad
hi can i get step by step process for create empty text box user need to enter some text after wad execution or i need keep default tex also? please let me know#
-
Hi, where do Mac OS keep the log for user account activity, such as create root user, change password. Where can I find it? Beside, if an user use installer cd to manually create account, can I able to trace it from the logs?Please help as I suspect
-
Hi Folks, I've come across a small problem when doing a print to video. There's a section in my project where a photoshop file is superimposed on a piece of video. When playing back the timeline the photo transitions in and then disappears for a spli
-
How to change iOS 8.1.2. calendar's YEAR field?
My product is iPhone 6 Plus, I am using iOS8.1.2. system. My calendar year field now is "2557BE". I tried to changed Event to ''All Day", I can changed the year from there, but can not save the changes successfully, the year still return back to the
-
Hi... i would like to ask if i can do nested sequence with different sequence settings in fcp? would there be any problem when i render the project? assuming the first sequence settings is 720p (progressive) and the other one will be at 1080i thanks