How to give array of amplitutde input to the sinewave .vi
in sine wave.vi ..is it possible to give by making one value as constant and 1D array value of one input
No, you cannot provide an array to that function. If you need to run the sweep for multiple amplitudes then you need to use a loop.
To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. There are also several Technical Resources. You can also take the online courses for free.
Similar Messages
-
If i use a single value in the 1x array, I get a random pulse, Im assuming I need to do an infinite population of the array to give me a dc current? Any ideas
The array input is supposed to contain a number of elements equal to the number of channels being targetted by the command. For example, if you write to "Channel 0" of a FP-AO-200, then you would have a single element in the array. Likewise, writing to the "All" channel means you need to have 8 elements in the array otherwise you will return error code 32800. The probable cause for you to see a pulse, is if you write a value in one interation of the loop, then on the next iteration write a 0.
Regards,
Aaron G -
How to give out a status message indicating the number of fields selected
Hi experts,
I hope some one might have done what I'm trying to do. Could some one please show me how to give out a status message saying for example how many fields have been give out(or selected) in the t_ouput in an alv grid? Is there a FM that could do this? I mean like giving the FM the t_output and it will show a status message with the number of fields selected?
Thank you for your input.
Nadin
Message was edited by:
nadin ramHi Ram,
Write this code,
Message 'Select Only Ten Fields' type 'I'.
It displays The Message in Message Box.
Or if you want the Error Message means,
Message 'Select Only Ten Fields' type 'E'.
Thanks,
reward If Helpful. -
How to give more relevance to one of the column in multicolumn datastore
Hi Gurus,
While using multicolumn datastore needed to give more importance to one of the column than the other one. How can we achieve the same ?
SQL> create table test_sh4 (text1 clob,text2 clob);
Table created.
SQL> alter table test_sh4 add (text3 clob);
Table altered.
SQL> begin
2 ctx_ddl.create_preference ('nd_mcd', 'multi_column_datastore');
3 ctx_ddl.set_attribute
4 ('nd_mcd',
5 'columns',
6 'replace (text1, '' '', '''') nd, text1 text1,replace (text1, '' '', '''') nd, text1 text1');
7 ctx_ddl.set_attribute ('nd_mcd', 'delimiter', 'newline');
8 ctx_ddl.create_preference ('test_lex1', 'basic_lexer');
9 ctx_ddl.set_attribute ('test_lex1', 'whitespace', '/\|-_+');
10 end;
11 /
PL/SQL procedure successfully completed.
SQL> create index IX_test_sh4 on test_sh4 (text3)
indextype is ctxsys.context
parameters
('datastore nd_mcd
lexer test_lex1')
/ 2 3 4 5 6
Index created.Here while querying how can I give more relevance to text1 column than text2 column ?Every time that you post code, whatever you are using eliminates all formatting and changes any multiple spaces to single spaces, so it makes it hard to tell what your code really is. Within the function, you need to remove the special characters and double spaces before you use the string for anything else. In the first part of your output string, you were only putting a % in front of the first word and after the last word. I fixed it so that it puts % before and after every word. I also added some code to return a score of 100 when an exact match is found in any column. You can use the function in a select from dual to see what it is returning. Please see the demonstration below. I will provide a copy of the function in a separate post that you can copy and paste. You may want to adjust the values that you multiply by. The values of 10 and 5 and .5 and .1 were just examples.
SCOTT@orcl_11gR2> create table test_sh (text1 clob,text2 clob);
Table created.
SCOTT@orcl_11gR2> alter table test_sh add (text3 clob);
Table altered.
SCOTT@orcl_11gR2> insert all
2 into test_sh (text1, text2, text3)
3 values ('staple card', 'word2', 'word3')
4 into test_sh (text1, text2, text3)
5 values ('word4', 'staple card', 'word5')
6 into test_sh (text1, text2, text3)
7 values ('staplecard', 'word2', 'word3')
8 into test_sh (text1, text2, text3)
9 values ('word4', 'staplecard', 'word5')
10 into test_sh (text1, text2, text3) values
11 ('Weber Genesis S-310 Gas Grill',
12 'Weber Genesis S-310 Gas Grill',
13 'Weber Genesis S-310 Gas Grill')
14 select * from dual
15 /
5 rows created.
SCOTT@orcl_11gR2> begin
2 ctx_ddl.create_preference ('nd_mcd', 'multi_column_datastore');
3 ctx_ddl.set_attribute
4 ('nd_mcd',
5 'columns',
6 'replace (text1, '' '', '''') nd1,
7 text1 text1,
8 replace (text2, '' '', '''') nd2,
9 text2 text2');
10 ctx_ddl.create_preference ('test_lex1', 'basic_lexer');
11 ctx_ddl.set_attribute ('test_lex1', 'whitespace', '/\|-_+');
12 ctx_ddl.create_section_group ('test_sg', 'basic_section_group');
13 ctx_ddl.add_field_section ('test_sg', 'text1', 'text1', true);
14 ctx_ddl.add_field_section ('test_sg', 'nd1', 'nd1', true);
15 ctx_ddl.add_field_section ('test_sg', 'text2', 'text2', true);
16 ctx_ddl.add_field_section ('test_sg', 'nd2', 'nd2', true);
17 end;
18 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> create index IX_test_sh on test_sh (text3)
2 indextype is ctxsys.context
3 parameters
4 ('datastore nd_mcd
5 lexer test_lex1
6 section group test_sg')
7 /
Index created.
SCOTT@orcl_11gR2> create or replace function text_format
2 (p_string in varchar2)
3 return varchar2
4 as
5 v_string varchar2 (32767);
6 v_string_out varchar2 (32767);
7 v_string_in1 varchar2 (32767);
8 v_string_in2 varchar2 (32767);
9 V_TOKEN VARCHAR2 (32767);
10 BEGIN
11 -- remove special characters and double spaces before using in anything else:
12 v_string := trim (translate (p_string, '/\|-_+&', ' '));
13 v_string := replace (v_string, '''', '');
14 while instr (v_string, ' ') > 0 loop
15 v_string := replace (v_string, ' ', ' ');
16 end loop;
17 -- fixed 2 lines below:
18 v_string_out := '(%' || replace (v_string, ' ', '% %') || '%) ' || ',';
19 v_string_out := v_string_out || '(' || v_string || ')' || ',';
20 -- first search string with spaces:
21 v_string_in1 := v_string || ' ';
22 -- second search string without spaces:
23 v_string_in2 := replace (v_string_in1, ' ', '') || ' ';
24 if v_string_in2 = v_string_in1 then
25 v_string_in2 := null;
26 end if;
27 -- format search string one token at a time:
28 while v_string_in1 is not null loop
29 v_token := substr (v_string_in1, 1, instr (v_string_in1, ' ') - 1);
30 v_string_out := v_string_out
31 || '('
32 || '?' || v_token || ' or '
33 || '!' || v_token || ' or '
34 || '$' || v_token
35 || '),';
36 v_string_in1 := substr (v_string_in1, instr (v_string_in1, ' ') + 1);
37 end loop;
38 while v_string_in2 is not null loop
39 v_token := substr (v_string_in2, 1, instr (v_string_in2, ' ') - 1);
40 v_string_out := v_string_out
41 || '('
42 || '%' || v_token || '% or '
43 || '?' || v_token || ' or '
44 || '!' || v_token || ' or '
45 || '$' || v_token
46 || '),';
47 v_string_in2 := substr (v_string_in2, instr (v_string_in2, ' ') + 1);
48 end loop;
49 -- return formatted string (added score of 100 for exact match in any column:
50 return
51 '(' || v_string || ') * 10 * 10 or
52 (' || rtrim (v_string_out, ',') || ' within text1) * 10 or
53 (' || rtrim (v_string_out, ',') || ' within nd1) * 5 or
54 (' || rtrim (v_string_out, ',') || ' within text2) * .5 or
55 (' || rtrim (v_string_out, ',') || ' within nd2) * .1';
56 end text_format;
57 /
Function created.
SCOTT@orcl_11gR2> show errors
No errors.
SCOTT@orcl_11gR2> select text_format ('STAPLE CARD') from dual
2 /
TEXT_FORMAT('STAPLECARD')
(STAPLE CARD) * 10 * 10 or
((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
!CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
hin text1) * 10 or
((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
!CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
hin nd1) * 5 or
((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
!CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
hin text2) * .5 or
((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
!CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
hin nd2) * .1
1 row selected.
SCOTT@orcl_11gR2> column text1 format a11
SCOTT@orcl_11gR2> column text2 format a11
SCOTT@orcl_11gR2> column text3 format a11
SCOTT@orcl_11gR2> SELECT SCORE(1), t.* FROM test_sh t
2 WHERE CONTAINS (text3, text_format ('STAPLE CARD'), 1) > 0
3 ORDER BY 1 DESC
4 /
SCORE(1) TEXT1 TEXT2 TEXT3
100 staple card word2 word3
100 word4 staple card word5
100 staplecard word2 word3
10 word4 staplecard word5
4 rows selected. -
How to give points to person who gave the answers to my question
hi this is venu . pls tell me how to give rating points .
regards
venuhi,
when you see my answer, at the left hand side of my answer you will find some stars in dark blue green and yellow colour..
click on dark blue for 10 points if ur problem is solved.. green if answer is very helpful and yellow if just helpful..
now try clicking on the dark blue for 10 points.. beside my answer.. i will get 10 points.. please do it now, i am making you learn by experience.
regards,
pankaj singh -
How can I read Extended APDU input to the same buffer
The following is the code I am currently using where inBuffer is an intermediate array of 1000 length. However, I do not want to allocate any buffers at all, and just want to send a command apdu of 1000 byte length and modify it in the code and return the modified buf in the response APDU.
// Read extended APDU input
byte[] buf = apdu.getBuffer();
short bytesRead = apdu.setIncomingAndReceive();
short dataOffset = apdu.getOffsetCdata();
// store first chunk in our intermediate byte array <-- how do i get rid of the intermediate array
Util.arrayCopyNonAtomic(buf, dataOffset, inBuffer, (short) 0, bytesRead);
// what is the overall length?
short overallLength = apdu.getIncomingLength();
short messageOffset = bytesRead;
if (bytesRead != overallLength){ // otherwise we're finished, all bytes received
short received = 0;
do{
received = apdu.receiveBytes((short)0);
Util.arrayCopyNonAtomic(buf, (short)0, inBuffer, messageOffset, received);
messageOffset += received;
} while(received != 0);
* REST OF CODE IN PROCESS METHOD
I have also tried replacing the above code with the following
short bytesLeft = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);
if (bytesLeft < (short)55) ISOException.throwIt( ISO7816.SW_WRONG_LENGTH );
short readCount = apdu.setIncomingAndReceive();
while ( bytesLeft > 0){
// process bytes in buffer[5] to buffer[readCount+4];
bytesLeft -= readCount;
readCount = apdu.receiveBytes ( ISO7816.OFFSET_CDATA );
as shown in the javadocs API, but it does not compile.
This is my command APDU:
/send 800100000003E8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003E8
As you can see:
CLA - 80
INS - 01
P1 & P2 - 00
LC - 0003E8
Data - 1000 0s
LE - 03E8
I am using JavaCard 3.0 with JCOP in Eclipse. How can I read the extended length apdu to the same buffer? I have no problem in returning an extended length response APDU. Thanks a lot for the help.You should not call the convenience method setIncomingAndReceive() in your first code. Please find out about the different APDU states. Furthermore, your Applet should implement the ExtendedLength tagging interface.
-
How can I make my user input on the same line as the question?
The only way I know of doing it is
System.out.println ("Please enter an uppercase letter of the English Alphabet: ");
letter = dataIn.readLine ();But that makes Please enter an uppercase letter of the English Alphabet:
**User input here, a line down**So how can I make it all fit into one line with this sort of layout:
Please enter an uppercase letter of the English Alphabet: **USER INPUTS HERE, SAME LINE**change your call from println to print.
check the API docs for this stuff, it tells you everything you need to know.
Good Luck
Lee -
How to give acces to app to use the images in device through code
Hi,
I am writting an Iphone app, in some part of my application there is a facility to the users to upload their files , but the device is asking to give permission to the app to access files, i have to do that manually , my question is there any way to acheive that through code, In am using Xcode to create my app
Thanks.Hi Kasturi,
> not accepting the points
It worked on this and on one other thread, but this is still open: How to upload the image
> want upload the images from the client side machine
> to KM
In the thread I just referred to, I already provided information about the HTMLB upload control. With this at hand, you'll get the file from the client to the server.
At server side, get an ICollection instance where you want to store the file and create the corresponding resource. See https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/knowledge management/com/sapportals/wcm/repository/icollection.html#createresource(java.lang.String,%20com.sapportals.wcm.repository.IPropertyMap,%20com.sapportals.wcm.util.content.IContent)
Hope it helps
Detlev -
How is XY data formatted for input to the Pulse Parameters function?
I'm not sure how Pulse Parameters is calculating items like rise time or slew rate, where time and amplitude are needed, from a 1D array. How is this done?
Hi,
You may want to check this out:
How Can I Get Time From The Pulse Parameters.vi?
Hope this helps,
Cyril Bouton
Active LabVIEW Developper -
How to make array but don't know the length?
normally if want want an array is double[] d = new double[6], how if the length still don't know?
thx..eadelarosa wrote:
String [] myArray1 = new String [] {};the above creates a non-null array of Strings called "myArray".
ArrayList <String> al = new ArrayList <String> (10);
String [] myArray2 = null;
myArray2 = arrayList.toArray();or
myArray2 = arrayList.toArray(new String [arrayList.size()]);the above creates an array of String for you based on the contents of ArrayList, which in this case is 10 objects of type String.
of course, there are many ways where you can create array of unknown length.
Edited by: eadelarosa on May 28, 2009 10:26 PMMy advice is to stick with the list and not convert it to an array unless you have no other choice. Love your collections! -
How to give if condition in XSLT for the below issue
I have a customer order in .Txt which is picked by my FTP process & in mediator mapping will be done. Here i have an issue where the Txt file is in delimiter file it is having Customer Order number(CON) in each line of a single record,now i have to ignore the CON and to pic all the other details of the same Order. Here in the below i'm placing the sample file. where each order no. is repeated along with remaining details of same order. My problem is when i deployed each CON of line is taking as a single order., after reading CON details once it should jump to new CON. In this Stock code & Quantity are changing, so it should pic this excluding CON in each line.
Customer order number;Order Date;Stock code;Quantity;Leverans adress namn;Leverans adress rad 1;Leverans adress rad 2;Leverans adress rad 3;Postnummer;Stad;ButiksID
"61068344";"31-01-11";"02716Z0";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068344";"31-01-11";"99H10048-00";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068344";"31-01-11";"99H10046-00";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068344";"31-01-11";"100-99150000-60";"4";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068344";"31-01-11";"0278812";"2";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068344";"31-01-11";"534970";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
"61068373";"31-01-11";"1234-0433";"1";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"100-92080000-60";"30";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"0138";"40";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"CM011674";"40";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"CM012044";"10";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"IC416";"30";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"1230-1847";"10";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"99H10046-00";"2";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
"61068373";"31-01-11";"CPW012602";"30";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"Here i missed one thing to say, After reading all the fields from first record of CON the Stock_Code & Quantity to be picked and added in the same record from next line of CON untill the CON is changed. For this can we do with NXSD file? using which option can we use this? & how can we complete this in XSLT?
-
How to giv diff varible values for all the queries in a Workbook?
Hello BI Gurus,
I have an issue with the variable in a the workbook,
I have a workbook in which 4 queries are inserted in the same sheet one below the other and all these queries has same hierarchy variable (same technical name). In all these queries uses different hierarchies but same selection variable.
Now the issue is , when I refresh the workbook the first queryu2019s variable pops up selection option for the hier variable and when I enter the value this first query runs fine but it carries the same value to another query and fails as the 2nd query uses diff hier.
All I need is, is there any way by which these queries pop up selection screen separately for every query in workbook?
Thanks a lot..! have a great day!Hi,
You should open workbook settings and remove tick for display dubplicate veriables omly once.
Regards,
Veronika. -
DS 5.2 - how to give users access to suffixes via the admin console?
I'm in the process of migrating my LDAP install from 5.1 -> 5.2, and have encountered an issue with console access. The "admin" user previously had access to all the suffixes in the directory. After loading the data into a 5.2 directory, this access was lost. The "admin" user can login to the console, but in the directory tab, only sees "cn=schema" and "cn=monitor". The data suffixes are not present. I have verified that the ACI for this user should be allowing access to the data suffixes.
Any ideas?
Additionally, I've tried creating new users with console access, and none of them can even login. Thoughts?never mind, found it there.
-
How to give suggestions to Apple or tweak the repeat function?
Just bought a Classic about a month ago and having had iPods since the first Mini, I was left befuddled, bewildered and rather annoyed to find out that Apple had only moved the shuffle and not repeat function into the "playing now" section. Does anyone here know if there is a tweak to fix this or maybe even if this is something Apple is working on?
CheersAlthough you can't track the "progress" of such a request, you could make a feature enhancement request via the product feedback for for the Classic:
http://www.apple.com/feedback/ipod.html -
How to give a status or information message on BSP page screen.
Hi BSP gurus
I have a search button on the screen , If user click on search button then system search for the suppliers, If no suppliers found then i need to show a status or information message.
I am new to BSP , Could you please help me by telling the way how to give status or information message on the screen.
Many thanks and regards
Sandeep SharmaHi,
Search in SDN thre are many wikis posted on how to dispaly messages.
Here is an example to [Message DIspaly|https://wiki.sdn.sap.com/wiki/x/CIHvB ]
Hope this helps you
Regards,
Rajani
Maybe you are looking for
-
How to reduce memory use on my iMac
How to reduce memory use on my iMac, OS X Yosemite, 2.7 GHz Intel Core i5 8 GB memory Running very slowly, and the little spinning ball showing up. How do I clean up my IMac please? Should I use MacKeep or any clean up apps?
-
I need to encrypt user password with a key and store that key in the database along with the encrypted password. Every once in a while I need to generate a new encryption key. So far it works fine with the encryption/decryption routine for 3-4 tests,
-
I lecture for a living. My old G4 connected to LCD projector worked great; image displayed on computer monitor is same as that projected by LCD. However my new MacBookPro connected to the LCD projector displays washed out images, as if I designed my
-
How do I unlock a PDF to add notes on the Adobe iPad app
How do I unlock a PDF to add notes on the Adobe iPad app
-
DH video to online flash content
I have adobe master suite and I have completed a project in Premiere that was using HD footage. How can I create a movie that would be small enough to use as an online movie? I have already tried doing it in Encore but the file was still 75 mb. I rea