Performing two NiDAQ operations at once...
Hello,
I am using NiDAQ 7.1 and a 6025E DAQ.
I am performing a simple rocket engine test.
These are my concerns so far...
1. The NiDAQ board cannot perform two operations simultaneously. What this means is that in order to operate the valve (digital out), I would have to interrupt the continous analog input scanning. This would cause a problem. I would not be recording analog inputs during, or immediately after the operation of the valve (digital out).
2. Synchronizing the operation of the valve with the continous analog input data recording. i.e What sample point in the analog input data corresponds to the instant the valve was opened/closed? I am using an accelerometer to record when the valve opens/closes.
But the interruption of operating the valve will render it useless since analog input recording will have been halted, and thus the accelerometer data will not have been recorded.
How do I operate the valve at the same time that I am continously reading analog inputs? According to your documentation, it is not possible to perform two operations on the E series at the same time. How do I overcome this issue? My analog input sampling frequency is 2KHz.
Would something like this work:
SCAN_Op(length of time before opening valve)
DIG_Line_Out(Turn on valve)
SCAN_Op(length of time before closing valve)
DIG_Line_Out(Turn off valve)
SCAN_Op(length of time to record after valve is closed)
StoreSamplesToFile()
What is the amount of time between SCAN_Op() returning, calling DIG_OUT_Line() and calling SCAN_Op()? i.e. how many samples will I miss due to stopping and starting analog input recording using SCAN_Op()?
- Tree
Hey Tree,
I think you are still slightly confused on what Traditional NI-DAQ is capable of doing. The E-Series device is capable of doing analog input, analog output, digital input, digital output, and counter operations all at the same time. The problem with the Traditional NI-DAQ driver (not DAQmx) is that it is not a truly multithreaded driver.
Now what does this mean?
Assume you have two threads operating at the same time. One is performing an analog input and the other is performing a digital output. If the analog input thread is executing the AI_Read function then it is waiting for the device to fill the buffer with the number of samples that you have requested and then it will return the array of data to your program.
If the Dig_Out_Lin
e function tries to execute while the AI_Read is waiting for the data then the DIG_Out_Line function will be blocked until the AI_Read completes. You can minimize the effect by reading smaller chunks of data or placing small wait functions in your analog input while loop so the processor and driver can perform other tasks.
This will not change the analog input process and you will not miss any data points if you have it configured for a continuous analog input. The data is always being transferred from the DAQ device to the buffer. You are just reading from that buffer when you execute the read functions.
The best solution to your problem would be to use NI-DAQmx. This driver is multithreaded and the analog input will not block the digital output thread. There should be several examples that are installed for ANSI C on your hard driver at C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev.
I hope this helps out.
Joshua P.
Application Engineering
National I
nstruments
Similar Messages
-
LabVIEW array performance: Two loops operating on the same massive array
Yes there has been a lot said and left unsaid about LabVIEW performance in the past - but I have to ask the following:
Is it possible to have two seperate while loops act on the same data without making copies?
Say I have a 1GB array of doubles which I have wired to a shift register on one loop. With a little bit of effort (by using in-place and chasing the dots a bit) it would be possible to operate on that data inside that loop without making copies.
But what if I need to also access that same array in a different loop (which is running at a different rate). I basically need two loops' shift registers to point to the same data. At the moment the only way I can manage this is to use DLL calls which destroys dataflow but al least makes no copies. It also means I cannot use LabVIEW code but have to resort to C coding.
Data corruption is no issue as the two loops, at any instant, operate in different locations of the array.
Any smart ideas that will work?drclaw wrote:
Hi AnthonV,
A Functional Global approach might suit your needs. This will allow you to keep you data in a shift register, but access/modify parts of the data from other VIs or loops.
Another option is to use a single element queue to store the array to achieve a similar result.
Both these options and more techniques are located at
http://zone.ni.com/devzone/cda/tut/p/id/3625#toc0
Hope that helps
Good suggestion. Functional Globals also go by the name "Action Engine" as I discuss in this Nugget on Action Engines.
Put all of your number crunching code inside appropriately named Actions of the AE and that way all of the work CAN be done "in-place".
Have fun!
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
How do I perform two particular operations in iPhoto v9.6.1?
I just upgraded from iPhoto version 9.5.1 to version 9.6.1 in Yosemite OS. For whatever reason there is no longer a full-screen button in the upper right hand corner of the iPhoto window! I used that a lot in v9.5.1 to increase the size of the images I was viewing. How do I accomplish this in v9.6.1?
Also, in v9.5.1 I could select two or more images, then right click and choose Edit in iPhoto to bring the images up side by side for comparison purposes. That procedure no longer works in v9.6.1. How do I compare images in v9.6.1?
BobOdd, both work here.
As a Test:
Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there?
Post back with the result. -
I've been trying fresh installation of SQL Server 2008 R2 enterprise on Windows Server 2012 R2 standard VM server several times for two weeks, but always get the error "Attempted to perform an unauthorized operation". At first, I attempted
to install all features, but failed several times. So I decided to try install just Database Engine service, and still fail at the SqlBrowserConfigAction_Install_ConfigNonRC_Cpu32, with the error "Attempted to perform an unauthorized operation".
I remote login to server with my admin domain account. This account is in server local Administrators group. I
1. Right-click on setup.exe file | properties | Compatibility tab | select compatibility to Windows 8.Then click OK.
2. Right-click on setup.exe file | Run as Administrator, to start the Installation Center.
I have the document of my installation steps and zip file of the installation logs, if you need to take a look.
Appreciate for any help!
ntthHi ntth,
"Attempted to perform an unauthorized operation"
The above error is always related to the Windows account SID mapping. I recommend you login into Windows using another Windows account which has administrative privileges and run SQL Server setup using that Windows account.
Besides, please note that we need to apply SQL Server 2008 R2 Service Pack 2 or a later update when installing SQL Server Windows Server 2012 R2. For more information, please review this
KB article.
Thanks,
Lydia Zhang
If you have any feedback on our support, please click
here.
Lydia Zhang
TechNet Community Support -
Performing Window Leveling operation on an Image
I need help for performing window leveling operation on an image. Which has to be triggered using Mouse Drag Event. I have been working on it for past 4days . I need help badly.
Thanks in advance
PrasadIntensity range is defined as Window & distance between the two ends is called Window width. Intensity of the Pixels above or below the window is mapped to balck or white.I hope i was clear.
By adjusting this we can adjust the Brightness & contrast of the Image.
Prasad -
Hi All,
We seem to be being plagued by the error below by our SQL Server agent. This happens almost everytime we restart the server that has been running for a day or two.
Our SQL Server Agent uses a none expiring domain credential. I understand that this problem only happens when the profile being used by the SQL Servr Agent has changed (password change). What puzzles me is that the login is A ok and no changes has been made to it's password.
We always resolve this problem by changing the login used in the SQL Server Agent to local and after that, returning it back to it's original domain login. Unfortunately, we cant always do this everytime something goes wrong.
Can anyone please help us shed a light on this? We're using SQL2k with SP3a. Thanks!
Error:
An error 1069 - )The service did not start due to logon failure) occurred while performing this service operation on the SQLServerAgent service.
Regards,
JosephRan into this error, and the password was correct. What the System Event Log said:
Code SnippetEvent Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7041
Date: 10/8/2008
Time: 9:33:09 AM
User: N/A
Computer: ComputerName
Description:
The SQLSERVERAGENT service was unable to log on as DomainName\SQLAgent with the currently configured password due to the following error:
Logon failure: the user has not been granted the requested logon type at this computer.
Service: SQLSERVERAGENT
Domain and account: DomainName\SQLAgent
This service account does not have the necessary user right "Log on as a service."
User Action
Assign "Log on as a service" to the service account on this computer. You can use Local Security Settings (Secpol.msc) to do this. If this computer is a node in a cluster, check that this user right is assigned to the Cluster service account on all nodes in the cluster.
If you have already assigned this user right to the service account, and the user right appears to be removed, a Group Policy object associated with this node might be removing the right. Check with your domain administrator to find out if this is happening.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp
...sure enough it had been removed from the "Logon as a service" list. Hope this helps. -
SQL Server 2008 Developer install failed - Attempted to perform an unauthorized operation
I'm trying to install SQL Server 2008 Developer edition on my laptop running Windows XP Professional SP2. I ran the installer as a domain user with admin rights to the local box. The installation advisor program certified that my system was ready for the install, but nevertheless I had to uninstall SQL Server 2005 Express edition and install .NET framework 3.5 SP1 first. Once that was done, the installer finished, having successfully installed all the components of SQL Server 2008 except for the core database engine. It failed with this error message: Attempted to perform an unauthorized operation.
I uninstalled SQL Server 2008 and reinstalled with the same results.
Below is a snippet from my C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20081014_203925\Detail.txt which seems like it may be relevant.
Can anyone offer any assistance? Would be greatly appreciated.
2008-10-14 20:50:15 SQLEngine: --EtwSetup: Updating WMI Security
2008-10-14 20:50:15 SQLEngine: --EtwSetup: WMI sddlA;;0x120fff;;;SY)(A;;0x120fff;;;BA)
2008-10-14 20:50:15 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
2008-10-14 20:50:15 Slp: Sco: Attempting to open registry subkey SYSTEM\CurrentControlSet\Control\WMI\Security
2008-10-14 20:50:15 Slp: Prompting user if they want to retry this action due to the following failure:
2008-10-14 20:50:15 Slp: ----------------------------------------
2008-10-14 20:50:15 Slp: The following is an exception stack listing the exceptions in outermost to innermost order
2008-10-14 20:50:15 Slp: Inner exceptions are being indented
2008-10-14 20:50:15 Slp:
2008-10-14 20:50:15 Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
2008-10-14 20:50:15 Slp: Message:
2008-10-14 20:50:15 Slp: Attempted to perform an unauthorized operation.
2008-10-14 20:50:15 Slp: Data:
2008-10-14 20:50:15 Slp: WatsonData = HKEY_LOCAL_MACHINE@SYSTEM\CurrentControlSet\Control\WMI\Security
2008-10-14 20:50:15 Slp: DisableRetry = true
2008-10-14 20:50:15 Slp: Inner exception type: System.UnauthorizedAccessException
2008-10-14 20:50:15 Slp: Message:
2008-10-14 20:50:15 Slp: Attempted to perform an unauthorized operation.
2008-10-14 20:50:15 Slp: Stack:
2008-10-14 20:50:15 Slp: at Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String subkey, RegistryAccess requestedAccess)
2008-10-14 20:50:15 Slp: ----------------------------------------
2008-10-14 20:50:31 Slp: User has chosen to cancel this actionHi,
I have recently donwloaded the evaluation version of SQL SERVER 2010. I have a similar problem to this user as shown below. I have tried changing the registry permissions for Microsoft SQL Server but this made no difference. Since the registry entries are created by the installation process it seems odd that it cannnot subsequently update the entry.
Any ideas?
Dominic
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Failed: see details below
Configuration error code: 0xD3BEBD98@1211@1
Configuration error description: Attempted to perform an unauthorized operation.
Configuration log: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20100408_135119\Detail.txt
2010-04-08 14:01:43 Slp: ----------------------------------------
2010-04-08 14:01:43 Slp: The following is an exception stack listing the exceptions in outermost to innermost order
2010-04-08 14:01:43 Slp: Inner exceptions are being indented
2010-04-08 14:01:43 Slp:
2010-04-08 14:01:43 Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
2010-04-08 14:01:43 Slp: Message:
2010-04-08 14:01:43 Slp: Attempted to perform an unauthorized operation.
2010-04-08 14:01:43 Slp: Data:
2010-04-08 14:01:43 Slp: WatsonData = Microsoft SQL Server
2010-04-08 14:01:43 Slp: DisableRetry = true
2010-04-08 14:01:43 Slp: Inner exception type: System.UnauthorizedAccessException
2010-04-08 14:01:43 Slp: Message:
2010-04-08 14:01:43 Slp: Attempted to perform an unauthorized operation.
2010-04-08 14:01:43 Slp: Stack:
2010-04-08 14:01:43 Slp: at System.Security.AccessControl.Win32.GetSecurityInfo(ResourceType resourceType, String name, SafeHandle handle, AccessControlSections accessControlSections, RawSecurityDescriptor& resultSd)
2010-04-08 14:01:43 Slp: at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)
2010-04-08 14:01:43 Slp: at Microsoft.SqlServer.Configuration.Sco.SqlRegistrySecurity..ctor(ResourceType resourceType, SafeRegistryHandle handle, AccessControlSections includeSections)
2010-04-08 14:01:43 Slp: at Microsoft.SqlServer.Configuration.Sco.SqlRegistrySecurity.Create(InternalRegistryKey key)
2010-04-08 14:01:43 Slp: at Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.SetSecurityDescriptor(String sddl, Boolean overwrite)
2010-04-08 14:01:43 Slp: ---------------------------------------- -
I am considering to get a new Mac.
In that I want to be able to use two seperate operating systems. The Mac operating system and maybe either a windows or linux or an other useful and functional alternative!
The reason for this is, that I have several laptops incl. an iPad. I have concluded that iPad isnt that useful for my needs till now, its not very functional for my needs. I am also going to upgrade my smart mobile still considering functional alternatives (would like to hear yoru thoughts about this as well)!
I want to integrate them into one machine only and utilize cloud and / or an external Disk, and be better able to use useful apps and software that are not available on either one of the systems on their own my own system!
Usage will be both for biz and private, but at the end usefulness, and functionality will play a big part in my final decision!
Do you think this is practical, useful and cost effective way doing it the way I want to do?My reason for wanting to have windows on my Mac is to be able to utilize, some applications that are not available for Mac OS!
In the past I raised few points relating to that, and wasnt able locate details to consider to have only a Mac system. Thats why I had to have few laptops to handle all! I got myself an iPad(1) but again it didnt met the exact needs that I have!
Thats why I am going to integrate all in one new system(Mac), and exchange and process while on the road via smartphone or something that is between a smartphone and tablet!
As to smartphones; I hear positive notes on iPhone, but seems to have some issues with its antena, the new Moterola seems great to exchange files anywhere, and the new Samsung Galaxy, very advanced. However what I lack at this stage is user experiences to see if any of them can meet my needs, and what the best combination could be for efficiency, speed and value for money(laptop, operating sytem, smartphone).
I am tired of crashes, frozen screens, or not able to open files or pics because they are not compatible in some ways! I try to maintain, clean and update my systems, but some stuff does comes in between despite all!
Anyhow, thank you for your support, I will try to do some reading on the keywords you used, I might get back to you for some more leads!
Thank you once again!:) -
Two DML operations in one FORALL?
Hi all,
In 11g is it possible to make two dml operations in one Forall loop?
For example:
SQL> create table xx_test (col1 number, col2 number, col3 number);
Table created
SQL> create table xx_test1 (col1 number, col2 number, col3 number);
Table created
SQL> insert into xx_test values(1,2,3);
1 row inserted
SQL> insert into xx_test values(1,2,3);
1 row inserted
SQL> insert into xx_test values(4,5,6);
1 row inserted
SQL> insert into xx_test1 values(6,7,8);
1 row inserted
SQL> declare
2 cursor c is select col1, col2, col3 from xx_test;
3 type t is table of c%rowtype;
4 v t;
5 begin
6 open c;
7 loop
8 fetch c bulk collect into v limit 1000;
9 forall i in 1..v.count
10 update xx_test1
11 set col1 = v(i).col2;
12
13 insert into xx_test1(col1,col2,col3) values(v(i).col1,v(i).col2,v(i).col3);
14
15 exit when c%notfound;
16 end loop;
17
18 end;
ORA-06550: line 14, column 50:
PLS-00201: identifier 'I' must be declared
ORA-06550: line 14, column 50:
PLS-00201: identifier 'I' must be declared
ORA-06550: line 14, column 48:
PL/SQL: ORA-00904: : invalid identifier
ORA-06550: line 14, column 4:
PL/SQL: SQL Statement ignoredany ideas? I know that this can be achieved by processing row by row but in my case the cursor retrieves a lot of rows...
Thanks in advance,
Alexander.Stew, a bulk bind from an OCI client looks as follows:
OCIStmtPrepare()
OCIBindByName()/OCIBindByPos() (binding a host array)
while some-condition loop
fill host array
OCIStmtExecute() (specify the number of elements in array via the iters param)
end loopThe statement is executed once for each array element - according to the OCI guide. So in the case of sending a 100 elements, the statement will be executed (iterated) by Oracle, a 100 times. It however is not exactly clear on how the server-side deals with this execution.
The issue you raised with cursor execution counts, seems to be whether the statement is single statement, or single statement with nested statements.
I have written an OCI client doing the exact same tests as were done in PL/SQL using FORALL in this thread.
If the SQL statement executed is SQL, the cursor that is created is executed only "once" (not exactly true as multiple rows are inserted using a single row DML).
If the statement is PL/SQL, the cursor that is created, is executed "once". So pretty much the same behaviour. However, as this statement contains "nested" SQLs (the actual DML statements), these also need to be parsed and executed as cursors. In which case you see these as being executed a 100 times (once per element in for the bind array).
The issue is whether or not the FORALL DML statement is executed once (as it would appear from the executions column), or not?
It would seem that there is some funky happening (some kind of call optimisation perhaps?) when Oracle deals with an array bind - as the cursor seems to be executed once. But that in fact is not the case as that cursor only inserts a single row. And multiple rows are inserted.
E.g. simplistic example to see how many times the FORALL DML statement is executed:
SQL> create sequence emp_id_seq
2 start with 1
3 increment by 1
4 nocycle
5 nomaxvalue;
Sequence created.
SQL> --// add a PL/SQL user function wrapper for the sequence
SQL> create or replace function GetNextEmpID return number is
2 id number;
3 begin
4 select emp_id_seq.NextVal into id from dual; --// explicit SQL statement
5 return( id );
6 end;
7 /
Function created.
SQL>
SQL> declare
2 cursor c is
3 select empno, ename, job from emp;
4
5 type TBuffer is table of c%RowType;
6 buffer TBuffer;
7 begin
8 open c;
9 loop
10 fetch c bulk collect into buffer limit 100;
11
12 forall i in 1..buffer.Count
13 insert into tab1 values( GetNextEmpID(), buffer(i).ename );
14 exit when c%NotFound;
15 end loop;
16 close c;
17 end;
18 /
PL/SQL procedure successfully completed.
SQL>
SQL> select
2 executions,
3 sql_text
4 from v$sql
5 where sql_text like 'INSERT INTO TAB1%'
6 or sql_text like 'SELECT EMP_ID_SEQ%';
EXECUTIONS SQL_TEXT
14 SELECT EMP_ID_SEQ.NEXTVAL FROM DUAL
1 INSERT INTO TAB1 VALUES( GETNEXTEMPID(), :B1So the insert seems to have been executed once. However, the wrapper was called 14 times and its SQL statement was called 14 times. Once per bind array value.
So there do seem to be some kind of optimisation on the Oracle side - however, it does not mean that the FORALL statement is not using bulk/array binding. It is. And that is what the FORALL statement is designed to do. -
Hello,
I'm new to SharePoint development. I just created a empty sharepoing app in VS2010, added a webpart and in .cs file of this webpart, add hello inside RenderContents. Its compiling fine. but giving following error while deploying
Error occurred in deployment step 'Add Solution': Attempted to perform an unauthorized operation.
My VS 2010 is running under Administrator privileges & I'm admin to this machine.
Comments?Hi, just had the same problem (on a 2013 enviroment) and was able to solve it partly by this post.
Also experience a problem with dublicate ports, see here: http://technicaltrix.blogspot.dk/2014/11/error-occurred-in-deployment-step-add.html
http://technicaltrix.blogspot.dk/ -
Hi,
I'm unable to deploy a custom workflow/ visual web part or anything using Visual Studio.
Here is the Output trace:
------ Build started: Project: TestWorkflow, Configuration: Debug Any CPU ------
TestWorkflow -> E:\Codes\TestWorkflow\TestWorkflow\bin\Debug\TestWorkflow.dll
Successfully created package at: E:\Codes\TestWorkflow\TestWorkflow\bin\Debug\TestWorkflow.wsp
------ Deploy started: Project: TestWorkflow, Configuration: Debug Any CPU ------
Active Deployment Configuration: Default
Run Pre-Deployment Command:
Skipping deployment step because a pre-deployment command is not specified.
Recycle IIS Application Pool:
Recycling IIS application pool 'SharePoint - 1111'...
Retract Solution:
Retracting solution 'Testworkflow.wsp'...
Deleting solution 'Testworkflow.wsp'...
Add Solution:
Adding solution 'TestWorkflow.wsp'...
Deploying solution 'TestWorkflow.wsp'...
Activate Features:
Activating feature 'Feature1' ...
Error occurred in deployment step 'Activate Features': Attempted to perform an unauthorized operation.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Points to be noted:
I have opened the visual studio using the System Account and "Run as Administrator".
I checked the User policy for the particular web app and it has Full read and Full control for the System account
I checked SharePoint administration under services and verified the system account credientials.
Can you please help me solving this.
Thanks,
SachinPlease try giving permissions
pen the SharePoint 2010 Central
Administration.
- Go to Application Management
–> Change site collection administrations
- Select the correct site
collection and type your windows account as the secondary site collection administrator.
- Try deploying now, it should work.
or
You can grante permissions in "SITE ACTIONS > SITE PERMISSIONS"
Ref :http://learnsharepointwithme.blogspot.in/2013/04/error-occurred-in-deployment-step.html
Please remember to click 'Mark as Answer' on the answer if it helps you -
I am running Windows 8.1 Pro.
I have been experiencing problems that lead me to believe the my component store is corrupted.
When I run sfc /scannow sfc immediately comes back with "Windows Resource Protection could not perform the required operation.
Here are the entries in the CBS file
TI: --- Initializing Trusted Installer ---
2014-01-21 10:45:59, Info CBS TI: Last boot time: 2014-01-21 10:28:05.492
2014-01-21 10:45:59, Info CBS Starting TrustedInstaller initialization.
2014-01-21 10:45:59, Info CBS Ending TrustedInstaller initialization.
2014-01-21 10:45:59, Info CBS Starting the TrustedInstaller main loop.
2014-01-21 10:45:59, Info CBS TrustedInstaller service starts successfully.
2014-01-21 10:45:59, Info CBS No startup processing required, TrustedInstaller service was not set as autostart
2014-01-21 10:45:59, Info CBS Startup processing thread terminated normally
2014-01-21 10:45:59, Info CBS Starting TiWorker initialization.
2014-01-21 10:45:59, Info CBS Ending TiWorker initialization.
2014-01-21 10:45:59, Info CBS Starting the TiWorker main loop.
2014-01-21 10:45:59, Info CBS TiWorker starts successfully.
2014-01-21 10:45:59, Info CBS TiWorker: Client requests SFP repair object.
2014-01-21 10:45:59, Info CBS Universal Time is: 2014-01-21 16:45:59.014
2014-01-21 10:45:59, Info CBS Open of SC_BOOT_SERVICING_DONE event failed 2
2014-01-21 10:45:59, Info CBS Loaded Servicing Stack v6.3.9600.16470 with Core: C:\WINDOWS\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.3.9600.16470_none_fa2491fd9b3cfcb2\cbscore.dll
2014-01-21 10:45:59, Info CSI
00000001@2014/1/21:16:45:59.016 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x7ffa54fd5929 @0x7ffa55266bda @0x7ffa55269a06 @0x7ff74300d25f @0x7ff74300dc17 @0x7ffa800d2385)
2014-01-21 10:45:59, Info CBS SQM: Initializing online with Windows opt-in: False
2014-01-21 10:45:59, Info CBS SQM: Cleaning up report files older than 10 days.
2014-01-21 10:45:59, Info CBS SQM: Requesting upload of all unsent reports.
2014-01-21 10:45:59, Info CBS SQM: Failed to start upload with file pattern: C:\WINDOWS\servicing\sqm\*_std.sqm, flags: 0x2 [HRESULT = 0x80004005
- E_FAIL]
2014-01-21 10:45:59, Info CBS SQM: Failed to start standard sample upload. [HRESULT = 0x80004005 - E_FAIL]
2014-01-21 10:45:59, Info CBS SQM: Queued 0 file(s) for upload with pattern: C:\WINDOWS\servicing\sqm\*_all.sqm, flags: 0x6
2014-01-21 10:45:59, Info CBS SQM: Warning: Failed to upload all unsent reports. [HRESULT = 0x80004005 - E_FAIL]
2014-01-21 10:45:59, Info CBS NonStart: Set pending store consistency check.
2014-01-21 10:45:59, Info CSI
00000002@2014/1/21:16:45:59.020 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x7ffa54fd5929 @0x7ffa652e7fc0 @0x7ffa652e80f2 @0x7ff74300c9a5 @0x7ff74300dc2e @0x7ffa800d2385)
2014-01-21 10:45:59, Info CSI 00000003 No store version format found; DLL store format 0.0.0.6
2014-01-21 10:45:59, Error CSI
00000004@2014/1/21:16:45:59.027 (F) base\wcp\componentstore\storelayout.cpp(3854): Error STATUS_SXS_COMPONENT_STORE_CORRUPT originated in function ComponentStore::CRawStoreLayout::OpenCanonicalDataKey expression:
(null)
[gle=0x80004005]
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CBS.log to WER report.
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140121102547.cab to WER report.
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140114224141.cab to WER report.
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140104132548.cab to WER report.
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20131220204514.cab to WER report.
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20131215075547.cab to WER report.
2014-01-21 10:45:59, Info CBS Could not get active session for current session file logging [HRESULT = 0x80004003 - E_POINTER]
2014-01-21 10:45:59, Info CBS Not able to add pending.xml to Windows Error Report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2014-01-21 10:45:59, Info CBS Not able to add pending.xml.bad to Windows Error Report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2014-01-21 10:45:59, Info CBS Failed to get CSI system store [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2014-01-21 10:45:59, Info CBS CSI store consistency check fails. [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2014-01-21 10:45:59, Info CBS Failed to load component store [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
2014-01-21 10:45:59, Info CSI 00000005 No store version format found; DLL store format 0.0.0.6
2014-01-21 10:45:59, Error CSI
00000006@2014/1/21:16:45:59.051 (F) base\wcp\componentstore\storelayout.cpp(3854): Error STATUS_SXS_COMPONENT_STORE_CORRUPT originated in function ComponentStore::CRawStoreLayout::OpenCanonicalDataKey expression:
(null)
[gle=0x80004005]
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CBS.log to WER report.
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140121102547.cab to WER report.
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140114224141.cab to WER report.
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140104132548.cab to WER report.
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20131220204514.cab to WER report.
2014-01-21 10:45:59, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20131215075547.cab to WER report.
2014-01-21 10:45:59, Info CBS Could not get active session for current session file logging [HRESULT = 0x80004003 - E_POINTER]
2014-01-21 10:45:59, Info CBS Not able to add pending.xml to Windows Error Report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2014-01-21 10:45:59, Info CBS Not able to add pending.xml.bad to Windows Error Report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2014-01-21 10:47:59, Info CBS Trusted Installer is shutting down because: SHUTDOWN_REASON_AUTOSTOP
2014-01-21 10:47:59, Info CBS TiWorker signaled for shutdown, going to exit.
2014-01-21 10:47:59, Info CBS Ending the TiWorker main loop.
2014-01-21 10:47:59, Info CBS Ending the TrustedInstaller main loop.
2014-01-21 10:47:59, Info CBS Starting TiWorker finalization.
2014-01-21 10:47:59, Info CBS Starting TrustedInstaller finalization.
2014-01-21 10:47:59, Info CBS Ending TrustedInstaller finalization.
2014-01-21 10:47:59, Info CBS Ending TiWorker finalization.
Is there a way to rebuild the component store?
Thanks,
GlenHey Glen,
This log shows the exact same error that is mentioned in the comments of
this blog post, and the response is:
joscon [Microsoft]
joscon [Microsoft]
Thanks. Unfortunately, this isn't good news. The CanonicalData key is missing.
2013-08-05 11:08:32, Error CSI 00000004@2013/8/5:09:08:32.471 (F) base\wcp\componentstore\storelayout.cpp(3617): Error STATUS_SXS_COMPONENT_STORE_CORRUPT originated in function ComponentStore::CRawStoreLayout::OpenCanonicalDataKey
expression: (null)
[gle=0x80004005]
Unfortunately, its a small, but unrecreatable subset of data. If this is missing, servicing is broken on the machine and the system will need to be restored from backup or PBR.
So you will need to try a refresh or a re-install of Windows, unfortunately.
Hope this helps,
David
Windows Outreach Team - IT Pro
The Springboard Series on TechNet -
Error 58 The specified server cannot perform the requested operation
Hello,
I will try to explain the situation as brief as possible. Next to our current existing MDT environment (MDT2010 on Windows 2008 R2) we are no building a new system (MDT2013 on WIndows 2012 R2). We have multiple sites and the MDT deployment share is setup
in DFRS share so every site is getting the same deployment information and replication is done automatically. This has been working firn for 3 years with the old system and also with the new environment it was working fine in our own subnet. But when after
i have setup the remote MDT and WDS servers it is not working in these remote sites. The images are loading fine but for some reason the win PE is not connecting to the shares on the windows 2012 server in our site. When i manuualy connect from a remote win
PE to our server i always get the error: system error 58 has occured. The specified server cannot perform the requested operation.
I have been doing some troubleshooting and it seems i only got this issue when i connect from win PE 5.0 to a windows 2012 R2 server in a remote subnet.
When i use win PE 5.0 and connect to a windows 2012 R2 share in the same subnet it connects fine.
When i use win PE 5.0 and connect to a windows 2008 R2 share in a remote subnet it connects fine
When i use an older win PE and i connect to a windows 2012 R2 share in a remote subnet it connects fine
When i use win PE 5.0 and connect to a windows 2012 R2 share in a remote subnet it does NOT connect and gives the above error
The problem is that this problem also does not occure in Windows 7, after the machine was build by MDT and get into the OS i can connect without a problem to the windows 2012 R2 shares.
Checking the event viewer on the 2012 R2 server that is hosting the shares i see that the following events are created:
4624: An account was successfully logged on.
Subject:
Security ID:
NULL SID
Account Name:
Account Domain:
Logon ID:
0x0
Logon Type: 3
Impersonation Level: Impersonation
New Logon:
Security ID:
domain\username
Account Name:
username
Account Domain: domain
Logon ID:
0x1F1FC0
Logon GUID:
{8e360e91-001b-c726-84a6-e7281a4bcac8}
Process Information:
Process ID:
0x0
Process Name:
Network Information:
Workstation Name:
Source Network Address:
x.x.x.x
Source Port:
60077
Detailed Authentication Information:
Logon Process:
Kerberos
Authentication Package:
Kerberos
Transited Services:
Package Name (NTLM only):
Key Length:
0
This event is generated when a logon session is created. It is generated on the computer that was accessed.
The subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.
The logon type field indicates the kind of logon that occurred. The most common types are 2 (interactive) and 3 (network).
The New Logon fields indicate the account for whom the new logon was created, i.e. the account that was logged on.
The network fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.
The impersonation level field indicates the extent to which a process in the logon session can impersonate.
The authentication information fields provide detailed information about this specific logon request.
- Logon GUID is a unique identifier that can be used to correlate this event with a KDC event.
- Transited services indicate which intermediate services have participated in this logon request.
- Package name indicates which sub-protocol was used among the NTLM protocols.
- Key length indicates the length of the generated session key. This will be 0 if no session key was requested.
5140:
A network share object was accessed.
Subject:
Security ID:
domain\username
Account Name:
username
Account Domain: domain
Logon ID:
0x1F1FC0
Network Information:
Object Type:
File
Source Address:
x.x.x.x
Source Port:
60077
Share Information:
Share Name:
\\*\Captures
Share Path:
\??\D:\Captures
Access Request Information:
Access Mask:
0x1
Accesses:
ReadData (or ListDirectory)
4634:
An account was logged off.
Subject:
Security ID:
domain\username
Account Name:
username
Account Domain: domain
Logon ID:
0x1F1FC0
Logon Type: 3
This event is generated when a logon session is destroyed. It may be positively correlated with a logon event using the Logon ID value. Logon IDs are only unique between reboots on the same computer.
Anyone an idea why this is happening?Hi,
We can refer to the following blog for MDT troubleshooting:
http://blogs.technet.com/b/askcore/archive/2012/05/08/mdt-2010-amp-2012-my-deployment-failed-what-and-where-are-logs-i-should-review.aspx
Best Regards,
Vincent Wu
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Hi,
I am getting the error "Attempted to perform an unauthorized operation" on windows 8.1 while installing
SQL server 2008.
The specific error is The error is Attempted to perform an unauthorized operation."
at stepSqlBrowserConfigAction_install_ConfigNonRC_Cpu32 .
I have tried everything from copying to the C drive. I am the admin on the machine. I also checked access in registry. It already has acesss to HKLM\System\CurrentControlSet\Control\WMI\security
Can someone comment on how to resolve this issue. I also tried NT
AUTHORITY\SYSTEM but getting the same error.
Any help would be appreciated.Hello,
Please note that SQL Server 2008 requires Service Pack 3 (SP3) to make it compatible with
Windows 8.1. Please perform an slipstream installation of SQL Server 2008 + SP3:
http://support.microsoft.com/kb/955392
If it fails again, please share with us the Summary.txt log file and the details.txt log file. The following article
may help you locate those files on disk::
http://msdn.microsoft.com/en-us/library/ms143702(v=sql.100).aspx
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
I need a code that allows me to show a "Please Wait" Dialog while performing a lengthy operation
Hi,
I have very basic knowledge of C++ and I don't understand completely how this works. I have been trying to use pthreads in order to be able to show a "Please Wait" Dialog while performing a lengthy operation. The problem is that the dialog
box is showing up with a blank box where the label should go. Could you please modify the following code so that the program does what I am looking for? (note that I have pasted the sections of the program I think are useful for someone to provide an answer).
void *run_optimization( void *ptr );
void *run_optimization( void *ptr )
Solution x = Optimizer(); // Lengthy operation
const int * const SolArray = x.getDiscreteSolution();
return 0;
namespace RCM {
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
Processing^ Proc = gcnew Processing();
Proc->Show(); // this is the "Please Wait" Dialog
pthread_t thread1;
int ret1;
ret1 = pthread_create( &thread1, NULL, run_optimization, NULL);
pthread_join( thread1, NULL);
Thank you!!
EDIT:
I have tried the following:
void *run_optimization( void ^ptr );
void *run_optimization( void ^ptr )
Processing^ Proc = (Processing ^)ptr;
Solution x = Optimizer(); // Lengthy operation
const int * const SolArray = x.getDiscreteSolution();
Proc->Close();
return 0;
namespace RCM {
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
Processing^ Proc = gcnew Processing();
pthread_t thread1;
int ret1;
ret1 = pthread_create( &thread1, NULL, run_optimization, (void *)Proc);
Proc->Show(); // this is the "Please Wait" Dialog
But I am getting the following error:
error C2440: 'type cast' : cannot convert from 'RCM::Processing ^' to 'void *'Hi Shu!
It runs in windows. I am using Visual Studio 2010 (and I can't use another version) which still doesn't have the threads integrated as I have read. So I am using POSIX threads for windows.
Regarding the other question, I don't really know what either of those (.net framework library or native API) mean. I am sorry but I am really new at this and really don't know much but I am doing my best because I have to get this done.
I only know basic C++ but had to use C++/CLI windows forms because of a code I integrated in my program for running macros in excel and it was in C++/CLI.
Thank you for your help!
You cannot pass a managed handle to void* (as you have discovered).
If you really want to use Posix threads, you probably need to make your Processing class a normal C++ class, not a C++/CLI ref class.
But the .NET way to do this would be to use a BackgroundWorker:
https://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker%28v=vs.110%29.aspx
David Wilkinson | Visual C++ MVP
Maybe you are looking for
-
OCR capabilities in Adobe Reader
My old computer crashed. I have a new Windows 8 machine. I've loaded Adobe Reader XI. My printer is and Epson Workforce 840. My old Windows 7 machine would scan a document and allow me select text from the scan. I can't figure out how to do this
-
Hi folks, I'm configuring a scenario where I have to read a pgp encrypted file from a third party location. I have the following configuration in the module of my file (FTP) sender communication channel. keyRootPath - \\PISERVER\usr\sap\POD\J00\sec o
-
N97 Ovi Contacts problem...
Hi No one receives my Ovi Contacts Invitations made in my N97... I add friends, send the invitation but it never arrives... Does anyone experienced the same issue?
-
Hello everyone, Hope someone can give me a hand with problem I've at hand. Can't say that I'm a wiz at FCPX, but I have been able to share my other videos on differnt platformes until now. When I chose to share my project on youtube, or any other way
-
Hi, I need a help. My client wants a categorisation of product. e.g. we have 500 nos of materials which we have divided under 10 product categories say A1,A2,A3....A10. Now I want to maintain the material M1 to M50 in A1. P1 to P50 in A2... so on...