Using standard datatypes in NIDAQmx functions
I use NIDAQmx 8.6 with LabWindows 7.1. Can I use in NIDAQmx- functions the standard datatypes instead of the NIDAQmx datatypes?
For example 'unsigned char' instead of 'uInt8', 'long' instead of 'TaskHandle'.
I have seen in 'NIDAQmx.h' that NIDAQmx datatypes anyway are derivates from the standard datatypes.
Solved!
Go to Solution.
Imho you can use the standard types, as long as they are equivalent. The advantage of using the predefined special datatypes as found in DAQ etc is that sometimes such definitions may change (i.e. due to porting from 32 bit to 64 bit applications). In such cases your code may remain untouched, as NI should take care of a suitable, adapted type definition.
Similar Messages
-
How to use standard function keys as custom keys
how to use standard function keys as custom keys.
i have encountered that problem while developing a screen, there i'm supposed to use standard function key F2 ( which actually meant for choose) for clearing the screen fields where the cursor is present and f1 for saving data that entered in screen fields, etc...
kindly help me out.Hi ,
Solution to use SAP reserve function keys F1 .. F4 (mostly this requirement comes up for RF screens) can be acheived by assigning your new Function code using the Menu path Utilities --> F key Consistency in the Menu Painter (SE41) . Once you assign your cutom function code to the standard Fn keys the only remaining step is to make sure that you set a curson on any of the field on sceen by using the Key Word "SET CURSOR" .
If you dont use the key word SET CURSOR in the PBO of the screen then you might not see any response for F4.
Thanks -
Using Standard SAP Tables in SAP Tables, clusters or functions connections
Hi Gurus,
I am trying to use Standard SAP table like MARA, MAKT.. etc. in my crystal designer. When i make a new connection using SAP tables, Cluster or Functions, these tables are not listed.
Any configuration i have to maintain to list those standard table.?
With Regards,
Balachander.SDue to performance reasons there is a limitation regarding the number of the dispplayed table names. Once you are in the connection/table browser select a table and invoke the context menu by pressing the right mouse button. Select Options and in the options panel you can use wildcards in order to limit the results to the desired range (eg. use MA% to get a list of tables starting with MA). After you close the options panel press F5 and expand the connection entry again.
Regards,
Stratos -
Use standard Function kyes as custom in PF ststus
Hi all,
I want to use standard Function kyes(such as F1 & F3) as custom in PF ststus so that I will perform my code by these function keys. Is it possible.
Thanks
Sanket sethiYes it is possible.
-
Handling date to ADD or Substract fixed # of days using standard function
Hi ,
Using the standard functions in XI, is it possible to add or subtract a fixed number of days from the date i get from the input file.
Like, from file I get the date as 25/06/2009.My output should be 05/07/2009 after adding 10 days .
can some one guide how to handle this.
Thanks,
Ven..Hi Ven,
Here is a UDF code,which takes date(format:yyyyMMdd) as input and does addition or subtraction operations based on <field 1> value,return the result date(format:yyyyMMdd) as string value.
public String GenerateDate(String date_input, String field1,Container container){
//Here "date_input" and "field1" are inputs for this UDF
int date = Integer.parseInt(date_input);
Calendar cal;
int day = date % 100;
int month = (date/100) % 100 - 1;
int year = date / 10000;
cal = Calendar.getInstance();
cal.set(year, month, day);
/implement addition or subtraction logic here as your needs/
if (field1 == "A")
cal.add(Calendar.DATE, 10);
else if(field == "B")
cal.add(Calendar.DATE, -5);
day = cal.get(Calendar.DATE);
month = cal.get(Calendar.MONTH)+ 1;
year = cal.get(Calendar.YEAR);
date = year * 10000 + month * 100 + day;
return (""+date);
You can use Standard Funtion DateTrans to convert date from your format to the format used in the UDF and vice versa.
Regards
Pravesh -
How to create textpool by using standard function module?
hi,
gurus.
I have find two function modules ( RS_TEXTPOOL_READ / BX_AGR_READ_TEXTPOOL ) which is used to read but i want to write into the textpool is there any standard function moduleREPORT ZTEST1.
WRITE : / 'ddddddd'.
WRITE : / 'ddddddd'.
WRITE: / 'hhhhhhh'.
WRITE: / 'ddddddd'.
WRITE: / 'ddddddd' , 'uuuuuuuu'.
WRITE: / 'ddddddd', 'sssssssss'.
for example i am this report i want to convert it into text elements like
REPORT ZTEST1.
WRITE : / 'text-001'.
WRITE : / 'text-001'.
WRITE: / 'text-002''.
WRITE: / 'text-001''.
WRITE: / 'text-001'' , 'text-003''.
WRITE: / 'text-001'', 'text-004'.
this elements also store into the textpool so how can we achieve this functionality by using standard function module.
can any body give some idea .
shabeer ahmed -
Hi all, i am newbie
i want to knwo how can i convert following source message to target message
using standard node functions?
Source Message
<devices>
<device>
<sn>123</sn>
<city>Berlin</city>
</device>
<device>
<sn>345</sn>
<city>Berlin</city>
</device>
<device>
<sn>777</sn>
<city>Bonn</city>
</device>
</devices
Target Message
<cities>
<city>
<name>Berlin</name>
<devices>
<sn>123</sn>
<sn>345</sn>
</devices>
</city>
<city>
<name>Bonn</name>
<devices>
<sn>777</sn>
</devices>
</city>
</cities>Hi,
Since you are newbie i would suggest follow the stefan's blog. use formatbyexample for your requirement.
New functions in the Graphical Mapping Tool XI ... | SCN
Please read the comments also you will get more idea
Regards,
Muniyappan. -
[SOLVED]GPG no longer supports --no-use-standard-socket?
I've used an SD card for where I store my gnupghome for a long time. I have delegated subkeys and all the configuration for them there. It's mounted to /mnt/keys on vfat. These cards use a FAT file system as I use these keys on multiple operating systems.
GPG with release 2.1 has removed the 'standard socket' options, which means now if your gnupg home is on any file system that can't create socket files (see: FAT), gpg-agent can no longer run. Ironically, this is also the release that *removes* all support for running gpg without an agent!
I'm disappointed this was not considered news for arch, I even wrote a small silly wrapper just for forcing me to read front page stories! (http://github.com/codemac/yosumiru)
The GPG news page had the following:
With GnuPG 2.1 the need of GPG_AGENT_INFO has been completely removed and the variable is ignored. Instead a fixed Unix domain socket named S.gpg-agent in the GnuPG home directory (by default ~/.gnupg) is used. The agent is also started on demand by all tools requiring services from the agent.
Any thoughts on how I can keep my gnupg on a FAT filesystem and still run the agent? I'm feeling pretty hosed right now, and am pretty confused why this feature was removed from gpg agent, as this would be as simple as keeping the old functionality, but maybe forcing the --no-use-standard-socket option to be in gpg.conf
Last edited by codemac (2014-12-02 18:43:06)codemac wrote:I've used an SD card for where I store my gnupghome for a long time. I have delegated subkeys and all the configuration for them there. It's mounted to /mnt/keys on vfat. These cards use a FAT file system as I use these keys on multiple operating systems.
That's exactly what I used to do as well: mount a USB key read-only and run gpg --homedir /path/to/usb.
codemac wrote:
GPG with release 2.1 has removed the 'standard socket' options, which means now if your gnupg home is on any file system that can't create socket files (see: FAT), gpg-agent can no longer run. Ironically, this is also the release that *removes* all support for running gpg without an agent!
I'm disappointed this was not considered news for arch, I even wrote a small silly wrapper just for forcing me to read front page stories! (http://github.com/codemac/yosumiru)
The GPG news page had the following:
With GnuPG 2.1 the need of GPG_AGENT_INFO has been completely removed and the variable is ignored. Instead a fixed Unix domain socket named S.gpg-agent in the GnuPG home directory (by default ~/.gnupg) is used. The agent is also started on demand by all tools requiring services from the agent.
Any thoughts on how I can keep my gnupg on a FAT filesystem and still run the agent? I'm feeling pretty hosed right now, and am pretty confused why this feature was removed from gpg agent, as this would be as simple as keeping the old functionality, but maybe forcing the --no-use-standard-socket option to be in gpg.conf
I don't understand why you insist on using --no-use-standard-socket...
Some background: traditionally gpg-agent is started by a DE (e.g. xfce4-session starts it). This is useful because gpg-agent also manages ssh keys. However, this is not required anymore because agents are started on-demand and multiple agents can run concurrently.
Now, if you didn't have a vFAT FS, all is good as you call gpg --homedir because it will invoke gpg-agent with the correct --homedir flag.
So, all you need to do now is to rsync your gnupg dir on the SD card to some temp dir, e.g. /dev/shm/gnupg and use this dir as an argument to --homedir, and don't care about the agent at all. -
How to use Standard Text Key in maintenance order header long text?
Dear All,
I have created a standard text key using transaction CA10 and I want to use this in maintenance order header long text. Is there any way to select any standard text key in maintenance order header long text?
Regards & Thanks,
SaifHi
To use standard texts, perform the following six steps:
Select the maintenance order and access the operation overview screen using Goto -->Operation overview.
You can enter standard text keys in this screen or in a detail screen for the relevant operation.
Enter a standard text key in the appropriate field and press ENTER .
If the text is longer that the short text line available, the field Text is selected for that operation.
Check the long text and edit it if necessary. To do this, select the operation and choose Operation--> Long text.
The system branches to the text editor screen. If you also entered a short text for the operation and specified that this should not be overwritten by the standard text, you will see the short text displayed in the first line of the editor. The following lines contain the standard text.
Check the standard text and change it if necessary.
Save the final version of the text and return to the previous screen with Goto--> Back.
Save the maintenance order.
Standard texts are created for your system by your system administrator using the Customizing function.
Regards
Makarand Gurjar -
Multiple copies for Payment advice using standard program RFFOAVIS_FPAYM
Hi Experts,
I have one requirement, need to print the payment advice form twice (one for account section and other for vedor). According to the existing process it uses standard SAP print program RFFOAVIS_FPAYM OR RFFOUS_C (for cheque payment) to print the output.
When I tried to print the output by giving number of copies, it prints test pages but not the actual output. The actual payment advice note with proper values getting printed only once. I actually need to print this actual payment advice note twice.
Do you experts know how to achive this? is there any configuration available to get this requirement? OR how can i do this without chaning Standard SAP program?
Thanks in advace for your help..
Regards,
PrashantHi,
2 times printing can be done using Sap script.however, it would call for changes to your driver prog...
in function call CALL FUNCTION 'OPEN_FORM'....u need to add g_ITCPO-TDCOPIES = '2' and pass g_itcpo to OPTIONS structure of the FM.With this you can ahve 2 copied of ur output. I just test printed it.
So in your case as yours is a standard program, you could probably create a copy of the Standard program and add the above logic in your program.
hope this help
Cheers,
Varna -
How to use Standard Text in ALV
How to use Standard Text in ALV header part? Can you please help me by giving the answer?
Hi ,
You can read the Standard text using read_text function module and then print in LV header part. -
Need to use standard text in smartforms
Hi,
My requirement is like to use standard text for the address like ...
Company Name
Street, State, PIN
Phone: 111-111-1111
All the above lines should be aligned in the middle and 'Company Name' should be displayed in the bold.
1) I have created the standard text, and included statement in text window as 'INCLUDE XXXX OBJECT TEXT ID ST LANGUAGE EN' but unfortunately it was not displaying anything in the output.
2) I have tried the another method like using the 'Include Text' as a text type in the text window. It was coming but BOLD and center alignment was not coming.
Here my question is why it was not coming in 1) case and if i use READ_TEXT function module will it solve the problem ? in case 2) how can i get all the 3 lines gets center aligned and first line should be bold.
Thanks in advance for your help.Hi Jaya ,
if u wnt ur Addr first line should come in bold letter than for that
u first *** to "sap smart forms : initial screen" there is option 'STYLE' click on that radiobutton and creat ur own STYLE (Zxxx) on there u vl find al ur answer...
hope this vl help u ,
plz reward paint.
regards
wasim
Edited by: mdwasim akram on Jun 11, 2008 1:09 PM -
Use standard text (SO10) in report(SE38) to compose the body of email
hello experts,
here i wanna create the body of email with a format, hence i decide to use Standard Text. in this Standard Text, i also maintain some variable such &p_name&( i remember it works in forms,such script and ssf), while i define p_name as 'demo' in the program and try to transfer p_name to standard text, it fails. while i check the output of standard text, it show &p_name& instead of demo.
could anyone tell me how to realize this function?
Thanks in advance.
DesmondHi,
try this,
data:w_field(10) type c VALUE '1234'.
DATA:wa_head TYPE THEAD.
data:it_final TYPE TABLE OF tline.
wa_head-tdname = 'Z_SAMPLE'. u201CStandard text,refer screen shot
wa_head-tdid = 'ST'.
wa_head-tdobject = 'TEXT'.
wa_head-tdspras = 'EN'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = wa_head-tdid
language = wa_head-tdspras
name = wa_head-tdname
object = wa_head-tdobject
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER = HEADER
TABLES
lines = it_final
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REPLACE_TEXTSYMBOL'
EXPORTING
endline = 10
FORMATWIDTH = 72
LANGUAGE = SY-LANGU
LINEWIDTH = 132
OPTION_DIALOG = ' '
REPLACE_PROGRAM = 'X'
REPLACE_STANDARD = 'X'
REPLACE_SYSTEM = 'X'
REPLACE_TEXT = 'X'
startline = 1
IMPORTING
CHANGED = CHANGED
TABLES
lines = it_final -
How to use standard Smart forms
hi All,
Pls give me the detail for smartform ie how to use standard smart forms and how to modify them in SAP 4.7EE
Thanks,
NitinHi,
first u copy the standrad smartform to z and then modify it,
SOME STANDARD SMARTFORMS
SF_EXAMPLE_01,
SF_EXAMPLE_02,
SF_EXAMPLE_03,
LB_BILL_INVOICE,
ENETR SMARTFORMS TCODE
PRESS F4 HERE U FIND ALL STANDARD SMARTFORMS
OR
U GO TO TRANSACTION CODE NACE
SAMPLE PROGRAM FOR SMARTFORM,
. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Thanks&Regards,
Phani
POINTS HELPFUL -
Use standard DV Video out for monitring with HDV Project?
i got a ADS Pyro AV Link fo Christmas and has a composite/S Video out on the back....and connected the composite to a monitor.....and FCE has a video out option in the View menu....and whenever i select it (with an HDV proj.) it goes from the Pyro's standard color bars to a black screen.... wheever i play my project back in the canvas it still is black? whats wrong? or is it incompatibility?
That's not going to do what you want. FireWire is only for DV material not for HDV that's been converted to the Apple Intermediate Codec. You can output to HDV via FireWire, but only using the print to video function.
Maybe you are looking for
-
Adobe Air gets installed with PSE-9. When I try to uninstall Adobe Air I get a small window with a message saying I need administrator permission, however I am the administrator, and I'm selecting uninstall as the "User" Administrator. This is on a
-
Data and Images in Aperture are a mess
I just bought and started using Aperture, as I was hoping to get a better way to organize my images vs. iPhoto. However, I'm not sure what is happening in Aperture, but everything is out of whack. For example: 1) Aperture is not sorting the images
-
Order of services to start& stop essbase?
Hello, I ahev installed essbase server,administartion,client. then in which order i have to start the console,admin...n all. what is difference between essbase ,essbase administartion, n console. Please clear my doubt. Thanks
-
I just received a new laptop running windows 7 home premium and wanted to install Firefox on it. I tried to install the most recent version. When i installed 6.0.2, the icon did not appear on my desktop (it was a hidden file in my desktop folder) and
-
How to set "Energy Saver"- Setting for Power Adapter or Battery?
Under the System preference, how do I need to set the Energy Saver? There are options of Power Adapter or Battery for the Setting for. What is difference?