What is the data format of the image buffer from a NI-IMAQ 1394 acquisition?
I am acquiring a framebuffer which I desire to process using my own code.
The configuration is:
Set ATTR_VIDEO_FORMAT 1
Set ATTR_VIDEO_MODE 3
Results in
Get ATTR_IMAGE_WIDTH == 1024
Get ATTR_IMAGE_HEIGHT == 768
Get ATTR_IMAGE_REP == COLORID_YUV422
Get ATTR_BYTES_PER_PIXEL == 4
What is the data layout of this framebuffer?
Robert,
I'm not sure if I understand exactly what you are asking here, but you can use the Get Buffer function call to access the image data and it will coorespond to the image type that you acquired (8 bit integer for monochrome and 32 bit for RGB).
Let me know if this doesn't answer your question.
Regards,
Andy Bell
Application Engineer
National Instruments
Similar Messages
-
Error with the data format in the TXT file, sending as an Email attachment
Hi all,
I have an problem in the data formating in the TXT file while sending as an attachment via an email by using the FM "SO_DOCUMENT_SEND_API1".
For eg:
The data in the TXT file is looking like as follows:
0 0 0 0 2 L O U D S P E A K R O T H E R 3 8 W h i t e 0 0
0031 L O U D S P E A K R O T H E R 3 8 Black 0 000
38 L O U D S P E A K R O T H E R 3 8 Brown 0 00040
L O U D S P E A K R O T H E R 3 8 Brown 0 00042
and so on
But it should come as :
0 0 0 0 2 L O U D S P E A K R O T H E R 3 8 W h i t e
0 0 0031 L O U D S P E A K R O T H E R 3 8 Black
0 00038 L O U D S P E A K R O T H E R 3 8 Brown
0 00040 L O U D S P E A K R O T H E R 3 8 Brown
All the internal tables are correctly filled.
The code is as follows:
gwa_objtxt = 'Please find attached DATA EXTRACT Sheet'.
append gwa_objtxt to git_objtxt.
describe table git_objtxt lines gv_cnt.
clear git_doc_data.
read table git_objtxt index gv_cnt.
git_doc_data-doc_size = ( gv_cnt - 1 ) * 255 + strlen( gwa_objtxt ).
git_doc_data-obj_langu = sy-langu.
git_doc_data-obj_descr = lv_mtitle.
append git_doc_data.
clear git_packing_list.
refresh git_packing_list.
git_packing_list-transf_bin = space.
git_packing_list-head_start = 1.
git_packing_list-head_num = 0.
git_packing_list-body_start = 1.
git_packing_list-body_num = gv_cnt.
git_packing_list-doc_type = 'RAW'.
append git_packing_list.
Clear : gv_cnt.
Describe table git_objbin lines gv_cnt.
git_packing_list-transf_bin = 'X'.
git_packing_list-head_start = 1.
git_packing_list-head_num = 1.
git_packing_list-body_start = 1.
git_packing_list-body_num = gv_cnt.
git_packing_list-doc_type = 'TXT'.
git_packing_list-obj_descr = 'ATTACH.TXT'.
git_packing_list-obj_name = 'book'.
git_packing_list-doc_size = gv_cnt * 255.
APPEND git_packing_list.
clear git_receivers.
refresh git_receivers.
git_receivers-receiver = gv_eid.
git_receivers-rec_type = 'U'.
append git_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = git_doc_data
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = git_packing_list
CONTENTS_BIN = git_objbin
CONTENTS_TXT = git_objtxt
RECEIVERS = git_receivers
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.please give the code of
contents bin = git_objbin " how this is getting populated.
0 0 0 0 2 L O U D S P E A K R O T H E R 3 8 W h i t e <b>0 0</b>
0031 L O U D S P E A K R O T H E R 3 8 Black
0 000
38
from this im not able to understand is this over population or concatenation problem
y dont u make a append to the final table
like
data : begin of itxt occurs 0, ,
s1(132) type c ,
end of itxt.
loop at itab.
itxt-s1+0(4) = itab-f1.
itxt-s1+4(6) = itab-f2.
itxt-s1+10(8) = itab-f3.
itxts1+18(4) = itab-f4.
append itxt.
clear itxt.
endloop.
exchange this to the contents bin of hte Fm .
regards,
vijay.
can u please mail the text file and the expected o/p to my mail id [email protected] so that i can see the same from the data provided i m not able to check the result properly . -
How to get the Date format inside the table
I have a startdate column in the db in the format May 5, 2001 12:39:00 PM, when I query it from a view in this way : SELECT startdate, ... FROM ..., it returns the format in the db,
However I have to do this SELECT
decode(startdate, null, 'NOT START'), startdate), ... the result is 5-MAY-01,
then I tried this to_char(startTime, 'Month DD, YYYY HH:MI: A.M.') the results become May 05, 2001 12:39:00 PM. (more space between month and day, and 05 instaed of 5)
Does anybody know how to fix this, so I get exactly what is in the db?
Thanks in advanceNo matter what you do if you are storing a date in a column it will get stored in the Oracle's internal 7 byte date format.
The way you get it on retreiving it is as set by your date format. You can either change the default date format for the instance, the individual session or the individual SQL statement(in this case using to_char(date, 'format')).
If you want to store the date in a format you want to store you'll have to store it as char or varchar2.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by George ([email protected]):
I have a startdate column in the db in the format May 5, 2001 12:39:00 PM, when I query it from a view in this way : SELECT startdate, ... FROM ..., it returns the format in the db,
However I have to do this SELECT
decode(startdate, null, 'NOT START'), startdate), ... the result is 5-MAY-01,
then I tried this to_char(startTime, 'Month DD, YYYY HH:MI: A.M.') the results become May 05, 2001 12:39:00 PM. (more space between month and day, and 05 instaed of 5)
Does anybody know how to fix this, so I get exactly what is in the db?
Thanks in advance<HR></BLOCKQUOTE>
When you do to_char() with 'month' oracle blank pads the month to nine characters, the same goes with day too. So to get rid of it you'll have to trim() the month. And if you want to get a single digit for date less than 10 instead of 0x you'll have to do a bit of extra jugglery using translate() or replace().
Hope this helps
Naveen -
How to use the date format for the given req.?
I have a requirement which should fetch the datas given by user. The user parameter is the date. The date will fetch the amount of the customer code for that particular month based on the date upto given by the user of that financial year.
If the user parameter is given as 200703(YYYYMM) it should fetch the datas of the financial year from 200604(YYYYMM) to 200703(YYYYMM). The logic is the user parameter year should fetch the datas of previous year till the user given date and the month should be also do the same. Please do the needfull oracle experts.
Regards,
MarkAs i am new to oracle i need help from you experts, The year and the month as seperate columns both as different data type as number and varchar2. There is no date column in the table.
Table GTemp:
DIVISION_CODE NUMBER(2)
GL_CODE NUMBER(6)
FINANCIAL_YEAR NUMBER(4)
FINANCIAL_MONTH VARCHAR2(2)
Query that i have used:
SELECT ALL GTEMP.FINANCIAL_YEAR, GTEMP.FINANCIAL_MONTH, GTEMP.GL_CODE
FROM GTEMP
WHERE financial_year between 2007 - 1 and 2007
and financial_month in ('4',' 12')
and division_code = 11
order by financial_month
I know this will not fetch from the date the user parameter enters however is there any other options. Please help me out morgan... -
Re:How to pick the date format as dd/MM/yyyy from the database
Hi all,
I am using JDev 11.1.2.3.0
My requirement is ,i want to pick the date from the database as dd/MM/yyyy format.I set the attribute as
r1.setAttribute("JobDescription",
"From" + olrow.getAttribute("PeriodFrom") + "To" + olrow.getAttribute("PeriodTo")
here periodFrom and periodTo are the date attributes.i set periodFrom and periodTo date format as dd/mm/yyyy in the VO.on UI page it is showing dd/mm/yyyy format.but it is storing in the database as yyyy/mm/dd format.Here my problem is when i set periodFrom and periodTo values to the JobDescription,the JobDescription format is showing yyy/mm/dd format.here i want to show the JobDescription also dd/mm/yyyy format on the UI page.here JobDescriptin type is string.can anyone help me out please...
Thanks,
G.ShilpaHi,
you can use SimpleDateFormat to parse Date objects to formatted Strings
SimpleDateFormat (Java Platform SE 7 )
Note that dependent in your Date type you may deal with Date or SQL Date in ADF BC. SqlDate woild need to be converted to Date first and then parsed into a formatted String. I suggest you Google for SimpleDateFormat examples
Frank -
In Thunderbird, how do I change the date format for the column display?
I want the date to show as DD-MM-YYYY HH:MM AM/PM. Although this should be really obvious (and I know I've done it in the past), I can't find where to do this and can't find anything in Thunderbird Help on this, not even when I search "Thunderbird, change date format".
Thunderbird usually uses the computer date and time and settings.
I'm using Windows and notice that TB is using the short date format which I set up under Regional & Language Options.
Are you using the International settings or Date/Time settings?
It should pick up the settings from the 'International' or maybe its called now called 'Language & Text' setting.
not sure which of these suits your macbook:
http://www.macyourself.com/2008/08/31/modify-the-default-clock-in-os-xs-menu-bar-to-show-the-full-date/
http://www.dummies.com/how-to/content/language-text-preferences-on-your-macbook.html
http://www.dummies.com/how-to/content/how-to-change-your-macs-date-and-time.html
http://www.youtube.com/watch?v=2zBMl8Vb3wc
http://support.apple.com/kb/TS3579 -
To change the date format in the drop down
Hi,
I have a drop down in my VC Model. That drop down populates values for 'Fiscal Year' dynamically from a query.
The values in the drop down are getting displayed as 'Z1/2008', 'K1/2009' where K1 and Z1 are fiscal yr variant. This fiscal yr variant is actually compounding of Fiscal year.
But I want the values in the drop down to get displayed as '2008', '2009'. Does any one know the setting in VC for this?
Thanks
VikrantHi Vikrant
Are you using 'Fiscal year key' in your chart / report? try with Fiscal year ext key or fiscal year text
I think this will solve your problem.
Regards
Sandeep -
By default the component <af:selectInputDate> shows the client machine's date format when the image is clicked. How can we change the date format of the same irrespective of the client machine's date format
<af:selectInputDate accessKey="D" label="From Date:" readOnly="yes"
value="#{EvalBean.fromDate}"/>Also
1. How can we validate the date range also?
Eg: From Date should not be greater than To Date
2. Should not allow the user to select Date (From Date or To Date) greater than today's date.
UdayIf you want to do it at the page level you can use the
<f:convertDateTime pattern="dd/MM/yyyy"/> jsf converter inside your date field
and also the af:validateDateTimeRange tag to limit the date range.
If you don't want to do it in every single page and you are using the ADF Model layer for binding you can define a control hint on your date field that specify a format mask. You can also add a method validator to your date field to verify the range. -
Date format in the Web layout of Oracle 10g Reports
Dear all,
I want to change the date format in the oracle reports. I am using weblayout & paper layout. I have changed format mask using property inspector. It appears in paper layout. How can i get in the weblayout, please help me.
With Regards,
SrinivasHi Srinivas,
I think whatever applicable in Paper Layout should be applicable to Web Layout also.
Regards,
Raj -
How to make the date format in ipod the same as in itunes?
When I look at my podcasts in itunes, the dates come up as dd/mm/yyyy (which is correct), however, when I look at my podcasts on the ipod, the date comes up as mm/dd, which is very confusing.
I cannot figure out how to make it so that the date format is the same.When I look at my podcasts in itunes, the dates come up as dd/mm/yyyy (which is correct), however, when I look at my podcasts on the ipod, the date comes up as mm/dd, which is very confusing.
I cannot figure out how to make it so that the date format is the same. -
How do I change the date format?
Sorry, but I'm new to Oracle!
I'm using "sqlplusw" to build my SQL statements. When I return columns that are date fields, I get the DD-MON-YY format. I want dates to be returned in "YYYY-MM-DD HH24:MI:SS". My DBA won't change the date format on the server, so how do I change SQLPLUS to return dates in the format I want? Do I need set this in some kind of startup file, or a reg key?
Using client version 9.2.0.5 against a 9.2.0.1 server
JeffThere are a couple of ways you could do it.
Way 1:
Search for a file by name 'glogin.sql' on your client work station and add the following statement
alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';Make sure you save the file. This change will apply to all users who will log into the database using SQL*PLUS from your machine.
Way 2:
Create a shortcut and place it some where (for example on the 'DESKTOP').
Right click on the short cut and choose properties.
Change the text corresponding to the 'Start in' box to reflect the current location of the shortcut.
Create a file by name 'login.sql' and place it in the same folder as the shortcut.
Edit the file and add the following line.
alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';Make sure that you save the file.
When you double click the shortcut to start SQL*Plus and login, the script 'login.sql' is executed. -
Setting date format for the entire SQL Server installation - SQL Server 2008 R2-2012
Hi,
I need to safeguard the behaviour of SQL codes that inserting into SQL tables with some date columns. For this purpose, I need to change the date format for the SQL instance and not using CONVERT and CAST.
I've seen the SET DATE FORMAT statement, but if I use it, could I solve my problem?
ThanksThe language setting is related to the database user.
BOL: "DEFAULT_LANGUAGE = { NONE | <lcid> | <language name> | <language alias> }
Specifies the default language for the new user. If a default language is specified for the user and the default language of the database is later changed, the users default language remains as specified.
If no default language is specified, the default language for the user will be the default language of the database. If the default language for the user is not specified and the default language of the database is later changed, the default
language of the user will change to the new default language for the database."
LINK: http://technet.microsoft.com/en-us/library/ms173463.aspx
The default language setting can be overridden by SET LANGUAGE for the session:
http://technet.microsoft.com/en-us/library/ms174398.aspx
Example:
SET LANGUAGE us_english; -- mdy
SELECT CAST ('12/13/2014' as DATE); -- 2014-12-13
GO
SET LANGUAGE british; -- dmy
SELECT CAST ('12/13/2014' as DATE);
GO
(1 row(s) affected)
Changed language setting to British.
Msg 241, Level 16, State 1, Line 2
Conversion failed when converting date and/or time from character string.
Kalman Toth Database & OLAP Architect
SELECT Video Tutorials 4 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Can I customize the date format?
When importing camera raw files, I am able to select mmm/dd/yyyy as an option in the photo downloader. Once the files are in Bridge, if I want to batch rename, the date option does not include mmm(the month spelled out instead of numeric). Is there a way to customize the date format in the batch rename menu?
Thank youYou can always include it in the name if you select Text.
-
How do I change the date format in safari?
I am in the UK, and the date format is the US format (ie month first) - I have changed my language in the Settings app, but no dice. In Chrome, Firefox etc there are language settings that I can change to alter the date format, but not for Safari ...
Hugh_Jarse_69 wrote:
I needed to drag British English to the top of the list of languages
It's great that worked for you, but you should be able to have any primary language you want combined with any date format you want by just setting the latter in system prefs/language & region/region. Did Safari not do the right thing with the Region set to United Kingdom? -
ENDDA system date format on the underlying system
Hi, I have a problem , while my program runs very well on my sytem , it gives problems on other system as the date format on the other system is different. Is there any function to decide the dateformat on the runtime ?
hi,
use the below function modules(Any One) based on your need....
<b>
CONVERT_DATE_TO_EXTERNAL
CONVERT_DATE_TO_INTERNAL</b>
Cheers,
Abdul Hakim
Maybe you are looking for
-
N76 Numbers, instead of names appearing in SMSes a...
I just bought a new N76. Problem I encountered is that whenever someone send me SMSes or call me, their number appears on my phone, not their names although I have key in their names in my handphone. Previously, I was using Sony Ericsson phones all a
-
Everytime I try to open Itunes it says the file itunes library.itl cannot be read because it was created by newer version what do i do
-
I am building a module in which the user gives a particular date (date_param) and the module then queries in a particular block for all records where the date column equals to_char(date_param, 'WW'). I tried doing it with a pre_query trigger on the b
-
hi, There is a BDC program for creating an outbound delivery. it has to update the partner function field and few other fields. it works fine in sap and the shipment is complete. But in the third party system the shipment is not complete. the log sho
-
Hi folks, Will I be able to upgrade my Macbook Air from Mac OS X 10.6.8 (10K549), Model Idenfier 3,1 to a higher version? If yes how? Thanks.