Clearly waiting for writing
Greetings.
Background
In my application, I have two devices on the CAN bus: a controller and a USB-8473. The controller communicates using a query / line protocol: my application sends a request frame or command; the device reacts. The Protocol requires multiple request / response exchanges to get the controller in a particular mode. If a failure occurs, the program sends a frame to reset the controller and starts again from the beginning.
Comments
From what I can tell, when a frame is passed to the NICAN API to be written on the CAN bus, the API continues indefinitely trying to write the base until its action.
Question
To start, the program requires clear the current frame. To erase the current image, I did...
ncAction (fHandle, NC_OP_RESET, 0)
Is - that the best choice? Is there another method to empty the framework pending (the write queue dump)?
Thank you
Brian
Brian,
The current way you do this outcrop, ncAction with the opcode Reset, is recommended. There is a reason, you are looking to use a different function?
Kind regards
Ben
Tags: NI Products
Similar Questions
-
How to clear, waiting for the task in the task list
Hi friends,
When I configure the user, the process is in the list of tasks, as
task: System validation
status: pending
I couldn't make the process to complete the procurement process...
could someone help me by making the list of tasks.
Gaetan elango.Check this box:
Issue during the integration of IOM with novell edirectory 8.8 9.1
-
Output broken for writing DAQmx
Hello
I need emergency assistance with a problem I have with write DAQmx. The 'DAQmx write VI' is located inside a while loop that repeats every 20ms. I use queues to transfer data between several asynchronous VI and the data does not update all 20ms. Because I'm not going to tie the whole project I faked the timing of 20ms to 'Wait for next ms Multiple' vocation. What happens is I will send 20ms of data to the VI DAQmx writing, he will have all the data output with 4ms can sit idle for 16ms. I implemented the task for the DAQmx example 1000 per channel at a rate of 50 kHz, which should take all 20ms to the exit. I also checked the waveforms of entry the entry have 1 k samples and a detachment of the 2nd-5. When I went from the DBL 2D table has not changed. I want to emphasize that all data is sent into the 4 DC. It's confermed visulaly and with the node 'written examples.
I did a test where I hosted my VI to run as fast as possible. In this case, the output was a sine curve, but looking more closely, I found that the output frequency of 25 Hz 5 times faster than the signal that I sent to the writing DAQmx VI. In addition if you limit the loop to 10ms iterate the data is output for 4ms and the idle 6ms.
I know that everything is configured correctly. I rechecked the data I sent you the properties of the task. She should be out correctly, but it isn't. I tried calling support NEITHER and he was not particularly helpful.
The equipment I use is a PXI 6723 AO map. I will attach a vi that anyone could run and I will attach a picture of the exit on an oscilloscope. Thnak you for the help
-James
I solved my problem. I needed to add a calendar DAQmx and DAQmx writing change the task before entering the while loop. I use the calendar to set the mode of the sample and the source of the command, while simple DAQmx writing sends and matrix of zeros. With these added it works very well.
-James
-
"Waiting for socket available...". »
After the AC1200 of LINKSYS router I can not load some sites in my Chrome.
Chrome status bar continues to display: "Waiting for socket available...". "One of the Web sites not available for me is more Google search resutls.It works well with the previous router.
It works well when I bypass my LINKSYS AC1200 and connect directly to my cable modem.
It works fine from Firefox. It works even with the chrome in incognito mode.
Only the combination of LINKSYS AC1200 with my Chrome me goves this access problem.
No idea where to find do more "available for my Chrome sockets" ;-), please
Clear the cache of chrome.
Try IE 8, 9, 10 or 11, set the compatibility mode and test again.
Disable any security browser addons such as No Script and Ad-Block or set them to allow all Pages when it is connected to the router.
Clear all caches browser.
Don't forget to log on to the Admin account on the router.
Try disabling these features in Chrome:
Top right corner, few bars options > settings > settings (left) > see the advanced settings.
Uncheck the box for these:
Use a web service to help solve the navigational errors
Use a service forecast for complete searches and URLS typed in the address bar
Predict the actions of the network to improve the performance of page loading
Activate the protection from phishing and malwareWhich modem to ISP Mfr and model # you have?
-
Editing screen, but still wait for thread to return
I have an app that makes updates to the user interface through a reference to a bitmapfield a new thread, and that thread is updating the user interface.
The problem I have is that I want the main thread "wait" wire under update charts, before continuing with the "game".
so... for example...
// update the main bitmapfield pt = new PlayerThread(bfField,square); pt.start(); // wait for the thread to finish updating the ui while (pt.isAlive()){}
Now, I * KNOW * it is not the right way to do this, because the UI is not updated, because the user interface is in a loop waiting for the thread ends, which defeats the purpose of having the thread in the background in the first place.
What is the 'proper' waiting to do this? I completely missed the point to put on?
It works fine if I do not "wait" for the thread, but this means that the user can press the buttons, or interact with the game when they aren't supposed to.
I thought that there must be a way to define a 'isthreading = true' var and disable keys by adding an if statement to my keydown, but how can I make my app "waiting" for the thread, I created to be finished, but not really break the UI itself?
I hope that was clear...
You need a reporting mechanism indicating the UI thread "I'm done" or "the data is ready. Never loop in a UI thread - this will cause finally the event queue to overflow, which ask you dumped as "refractory".
A typical mechanism is to implement a listener and a data event. The "interested" party registers a listener with the background thread, the background thread fires the event data when appropriate.
If there is only a single listener, then it can be implemented with fewer resources by using a callback mechanism.
Search for references to the model of the observer:
-
Oracle 11 g 2 (11.2.0.3) Linux x86_64
A silly mistake was made. While recreate redo standby logfiles, I managed to remove (rm command) waiting for redo log file in progress (before the end of the application) of the BONE. Now I see in the log of alerts:
ORA-00313: open failed for members of log group 7 of thread 1 ORA-00312: online log 7 thread 1: ..../standby_redo7.log' ORA-27037: unable to obtain file status Linux-x86_64 Error: 2: No such file or directory Additional information: 3
What are my options at this point? I have to any cancelled transaction? The settlement seems to be moving right on the property. Where am I people?
Thanks to you all.
Hello
1 ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
2. ALTER LOGFILE GROUP 7 CLEAR DATABASE;
3 ALTER DATABASE DROP STANDBY LOGFILE GROUP 7;
4. ALTER DATABASE ADD STANDBY LOGFILE GROUP 7; OR ALTER DATABASE ADD LOGFILE MEMBER '
' HELPS GROUP 7; 5. START AGAIN APPLY: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CURRENT LOGFILE USING DISCONNECT FROM THE SESSION;
HTH
Tobi
-
CPU wait time is the time a virtual machine did get on demand, but the processor has
Nothing in the process and so the CPU to simply waiting for then the time scheduled for the virtual
machine clicks by.
CPU Ready is the time that the virtual machine is ready, but could not get scheduled to run on the physical processor.
Bascially ready cpu the prompt is queued on the host computer, waiting for cpu means that the host is queued on the prompt.
-
Waiting for CPU: what exactly does that mean?
Hi all
I worked on this database (11.2.0.3 on AIX 6.1) try to improve the performance of certain lots of an ERP system developed by my company. These are all processes that work very well in other environments, but here the clock times are horrible for the load and I was seeing 10% CPU, 90% CPU waiting for almost every process. This is the last section of a very long trace file where you can see the invisible "wait."
I know not how to do this: if I run something in the OS with a higher priority than to Oracle, what I will get. "Lack of processor" according to me, is the name for it. My question is: what else can cause this? If the OS say that nothing was on the computer, how can I study the root cause?
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 762529 3.24 16.60 0 3 0 0 Execute 8334641 5593.35 51349.14 344238 2115862 12349440 1341634 Fetch 7048666 1142.66 5978.90 385152 58108531 2068 7944263 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 16145836 6739.25 57344.65 729390 60224396 12351508 9285897 Misses in library cache during parse: 734 Misses in library cache during execute: 731 Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ db file sequential read 620864 0.62 4858.21 Disk file operations I/O 42 0.00 0.00 latch: shared pool 8 0.04 0.06 asynch descriptor resize 6 0.00 0.00 direct path write temp 2 0.01 0.01 direct path read temp 94 0.03 0.57 db file scattered read 2129 0.44 23.90 log file switch completion 15 0.12 0.98 latch: cache buffers lru chain 2 0.00 0.00 resmgr:cpu quantum 15 0.00 0.03 latch: object queue header operation 2 0.00 0.00 8180 user SQL statements in session. 609 internal SQL statements in session. 8789 SQL statements in session. 288 statements EXPLAINed in this session. ******************************************************************************** Trace file: dbkpv_ora_811258_ARREC_BXA_AUTOMATICA.trc Trace file compatibility: 11.1.0.7 Sort options: prsela fchela exeela 1 session in tracefile. 8180 user SQL statements in trace file. 609 internal SQL statements in trace file. 8789 SQL statements in trace file. 754 unique SQL statements in trace file. 288 SQL statements EXPLAINed using schema: KIPREV.prof$plan_table Default table was used. Table was created. Table was dropped. 25357662 lines in trace file. 57345 elapsed seconds in trace file.
marcusrangel wrote:
don't you think that it is possible that tracing would cause such a huge head?Your trace file contains 25 million lines, that is a significant amount of write operations, to be compared with the information that reads one-piece 620K consume dry 4858.
It is necessary to note that writing in the trace file leads to loss of time only when it is caused between measure of elapsed time from a visit to the database. But even if the write operation is due to the outside to measure the time of the call for a database (for example, information about a call, as FETCH #) it can be inside some call parent and will be included in the duration of the call of the mother.
If you are interested in the details of this process, I prepare an article on this topic in my blog.I would therefore recommend to reproduce a similar load without follow-up.
Published by: Alexander Anokhin on 12.07.2012 22:07
-
Stuck "waiting for the printer to be available."
After initially looking at it's going to print, the printer dialog box displays "waiting for printer to be available" and it's there (even if the printer - inkjet HP series C3800 - is ready).
Here is what I tried:
Using the HP utility software on the same computer, I am able to successfully print a test page, which rules out a problem with the printer and its connection to the computer.
Printing worked normally before moving on to the Sierra. I tried resetting the printing system and add new printer (Sierra recognizes very well). I also tried to run in case disk utility have a permissions problem.
I'm stumped at this point. Help much appreciated.
Same story, but with a HP Laserjet P3005dn, specific scenario, the exact symptoms, exact attempts to improve...
-
Hi8 thru cam HDV into FCP 7: waiting for timecode
Hello
I have a bunch of Hi8 tapes I want to capture on the drive by running through Sony CCD-TR400 on the Canon HV - 20 MBPro & FCP 7.
I can see the execution in the window capture, but when I hit capture now it gets no further than "Waiting for time code."
I guess the Hi8 analog, but hoped the Canon with its AV > DV option would treat his way through.
Any ideas?
Is the only way to do this would save on tape dv on Canon HV-20 and then capture the disk?
The best
Elmer
Hi8 uses only consumer re-writable (CCFC) timecode that is not readable by the PCF. In the FCP capture settings, set "Device Control" device not controllable and then use Capture now capture rather than in batches.
-DH
-
"waiting for encrypted google" does not allow me to open a Web site
When I try to open lifenews.com, which I visited many times, there is a message saying left down "waiting for encrypted google." I don't even use google chrome? I don't know where to go to get rid of it, I don't want nothing blocked unless I specifically ask to be blocked. I did the research, said it's a blur, said another security settings to uncheck the ssl2 and ssl3. Nothing works. Can someone tell me please how to remove this thing waiting for encrypted google.
You said blur, which is an add-on. Use the blur, or any extension of similar content filtering? If you think one of them might be the problem, you can test Firefox Safe mode. It is a standard diagnostic tool to disable extensions, hardware acceleration, and a few other advanced features of Firefox.
Does not work if Firefox: Hold down the SHIFT key when you start Firefox.
If Firefox is running: You can restart Firefox in Mode safe mode using either:
- button "3-bar" menu > "?" button > restart with disabled modules
- Help menu > restart with disabled modules
and OK reboot.
Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).
Any improvement?
-
iMessage is stuck at waiting for Activation.
Hello
I have iPhone 6 Plus with iMessage stuck waiting for activation. May that what's wrong with it? These are the work with other vendors if I insert the sim card. Is it something to do with the question SMS relay or something else?
Need help to solve my problem.
Thanks in advance.
If you get an error when you try to activate FaceTime - Apple Support or iMessage
-
How long should you wait for your apple account unlock
How long should you wait for your apple account unlock?
of > If your identifier Apple is locked - Apple supports
...
When you see one of these alerts, you can go to iforgot.apple.com to unlock your account with your existing password or reset your password. After multiple unsuccessful attempts to unlock your account, your identifier Apple will remain locked and you can try again the next day.
...
-
Extend my extreme network with another extreme - waiting for internet access
Hello - I have a new generation Airport Extreme (let's call it Extreme1) connected to a Comcast modem and it works very well. The extreme will be the router that the modem has no router function. I'm trying to expand my network to another room with another extreme (let's call it Extreme2). I have a connection cable between two rooms. Extreme1 has an ethernet cable from one of its LAN ports connected on port WAN Extreme2. When I try to create a new network with Extreme2 (in aid of the same name, passwords, etc.) it does not work. He was suspended at the end when he is looking for a connection ("Waiting for internet access")-I did the following things based on what I read here:
- Changed IPv6 link local parameters
- Tried the whole upward on my Macbook and tried on my iphone
- The Wan first and then tried to change the configuration after you done for Extreme2 by creating a network
- Tried to create a network with Extreme2 connected directly to the modem
- Extreme2 factory reset after every attepmt
And nothing works. Kicker is, I also have a reasonably new airport express and the same thing happens to her as well.
Do I need to adjust some parameters of network that I'm not aware of? Is it possible that my LAN ports are disabled on Extreme2? It is brand new.
Thanks for any help.
Have you used the Apple Setup Assistant? If you did, it had notified you that the extreme second was being configured "add using Ethernet. The wizard will automatically configure the second airport with the appropriate settings for you. All you have to do is enter a name of device for the second AirPort Extreme.
Here I'm assuming that you reset the second extreme to parameters by default until you set it up again and that your second Extreme is the current version of the "tower" or that of previous versions "flat or square.
The example below shows an AirPort Express as the device which is the extension of the network, but you will see the name of your network and AirPort Extreme on your configuration screen.
Post back if you need some tips on using the "Wizard" for your configuration.
-
photos has not been loaded for weeks (usually the browser chrome on PC windows at work). I tried now on some other computers and get the same error message and I report every time. is there anything I can do or just wait for someone to fix it?
If you want any help here, you'll have to tell us what the error message.
Which report you errors to?
Maybe you are looking for
-
After upgrade the iOS 10, HotSpot does not work
Can't wait to post that iOS 10 update, I could not access the personal hotspot option. I was previously using iOS 9.3.5 and hotspot worked as usual, appearing as an option under cellular. I had used it to connect my other phones to the internet and t
-
Silverlight is up-to-date. I looked at the options for Mac users but no luck.
-
Satellite C660 now does not connect to the printer via Bluetooth
I have a very small domestic network - 2 of the Satellite C660 using Windows 7 Home premium and a printer Photosmart more connected through BT Home Hub work all fine until a computer laptop suddenly cannot connect with the printer, well located 1 m f
-
Hello I'm running Windows 7 on a HP Pavilion P6000 series. Yesterday, I tried to launch HP Support Assistant and received a message that says 'this application has encourted a serious problem and must close ". Is there a virus associated with the s
-
Qosmio F10-100: startup problem - the system protection failure
Hello A few days ago, I started my Qosmio QF10-100 and an error, it says: Alert: System protection failure.Password =... I 'google' the error nothing helps, the solutions are not compatible with this type of laptop and I'm not going to pay someone to