Q: Must one use special LabVIEW types (e.g. float64) for DLLs in LabWINDOWS/CVI?
Hello,
I have recently started compiling C code using LabWindows/CVI, and have successfully called a simple DLL function from within LabVIEW.
I have a question about the types defined in LabVIEW's extcode.h file:
These are defined to explicitly quantify the number of bits used for each data type (e.g. float64 instead of float) in order to eliminate ambiguity across compilers.
When I am using LabWindows/CVI to compile, do I need to use the LabView numeric types defined in LabView's extcode.h, or can I use the standard C types (int, float, etc.)?
Is there a distinction between having to use these special types for CIN versus shared library calls in LabVIEW?
Thanks
in advance,
Frenk
You do not have to use the defines in extcode.h, but you certainly can if you want to.
The float64 is equivalent to CVI's "double", and the float32 is equivalent to CVI's "float".
These correspond to the double- and single-precision types in the IEEE Standard for Floating Point Arithmetic, IEEE-754.
I hope this helps.
Brian
Similar Messages
-
MRP uses special procurement type L for material .ME174
Hi All:
1 .When I tried to create PO for non-valued material using ME21N,SAP displayed message "MRP uses special procurement type L for material"- .ME174.
(Non-vaued material is customized material type which has no accouting view and is supplyed by suupplyer for free.)
2.I checked the material setting in MM03 finding that the Procurement type has been set as 'F' and the Special procurement has been set as '30'.
3.I checked the SPRO finding that the setting as following path finding that Special procurement has been set as L.
IMG > MM > Consumption-Based Planning > Master Data > Define Special Procurement Types
So what other problem is with my setting or configuration for the creating PO?
Thanks.Hi,
You may want to double check the customization entry for special procurement type 30. Do ensure you are checking for the correct plant and you have "L" maintained against special procurement in the details section.
If this doesn't help, a post in the MM forum - SAP ERP - Logistics Materials Management (SAP MM) could help.
Anoop -
Is it must to use all three antenas in 1250 series for wireless n?
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:Arial;
mso-bidi-theme-font:minor-bidi;}
Is it must to use all three antenas in 1250 series for wireless n?
I want to use Cisco 1250 series devices ( AIR-LAP1252G-E-K9 at 2.4 GHZ ) with wireless
controller of 4400 or 5500 series.
I want to use wall mount patch antenas (I will choose any one of the following models)
AIR-ANT2460P-R 6 dBi Patch Antenna
or
AIR-ANT2465P-R Diversity Patch 6.5 dBi
or
AIR-ANT2485P-R Patch 8.5 dBi
Now my questions are :
01. The 1250 series has options for three antenas connectivity.is it must to use all the three antenas on each LAP ?
02.Suppose I want my Access point to support wireless G and Wireless N ,then can i get it done by using ONLY ONE ANTENA?
03.Suppose I want my LAP to support only wireless n clients then can I use only one antena on each access point?
04.There are thick concrete walls comming on the way.Which of the above antenas you suggest best?
Thanx in advance.Please answer.
Regrds
AbdulHi Abdul,
Please avoid making multiple post of the same topic. It really confuses everyone (including you).
Kindly refer to our response: https://supportforums.cisco.com/message/3022312#3022312
Best Regards -
One of my sons has an ipad mini and the other a larger ipad. The one using the mini needs a larger ipad for school, so they need to switch. They want to do so without losing their individual app progress. Can I simply switch the SIM cards?
SIM card has nothing to do with your Apple ID or apps.
IOS devices do not store anything on the SIM card.
BAckup everything on the iPads.
REstore tbe ipad from the backup of the other iPad.
REpeat for the other one. -
Using a LabVIEW application as default program for opening files
Google has returned nothing useful on this. I want to use a built LabVIEW application to open data files from the Windows desktop. It is easy to edit the Windows registry to set the application as default program - but I'm not sure how to set the event in LabVIEW to open the file. Any suggested reading?
Solved!
Go to Solution.I have done this before...I have a small LabVIEW .exe which looks at the version of a VI and selects the appropriate version of LabVIEW to open it with if available. It also adds explorer context menu items for allowing you pick a specific version of LabVIEW to open the file with.
This is a rough idea of the registry keys for adding a program to handle specific file types and to add items to the shell menu in the installer:
Add your own 'LabVIEWOpenWithVersion' key and then add the key name to the OpenWithProgids for the file extensions you want to be able to open with your application. The command part looks like this:
Look at the Windows/MSDN help for what the different keys mean and how they are used, I think you can also set a key to make one of your handlers (e.g. Open, openWithLV) the default for the file type.
For getting the file that was opened 'with' your application, use the App.Args property, ignoring the first item (which is always LabVIEW) in the array.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets -
How to use a collection type of bind variable for execute dynamic statement
Hi,
We have a case where we copy selective data from Schema A To Schema B in one oracle database. The copy is achieved by using
execute immediate 'insert into '||target_schema||'.tablea select * from '||from_schema||'.table a where a.id in (select test_id from '||from_schema||'.table c);';
This works fine it takes an average of 10 seconds to copy around 14 tables. We have a requirement to bring this time to 2 seconds. One observation has been the clause
"select test_id from '||from_schema||'.table c" in the above sql statement repeats for many inserts . Thus we were thinking to bulk fetch this set of tests ids and use a bind vatiable of collection type for the execute immediate clause. Any suggestions on how to achieve it?
Thanks,
Chandana>
One observation has been the clause
"select test_id from '||from_schema||'.table c" in the above sql statement repeats for many inserts
>
So what? Constructing a string for a table level insert and parsing it can't possibly be a performance problem. If you were creating a string in a loop to insert rows into a table by getting the data FROM a collection - that's a problem that keeps showing up in the forums.
I'm with bravid and Nikolay on this one. First find out which side, select/insert, the problem is on.
As they said you need to provide more information about the process.
And using collections for your use case is definitely not the thing to do.
1. How many rows are we talking about?
2. Are the rows being inserted into an empty table?
3. Are you running these queries during peak production hours or in a batch windows?
Tune the SELECT if the problem is on that side.
Post an execution plan for the SELECT part of a query you think should run faster.
SET SERVEROUTPUT ON
SET AUTOTRACE TRACEONLY
SQL> select * from emp;
Execution Plan
Plan hash value: 3956160932
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 14 | 546 | 3 (0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| EMP | 14 | 546 | 3 (0)| 00:00:01 |
SQL>On the INSERT side you might be able to use bulk inserts
ALTER TABLE myTable NOLOGGING;
INSERT /*+ append */ INTO myTable . . .
ALTER TABLE myTable LOGGINGIf the insert tables are always reused you could just leave them as NOLOGGING. Since you can't recover bulk data you need to make sure to get a good backup after the loads if you need to recover the data from the logs rather than just reload it yourself. -
Hi, everyone
I build a dll from labview, the prototype is : double getchannelpower(double f, uintptr_t *VISAResourceName);
I don't know how to pass VISAResourceName to this function.How can I get the VISAResourceName of this type(uintptr_t *)?
Is it related to the paremeter ViPSession in function viOpen(ViSession sesn,ViRsrc rn,ViAccessMode am,ViUInt32 ti,ViPSession vi)?
BRs,
lotusky1. uintptr_t *VISAResourceName in the labview dll is connected to viOpen function as input parameter internally.
2.I can call the labview dll in labview via CLF Node, when the VISAResourceName parameter is set to Numeric(32-bit int or 32-bit usigned int) OR Adapt to data(Handle by Value). And I got the value of the VISAResourceName parameter, which is 0; When I directly connect 0 to the dll, it still works. But in labwindows, when I pass 0 to the VISAResourceName parameter of the dll function, I got a FATAL RUN-TIME ERROR: The program has caused a 'General Protection' fault.
mkossmann 已写:
Could you check what exactly uintptr_t *VISAResourceName in your labview dll does.Might it be that it is connected to the labviews Dll internal ViOpen() ViSession output parameter ?. And the name VISAResourceName is misleading.
Another idea would be that Labview uses 32bit Unicode for the ResourceName. And you have to convert the C String to that Unicode first. -
Must I use OracleCallableStatement to process a REFCURSOR?
Oracle 10g Rel 2 using latest Oracle thin drivers on a Java 1.5 application.
I'm in the process of porting our existing application to Oracle, but for the next several months, I must support multiple databases (SQL Server, DB2) with the same codeline. Our db access layer is stored procs wrapped in CallableStatements whereby a vast majority returns a result set. I very much need to continue to use existing java.sql.CallableStatements and resultSets.
A typical stored proc looks like this:
CREATE OR REPLACE PROCEDURE getMeData
v_c_columnname IN VARCHAR2 DEFAULT NULL ,
v_intSort IN NUMBER DEFAULT 0 ,
cv_1 IN OUT SYS_REFCURSOR
AS
BEGIN
OPEN cv_1 FOR
SELECT col1,
col2,
col3
FROM someTable
WHERE somecolumn = v_c_columnname ;
END;
We currently abstract the stored proc calls by doing a check on which db platform, then wrapping them with either EXEC or CALL and constructing the proc call for the target RDBMS.
My first question is, is there a way for me to handle/process the return REFCURSOR in vanilla java.sql.Callable statement/ResultSets, or must I use oracle.jdbc.CallableStatment (and register the out cursor type (ie, cStmt.registerOutParameter(3, OracleTypes.CURSOR)?
Second question - I'm currently testing with the OracleCallableStatement, but my cStmt.execute is simply skipping the execute call - I know its constructed properly, and when I call via pl/sql with binds, it returns properly, so am I missing something in how to process the REFCURSOR? It's not failing with an Oracle error, it's just not executing.
This is the call:
begin getMeData(?,?,?); end;
Last question - must one use a REFCURSOR to return a result set via PL/SQL stored procs, or is there another way?
TIASo, a bit confused. In the JDBC examples I've seen for refcursors, I see the following:
CallableStatement stmt = connection.prepareCall("{? = call demo_refcursor.getRefCursor }");
// Set the Out Parameter type to be of type CURSOR
stmt.registerOutParameter(1, OracleTypes.CURSOR);
stmt.execute(); // Execute the statement
// Cast the returned parameter, (defined as type OracleTypes.CURSOR) to
// a JDBC result-set.
resultSet = (ResultSet)stmt.getObject(1);
Where the call is in the format of {? = call myProc(?,?)}.
Is the first ? (?= call) the registered out parameter? Am I understanding that correctly? If so, and my procedure looks something like this:
CREATE OR REPLACE PROCEDURE getMeData
v_c_columnname IN VARCHAR2 DEFAULT NULL ,
v_intSort IN NUMBER DEFAULT 0 ,
cv_1 IN OUT SYS_REFCURSOR
AS
BEGIN
OPEN cv_1 FOR
SELECT col1,
col2,
col3
FROM someTable
WHERE somecolumn = v_c_columnname ;
END;
... where the refcursor is actually the third param, how do I make sure the ? = call is the refcursor param? Am I totally missing something here? I am a bit rusty, so forgive me if this is obvious and I'm just missing it.. -
Special Information Type (SIT)
Hi All,
e-business suite version:11.5.10. One of the project in our company is a completely customized module using Special Information Types. In total there are 9 different SIT used in the module. They are accessed by the user using HTML based page and also through forms with full access i.e. Insert, update and delete. Now the users want to have full access in HTML based pages whereas for forms they want only read-only access. Is this possible using forms personalization? If so, how?
NOTE: Both HTML based pages and forms access are given using the same responsibilities
Please let me know if my question is not clear. Any help is appreciatedHi All,
Any help is appreciated. Please let me know if my question is not clear -
Considering stocks of both plants in special procure. type scenario.-urgent
Hi dudes,
Our client is using special procurement type 80(prod.in alternative plant), he is getting planned order in delivering plant as requirement generated by planning plant. while running MRP in both plants, it would consider only the stock of planning plant but not the stock of delivering plant suppose stock is made in delivering plant individually(say manual orders). As the requirement generated by planning plant, the planned order will be generated in delivering plant irrespective of its individual stock.
can we make the system to consider what ever the stock in delivering plant and create no planned order if stock is there.
thanks in advance
RobertRobert,
If that was your requirement why not use Special Procurement key 70 (Withdraw from alternate plant). In this case system only creates reservation and Planning at Supplying plant will be based on the Net requirement calculation considering all recipets, Stock and Issues.
Regards,
Prasobh -
BOM Explosion - special procurement type 52 (collective order)
In BOM explosion, special procurement type -> collective order (52) for the item is considered as phantom assembly. I wish to know the business reason for this. Any help please ??
hi Janardhan,
phantom assembly is the assembly which is not kept in stock rather it consumes directly.
Use of phantom assemblies are as below
Phantom assemblies are assemblies that have their own product structure, but whose assembly does not actually physically exist. The components of the phantom assembly are incorporated directly in the superordinate product. The product structure of the superordinate product contains a reference to the phantom assembly.
example - A car with music system.
During backflush, only the goods movement for the phantom assembly components are posted. The phantom assembly is marked as backflushed but does not trigger any goods movement.
Experts pl correct me if i'm wrong.
Regards,
Anil -
Can I use other ink types for my printer?
Hi! I'm currently using this HP Deskjet 2050 ALL-IN-ONE J510 Series. And suddenly, I ran out of ink. I have these inks here:
- 45 Black Noir-78 XL Tricolor- Ofiicejet 901 XL BlackAnd the rest is for HP Photosmart.My question is, can I use those 3 types of printer inks for my printer?And If ever that those ink are not available, what ink type should I use? 60? 70?Thanks you for the guys that will answer me here!Hi, No, depending on where you bought the printer, you can only use (also for XL cartridges): `. HP 61 Black & HP 61 Tri-color: North America and Asia Pacific, (excluding India, China, Japan, and Indonesia) HP 301 Black & HP 301 Tri-color: Western Europe HP 122 Black & HP 122 Tri-color: Middle East, Africa, Latin America, Japan, and CIS HP 802 Black & HP 802 Tri-Color: China, India, and Indonesia More info: http://support.hp.com/au-en/product/HP-Deskjet-2050-All-in-One-Printer-series---J5/4027463/model/4027468/document/c01766411#N402 Regards.
-
Making DLL with C++ builder to use in Labview
Anybody knows how to make DLL in C++ builder to use in Labview??
Regards,smercurio_fc wrote:
MCFSE wrote:
This is a good question that does not appear to be addressed in that other thread.
But is addressed via several NI KnowledgeBase articles and NI Community examples. For example: https://decibel.ni.com/content/docs/DOC-14564
Well not verbatim, as that document refers to Visual Studio, not C Builder. But creating DLLs in C Builder for use in LabVIEW is no different than creating DLLs in C Builder for any other programming environment that can call unmanaged DLLs. How to configure C Builder to create a DLL, is really beyond the tasks anyone from NI should be required to explain. This requires someone who is familiar with C Builder and requesting a supplier to have specific experience with tool X goes a bit far. NI and most others are using Visual Studio so that is what gets explained. If some C Builder crack would come up with a tutorial targeted at integration with LabVIEW and post that here or someplace else, that would be of course great, but alas, nobody so far has felt the desire to step up to the challenge. There is no inherent difficulty with C Builder created DLLs to be used by LabVIEW, but apparently some difficulty of people to understand how to use C Builder to create working DLLs at all. Similar problems can appear for beginners with Visual Studio and since this is the tool mostly used here around, there are several tutorial style documents available that try to handhold the beginner to get a DLL at all.
Personally I'm not sure that is ideal either, since those people usually know very little about C programming, or more precise if they know about C programming, they will be able to learn to use the tool in question, with some simple, non LabVIEW oriented examples from elsewhere and then easily apply that knowledge to LabVIEW with the help of the Visual Studio examples posted in quite big numbers, even if they use a different tool than Visual Studio.
Other even more challenging topics would be to use CygWin, MingW, Bloodshed Dev C++ and similar compilers and write tutorials about them. However the challenges with all of these is to get them even installed well on your development system and to figure out various configuration hassles, also when trying to distribute the result later on.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Tcode to send custom data using custom message type in ALE
I have ceated custom message type and i want to send data to say system B.I wanted to know Tcode to send custom data using custom message type in ALE.
for example:
material data...message type = matmas....tcode = BD10.
like this.
i hope you have got my question.
plz guide me?
regards
mallikarjun mangaloreHi,
Sending data through ALE is not a single-step process. Take a look at http://www.sapgenie.com/ale/. The paper at http://www.sapgenie.com/sapgenie/docs/ale_whitepaper.doc is a wonderful resource for the ALE process.
Regards -
Adding new object type (field BKPF-AWKEY) for BAPI posting
Hi everyone,
I am posting to SAP GL using an input file to read the data and transfer it to BKPF and BSEG tables.
The problem is I have to use BAPI_ACC_DOCUMENT_POST, and it expects values for OBJ_KEY and OBJ_TYPE.. For now, OBJ_TYPE creates a problem, because if I use BKPF, it says it cannot post using this object type, as it is for SAP internal use only.
Does anyone know how to add a new object type for the customer namespace, which can be manually used for this kind of posting? I know that the new entry must be made in tables TTYP, TTYPT, and possibly TTYPV, for which the maintainence view exists: V_TTYPV.
How to add an entry here, or where can I find it in customizing?
All helpful answers will be awarded.
Thank you very much
Srdjanperform fill_internal_tables.
if check_l = 'X'.
call function 'BAPI_ACC_DOCUMENT_CHECK'
destination dest
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of check lines:'. "#EC NOTEXT
perform show_messages.
endif.
if check_a = 'X'.
call function 'BAPI_ACC_DOCUMENT_CHECK'
destination dest
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of check all:'. "#EC NOTEXT
perform show_messages.
endif.
if post = 'X'.
data: l_type like gd_documentheader-obj_type,
l_key like gd_documentheader-obj_key,
l_sys like gd_documentheader-obj_sys.
if dest = space or
dest = gd_documentheader-obj_sys.
post synchron
call function 'BAPI_ACC_DOCUMENT_POST'
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
importing
obj_type = l_type
obj_key = l_key
obj_sys = l_sys
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of post:'. "#EC NOTEXT
perform show_messages.
else.
create Idoc
it_receivers-logsys = dest.
append it_receivers.
call function 'ALE_ACC_DOCUMENT_POST'
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
paymentcard = it_paymentcard
contractitem = it_fica_it
extension2 = it_ext2
realestate = it_re
receivers = it_receivers
COMMUNICATION_DOCUMENTS =
APPLICATION_OBJECTS =
exceptions
error_creating_idocs = 1
others = 2 .
if sy-subrc = 0.
write: / 'IDoc created'. "#EC NOTEXT
else.
write: sy-msgid.
endif.
endif.
endif.
if rev_p = 'X' or rev_c = 'X'.
data: rev like bapiacrev,
rev_key like ref_key.
rev_key = ref_key.
rev_key(1) = 'R'.
rev-obj_type = gd_documentheader-obj_type.
rev-obj_key = rev_key.
rev-obj_sys = gd_documentheader-obj_sys.
rev-obj_key_r = ref_key.
if rev_c is initial.
if dest = space or
dest = gd_documentheader-obj_sys.
call function 'BAPI_ACC_DOCUMENT_REV_POST'
exporting
reversal = rev
bus_act = gd_documentheader-bus_act
tables
return = it_return.
else.
it_receivers-logsys = dest.
append it_receivers.
call function 'ALE_ACC_DOCUMENT_REV_POST'
exporting
reversal = rev
busact = gd_documentheader-bus_act
OBJ_TYPE = 'BUS6035'
SERIAL_ID = '0'
tables
receivers = it_receivers
COMMUNICATION_DOCUMENTS =
APPLICATION_OBJECTS =
exceptions
error_creating_idocs = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
write: / 'IDoc created'. "#EC NOTEXT
endif.
endif.
else.
call function 'BAPI_ACC_DOCUMENT_REV_CHECK'
exporting
reversal = rev
bus_act = gd_documentheader-bus_act
tables
return = it_return.
endif.
write: / 'Result of Reversal Posting:'. "#EC NOTEXT
perform show_messages.
endif.
commit work.
chk this
Give points if useful
Maybe you are looking for
-
Keyboard Backlight not working after SMC reset
I have a Late 2009 MacBook Pro, and I noticed that the backlight for my keyboard stopped working last night. I Performed an SMC reset and powered the computer back up. Again the backlight never came on, but I noticed that if I pressed the keyboard br
-
Need help with JavaScript "Galleria" gallery coding
I am trying to create a clickable gallery with the filmstrip either on the top or on left hand side for people to click to see my portfolio. I want the first photo to be auto loaded. I downloaded the javascript from; http://galleria.aino.se/ I have t
-
Hi Is there any way to add a second screen to my G4 imac, to use for displaying palettes etc. from design programs, leaving my main screen as my workspace? Cheers KM
-
Lvc_t_styl in dynamic catalog
hi i created a programm with dynamic table and dynamic catalog how can i put in field catalog the table lvc_t_styl ? DATA : it_content TYPE REF TO data. FIELD-SYMBOLS : <itab> TYPE STANDARD TABLE. DATA : ls_fieldcat TYPE lvc_s_fcat. celltab
-
Pagination with conditional text
Hello, We have an classroom book we want to put conditional instructor information into but I'm stumped on how to maintain pagination so that the instructor pages do not have page numbers and the instructor's versions will have the same page numberin