ASCII to EBCDIC converter
Hello everybody!
I'm looking for a function module which converts ASCII text to EBCDIC. Unfortunately I couldn't find anything about this so far. It would be great if somebody could give me some information about.
Thankyou!
Best regards,
Markus
Hi Marcus,
You don't need a Function Module; there is a ready ABAP command 'EBCDIC(x)' available.
You will find more information here: [Converting ASCII to EBCDIC and vice-versa|http://www.sapdb.org/7.4/htmhelp/5e/0a41edba9d11d2a97100a0c9449261/frameset.htm]
Also, check this link : [Standard include for converting ASCII / EBCDIC|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/converting-data-from-ascii-to-ebcdic-in-unicode-environment-420663]
Hope this helps! Please let me know if you need anything else!!
Cheers,
Shailesh.
Similar Messages
-
Re: Code convert ascii to EBCDIC
At 09:06 PM 8/13/97 +0900, Isao Yamada wrote:
I am trying conversion ascii-to-EBCDIC conversion.You didn't mention the platform, but if it is Unix, I would just pipe the
input through the dd command. Even if this is a Win32 platform, I would
consider buying the Win95 toolkit from Ready-to-Run and using the dd
command in it.
=========================================================================
Thomas Mercer Hursh, Ph.D email: [email protected]
Computing Integrity, Inc. sales: 510-233-9329
550 Casey Drive - Cypress Point support: 510-233-9327
Point Richmond, CA 94801-3751 fax: 510-233-6950Isao,
You can convert arbitrary binary data
using MemoryStream, ReadBinary(), pointers
and casting to convert simple binary types to the
type you require. Here is a partial code fragment
from some binary communications code we wrote
to give you the idea. Although it looks like
'C' in places it really is valid TOOL code.
buf : MemoryStream = new;
theHeader : MemoryStream = new;
theData : MemoryStream = new ;
tempData : BinaryData = new ;
countBytes : integer = 0 ;
tempcountBytes : integer = 0 ;
ConnId : ui2 = 0 ;
magicNumber : ui4 = 0x5aa50ff0 ;
p : pointer = nil;
buf.Open(accessMode = SP_AM_READ_WRITE);
theHeader.Open(accessMode = SP_AM_READ_WRITE);
// Read the header
theHeader.Flush() ;
theHeader.Seek( position = SP_RP_START ) ;
countBytes = 0 ;
// Parse theHeader here
theHeader.Seek( position = SP_RP_START ) ;
theHeader.ReadBinary( target = tempData, length = 4 ) ;
p = (pointer)(tempData.Value) ;
PacketLength = *(pointer to ui4)(p) ;
theHeader.ReadBinary( target = tempData, length = 1 ) ;
p = (pointer)(tempData.Value) ;
PacketType = *(pointer to ui1)(p) ;
theHeader.ReadBinary( target = tempData, length = 2 ) ;
p = (pointer)(tempData.Value) ;
PacketSeqNo = *(pointer to ui2)(p) ;
theHeader.ReadBinary( target = tempData, length = 2 ) ;
p = (pointer)(tempData.Value) ;
ConnId = *(pointer to ui2)(p) ;
theHeader.ReadBinary( target = tempData, length = 4 ) ;
p = (pointer)(tempData.Value) ;
magicNumber = *(pointer to ui4)(p) ;
if( magicNumber != 0x5aa50ff0 ) then
buf.Close() ;
theHeader.Close() ;
return FALSE ;
end if ;
[email protected]
MIME-Version: 1.0
Content-type: text/plain; charset=iso-2022-jp
Hi! Everyday I read some useful tips from this mailing-list.
I am trying conversion ascii-to-EBCDIC conversion.
I want to read binary-file, because EBCDIC code data come by floppy-disk.
But I can't read this file into TextData object.
(TextData Class have method to access by byte.)
I know that I can read binary-data into BinaryData object.
if I can access BinaryData class by byte or read binarydata into textdata.
Does anyone have good idea for this question?
thanks.
T.C.F.Co.Ltd.
Isao Yamada([email protected])
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Reuters Ltd. -
Converting ASCII to EBCDIC and Packed Decimals as well
Hi All,
We have a requirement where data from a SAP system comes in ASCII format as a flat file.PI needs to encode 4 fields in the packed decimals and rest of the fields in EBCDIC format before sending to mainframe system.
When I use code page cp500 at the reciever file adapter level it encodes the entire file in EBCDIC format.
However we want those 4 fields to be in packed decimals while sending to mainframe system.
Could you please help me in figuring out a solution?
Thanks,
SowmyaHi Sowmya
Check this thread
ASCII to EBCDIC packed decimal -
Hello All,
How can I convert ASCII to EBCDIC using PI? Any modules to be used in channel?
Thanks,
Regards,
NareshHi,
Please check below thread.. it mentions about the beans you can use.
Convert EBCDIC to ASCII and ASCII to EBCDIC in PI7.0 SP14
Regards,
Deepak -
Convert EBCDIC to ASCII and ASCII to EBCDIC in PI7.0 SP14
Wea re going to be implementing PI7.0 SP14.
I am writing the technical specification for an inbound/outbound interface into/out of ECC 6.0!
I need to convert the File that is created out of SAP into EBCDIC in PI and for the inbound convert the file from EBCDIC into ASCII for import into ECC.
I have more than one way to this...
The ways I have found so far are:
Use MessageTransformBean, use TextCodepageConversionBean, XmlAnonymizerBean, using the File Encoding field on the File/FTP Adapter, XSLT mapping or Java mapping!
I have checked the OSS Note 821267, but this doesn't help.
I am sure all these methods have pros and cons...
What would be the most efficient method of changing this? It will be running hourly and have upto 6000 entries an hour - each way!Hi Barry,
I think the most efficient way in my thinking is XSLT and Java mapping.
For java mapping u just need to get thye jar file.I believe that the encoding cp285 / cp500 is EBCIDIC. Try printing
byte [] msg = .. // whatever
System.out.println(new String(msg, "cp285"));
if you get an exception saying Cp285 is unknown you may need an international version of the JRE, depends on the version you're using.
Also u can use this in reverse.
Please see this post:
Re: Handling Packed decimals in XI
regards
Aashish Sinha
Edited by: Aashish Sinha on Mar 25, 2008 6:07 PM -
Re: Code convert ascii to EBCDIC-thanks
thanks alfred.
Your hints is enable to make convert-program.
method CodeConvertB.SJISToEBCDIC(copy input InData: Framework.BinaryData,
copy output OutData: Framework.BinaryData,
copy input Length: integer = 0)
begin
memIn : MemoryStream = new;
memOut : MemoryStream = new;
tmpIn : BinaryData = new;
tmpOut : BinaryData = new;
OutData = new;
j : ui1;
ic : char;
oc : char;
if Length = 0 then
Length = InData.ActualSize;
elseif Length > InData.ActualSize then
Length = InData.ActualSize;
end if;
memIn.Open( SP_AM_READ, TRUE );
memIn.UseData( (pointer to char)(InData.Value), Length );
memIn.Seek( SP_RP_START );
memOut.Open( SP_AM_READ_WRITE, TRUE );
memOut.Seek( SP_RP_START );
for i in 0 to Length - 1 do
memIn.ReadBinary( tmpIn, 1 );
ic = *( pointer to char )( tmpIn.Value );
j = ic;
oc = ToEBCDIC[j];-- Value is EBCDIC.Array is S-JIS(ASCII) order
tmpOut.SetValue( &oc, 1 );
memOut.WriteBinary( tmpOut, 1 );
end for;
memIn.Close();
memOut.Flush();
memOut.Seek( SP_RP_START );
memOut.ReadBinary( OutData, Length );
memOut.Close();
return;
end method;
if someone want to use this complete-code, mail to me.
thanks.
T.C.F.Co.Ltd.
Isao Yamada([email protected])thanks alfred.
Your hints is enable to make convert-program.
method CodeConvertB.SJISToEBCDIC(copy input InData: Framework.BinaryData,
copy output OutData: Framework.BinaryData,
copy input Length: integer = 0)
begin
memIn : MemoryStream = new;
memOut : MemoryStream = new;
tmpIn : BinaryData = new;
tmpOut : BinaryData = new;
OutData = new;
j : ui1;
ic : char;
oc : char;
if Length = 0 then
Length = InData.ActualSize;
elseif Length > InData.ActualSize then
Length = InData.ActualSize;
end if;
memIn.Open( SP_AM_READ, TRUE );
memIn.UseData( (pointer to char)(InData.Value), Length );
memIn.Seek( SP_RP_START );
memOut.Open( SP_AM_READ_WRITE, TRUE );
memOut.Seek( SP_RP_START );
for i in 0 to Length - 1 do
memIn.ReadBinary( tmpIn, 1 );
ic = *( pointer to char )( tmpIn.Value );
j = ic;
oc = ToEBCDIC[j];-- Value is EBCDIC.Array is S-JIS(ASCII) order
tmpOut.SetValue( &oc, 1 );
memOut.WriteBinary( tmpOut, 1 );
end for;
memIn.Close();
memOut.Flush();
memOut.Seek( SP_RP_START );
memOut.ReadBinary( OutData, Length );
memOut.Close();
return;
end method;
if someone want to use this complete-code, mail to me.
thanks.
T.C.F.Co.Ltd.
Isao Yamada([email protected]) -
ASCII-EBCDIC convertion between z/Os and Linux
Hi experts, we are migrating our landscape to z/Os (DB+ASCS) and Linux (PAS). We have our GLOBALHOST on z/Os but we are experimenting some problems when we try to install our application servers because the conversion between platforms.
In the planning guide we can see that there is a way to mount NFS file systems exported from z/Os, that make this convertion in an automatic way, but the commands mentioned on the guide are for UNIX and not for Linux.
Does any of you have this kind of installtion that could help us to set this parameters ok?
Or does any of you face this problems before?
Regards
gustavoFirst, yes, we have z/OS systems programmers and DBAs with specific knowledge of DB2 z/OS. One of the reasons we initially went with the Z platform when we implemented SAP was that our legacy systems ran there for many years and our company had a lot of Z knowledge and experience. zSeries was one of our "core competencies".
I also need to give you a little more information about our Z setup. We actually had 2 z9 CECs in a sysplex, one in our primary data center and another close by in our DR site and connected by fiber. This allowed us to run SAP as HA on the Z platform. For highly used systems like production ERP we actually ran our DB2 instances active/active. This is one of the few advantages of the Z platform unavailable on other platforms (except Oracle RAC, which is also expensive but can at least be implemented on commodity hardware). Another advantage is that the SAP support personnel for DB2 z/OS are extremely knowledgeable and respond to issues very quickly.
We also chose the Z platform because of the touted "near-continuous availability" which sounded very good. Let me assure you, however, that although SAP has been making great strides with things like the enhancement pack installer, at present you will never have zero downtime running SAP on any platform. Specifically you will still have planned downtime for SAP kernel updates and support packs or enhancement packs, period. The "near-continuous availability" in this context refers to zero unplanned downtime. In my experience this is not the case either. We had several instances of unplanned downtime, the most recent had to do with issues when the CECs got to 100% CPU utilization for a brief period of time and could not free some asinine small memory area that caused the entire sysplex to pause all LPARs until it was dealt with(yes, this could be dealt with using system automation but our Z folks would prefer to deal with these manually since each situation can be different). We worked with IBM on a PMR for several months, but our eventual "workaround" was much better. We stopped running our DB2 instances as active/active and never had the problem again. We chose this "workaround" because we knew we were abandoning the platform and any of the test fixes from IBM required a rolling update of z/OS in all LPARs (10 total at the time), which is a major hassle, especially when you do it several times applying several different fixes until the problem is finally solved.
We also experienced some issues with DB2 z/OS itself. In one case, some data in a table in production got corrupted (yikes!!) SAP support helped us correct the data based on our QA system and IBM delivered a PTF (or maybe it was a ++APAR) to correct the problem. We also had several instances of strange poor performance in ERP or BI that were solved with a PTF or by using some special RUNSTATS output by some IBM DB2 tool our DBAs ran when we gave them the "bad" query. Every time we updated DB2 z/OS with an RSU felt like a craps shoot. Sometimes there were no issues revealed during testing, other times major issues were uncovered. This made us very hesitant when it came to patching DB2 and also made us stay well behind currently available maintenance so we could let other organizations identify problems.
Back to the topic of downtime related to DB2 z/OS itself, we know another company which runs SAP on Z that takes several hours of downtime each week (early Sunday morning I think) to REORG some large BLOB tables(if you're not in the monthly conference call for SAP on DB2 z/OS organizations, I suggest you join in). The need for RUNSTATS and REORGs to be dealt with explicitly (typically once a day for RUNSTATs and once a week for REORGs, at least for us) is a major negative of the platform, in my opinion. It is amazing what "proper" RUNSTATS can do to a previously poor performing query(hours reduced to seconds!). Also, due to the way REORGs are handled in DB2 z/OS, you'll need a lot of extra disk space for the image copies which get created. In our experience you need enough temp disk to hold the shadow copy of the largest table being REORGd and the image copies of the largest tables that are REORGd in the same time period. I recall that the image copies can be migrated to tape or virtual tape to free the image copy space back up using a periodic job, but it was a huge amount of trial and error to properly size this temp disk space, especially when the tables requiring a REORG are not the same week-to-week. We heard that with DB2 z/OS v10 that RUNSTATS and REORGs will be dealt with automatically by DB2, but I do not know if it has even been certified for SAP yet(based on recent posts in this forum it would appear not). Even when it is, I would not recommend going to it immediately(we made this mistake when DB2 z/OS v9 was certified and suffered for months getting bugs with SAP and DB2 interoperability fixed). Also, due to the way that REORGs work on BLOB tables, there will be a period of table unavailability. The caused us some issues/headaches. There are some extra REORG parameters you can set, but these issues are still always a possibility and I think that is why the company mentioned previously just took the weekly downtime to finish the REORGs on their large BLOB tables. They are very smart folks that are very experienced with zSeries and they engaged IBM experts for assistance to try and perform the REORGs online and yet they still take the downtime to perform the BLOB REORGs offline. In contrast, these periodic database tasks do not require our Basis team to do anything with SQLServer and do not cause our end-users grief when a table is unavailable.
Our reasons for moving platforms (which, let me assure you was a major undertaking and was considered long and hard) were based on 3 things:
1. Complexity
2. Performance
3. Cost
When I speak of complexity, let me give you some data... There was a time when ~50% of all of the OSS messages the Basis team opened with SAP were in the BC-DB-DB2 category. In contrast, I think we've opened 1 or 2 OSS messages in the BC-DB-MSS category ever. Many of the OSS messages for DB2 z/OS resulted in a fix from either SAP or from IBM. We've had seveal instances of applying a PTF, ++APAR, or RSU to z/OS and/or DB2 which fixed serious "unable to perform a job function" problems with SAP. We've yet to have to apply a single update to Windows or SQLServer to fix an issue with SAP.
To summarize... Comparing our previous and current SAP platforms, the performance was slower, the cost higher, and the complexity much higher. I have no doubt (especially with the newer Z10 and zEnterprise 196) that we could certainly have built a zSeries SAP solution which performed on par with what we have now, but.... I could not even fathom a guess as to the cost. I suspect this is why you don't see any data for the standard SAP SD benchmark on zSeries.
I suspect you're already committed to the platform since deploying a Z machine, even in a lab/sandbox environment isn't as easy as going down to your local computer dealer and buying a $500 test server to install on, but... If you wanted to run SAP on DB2 I would suggest looking at DB2 LUW on either X86_64 Linux or on IBM's pSeries platform.
Brian -
ASCII to EBCDIC Packed Decimal
Hi all,
I want to convert a 9-digit number which is in ASCII to a 5-digit EBCDIC packed decimal using OSB.
Can anyone please help me with this?
Thanks in advance!
Regards,
KarthikThis can be done using MFL
-
Hi there!
I am working on an Oracle data extract project. My output file will send to a DB2 database and a mainframe application. In my file, some fields' type is COMP-3. I use Oracle build-in function convert () to convert to EBCDIC. This works fine in SQL*PLUS. But when I use it in my PL/SQL program, I got "ORA-06502: PL/SQL: numeric or value error: character to number conversion error". Here is my program.
FUNCTION get_vd_pro_norm_mth_amt(p_account_rec IN ACCOUNT_ROW) return varchar2
as
v_scaled_amount varchar2(15);
BEGIN
select convert(a.scaled_amount, 'WE8EBCDIC500','US7ASCII')
into v_scaled_amount
from pin61_02.rate_bal_impacts_t a, pin61_02.rate_plan_t b
where b.poid_id0 = a.obj_id0 and
b.account_obj_db = p_account_rec.poid_db and
b.account_obj_id0 = p_account_rec.poid_id0 and
b.account_obj_type = p_account_rec.poid_type and
b.account_obj_rev = p_account_rec.poid_type;
return v_scaled_amount;
EXCEPTION
WHEN OTHERS THEN
RETURN NULL;
END get_vd_pro_norm_mth_amt;
I guess the wrong data type of my variable v_scaled_amount generated the problem. I do not know which data type should I use to store EBCDIC data.
Thanks a lot!
Maxtry with nvarchar2.
NVARCHAR2
You use the NVARCHAR2 datatype to store variable-length Unicode character data. How the data is represented internally depends on the national character set specified when the database was created, which might use a variable-width encoding (UTF8) or a fixed-width encoding (AL16UTF16). Because this type can always accommodate multibyte characters, you can use it to hold any Unicode character data.
The NVARCHAR2 datatype takes a required parameter that specifies a maximum size in characters. The syntax follows:
NVARCHAR2(maximum_size)
Because the physical limit is 32767 bytes, the maximum value you can specify for the length is 32767/2 in the AL16UTF16 encoding, and 32767/3 in the UTF8 encoding.
You cannot use a symbolic constant or variable to specify the maximum size; you must use an integer literal.
The maximum size always represents the number of characters, unlike VARCHAR2 which can be specified in either characters or bytes.
my_string NVARCHAR2(200); -- maximum size is 200 characters
The maximum width of a NVARCHAR2 database column is 4000 bytes. Therefore, you cannot insert NVARCHAR2 values longer than 4000 bytes into a NVARCHAR2 column.
You can interchange VARCHAR2 and NVARCHAR2 values in statements and expressions. It is always safe to turn a VARCHAR2 value into an NVARCHAR2 value, but turning an NVARCHAR2 value into a VARCHAR2 value might cause data loss if the character set for the VARCHAR2 value cannot represent all the characters in the NVARCHAR2 value. Such data loss can result in characters that usually look like question marks (?).
[email protected]
Joel P�rez -
Non ASCII characters are converted to '?' or ASCII characters
Non ASCII symbols like æ ø in the xml file have been converted to ? or other ascii characters.
What could be the reason behind this.Mayil wrote:
This file we are loading through the Flex application in the front end.
Through java class file we are making changes to this city.xml file and adding and deleting this information in the city.xml.
Now suddenly, i dont know what happen.. 'ø' in the city name has replaced with the '?'
If we try to chaange this to 'ø' also, it again changes to '?'.
I dont know how to rectify this error.I would suggest you start by finding out when it happens. Does it happen as soon as you change the XML through this mysterious "java class file"? Or does it happen when Flex reads it? And is the underlying file actually changing, or are you just seeing those question marks after Flex handles the file?
In short a much better problem description is necessary. -
Hello,
We are doing a codepage conversion from EBCDIC to ASCII and we have discovered that the sorting is not the same. In our EBCDIC environment letters are first and then numbers. In the ASCII-environment numbers are first and the letters.
Is this correct? Is it possible to change the sorting so it is the same as in EBCDIC?
Regards
Ann-SofieHi JoeSchmoe115,
In Reporting Services, we can add ORDER BY clause to presort data that is retrieved for a report in the dataset queries. Or we can sorting groups or sorting by aggregate values in the report. When we add ORDER BY clause to sort the data in the order we want
it sorted in the report. Presorted data improves report processing time because of the way it is stored in memory. And there are many report processing tasks do not require sorting data before processing it. For example, SUM is not order-dependent and Data
within group instances is not automatically sorted.
So sorting groups or sorting by aggregate values is much simpler in the report than in the query and is frequently more efficient also. If we do not need sorted data in the report, do not set sort expressions on the dataset. For more details, please see:
Troubleshooting Reports: Report Performance
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
JMS Correlation ID not converting to EBCDIC Hexa
We are using the PI 7.1 system on a AIX platform.
We use the JMS adapter to send messages to a MQ Queue manager on a AS400platform.
WebSphereMQ transport protocol is in JMS adapter.
We are generating custom dynamic correlation id using a UDF.
Expectation is to receive the correlation id in Ebcdic format because the
receiving end is a AS400 system.
But what I receive there is a Ascii Hexa.
For a example we are sending the correlation id as 0180000012. (ASCII)
What MQ receive is 30313830303030303132 (ASCII HEX)
Where what MQ should receive is F0F1F8F0F0F0F0F0F1F2 (EBCDIC HEX)
I need help to find out why JMS adapter is converting the correlation id
in to ASCII HEX without converting to EBCDIC HEX.
Appreciate a lot if any one can provide some help on this.
Thanks a lot,
Tania.I am not sure if I have understand the issue correctly.
Do you create an ASCII string and the ASCII characters are not converted into EBCDIC,
or do you create a HEX String?
Or does the JMS adapter converts your ASCII string to Hex?
I have the impression that the behaviour is a design gap, which nobody has noticed before.
A work around could be in converting the ASCII to EBCDIC inside the UDF,
Report this to SAP -
Hello,
I am looking for a tool which can convert from ASCII to EBCDIC (firstly) and
from EBCDIC to ASCII.
(I should store some columns in EBCDIC because some COBOL program should read it.)
Regards,
LaszloThank you !
But how can i use the other character sets instead of the common ?
May I load into the database ?
For example:
create table OIT015
ENTSTAMP TIMESTAMP(6) not null,
ORDNR NUMBER(11) not null,
ORDERDATEN VARCHAR2(3800) not null
tablespace PLINK_HBCI
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
insert into OIT015 (ENTSTAMP, ORDNR, ORDERDATEN)
values (to_timestamp('11-11-0011 11:11:11.000011', 'dd-mm-yyyy hh24:mi:ss.ff'), 2, 'X');
update oit015 set orderdaten=convert('00000396375160','WE8EBCDIC500') where ordnr=2
commit;
My collegues wrote the same data with COBOL program into test table in EBCIDIC.
There is the result:
select dump(t.orderdaten,16), t.* from oit015 t
0,0,3,96,37,51,60,c 11.11.11 11:11:11.000011 1111111111
f0,f0,f0,f0,f0,f3,f9,f6,f3,f7,f5,f1,f6,f0 11.11.11 11:11:11.000011 2 ?????óuöó÷onö?
My collegues said that 'WE8EBCDIC500' is special display format on mainframe. -
'a' character with ASCII = EBCDIC back and forth conversion
Hi,
I'm trying the following code:
System.out.println(" --- Using Java --- ");
String v1 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
System.out.println("ASCII: "+v1);
String ebcValue = new String(v1.getBytes("Cp1047"));
System.out.println("EBCDIC: "+ebcValue);
String v2 = new String(ebcValue.getBytes(), "Cp1047");
System.out.println("ASCII: "+v2);
It outputs:
--- Using Java ---
ASCII: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
EBCDIC: ?���������������������������������������������������
ASCII: bcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
The issue is that 'a' ASCII $61 is supposed to end up $81 in EBCDIC but shows up as $3F in EBCDIC, so when I convert back to ASCII I'm getting $1A instead of the original $61.
I looked for a solution in the forums and googled it too. I did not find a solution so far.
Any clue, someone?
TIA!
DomiHi,
I'm trying the following code:Strings in java hold unicode. They do not hold ascii nor ebcdic.
Data inserted into a java string is mapped into unicode.
new String(v1.getBytes("Cp1047"));You have a set of bytes (not ebcdic). Those bytes are interpreted based on the default encoding on your system and mapped into unicode.
So the above line is completely meaningless and likely to produce garbage.
>
The issue is that 'a' ASCII $61 is supposed to end up
$81 in EBCDIC but shows up as $3F in EBCDIC, so when
I convert back to ASCII I'm getting $1A instead of
the original $61.Demonstrate this using bytes only.
If you can create demonstration that does not have the above encoding problem then you should submit it to the bug database. -
How to convert tdms to ascii files?
Hello,
I need to convert *.tdms files to an ascii file. I have 16 channels and scalling coefficient information in the tdms file, With the TDMS-Image Viewer i can see the 1-D array waveform perfectly, but I cant write it to an ascii file. When I use a signalexpress.vi or the spreetsheat.vi for writing an LVM/ascii file, information gets lost. (Red symbol at INPUT!!!!)
Please answer me, because I dont have lots of experience with labview and an ascii file is more easier to handle for me! I found only export to matlab and exel, but i just want it in an ascii file. Reading the tdms and opening it is no problem, but connecting the right blocks to the 1D array waveform without dataloss doesnt work.
thank you for reading
dannyThank you for reply,
i have the new version 8.5. With signalexpress.vis i can do asciis but the red symbol (at input) is there so i dont want to get information lost.
The tdms file has header information for scalling factors and unscalled data for 16 channels.
so because tdms files are faster for writing i want to convert them to ascii with a Convertion Vi, but it seems that with an express vi he stops because it cant handle handle with the headerinformation.
now i use the signalexess vi to write tdms data, before i did it manully by setting channel and group information.
Please tell me if the red symbol AT input of a Signalexpress VI does matter? its a 1D array wavefrom that goes in to the input.
thank you for this discussion, i hope that i dont need to use the matlab import option for tdms!!
greetings danny
Maybe you are looking for
-
I am trying to restore an icloud backup from a 4s to an iphone 4. Eventhough it shows up in manage storage the 4s backup is not an available option after a full restore of the iphone 4 and then selection to back up from icloud.Only the 4 backups sho
-
How to create a database for sample code from Tutorial/Book?
I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed. I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba. I'm feeling overwhelmed wi
-
Passing values in master detail form
Hi, I'm using Oracle Database 10g Express Edition. Application Express 2.1.0.00.39 I've created a Master/Detail Form like this 1. create page 2. Form 3. Master Detail Form 4. selected master table 5. selected fields 6. selected detail table 7. select
-
My sister had a problem with call volume being too low on the iPhone 5S. Is the iPhone 6 louder? Is anyone else feeling that call volume on iPhone 5S isn't loud enough?
-
I can' install itunes in my pc i can't remuve the old apple software and bonjour program
I can't install itunes in my pc I can't remuve the old apple software and bonjour program.say is windows error (126).