Data collecting in dll
Hello!
I need to make a dll (or maybe something other) that periodically recieves 64 byte data from a USB HID device, stores it in a buffer, which size is 200 or more bytes. When the buffer is full data is filtered, and then sent to a visual studio C# application. It seems i know already how to work with usb, arrays and filters in a standalone Labview application, but how to do it in a dll?. Is this possible?
Thanks all -))
Hello abrakada,
You can make a dll from your LabVIEW code. There are some tutorials and examples that you could find very useful to accomplish what you want. For instructions on how to create a dll from your LabVIEW code go here. You can also check this link which contains instructions and a example about "Using Microsoft Visual C++ to Call LabVIEW DLLs That Pass Numeric Data Types". Finally, this tutorial talks about "Creating and Calling LabVIEW DLLs with Various Data Types from Microsoft Visual C++".
I would suggest you to check this material and see how it works for you.
Thanks,
Jorge
Applications Engineering
Jorge
Applications Engineer
National Instruments
Certified LabVIEW Associate Developer (CLAD)
Similar Messages
-
Data Collection Jobs fail to run
Hello,
I have installed three servers with SQL Server 2012 Standard Edition, which should be identically installed and configured.
Part of the installation was setting up Data Collection which worked with out problems on two of the servers, but not on the last where 5 of the SQL Server Agent Jobs fails.
The jobs failing are:
collection_set_1_noncached_collect_and_upload
Message:
Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output. Process Exit Code -1073741515. The step failed.
collection_set_2_collection
Step 1 message:
Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output. Process Exit Code -1073741515. The step failed.
collection_set_2_upload
Step 2 message:
Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output. Process Exit Code -1073741515. The step failed.
collection_set_3_collection
Step 1 message:
Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output. Process Exit Code -1073741515. The step failed.
collection_set_3_upload
Step 2 message:
Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output. Process Exit Code -1073741515. The step failed.
When I try to execute one of the jobs, I get the following event in the System Log:
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider
Name="Application Popup"
Guid="{47BFA2B7-BD54-4FAC-B70B-29021084CA8F}" />
<EventID>26</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated
SystemTime="2013-06-04T11:23:10.924129800Z" />
<EventRecordID>29716</EventRecordID>
<Correlation
/>
<Execution
ProcessID="396" ThreadID="1336" />
<Channel>System</Channel>
<Computer>myServer</Computer>
<Security
UserID="S-1-5-18" />
</System>
- <EventData>
<Data Name="Caption">DCEXEC.EXE - System Error</Data>
<Data Name="Message">The program can't start because SqlTDiagN.dll
is missing from your computer. Try reinstalling the program to fix this
problem.</Data>
</EventData>
</Event>
I have tried removing and reconfiguring the Data Collection two times using the stored procedure msdb.dbo.sp_syscollector_cleanup_collector and removing the underlying database.
Both times with the same result.
Below are the basic information about the setup of the server:
Does any one have any suggestions about what the problem could be and what the cure might be?
Best regards,
Michael Andy PoulsenI tried running a repair on the SQL Server installation.
This solved the problem.
Only thing is that now I have to figure out the mening of these last lines in the log of the repair:
"The following warnings were encountered while configuring settings on your SQL Server. These resources / settings were missing or invalid so default values were used in recreating the missing resources. Please review to make sure they don’t require
further customization for your applications:
Service SID support has been enabled on the service.
Service SID support has been enabled on the service."
/Michael Andy Poulsen -
Should the LabVIEW program be reduced to the speed of data collection?
I'm using a LabVIEW program created by Ocean Optics for a
Spectrophotometer probe with is run through the USB port. The problem
occurs when we attempt to collect data over a time frame of one
second. For some reason the whole LabVIEW program will begin to
operate at the speed of data collection when we try to run the VI with
an integration time of +500 ms. If anyone would be able to offer any
kind of explanation or theory it would be greatly appreciated. Thanks
for any and all help.
DanielDear Daniel,
since LV has no support for USB this must be done through a DLL or Active-X control. A call to a DLL or Active-X method is a synchronous node in LV, that means LV will go on executing when the call completes.
My theory of your problem is that the program makes such a call and it would take that time to collect the data in the DLL or Active-X control. If you have only one loop in the program and do not use dynamic loaded VIs through the VI server than the program seems to hang on each of this calls.
I hope this helps
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions -
Can not start data Collection service
I have installed Fabric Manager version 3.3.(4). In the Performance Web Client I can not start the service Data Collection is in starting forever.
I also could not stop it. I rebooted the server and the status for this service is in starting.
Thanks,Please provide more details like: Server OS, Java version, and what type of database you are using for the FM Server. Have you considered using a newer version of FM Server?
-
Customer Name on Sales Order not in Data Collections
Hi,
I am looking for some help. My company just did an upgrade from 11i to R12 in the middle of May. As part of the upgrade we installed ASCP. We have noticed that certain customers are not being collected when running Standard Data Collections. We have open sales orders in the system for the customer. The sales order are being collected properly and appear in the plan. When we show the Customer field in the 'Supply/Demand Screen' in ASCP, the field is blank for select customers. Is there anything on the customer master or sales order line that would prevent the customer name from being collected? Any insight would be helpful.
Thanks
RichYou can go to order organizer screen select the OA NO which you are not able to see in the ASCP workbench, go to line items---using show field get the Demand visible
tab on screen-----default value should be 'Y' if blank then then that could be the one of the reason. -
Data Collection -- Planning Data Pull process failed
Hello Experts,
I am having a problem with data collection, the result of Planning Data Pull was completed error. It seems the problem is on the Planning Data Pull Worker.
I am using 2 worker to run Planning Data Pull, and both result was errors. Below are some of the errors log:
16-MAY 19:11:34 : Procedure MSC_CL_SETUP_PULL.LOAD_CALENDAR_DATE started.
Into populate_rsrc_cal
16-MAY-2011 19:11:40
APS string is Invalid, check for Error condition
16-MAY 19:11:40 : Error in Routine GMP_CALENDAR_PKG.POPULATE_RSRC_CAL.
16-MAY 19:11:40 : User-Defined Exception
16-MAY 19:11:40 : User-Defined Exception
16-MAY 19:11:40 : Error_Stack...
16-MAY 19:11:40 : ORA-06510: PL/SQL: unhandled user-defined exception
16-MAY 19:11:40 : Error_Backtrace...
16-MAY 19:11:40 : ORA-06512: at "APPS.MSC_CL_PULL", line 6218
ORA-06512: at "APPS.MSC_CL_PULL", line 1583
Help me please.
Thanks & Regards,
AndiThis error shows up when it cannot find any organizations.
Use the sqls below to identify this
1. select MSC_CL_PULL.get_org_str(&instance_id) from dual ;
2. select instance_code, instance_id from msc.msc_apps_instances where instance_code='&instance_code'
3. select * from apps.msc_instance_orgs where sr_instance_id= &instanc_id
sql 1 should in principle return the orgs available. If this returns null or -9999, then it's an orgs problem
sql 3 will show the available orgs.
If the organizations are enabled for planning in the ASCP instances form, then run a targeted refresh for trading partners (suppliers/customers/orgs). If this works with no errors, then look at the table msc_trading_partners. It should contain records for the orgs with partner_type = 3 -
How to get last Build date of a dll in the real time target
Info On My Project
I am working on LabWindows CVI 12.0 for development . This project is a real time application for hardware, which is having Phar Lap ETS as RTOS...
I am facing some problems while checking Build date of my Application file( .dll)
I have tried to use GetFileDate API. But it is not supporting for realtime Target..
So i have tried __DATE__ macro.. That also having some problems..
How to get last Build date of a dll from the real time target ??
Please Help to solve this....
Thanks
Vaishakh A KPlease reply if any one have suggestion...
-
How to perform Data Collection on single SFC with QTY = 1 with material lot size 1?
Dear experts,
We are working with SFC qty>1 on a relaxed routing. At a given operation we want to collect the data on single quantity; i.e. SFC qty on that operation, where the collection will happen, will be 1.The corresponding material lot size is for ex 10. The operator must be able to collect data on SFC with qty=1 multiple times until the quantities will be consumed. He must be also able to collect other values on the remaining quantities on the same operation with the same DC group or other DC groups. How many times the data must be collected is dependent on the shop order build quantity. The data may be collected several time but not more than the build qty. In other words some specific data will be collected on a qty of a product while others will be collected against remaining quantity. The data collection must be also done in a serialized manner.
Here's what we have set up so far:
1) 3 DC groups, each DC group has 3 data fields.
2) Each data field has the following restrictions: Required Data Entries = 0 and Optional Data Entries = 1
3) All DC groups are attached on the same combination of operation\material\routing
4) we are using relaxed routing
Process description:
The operator must be able to collect any data field on single product. For that he will enter the operation where the data collect are attached, he will enter the SFC with qty=1 then he will run the data collection after selecting the appropriate DC Group and entering the needed information. The operator will complete the SFC with qty=1.
The operator will pick the next product, select the same SFC and enter qty 1 and collect other value against this product.
Problem is:
Once the first collection is done on a given SFC with entered qty=1, the system is not allowing the operator to do further collects on the same SFC with qty=1 or any other quantity. He cannot select any DC group from the DC group list. We tried also with the table selection menu on the DC Group list but nothing can be selected.
So we tried to play around with the DC group definitions as follows:
A) we set Required Data Entries = 0 and Optional Data Entries = 10. Still the operator was not able to select any DC group after collecting data the first time. We tried to reopen the pod and list again. But we get the same blocking behavior.
B) we set Required Data Entries = 10 and Optional Data Entries = 1. The operator was able to select the DC group after collecting data the first time. BUT operator must enter the data fields 10 times on one SFC quantity, which is not what we want. Besides again he cannot collect other information on remaining quantities on the same operation.
C) There's an option to serialize the SFC before reaching the operation where the collection is happening, then merging ofter complete. Automation is needed here; hence customization. We are highly avoiding customization now, since we expect the data collect to work well on single quantities even when the main SFC has qty>1
Questions:
1) Are we missing any kind of further configuration\setup?
2) Or the current system design does not allow collecting data on single quantities of an SFC which main quantity is greater than 1?
3) Looking at this link Approaches to Collection of Data - SAP Manufacturing Execution (SAP ME) - SAP Library, there's nothing mentioned about same SFC number with multiple quantities!!!
We are using SAP ME 15.0.3.0.
Thanks in advance for your help
AliAli
to collect data for the same SFC multiple times, your system rule "Allow Multiple Data Collection" needs to be set to true for the site.
Stuart -
What is the significance of data collection nad search help exit field ?
Dear Gurus
I know i am asking very basic quetion of abap but sdn is the only source to learn sap for me.I want to thanks you all for your kind support.
i read most of the post related to search help and trying to create one.
for elementary search help.
SE11 -> SEACH HELP -> ELEMENTARY SEARCH HELP
I have doubts regarding to fields "DATA COLLECTION" and "SEARCH HELP EXIT".
reference to a tutorial it is a maintenance view shall i have to reate a maintenace view first.
and other field is SEARCH HELP EXIT what is this.
please help me .
Thanks in advance.
Chitta Ranjan mahato.
Edited by: chitto123 on Oct 8, 2010 5:59 AMHowdy,
DATA COLLECTION - refers to a database table or view. This is the data that the search help will search through and display based on the parameters provided, so you can create your own view for the search help if you want the search to cover multiple tables.
SEARCH HELP EXIT - You can create a function module to be able to alter the Search Help's selection and results at various events throughout the search help. An example of this function module is provided with some documentation in function module F4IF_SHLP_EXIT_EXAMPLE.
Cheers
Alex -
Errors in weekly data collection
Hello,
I am running ecc6 sp 15 on AIX 5.3 and oracle 10.2.0.2
when i goto transaction st03 -> workload -> <instance_name> ->week dir - when i try to open one of the logs i get the following error message
on the botton of the screen - "unknown period type (W).
when i try to watch a daily log it is displayed without a problem.
moreover when i push on the change user mode button (expert mode or
service engineer options) and move to service engineer, i try to
calculate both in background and in dialog i get the same error
message - unknown period type (W).when i press again on the user mode
button (expert mode or service engineer options) i get a dump -
DYNPRO_NOT_FOUND - dynpro does not exist, the current abap progrem
SAPWL_ST03N HAD TO BE TERMINATED.
the saposcol is running, the background job -
SAP_COLLECTOR_FOR_PERFMONITOR is running and working (daily data is
collected and displayed correctly)
each week i get an early watch alert report but with errors in data
collection section with the following exception -
SAPWL_WORKLOAD_GET_SUMMERY_I_W - NO_DATA_FOUND.
please advise asap
Regards,
Moshedone - had to import note 1014116
-
or Is there another place to save data collected by PDF forms other than FormsCentral? e.g. another database on the web server that presents the form?
Hi,
Yes, you can export user responses into an excel file. To do that, open the responses tab, select Files -> Export Responses and select Microsoft Excel to export response data into.
Thanks,
Wenlan -
Table in which system updates data collected through KKRV
Hi,
Can any one tell me the table in which system updates data collected through KKRV?
and the correct procedure to collect the data for product drilldown.
can i run KKRC alogwith KKRV to get summerized reports?
Thanks in advance
Regards,You could probably trace them at COSP or COSS tables where the object starts with VD (summarization object).
Summarization transaction are better if run separately. First KKRV for summarising plant level information and then KKRC for hierarchy summarization. -
Performance Report Manager Data Collection Issues
I have an agent running and collecting data in a circular file.... history.log
Data Collection has failed approximately 6 days ago without warning. I have tried to find out the issue and have not had any success.
If I open the Data Collection Window in PRM I see a Yellow triangle beside the hostname:port.
If you can provide any information as to what to look for, please reply.history.log may be corrupted. If you run it through ccat to flatten it does it show any recent (i.e. newer than 6 days) entries?
If ccat gives errors then just move it out of the way (i.e. rename it to history.log.busted) and restart your Agent. A fresh log will be created. Give it a couple hours to make a couple flushes of data to your SunMC Server and see if PRM works.
Regards,
Mike
[email protected] -
Hi,
I'm using BCS 4.0. I'm working now in final testing and I have some question regarding to the data collection process using load from data stream method. I ran the task in consolidation monitor for 007.2007 period and for all companies without any error or warnings, but we have differences in financial information for that period.
I reviewed the content in my BCS cube (RSA1) and we don't have any data for that accounts, the only thing that I found was that all docs were created on same date
I deleted the ID request in RSA1in my BCS cube and I executed task again in consolidation monitor, but the result was the same.
Looking at log / source data, in the rows listed, these data is not taking from the infoprovider
Any idea which could be the problem ?
Thanks
NayeliHi Nayeli,
I had to do this kind of job (reconciliation of data in the source basis cube and the totals cube) during the final testing a lot of times, with an accountant.
The only way to have the first clue what is happening is to compare every particular amount s in both cubes. Comparing and trying to figure out any dependencies in data.
The difference might arise because of ANY reason. Only you may analyze the data and decide what to do.
AFAIU, you compared only reported data and did no currency translation and eliminations?
Then, I'm afraid that you've made a very big mistake deleting the request from the totals cube. You have broken the consistency between totals and document data. For a transactional cube the request is yellow until the number of records in it reach 50000 records. Then it is closed and become green. As you may understand, in those 50000 records maybe contained a lot of data for different posting periods, for example, reported data for the previous closed period. Though, documents still contain eliminations for that period. - Inconsistency. -
Data collection table in database
Hi,
In our SAP ME WIP databse we are not able to see the parameter values for data collection ,as entered by operator.
We tried searchin in WIP db as system rule setting for '
Store Data Collection Results in ODS ' is false.
Are there any other settings apart from those mentioned in "how-to-guide" for datacollection that stores data in ODS database?
Or are we going wrong somewhere?
Attached is the reccomended landscape that we have used in our project.
Regards
Mansi
P.S.I think this post is in the wrong forum, but what table are you looking in for your data?
Did you figure out the answer to this problem?
Maybe you are looking for
-
i using ODP.NET connect to oracle database with proxy user, when i connect with a password not correct then i can't again connect with password correct after. string[] cs = new string[2]; cs[0] = "Data Source=orcl;User Id=user1;Password=pass1;"+ "Pro
-
Hide the punch out catalog for some purchasing groups
Hi , I want to hide one punch out catalog for purchasing groups . How is this possible ? Can we do in PPOMA_BBP , but the excluded tab is in display mode . Please help ... Thanks in advance Neha
-
Illustrator will not start...
Very annoyed... such bad timing! I just restarted illustrator as it was getting sketchy, (as it does) only to find it will not restart... Error loading plugins, as you can see they are all stock plugins as I have no extras turned on. Have done a Mach
-
Error in UWL when launching the corresponding workitem using webgui
Hi Folks, I am trying to configure the UWL in EP6.0 almost everything is worked but at the last when i click on the work item in the UWL iview, it has to open the corresponding transaction in the R/3 webgui, instead of that it is giving the error as
-
How to open Adobe Digital editions books on the iPad
When I try to download a digital book from my library website it's saying that the book is incompatible with my iPad. What software would allow me to open this book?