Problem updating my state machine, using the emg signal
Hello
I have problems with my code. My entry is an EMG signal that I gather from three different electrodes using usb 6008. In the program, I divide the signals and display them in a chart that is unique. What I want now is to read the signal, and if a signal passes a threshold I want an LED lights. This must remain lit until there is another signal that passes the threshold.
To put it simply: "large enough signal--> lamp on--> stay informed--> enough large signal--> lamp--> stay off the coast and then start again."
I tried a few different approaches, but I decided using a state machine. Now, the problem is that when the signal to enter the state machine the program crashes. I think it's because the table that I use to convert the signals does not update when I get my state machine, so the signal stops to come. But how to get around this problem? It is even possible to code what I want?
I have attached the code. All the tips are welcome, I have been struggling with this for some time now.
Thank you
jenmich
The problem is internal while the loop is run until the stop condition is true, but he never does a new Boolean entry. So that it remains for always in the same State. Remove the inner loop and put the shift register on the outer loop instead.
You must also use a daqmx configures the element, and then set the properties of daq. The read.vi can be set to read a number of samples of each iteration.
Also: you can expand the table to index for several items of output. If you want that element number 0, 1, and 2, you have yet to wire the index entries
Tags: NI Software
Similar Questions
-
Hello
I'm trying to update my applications by using the desktop creative cloud application. I see not all the apps in the app tab, the wheel just spins in circles and nothing happens. Someone at - it ideas? I tried to uninstall office and reinstall, but it still has the same problem.
See you soon
Rachel
Hi Rachel,
You can follow the article: App does not open. Wheel of progress turn continuously to get your landline number.
Let us know if the problem persists or not.
Kind regards
Yann Arora
-
Problem with lines in Illustrator using the Wacom Tablet
Hi all
I have no idea why I'm having this problem in Illustrator. I use the small Intuos Pen Tablet (CTL-480), and my lines in illustrator is really strange. Even when I turn off the pressure in the brush settings, there is a gap in the line (it takes just one line of the same thickness). The Tablet works perfectly in Photoshop, but because I use the tablet to create art using plates (typography), it is easier and better for me to use illustrator. You are not sure that someone else had a similar problem or know maybe a setting I could change or try to fix it?
I have attached a picture of the problem.
Thank you for your help.
This is a known issue.
If all you want is a line single width, do not use brushes. Use the pencil tool and a simple blow
If you apply a calligraphy brush, apply the effect zig - zag to it with a value of 0, then a setting of about 100 (turn on the preview to adjust)
-
How to install an operating system on a virtual machine using the ISO file?
Hello
I use vmware workstation version 6. I have different kinds of opersting systems likeFedora, Ubuntu, Windows xp CD to install on my virtual machines using the CD-ROM drive. . I want to know is possible to install a virtual machine via an ISO file?
Thank you
mypass
Yes
Click on "Menu" > "new" > "virtual machine".
Click on "Customize."
Select "next".
Select "install-disk (iso)".
Click 'Browse '.
the rest is explained
_________________________
VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual
-
State machine with the help of event
Hello everyone,
I have a question on how to achieve the "Timeout". In the diagram below, you can see 2 different situation:
1. in the 1st case, I used the state machine, it starts in State 1, that contains a case of event. From there, it will first be determined, if the input value has changed in 10 seconds, if it didn't, the state machine will go to State 2, if it is changed, will also be determined, if the value equal to 3, if so, input the distributor of State will in State 3, if not, go back to the State 1. (this VI I've done it before, you can take a look at the attachment).
2. my question is in the 2nd case. He also started the State 1. Here, the input value can also be changed (once or several times) or not. If the value has not changed within 10 s, or even if it's been changed many times within 10 seconds, but it was never equal to 3, the state machine will go to State 2. only when the value of the entry within 10 seconds equal to 3, he can jump to State 3.
This problem, I do not know how to solve, everyone has no idea or improve methods?
Thank you very much!!
My bad, dint tested before posting (in addition to kills confidence)...!
Let me know, if it works this time...!
-
Need to check delays in update of 1000 lines using the PL/SQL procedure.
Hi all
I'm new to PL/SQL. I need your help to build a procedure that executes the following statement and follows the time of update of 1000 rows. This is to check the performance of the database. I need to print the timestamp of start before the update and end timestamp after update. I need to do for the 1000 lines. The statement that will be used in the procedure is:
SELECT
'UPDATE XXAFL_MON_FACTS_F SET TASK_WID =' | NVL (TO_CHAR (TASK_WID), 'NULL') |', EXECUTION_PLAN_WID =' | NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL').
', DETAILS_WID =' | NVL (TO_CHAR (DETAILS_WID), 'NULL') |', SOURCE_WID =' | NVL (TO_CHAR (SOURCE_WID), 'NULL') |', TARGET_WID = ' | NVL (TO_CHAR (TARGET_WID), 'NULL').
', RUN_STATUS_WID =' | NVL (TO_CHAR (RUN_STATUS_WID), 'NULL') |', SEQ_NUM =' | NVL (TO_CHAR (SEQ_NUM), 'NULL') |', NAME = "' | NVL (TO_CHAR (NAME), 'NULL').
"', NO_POSITION =" ' | NVL (TO_CHAR (INSTANCE_NUM), e ') | " ', INSTANCE_NAME = "' | NVL (TO_CHAR (INSTANCE_NAME), 'NULL').
"', TYPE_CD =" ' | NVL (TO_CHAR (TYPE_CD), e ') | " ', STATUS_CD = "' | NVL (TO_CHAR (STATUS_CD), e ') | " ', START_TS =' | NVL (TO_CHAR (START_TS), 'NULL').
', END_TS =' | NVL (TO_CHAR (END_TS), 'NULL') |', DURATION = ' | NVL (TO_CHAR (DURATION), 'NULL') |', STATUS_DESC = "' | NVL (TO_CHAR (STATUS_DESC), 'NULL').
"', DBCONN_NAME =" ' | NVL (TO_CHAR (DBCONN_NAME), e ') | " ', SUCESS_ROWS =' | NVL (TO_CHAR (SUCESS_ROWS), 'NULL').
', FAILED_ROWS =' | NVL (TO_CHAR (FAILED_ROWS), 'NULL') |', ERROR_CODE = ' | NVL (TO_CHAR (ERROR_CODE), 'NULL') |', NUM_RETRIES =' | NVL (TO_CHAR (NUM_RETRIES), 'NULL').
', READ_THRUPUT =' | NVL (TO_CHAR (READ_THRUPUT), 'NULL') |', LAST_UPD = ' | NVL (TO_CHAR (LAST_UPD), 'NULL') |', RUN_STEP_WID = "' | NVL (TO_CHAR (RUN_STEP_WID), 'NULL').
"', W_INSERT_DT = ' | NVL (TO_CHAR (W_INSERT_DT), 'NULL') |', W_UPDATE_DT = ' | NVL (TO_CHAR (W_UPDATE_DT), 'NULL').
', START_DATE_WID =' | NVL (TO_CHAR (START_DATE_WID), 'NULL') |', END_DATE_WID = ' | NVL (TO_CHAR (END_DATE_WID), 'NULL') |', START_TIME =' |
NVL (TO_CHAR (START_TIME), 'NULL') |', END_TIME =' | NVL (TO_CHAR (END_TIME), 'NULL'). "WHERE INTEGRATION_ID ="' | INTEGRATION_ID | " « ; » OF XXAFL_MON_FACTS_F;
The above query creates instructions of update that must be executed 1000 times and the time required to update the 1000 lines should be followed.
Thanks in advance!
Code horribly wrong!
Why this approach?
Dynamic SQL is almost NEVER needed in PL/SQL. And if you think it's necessary and taking into account what is displayed as being problems here, you have a 99% chance of being wrong.
This 1% where dynamic SQL is necessary, he will WITH bind variables to create shareable SQL, decrease memory requests, decrease the likelihood of a fragmented shared reel and decrease the burning CPU cycles on hard analysis.
An example below. Your approach is the 1st. One that is slower than the correct approach to 37 (x_!) ...
SQL> create table t ( n number ); Table created. SQL> SQL> var ITERATIONS number; SQL> exec :ITERATIONS := 100000; PL/SQL procedure successfully completed. SQL> SQL> SQL> TIMING START "INSERTs using Hard Parsing" SQL> declare 2 i integer; 3 begin 4 for i in 1..:ITERATIONS 5 loop 6 execute immediate 'insert into t values ('||i||')'; 7 end loop; 8 commit; 9 end; 10 / PL/SQL procedure successfully completed. SQL> TIMING SHOW timing for: INSERTs using Hard Parsing Elapsed: 00:02:00.33 SQL> SQL> TIMING START "INSERTs using Soft Parsing" SQL> declare 2 i integer; 3 begin 4 for i in 1..:ITERATIONS 5 loop 6 execute immediate 'insert into t values ( :1 )' using i; 7 end loop; 8 commit; 9 end; 10 / PL/SQL procedure successfully completed. SQL> TIMING SHOW timing for: INSERTs using Soft Parsing Elapsed: 00:00:06.06 SQL> drop table t; Table dropped. SQL> create table t( n number ); Table created. SQL> SQL> SQL> TIMING START "INSERTs using a single parse and repeatable statement handle " SQL> declare 2 i integer; 3 begin 4 for i in 1..:ITERATIONS 5 loop 6 insert into t values ( i ); 7 end loop; 8 commit; 9 end; 10 / PL/SQL procedure successfully completed. SQL> TIMING SHOW timing for: INSERTs using a single parse and repeatable statement handle Elapsed: 00:00:04.81 SQL>
-
Timing of a State Machine in the States
Hi LabView community.
I'm running a state machine (attached) in which I want to measure the duration that the VI is running in several States. The VI is used to take spectra of power of various samples. My scheduled execution goes like this: the user selects on the front panel, how many times they would like to see the data taken. After pressing start on the front panel, a timer starts. When the machine is in State of 'Waiting', I would like to have the VI wait the amount of time the user has selected the amount of time that has elapsed since the user pressed start. So, for example, if the user wanted a spectrum taken every 15 minutes and the time since the departure was 13 minutes, I would like the program to wait for 2 minutes, then repeat.
If someone could help me with this, it would be much appreciated!
Thank you in advance.
You just need to save in a shift register either time has begun the activity. Or the sum of the amount of time that has already elapsed.
PS: You used a large number of local variables and none of your terminals. Good number of these local variables should also be so shift registers.
-
I have a client system that runs an ISAM application, which worked OK on the SBS 2011 machine and windows XP SP3 machines
The client has since upgraded its workstation to windows 7 x 64 workstations and ISAM application provider recommends that disable us opportunistic locking and also SMB v2 (e.g. force the workstation to communicate via SMB v1)
We followed the steps described in the various sections of Microsoft KB (2696547 & 296264), and as a result still having very slow network performance.
Then we found another reference external from the Microsoft site on disabling SMB digital signing, due to the use of SMB v1, and how that can sort out the problem with the speed of network problems.
The customer had it since and it has improved performance, but it's still not at the same speed, as it was on Windows XP clients.
is there a way to force windows 7 and SBS 2011 to use SMB 1 protocol and completely disable SMB 2, or we should create a new Member Server to use this ISAM application for sharing files.
the application is integrated in the line of business customers to change with a huge expense, but the seller request said that intend it to upgrade applications to use some form of plan of database in the future, but it is at least 12 to 18 months away.
Hello Paul,
Thanks for posting your query in Microsoft Community.
I understand that you have issues with Windows 7 and SBS 2011 uses SMB 1 protocols and completely disable SMB 2. So I would advice to follow the link below to post your query in the TechNet forums, because they have more expertise on this issue.
TechNet forums
http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itpronetworking
I hope this helps. Otherwise, feel free to write us again and we will be happy to help you.
Thank you
-
Create a virtual machine using the ubuntu (host of W7) partition
I am running Windows 7 and 8 of VMware Workstation.
The disc is actually a raid-0. There are 3 partitions: (Dual-boot)
-Ubuntu (64-bit)
-System reserved Windows
-Windows (64-bit)
I am trying to create a virtual machine under W7 using the Ubuntu partition.
I tried 2 things for step 'select a physical drive:
-Use individual partitions. The problem is at the end, when you click Finish. I get the error: "one of the provided parameters is not valid."
-Disc use whole. The virtual machine is created, but when I turned on, I get the error:
"Could not open the disk ' C:\. [..] \Ubuntu 64 - bit.vmdk' or one of the snapshot disks it depends on.
Reason: the physical disk is already in use. »
Thank you in advance for answering,
Kind regards.
In my tests I couldn't use a host physical diskwith a Windows 7 without setting the disc 'offline '.
But then you can set the diskette from Windows Startup 'offline '.Using Linux or 2003, you don't have this problem.
-
Problem with Textfield autocomplete-->; only use the INSTR function
Hello team dev,
I use the new "textfield autocomplete" item type APEX and you have a crazy problem with it.
I have a table with an index on the same column I want to search with AutoComplete field.
Index:
Select which is automatically generated by APEX 4:CREATE BITMAP INDEX TEST.GEO_DATA_IDX1 ON TEST.GEO_DATA (postcode) NOLOGGING TABLESPACE TS_INDEX;
The APEX 3, I used the addon of Tyler Muth with my own Select:SELECT a.* FROM ( SELECT DISTINCT postcode AS RV FROM TEST.GEO_DATA WHERE country_id = :P1_COUNTRY ORDER BY 1) a WHERE INSTR ("RV", :p$_search_string) > 0 AND ROWNUM <= :p$_max_rows; -- plan Plan SELECT STATEMENT ALL_ROWSCost: 4,308 Bytes: 45,31 Cardinality: 1,97 2 SORT UNIQUE Cost: 4,307 Bytes: 45,31 Cardinality: 1,97 1 TABLE ACCESS FULL TABLE #TABLE# Cost: 4,306 Bytes: 47,311 Cardinality: 2,057
Is there a chance to get my INDEX used by the new element of the APEX? I do not. But I still want to ask before I just rebuild. :)SELECT DISTINCT postcode AS DV, postcode AS RV FROM TEST.GEO_DATA WHERE country_id = L_COUNTRY AND postcode like l_search||'%' ORDER BY 1 -- Plan SELECT STATEMENT ALL_ROWSCost: 840 Bytes: 152,867 Cardinality: 13,897 8 SORT ORDER BY Cost: 840 Bytes: 152,867 Cardinality: 13,897 7 HASH UNIQUE Cost: 838 Bytes: 152,867 Cardinality: 13,897 6 VIEW VIEW index$_join$_001 Cost: 836 Bytes: 232,111 Cardinality: 21,101 5 HASH JOIN 2 BITMAP CONVERSION TO ROWIDS Cost: 31 Bytes: 232,111 Cardinality: 21,101 1 BITMAP INDEX RANGE SCAN INDEX (BITMAP) #INDEX# 4 BITMAP CONVERSION TO ROWIDS Cost: 45 Bytes: 232,111 Cardinality: 21,101 3 BITMAP INDEX SINGLE VALUE INDEX (BITMAP) #INDEX#
Best regards
TobiasHi Tobias,.
I guess that you are currently using "contains and case sensitivity ' to the attribute of"search ". Have you ever tried out "Exact and case sensitivity? Because that internally uses the LIKE operator as does your original query and the % is at the end, she must allow the use of an index. But it might still work, because ORDER BY can be run at a different time in your original example, but it's worth a try.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
How to fix the phone. Software of office says "cannot communicate with the device.
Hi and welcome to the Forums!
Good job on the recovery! But all is not lost for your data. If you did the update via your PC, then in the early stages of the process should have been a backup of your data (assuming you do not defeat this feature). If you're on a PC, then look for in your entire hard drive to a file with the extension of the IPD (*.) IPD)... check the date and time of the results... created more recently is your best candidate and if all goes well, it was created at the time you did the update. Use this procedure to restore this file:
- KB10339 How to use BlackBerry Desktop Manager to restore the data to a BlackBerry smartphone from a backup file
If you use a MAC, I don't know how he does things, but maybe this KB is useful:
- KB18776 Back up and restore BlackBerry smartphone data on a Mac using BlackBerry Desktop Software 2.0
If you performed the update OTA or otherwise circumvented the backup data, then you are indeed no chance.
Good luck!
-
JDeveloper 12.1.2 has a problem with links when you use the data bean control
Build JDEVADF_12.1.2.0.0_GENERIC_130608.2330.6668
The problem that I am facing is:
I used the data bean control to create our user interface. After that I dragged my jsff page data control, links have been created.
I opened the XML pagedef to my page. On the Bindings tab and executable, I added a few links more by clicking on the Green plus sign. After I saved my changes, I noticed that some other links have been replaced by a link to the different executable files.
This behavior occurs almost everytime I have edit links. Does anyone else see this problem?
It looks like another instance of the bug described in https://java.net/jira/browse/ADFEMG-156
This bug is fixed in 12.1.3. If you need the fix in 12.1.2 you should open a SR with support.oracle.com and ask a backport.
Timo
-
My background color changes when I try to apply it. I put the color using the color picker. Then I try to create a new document with the same background color. But that change of a very different color. What I am doing wrong? I've used the previous procedure, several times, without this problem.
The new document has a different color profile. Make sure that they are the same.
The same result of RGB numbers in different colors in different color spaces. Or in other words, the color space defines the specific color produced by a certain set of numbers.
-
Problem with burning a DVD using the AVCHD format
I just finished on a video project of 19 minutes (photos and short video clips), and I was able to burn it to a DVD in standard quality with first Elements 10. When I try to burn AVCHD, however, I get an error just until it's ready to start burning. It encodes all media and all switches to the menu burn when the "error" appears. There is no other explanation. I also tried to burn to a folder and I get the same result.
I used the first items 10 for 4 years to do this same type of project, and I was able to burn on AVCHD successfully in the past. Any ideas why it doesn't work anymore?
Specifications of the computer: desktop computer Dell Inspiron 3847, processor i5 12 GB of RAM, 1 TB hard drive w / 770 GB free.
I appreciate all help.
A.T. - I finally thought to it. After I had removed 3 of 4 songs and their respective video clips / photos in the problem project, I took a thorough review to the media with the rest one song left to see if there was something unique about. As I mentioned earlier, I had all the different file types in the project problem included in the test project, and the test project had burned successfully to AVCHD. After having scoured what was left of my files, I found a picture that I had used the effect of the "line of demarcation" (edit - effects - line drawing). I decided to remove the effect to see what would happen. Once I did, I was able to burn this new project to test a DVD AVCHD (a value of 1 only one song from the media). I then made the same change to my complete project and then it worked.
Very frustrating, but I'm very happy that I found the culprit. I note that I used a couple of the photo / video effects projects successfully, but never this 'dividing line' a before. I would warn anyone against using it now!
In response to a recent question, I was not able to burn a folder when I had this problem either (4.7 GB).
Thanks again for your help. I really appreciate that people are available to help solve the problems of this kind.
Happy holidays!
-
Problems with Weaver of dreams using the creative cloud
Hello
I downloaded the creative cloud in order to to use the Weaver of dreams (for my college
class). I have no knowledge on this program, I watched the tutorials on
the adobe and of course YouTube Web site. Everytime I open CC and attempt
to open the app to Dream Weaver... it does work for me. I did something
bad, do I need special software? I need all the help I can get with
This thing, thank you very much!
Jessica Reed
If you try to open the DW of the CC desktop app, that will not work. The application of CC desktop is only for download, install and update the program (and a few extras).
You will need access to your Applications (Mac) folder or in your Program Files (x 86) (PC) folder, and then to Adobe > Dreamweaver (your version) to find your actual application file. Create a shortcut or alias on your desktop to this file for future use.
Maybe you are looking for
-
Inspector memory in Firefox Devoloper
When I select the storape Inspector, it looks that the Panel does not work. The problem is on a Web site I visit (even after a refresh or hard refresh)
-
Cannot start a new conversation with relay of sms on the Mac or iPad.
Very strange problem and I have tried seemingly everything. SMS relay works fine on all my Apple devices. I can send and receive messages either SMS or iMessage. However, I can't start a NEW conversation with relay. I can only answer to the conversat
-
Equium A300D - 13 X - Configration system data read error
Hello I have a problem with my Equium A300D - 13 X laptop, everytime I turn on my laptop it starts and loads the initial startup screen as usual, Toshiba once asked that loud "BEEP" comes from my laptop, and lists the following information: Phoenix T
-
The PCIe for USB 6211 OEM replacement
Hi you all,. We want to change our design to use PCIe card data acquisition, since we had a few USB driver problem in the past. Is the PCIe-6321 a good match to replace the capture USB-6211-OEM card Is there a better alternative? Thank you Fabrice
-
I have Norton 2010 on my computer crashed and I had now repair. I would use it but it tells me that it must be reregisterd how do I lost my activation code