How to define "byte stream type" for "open file"?
Hello,
I created some numbers (type "double") in Matlab and stored in a file. What value should I use to specify the "byte stream type" for "open file" in Labview? Should I put something like "DBL" or "I32". I don't know where to find the list of legal "types" in Labiew help.
Thanks so much!
Felicia
Looks like 7.1:
The Matlab "double" is 64 bits (8 bytes). It doesn't make much sense to use an integer datatype to read a floating point value, so you would use DBL in LabVIEW. The numeric data types table can be found here.
By the way, this assumes you saved the file as raw binary, as opposed to a .mat file, which is something different.
Message Edited by smercurio_fc on 08-08-2008 11:21 AM
Attachments:
read file 7.png 13 KB
Similar Messages
-
Specifying byte stream type for Read File with Type Descriptor
Hi.
I'm trying to write a VI that reads an image file format that can have
different datatypes. What I have so far is that I open the file, read
the header, and get the width, height, number of frames, and datatype.
I calculate number of pixels by nrows*ncols*nframes with no problem,
but I'm not sure how to tell Read File the correct datatype to read
the data into.
I tried using a Case structure where I have a Read File in each case
with the correct type constant as input for that case. The problem is
that the tunnel graduates the datatype to the highest representation.
I found in Application Note 154 the discussion about Type Descriptors.
Is there a way to generate a Type Descriptor and output it from a C
ase
structure? I tried just returning the value (e.g. 0x0402 for a Word),
but Read File will just see that the byte stream type is a uint32.
Is there any other way to do this?
Thanks for any help.I converted the code to LabVIEW 6.1 for you and attached it below.
Don't worry about being a newbie. We all start there. Keep asking this type of question and you won't stay there long.
As you are discovering, being strictly typed means that you must rewrite code even for a simple data type change, or convert everything to the same data type first. For image data, conversion can result in a lot of extra space being wasted. Use a modified version of the GLV_WaveformBuffer.vi to hold your data. Use the array functions, which operate inline, to add to and delete the data wires in the buffer. This allows you to save several different data types. You will need several different inputs and outputs to handle these data types. I ha
ve also attached a similar file created for exactly the problem you have - storing arrays of different data types (data from NI-SCOPE devices, in this case - can be float, I8, I16, or I32).
Routines that take any type work in one of two ways. LabVIEW primitives, such as plus and minus operators, work by figuring out the type and doing the right thing in the C code layer of the LabVIEW environment. Users of LabVIEW can't do this. Users can make polymorphic VIs. Polymorphic VIs are actually a single VI for every data type that are referenced by a "wrapper", the polymorphic VI. Users still need to write a different VI for every data type they need.
Take home message - if you need to work with different data types, you will need to rewrite your code for every data type or convert your data to a common data type. Polymorphic VIs and case statements are your friend.
Let me know if you need more help.
This account is no longer active. Contact ShadesOfGray for current posts and information.
Attachments:
GigaLabVIEW61.zip 362 KB
sfpScpChan_Waveform_Buffer.zip 74 KB -
How to define reporting time types for 0HR_PT_2 to populate records in rsa3
hi experts,
we are implementing Time and Labour and we are using info provider called 0PT_C01.
for that we have 2 data sources one is 0HR_PT_1 and 0HR_PT_2.
when i check in RSA3 there are records for 0HR_PT_1 Data source, but for 0HR_PT_2 data source it shows 0 records though the related info types have data.
i have checked in sdn for the solution, most of the replies are related to maintain Reporting Time Types.
can you please provide me step by step solution to maintain Reporting Time Types in ECC.
Regards
venuscmHi Venu,
You can maintain reporting time types in SPRO,
SPRO > Integration with Other SAP Components -> Data Transfer to the SAP Business Information Warehouse -> Settings for Application-Specific DataSources (PI) -> Human Resources -> Actual Employee Times OHR_PT_02 -> Define Reporting Time Types -> Maintain Reporting Time Types
Check with your HR team about maintaining reporting time types.
[http://help.sap.com/saphelp_46c/helpdata/fr/e8/cb2d28e4ded31184080004aca6e0d1/content.htm]
Regards,
Durgesh. -
How to define a Sub Type in IT0717
Hi Experts,
Currently working on Benefit point account.
could some one tell me how to define a Sub Type for IT717.
how do i configure.
Appreciate your response.
Regards
RajHi,
I have created the subtype in the table you specified.
But unable to see the created subtypes for IT552 in PA30.
Appreciate your further inputs.
Regards
Rajesh.N.S -
How to set default file type for Open dialog
Dear my friends,
I am using "At selection-screen ON VALUE-REQUEST FOR filepath" to display open dialog and i want to set default file type for open dialog = *.txt.
Thank your times !Hello,
U can make use of this code:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR SP_FILE.
PERFORM SAVE_DIALOG CHANGING SP_FILE G_F_RC.
FORM SAVE_DIALOG CHANGING PO_FILE PO_RC.
DATA: L_VA_BOXTITLE TYPE STRING,
L_VA_DEFAULTFILE TYPE STRING,
L_VA_DEFAULTNAME TYPE STRING,
L_VA_DEFAULTPATH TYPE STRING,
L_VA_DEFAULTFULL TYPE STRING,
L_VA_FILTERTEXT TYPE STRING,
L_VA_CODE TYPE I.
CLEAR: PO_RC, G_F_CONF.
L_VA_BOXTITLE = TEXT-B01.
L_VA_FILTERTEXT = TEXT-B02.
IF PO_FILE IS INITIAL.
CLEAR L_VA_DEFAULTFILE.
ELSE.
L_VA_DEFAULTFILE = PO_FILE.
ENDIF.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
WINDOW_TITLE = L_VA_BOXTITLE
DEFAULT_EXTENSION = 'TXT'
DEFAULT_FILE_NAME = L_VA_DEFAULTFILE
FILE_FILTER = L_VA_FILTERTEXT
INITIAL_DIRECTORY = 'C:SAPWorkdir'
CHANGING
FILENAME = L_VA_DEFAULTNAME
PATH = L_VA_DEFAULTPATH
FULLPATH = L_VA_DEFAULTFULL
USER_ACTION = L_VA_CODE
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
PERFORM CHECK_ERRORTYPE(Z48M_MATDATA_UP) CHANGING SY-MSGTY.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
CLEAR PO_FILE.
EXIT.
ENDIF.
IF L_VA_CODE NE 0.
MESSAGE S818(3F) WITH TEXT-011.
CLEAR: PO_FILE, PO_RC.
EXIT.
ELSE.
WRITE L_VA_DEFAULTFULL TO PO_FILE.
G_F_CONF = G_C_XFELD.
ENDIF.
ENDFORM. " save_dialog
If useful reward.
Vasanth -
How to define the date format for this date string
2006-11-13 00:00:00.0
How to define the date format in control file for sqlldr. "yyyy-mm-dd hh24:mi:ss" or "yyyy-mm-dd hh24:mi:ss.FF1" does not work
thanks,SQL> desc t
Name Null? Type
TS TIMESTAMP(6)
SQL> !cat t.ctl
load data
into table t
truncate
(ts timestamp "YYYY-MM-DD HH24:MI:SS.FF1")
SQL> !cat t.dat
2006-11-13 00:00:00.0
SQL> !sqlldr userid=scott/tiger control=t.ctl data=t.dat log=t.log
SQL*Loader: Release 10.2.0.3.0 - Production on Fri Sep 7 11:19:28 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 1
SQL> select * from t;
TS
13-NOV-06 12.00.00.000000 AMBest regards
Maxim -
How to defined data carrier valued for Linux?
Hi,
I am Defining Data Carrier. But I don't understand "Data carrier type" value. Is this PC value data carrier type for window? So If I want to define value data carrier for Linux. How to defined data carrier valued for Linux?
Please advise,
DuypmHi Nikita,
Refer the below mentioned links for your requirement.
http://forums.sdn.sap.com/thread.jspa?threadID=412923
http://forums.sdn.sap.com/thread.jspa?threadID=1639500
Both have good guidelines on coding as well as configuration part.
Regards,
Deepak Kori -
The byte stream type of the given URL is unsupported
I'm trying to open .ses files in Audition CC that were created in Audition 3.0 and I get the error "The byte stream type of the given URL is unsupported" and nothing loads.
What is going on? The wave files are in a different folder but shouldn't the program ask me where to find them?I think the link got munged!
Let's try again: http://www.aatranslator.com.au/ses2sesx.html
It appears that the Insert Web link screen in this software was adding an additional https:// at the end of the link! Hope this one works! -
How can we write the code for opening the command prompt and closing the
how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)
rakeshsikha wrote:
how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)? -
I'm using Premiere Elements 11, which automatically opens in a project window for HD. I want to reset the default for SD. How can I reset the default for opening a project?
scottypet
For Premiere Elements 11 and 12, you cannot change its default project preset from NTSC AVCHD Full HD1080i30 or its PAL counterpart PAL AVCHD Full HD1080i25 to something else.
For each project, you can set the project preset manually if you do not want the program to take over setting the project preset based
on the properties of the first drag to the Timeline.
To set the project preset manually, open the project to the Expert workspace, go to File Menu/New/Project and Change Settings.
In the Change Settings area, change the project preset. Before you exit that area, be sure to have a check mark next to "Force Selected Project Setting on This Project" in the new project dialog.
Then you import your source media, using the appropriate Add Media choice.
ATR Premiere Elements Troubleshooting: PE11: Accuracy of Automatic Project Preset (New Project Dialog) Setting
If you want a version of Premiere Elements that uses the default project preset of NTSC DV Standard or its PAL counterpart PAL DV Standard, then you need to look to a version of Premiere Elements earlier than 11.
Please let me know if you have any further questions on this or need clarification.
Thank you.
ATR -
How to add a document type for the residence status GB in infotype 48
Hi Team,
How to add a document type for the residence status GB in infotype 48.
Please answer this at the earliest.PFA screnshot.
Thanks
chrisI believe there is a PDF doc which comes with the component (it should be at your harddrive when you install it), which describes everything you will need.
In a nutshell, there are two types of relationship: sibling - sibling, parent - child (there are some more nuances, but it follows the same logic).
A relationship is created between two existing items (not sure, if you can also create a relationship for a new checked in item, but it would be just a usability). You select the type of relationship and the item - I believe depending on the relationship you may start from either item. The dialog to start is INFO (display metadata) or UPDATE (update metadata).
When a relationship is created you may watch it also from either end (again INFO is the starting point).
It is quite self-explanatory, so if you have the component installed you may just play around with it for a while and that is it. -
Ugent: How to restrict a Material Type for a Specific Process Order Type
Hi All
Can any one please tell me how to restrict material type for specific process order type
We have Process Order type ZPBS for finished materials but while creating process order
if i give the material of semi finished material type the system let me create the process order
it should not as we have a separate process order type for semi finished materials that is ZPBS.
And vice versa
Please help me how to restrict these material types for specific Process Order Types.
Points ll be awarded accordingly
Bilal AtharHy Ghulam Mohammad,
Good Morning,
Pls go through below link
[http://www.sap-img.com/abap/what-is-user-exits.htm]
[http://www.sap-basis-abap.com/sapab013.htm]
Now regarding How to place your checks in User Exit, then pls explain your requirements to your Abaper , so that he or she can write it into programeble language.
Regards,
Dhaval -
Defining Purchase Order Types for Sales Documents
Hello Gurus,
after Defining Purchase Order Types for Sales Documents, where can I apply this "Purchase Order Types " information.
Many thanks,
FrankHi
If it is automatic PO creation it is specified In the schedule line category,
Thanks,
Ravi -
How do I enter Document Type for Purchase requisition IDOC
Hello,
File - IDOC (PREQCR.PREQCR02)
The file is getting picked up and shows up a checkered flag in Moni..
but in WE05, on R3 side, i see an error message
"Enter Document Type"
How do I enter document type for Purchase requisition IDOC?
will that solve this issue?
thanks and regards
Nikhil.Hi,
For error 51, you need to set the default document type in the inbound processing FM of the IDOC
Standard type - NB
Subcontrator type
Blank PO
Service PO
Stock transport PO.
Document types is used for below things,
1. It controls the no. range of the document i.e. the doc no.
2. It controls whether doc no. is auto assigned or manually entered
3. It controls the field status of the doc header fields i.e. whether input is mandatory or optional
4. It controls the physical doc filing
Thanks
Swarup -
How quickly does photo stream sync for you?
how quickly does photo stream sync for you?
I have seen some posts floating about here complaining that photos don't or at least don't immediately sync to all devices. I think a small number of these people may not realise that syncing requires wifi and not 3G, one must also remember this community is like a doctors surgery, it is where people come if they have aches and pains.
Maybe you are looking for
-
I have an Apple ID which I use for itunes. I cannot now access the rescue email account I gave when registering. I have forgotten my security questions and they keep sending emails to the email address I can't access and now I am locked out.
-
Possible to Change the Order Status
Hai When i am booking the sales order the status is showing the Booked is it possible to change the Booked status according to the customer requirement .... thanks in advance M.Meenashi Sundaram
-
Crystal Reports 2008 - IsNull Problem
Hello all. Hope this is the correct forum for this. I have searched but not not find it previously reported. Or users can amend existing reports, which are maintained and executed by a VB.NET 2005 program. We have discovered an issue in using Crysta
-
Signatures in iOS6 not working
I have updated my iPhone4 to iOS6 and i have problem with signatures. I have 9 different accounts for business, and i need 9 diferent signatures. So, i have entered all of them and now i have problem: 1. When I want to write new mail, there is no sig
-
Delete a database with a command and how exp from O10g to OXE
hi all much thanks for read the post, i followed: NewB Question about, database, create/ delete/ show databases.... but i havent installed oracle10g (utility: DBCA) because in my new laptop with windowsvista, cant install, then i try install oracle X