How do I do input pattern matching with the 6534?
I am configuring the 6534 to have one 8 bit input port and one 8-bit output port. Both input and output are in continuous mode. The input port is scanning for a specific pattern, but doesn't need to save the data. When this specific pattern is received, the VB program must be notified so that it can perform some action. This will occur every 2 seconds, i.e. the input pattern will match every two seconds. How do I perform this continuous pattern match and how can I throw away the input data without overflowing the input buffer?
It sounds like you want to do DAQ Event Messaging. With this mechanism, the driver actively notifies the user of a specific DAQ Event by either posting a message on a message queue or calling a callback function.
There are several documents that describe how you can do this with Visual Basic. You can find some KnowledgeBase entries, and a really useful tutorial called "Using DAQ Event Messaging in Windows under Windows NT/95/3.1". You can find these by searching the http://www.ni.com/support pages for "daq event message", and then go on to choose Visual Basic, and Learning to use product features and functions.
The feature that you are looking for is pattern matching, which is DAQ Event type 8 ? Digital Pattern Matched. When the document refers to the
Config_DAQ_Event_Message, you can see the details of this function in the NI-DAQ Help file (Start menu >> Programs >> National Instruments >> NI-DAQ). As you will see in the tutorial, you use a different but analogous method. While you won't be using this particular function for Visual Basic, the description of those events may be helpful.
Regards,
Geneva L.
Applications Engineer
National Instruments
http://www.ni.com/ask
Similar Messages
-
Hello! I'm a student and I'm currently making a project using pattern matching.
My patterns are from chick foot/feet.
I'm created multiple pattern matching VI's to detect all the feet because I find it difficult/impossible to match all the feet with a single pattern/template.
However, when using multiple pattern matching VI's some pattern matches detect the same foot, hence overlapping.
So how can I make the overlaping pattern matches to be counted as one?
Thank you in advanceThank you for replying Sir Zwired1.
I'm still a newbie in using LabVIEW so pardon me if I can't understand fully
The objective of my project is to detect all the feet through pattern matching and count the pattern matches made.
"Keep a 2D array of counts, initialized to zero and the same size as your array of possible locations, and increment the value every time you get a match. If multiple pattern matching attempts result in a match a given location in your count array might be "3" but all you care about is if the number is greater than zero."
I'm sorry, but how do you do this? BTW, I'm using vision assistant. -
Trouble using a pattern match in the GO URL when the value starts with %
Hi guys,
We are trying to use a Go URL as follows:
[http://hostname.com:9704/analytics/saw.dll?Go&Path=/users/administrator/Test/TestReport&Action=Navigate&col1=TestReport.SUBJECT&op1=like&val1="%25D8D8%25"|http://hostname.com:9704/analytics/saw.dll?Go&Path=/users/administrator/Test/TestReport&Action=Navigate&col1=TestReport.SUBJECT&op1=like&val1="%25D8D8%25"]
Basically, we want to send the filter : SUBJECT like '%D8D8%' in the GoURL. However, the report that opens up does not fetch any rows because BI somehow messes up the clause by not recognizing the leading %25 (which is an escaped % character). Instead it resolves the %25D8D8%25 into something like �D8% .
As you can see, the %25 at the end however gets resolved correctly but somehow the one at the beginning gets clubbed with the leading D8 to give �.
Any idea, how to get BI to accept a leading escaped % character when doing a pattern match in the Go URL?I'm heading to the Apple Store in Danbury CT tomorrow to test out a MacBook Pro. I'll happily post what I like and dislike here.
Waiting for a MacBook Pro... Other OS -
How to close PO after fully matched with invoice only
Hi,
We wan't to use 3-way match, but when an invoice is fully matched with the po we want
the status of the po gets closed. Now it's still open untill you do a receipt for the po.
We need the QTY REC matchinghold to send the invoices for approval if the
receipts is not available before the invoice is matched with the po.
How can I set this up?you are correct. That functionality is not available in iprocurement
Refer note:
The Initial Quantity Received Satisfies the Receipt Closing Tolerance (Doc ID 168495.1)
An Enhancement request is already logged:
16438982 - ABILITY TO RECEIVE ITEMS IN IPROCUREMENT AFTER PO IS CLOSED -
How to Create an Input Schedule Comparison with Data Using EVDRE
Hello,
I try implement the scenario described in "How to Create an Input Schedule Comparison with Data Using EVDRE".
Once I am using the "Insert Function" from the panel and selecting the EVTIM function Excel crashes (see page 8 How to paper).
Systems:
BPC 7.0 NW SP02
Office 2007
BPCADminClient and BPCOfficeClient up to date
Have anyone a solution?
Thanks
OktayHi Oktay -
This function works in my BPC70NW SP02 system. Your issue might be that you are trying to access a TIME member that does not exist. Please make sure the offset value is a valid dimension member.
I can confirm that EVTIM does allow the offset for base members (such as 2009.MAY) as well as parent nodes (such as 2009.Q1 or 2008.TOTAL)... BUT...the offset result of the EVTIM function needs to be a valid dimension member!
Regards,
Sheldon -
Undertake Vision pattern matching with a mask
I am trying to undertake a pattern match, with a irregular shape, and also with a masked area inside the shape, e.g. I have an object (rectangle in shape), with different colours, shapes on top of it. None of the objects break the outline shape. I want to be able to determine if the outline shape is present regardless of the objects within the border of the shape. Taking this one step further I also want to be able to do this when the outside shape is irregular. Any tips would be appreciated.
I don't think this is possible with any of the existing IMAQ tools. It sounds like a geometric pattern matching.
Bruce
Bruce Ammons
Ammons Engineering -
I need to know how to copy
pictures to a cd with the captions showing, elements 8, windows 7Here are some suggestions. Perhaps others will have even better ideas.
1 -- for viewing on a Windows computer, you can experiment with making a PSE Organizer slide show creation in which you specify to show the captions. Then save the Output of the slide show as a WMV file that the recipient could play on a computer with Windows Media Player.
If you have a DVD burner on your PC, you can also use that WMV file as input to the Windows 7 DVD Maker program for making a TV playable DVD. And if your recipient(s) who will view on a computer have DVD readers, you could make video DVDs playable on computers or TV DVD players instead of using CDs.
The limitations of this approach are that this wmv file you create is really a video file so
-- it advances photo slides at the rate specified when you create the slide show
-- the choices to save a wmv file are not very high resolution so that recipients who have high resolution monitors will not see the photo images are not getting the benefit of seeing the photos at their best
-- your recipients can't print from this video slide show
2 An entirely different approach is to
-- For each individual photo, make a copy of the photo file and depending on how high resolution your originals you might want to resize down to monitor viewing sizes.
-- Then use the PSE Editor Text Tool to place the caption on a layer above the photo. (I think that you could display the existing caption and then do a copy and paste so that you don't need to retype everything.)
-- You should save this photo copy with the text as a uniquely named JPEG file. Use the file names to control the sequence in which you want the viewer to see the photos. (Don't save as a PSD because others probably can't read the PSD format).
-- Then use your computers CD burning software to burn a folder containing all those jpeg files with the captions to CD
This approach is a bit of work for each photo and you did not say how many photo files you will be doing. However,
-- computer users should be able to display the jpegs as high resolution photos on their computer as well as optionally print from those photo files
-- many TV DVD players can play (display) jpg files from a CD disc which also gives recipients the opportunity to view the photos on their larger TV screen
Process 2 may seem complicated but once you get started I think it will be more of a production line.
ADDITION
Do you have any portrait orientation photos included with those you wish to send ? If yes, we might need to discuss some additional processing for them. -
Balance in vendor recon account is not matching with the balance in subsida
Dear All
Balance in vendor recon account is not matching with the balance in subsidary ledger, the recons accounts inthe masters have been changed,how do i reconcile themHi Surya,
check f101 - tab parameter, flag Change recon acct.
f101 carries out postings or gives you a simple list to determine all the open items with changed recon accounts.
Best regards
Horst
Edited by: HorstRn on Jun 24, 2008 6:22 PM
By the way.... this is the AM forum... Chance to get a solution is much higher in financials.... -
Accounting doc entries not matching with the the entries from j_1ipart2 entries
Hi,
After creating PO, I have done MIGO and J1IEX. Now, posted MIRO. The end screen shows a number stating accounting document created.
I checked the accounting doc in fb03 and the document is displayed over there. I also checked the table for values captured in PART2 of excise. The value displayed in table is not matching with the value displayed in accounting document. Can anyone help?Hello Tejas,
Here is the updated version of the situation.
After the transaction J1IEX, I got a message saying an 'Accounting Document' has been created. But the accounting document number does not match with the original values. I checked all the tables and found out that the accounting document is not created.
In this case, I thought of creating an accounting document manually and adding them directly to the table.
Here are my questions,
-Can I manually create an accounting document for multiple line items?
-Few tax values should be split and should go to 2 different GL accounts. so how to do this if I am creating it manually
-Or can I delete the values captured during 'J1IEX' in the table and reopen the GR so that the t-code j1iex can be processed again? -
How to encrypt column of some table with the single method ?
How to encrypt column of some table with the single method ?
How to encrypt column of some table with the single
method ?How to encrypt column of some table with the single
method ?
using dbms_crypto package
Assumption: TE is a user in oracle 10g
we have a table need encrypt a column, this column SYSDBA can not look at, it's credit card number.
tha table is
SQL> desc TE.temp_sales
Name Null? Type
CUST_CREDIT_ID NOT NULL NUMBER
CARD_TYPE VARCHAR2(10)
CARD_NUMBER NUMBER
EXPIRY_DATE DATE
CUST_ID NUMBER
1. grant execute on dbms_crypto to te;
2. Create a table with a encrypted columns
SQL> CREATE TABLE te.customer_credit_info(
2 cust_credit_id number
3 CONSTRAINT pk_te_cust_cred PRIMARY KEY
4 USING INDEX TABLESPACE indx
5 enable validate,
6 card_type varchar2(10)
7 constraint te_cust_cred_type_chk check ( upper(card_type) in ('DINERS','AMEX','VISA','MC') ),
8 card_number blob,
9 expiry_date date,
10 cust_id number
11 constraint fk_te_cust_credit_to_cust references te.customer(cust_id) deferrable
12 )
13 storage (initial 50k next 50k pctincrease 0 minextents 1 maxextents 50)
14 tablespace userdata_Lm;
Table created.
SQL> CREATE SEQUENCE te.customers_cred_info_id
2 START WITH 1
3 INCREMENT BY 1
4 NOCACHE
5 NOCYCLE;
Sequence created.
Note: Credit card number is blob data type. It will be encrypted.
3. Loading data encrypt the credit card number
truncate table TE.customer_credit_info;
DECLARE
input_string VARCHAR2(16) := '';
raw_input RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(input_string,'AL32UTF8','US7ASCII'));
key_string VARCHAR2(8) := 'AsDf!2#4';
raw_key RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(key_string,'AL32UTF8','US7ASCII'));
encrypted_raw RAW(2048);
encrypted_string VARCHAR2(2048);
BEGIN
for cred_record in (select upper(CREDIT_CARD) as CREDIT_CARD,
CREDIT_CARD_EXP_DATE,
to_char(CREDIT_CARD_NUMBER) as CREDIT_CARD_NUMBER,
CUST_ID
from TE.temp_sales) loop
dbms_output.put_line('type:' || cred_record.credit_card || 'exp_date:' || cred_record.CREDIT_CARD_EXP_DATE);
dbms_output.put_line('number:' || cred_record.CREDIT_CARD_NUMBER);
input_string := cred_record.CREDIT_CARD_NUMBER;
raw_input := UTL_RAW.CAST_TO_RAW(CONVERT(input_string,'AL32UTF8','US7ASCII'));
dbms_output.put_line('> Input String: ' || CONVERT(UTL_RAW.CAST_TO_VARCHAR2(raw_input),'US7ASCII','AL32UTF8'));
encrypted_raw := dbms_crypto.Encrypt(
src => raw_input,
typ => DBMS_CRYPTO.DES_CBC_PKCS5,
key => raw_key);
encrypted_string := rawtohex(UTL_RAW.CAST_TO_RAW(encrypted_raw)) ;
dbms_output.put_line('> Encrypted hex value : ' || encrypted_string );
insert into TE.customer_credit_info values
(TE.customers_cred_info_id.nextval,
cred_record.credit_card,
encrypted_raw,
cred_record.CREDIT_CARD_EXP_DATE,
cred_record.CUST_ID);
end loop;
commit;
end;
4. Check credit card number script
DECLARE
input_string VARCHAR2(16) := '';
raw_input RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(input_string,'AL32UTF8','US7ASCII'));
key_string VARCHAR2(8) := 'AsDf!2#4';
raw_key RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(key_string,'AL32UTF8','US7ASCII'));
encrypted_raw RAW(2048);
encrypted_string VARCHAR2(2048);
decrypted_raw RAW(2048);
decrypted_string VARCHAR2(2048);
cursor cursor_cust_cred is select CUST_CREDIT_ID, CARD_TYPE, CARD_NUMBER, EXPIRY_DATE, CUST_ID
from TE.customer_credit_info order by CUST_CREDIT_ID;
v_id customer_credit_info.CUST_CREDIT_ID%type;
v_type customer_credit_info.CARD_TYPE%type;
v_EXPIRY_DATE customer_credit_info.EXPIRY_DATE%type;
v_CUST_ID customer_credit_info.CUST_ID%type;
BEGIN
dbms_output.put_line('ID Type Number Expiry_date cust_id');
dbms_output.put_line('-----------------------------------------------------');
open cursor_cust_cred;
loop
fetch cursor_cust_cred into v_id, v_type, encrypted_raw, v_expiry_date, v_cust_id;
exit when cursor_cust_cred%notfound;
decrypted_raw := dbms_crypto.Decrypt(
src => encrypted_raw,
typ => DBMS_CRYPTO.DES_CBC_PKCS5,
key => raw_key);
decrypted_string := CONVERT(UTL_RAW.CAST_TO_VARCHAR2(decrypted_raw),'US7ASCII','AL32UTF8');
dbms_output.put_line(V_ID ||' ' ||
V_TYPE ||' ' ||
decrypted_string || ' ' ||
v_EXPIRY_DATE || ' ' ||
v_CUST_ID);
end loop;
close cursor_cust_cred;
commit;
end;
/ -
The number of details is not matching with the total count.
Hi all, again stuck with the code.
There is a form where i have to populate all the details of few tables in excel & there is a report where i have to make count of all these details.
The problem here is the number of details that is populated in excel is not matching with the count in report, both have to match. There some problem in code, please help me in matching it.
The below is the 5 tables with the columns below.
Tables are ENQACEDTL, ENQACEHDR, ENQACMDTL, ENQACMHDR, ENQACSPEC:
The Names mentioned below the table's name are Column Names:
ENQACEDTL
ENQACEHDR
ENQACMDTL
ENQACMHDR
ENQACSPEC
ENQNO
ENQNO
ENQNO
ENQNO
ENQNO
ENQAMDNO
ENQAMDNO
ENQAMDNO
ENQAMDNO
ENQAMDNO
ENGREF
ENGREF
QTY
OFFREF
MINSL
ITEM
EPREPBY
ITEM
BRANCH
EINSL
FRAME
DEPT
RATING
DEPT
MTEMP
TECOLD
ENGREFTDT
ENCLIP
MKTREF
ETEMP
THE BELOW IS THE SELECT STATEMENT CODE FOR POPULATING DATA IN EXCEL:
SELECT ENQACEDTL.ENQNO, ENQACEDTL.ENQAMDNO, ......... (....ALL COLUMNS)
FROM ENQACMHDR,ENQACMDTL,ENQACEHDR,ENQACEDTL,ENQACSPEC
WHERE
ENQACMHDR.ENQNO=ENQACMDTL.ENQNO AND
ENQACMHDR.ENQNO=ENQACSPEC.ENQNO AND
ENQACMHDR.ENQAMDNO=ENQACSPEC.ENQAMDNO AND
ENQACEHDR.ENQNO=ENQACSPEC.ENQNO AND
ENQACEHDR.ENQAMDNO=ENQACSPEC.ENQAMDNO AND
ENQACMHDR.ENQAMDNO=ENQACMDTL.ENQAMDNO AND
ENQACMHDR.ENQNO=ENQACEHDR.ENQNO AND
ENQACMHDR.ENQAMDNO=ENQACEHDR.ENQAMDNO AND
ENQACEHDR.ENGREF=ENQACEDTL.ENGREF AND
ENQACMDTL.ITEM=ENQACEDTL.ITEM AND
ENQACMHDR.DEPT=:PROC_DEPT AND
ENQACEHDR.ENGREFDT BETWEEN :FROMDATE AND :TODATE
ORDER BY ENQACMHDR.ENQNO,ENQACMHDR.ENQAMDNO;
THE BELOW IS THE SELECT STATEMENT CODE FOR COUNT OF DETAILS IN REPORT:
SELECT ALL ACENQ.ENQACEHDR.DEPT, COUNT(ACENQ.ENQACEHDR.ENQNO) COUNT
FROM ACENQ.ENQACEDTL, ACENQ.ENQACEHDR
WHERE (ACENQ.ENQACEDTL.ENGREF=ACENQ.ENQACEHDR.ENGREF)
AND ENQACEHDR.LOCKE=1 AND
ENQACEHDR.ENGREFDT BETWEEN :P_STDATE AND :P_ENDDATE
GROUP BY ENQACEHDR.DEPT;
There is problem in join condition of 1st code that is in the "SELECT STATEMENT CODE FOR POPULATING DATA IN EXCEL":
Please help me to sort out this problem..
Thank You.
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
Oracle Forms & Reports Builder 6i.As Karthick points out, we cannot help if we cannot see your correct table structures (create table statements) and some example data and expected output (insert statements would be helpful). You're telling us there's a problem, but we cannot see what the problem is as you've not shown it. Just saying your query is not working is like me telling you my car is not working, but not telling you what the symptoms are. You wouldn't know where to start in fixing it.
Why are you using Oracle 9.2.0.1 ? Not only has that version been unsupported for about a decade, but 9.2.0.7 was the first version of 9i that was considered 'stable' as versions prior to that were considered buggy. So you're using an old, unsupported and buggy version of oracle. Seriously, you need to consider upgrading to a supported version, preferably at least the latest 11g version.
And what has oracle Forms and Reports got to do with the issue?
And please explain how you are getting your data out of Excel and presenting it to Oracle to be able to query against it. Excel does not have "tables", so your question is completely unclear how you are querying the data from Excel. -
OBIEE 11G : Remove label (is like pattern match) in the prompt
Hi Experts,
I have Gone through this thread Re: OBIEE 11G : Remove label (is like pattern match) in the prompt and applied JS as mentioed but
It works for the first display of the page but its back as soon as you hit the apply button
can be it be removed permanently? Thanks in AdvanceHi Nagen,
You can try the following:
Create a variable prompt with the column vales that you want to match
Create a filter in the analysis criteria tab on the column, set to pick up the variable, and define the IS LIKE here.
It is effectively doing the same task as the standard prompt approach does, but in a round-a-bout way which doesn't include adding any of Oracle's text in. -
How do I share a hard drive with the new iMac to load a disk from macbook pro
How do I share a hard drive with the new iMac to load a disk from macbook pro. I want to install office for Mac from a disk but dont know how to share har drive from macpro
thanksThe new iMac's don' t have DVD drives however almost all have a disk drive. The easiest method of installing MS Office for Mac on your new iMac is to download it from Microsoft and then input the code you received when you purchased your original license. Otherwise you can use the DVD drive on your MBP to install on your iMac, that feature is called Remote Disc. Instructions for Remote Disc can be found at:http://support.apple.com/kb/ht5287
-
I have a problem with the error "LANG_LIST has some locales which does not match with the locale of serial number" recurring.
I am trying to install Acrobat XI Std silently by SCCM.
I've used the Adobe Customisation Wizard to create a mst which include the volume serial number we have with our licence purchases. Note that I am in Australia. I use the command line in SCCM for the install as "msiexec /i "AcroStan.msi" TRANSFORMS="D&B_AcroStd.mst" /qn" which fails silently. If I install on a local machine using an admin command prompt and changing to /qb at the end, I get the aforementioned error.
I have a few things to try and resolve, having searched the adobe forums and other forums for the solution. The mst is only trying to install US English & I have even gone so far as to use the direct editor in the customisation wizard and change some values in the property table to resolve this. In the property table I can confirm that LANG_SEL_DEFAULT = ENU, REGIONAL_LIST = ENU, LANG_LIST = en_US, ProductLanguage = 1033
Is there a way to check the language specified for ym serial number?
BryndonUpdate on a couple of details:
@Sabian,
Thanks for the location, I've downloaded and then when I tried an install of the newly extracted msi (admittedly on the same computer) I got exactly the same issue. Of note though is that running /qf automatically brought up the same serial number and the same incorrectly spelled company name. Installing on another computer (freshly imaged) doesn't have those inputs already present under /qf. Next when I try using the transfrom (a new one) with /qr it gives an error of the serial number, displaying the entire serial.
@Sebastian
I've had a look through yours and it seems our issues could have the same origin. Looks like I may have to call customer support regarding the serial number as Sabian suggested in your thread.
The bit that gets me is when the same serial number is used in a manual install (or /qf) then it installs ok without any errors. -
Why the doc total amount is not matched with the total item line amount?
Hi,
Recently when i try to update something in sales order via my add-on, i got an error said u201CThere is a difference between the document total and its components. [ORDR.DocTotal][line: 0] Iu201D Then i checked the sales order in SAP B1, I found the document total amount was not matched with the item line total amount. Actually the item line is quite simple, there is only one item line with qty 1. How comes the document total could be different with the amount from item line? I know the document total amount is a read-only field which is calculated automatically by SAP. This is really weird for us, we don't know how this happened.
Has anyone experienced similar situation like mine and how this happens?
Thanks,
LanI am having this same issue and I have additional information.
I am on ver. 8.8 PL 16.
Periodically (mulitiple times a week), when a Sales Order is created, the Doc Total amount is -zero- when there are clearly items that have a price associated with them. This causes an error when Adding the document. Sometimes, I can just change the quantity of one of the items, which forces the Doc Total to update. Most of the time this does not work, though. I end up having to restart the SAP client and then everything begins to work as it should.
This behavior is occuring on mulitple machines in our office.
Earlier in this thread, Rahul mentioned that they currency rounding was turned off and that this could be part of the problem. In fact, we were having issues with Currency Rounding and did turn it off not long ago. Rahul, can you explain better what you meant by "give the proper amount so that you can overcome the error..."
Randy Davis
Denver, CO
Edited by: Randy Davis on May 16, 2011 2:01 PM
Maybe you are looking for
-
Delete a Photo from an iPhoto Folder?
This seems to be broken in iPhoto '11, v 9.4.2. I have a folder that combines different albums. While in the folder, I select a photo, press the delete key, get a dialog box asking if I want to delete photo from the album, press yes, get a beep sound
-
SAP Business One Partner Certification Question
We are going for SAP B1 partner certification. I wanted to check if it is must to DI API calls only. or Can I make queries to db. If anybody has any experience, please let me know. I am trying to build a general ledger report for B1 by writing plugin
-
Sir I am using MSSQL for my application i want to know what to write in class.forNAme and Drivermanger.getconnction. Please help me Thanks in advance
-
screen shot
-
IPhone 5 screen turns black after iOS 7.0.2 update
hi there all! I just updated my iphone into iOS 7.0.2 last two night. It went perfectly yesterday and last night. but just this morning the time when I want to update app the screen turns black. but when I press home button siri is responding. anythi