How to create a chart using two independent loops while?
Hello world
I'm currently developing a program for the acquisition of data. In this program, I have two independent, while loops that each output a number of type double with each iteration of the loop. I am able to successfully create two independent waveform graphs (data / time) for each of the loops when placed inside. However, I now want to create a live data xy chart (the output of a loop is x and the output of the other is there).
I have a problem, that the distinct nature of loops... When I try to extract data outside of the loop (naturally), it is not refresh with each iteration of the loop causing the graph xy does not work in the way I intend. Is there an easy way to solve this problem? If more clarification is needed, please let me know!
David
If the two loops are not synchronized, exactly how do you do the xy graph, where each point, by definition, must have a value of each loop.
- updated when updates or the other value and combine with the last value from the other loop?
- updated on a constant basis with the current value of each loop?
- ... There are many other possibilities.
#2 is the easiest. Simply create a third loop with a reasonable time and graph the two values via local variables. You probably also should limit the history of ranking somehow.
Tags: NI Software
Similar Questions
-
How to upgrade a shift with two independent loops while register?
Hello everyone, I have a panel with two clusters with indicators control... a left and a right. I have messages from serial port, and I'm currently updating the left and the right within their own while loops. I have a single variable, which must be updated based on updates on both sides. Basically, I need follow the last selection update on each side... If I had 1, 2 and 4 on the left side and 3 on the right side... I would need to follow 4 was the latest updated the register shift variable for uses more in my vi. Can someone give me an idea how to upgrade this a variable based on two while loops that run independently in the same sequence context? Thanks in advance, cayenne
Thank you both of you for the suggestion.
I managed to find a way to get the values that I needed without EI... but I read the link to the Nugget in their subject, and I can't expect a use for them in the future.
Cayenne
-
How to create parallel tasks using parallel for loops
Hello
I'm going to put in place a program that communicates with the six logical controllers and must read the status of the system every 100 Ms. we use OPC datasockets for this, and they appear a bit slow.
I created a uniform method of comm. for all controllers, and now I find myself this method of programming six times to communicate with each system. I was wondering if it could be done more elegant using the parallel for loop, in which case I program an Exchange once and then six workers running simultaneously. Since a picture is clearer than a thousand words, what I'm asking is:
Is it possible to replace something like
by
and that for performing these tasks in parallel loop (on different cores / in different threads)?
I have configured the loop to create instances of the 8 to the compilation, so I would 2 surplus available when running instances if I find that I need an additional system.
The benefits of the Show method in the second photo for me are:
* takes less space
* changes need be made only once
* less blocks, son and other things makes it clearer what is happening.
* flexibility of the actual number of tasks running (8 available runtime instances)
* If multiple tasks are necessary, I need only update the maximum number of instances and recompile, i.e. no cutting and pasting necessary.
Unfortunately, I don't have these available system yet, so there is no way to test this. Yet, I would like to know if the above works as I hope - unfortunately the help of labview is not quite clear to me on that.
Best regards
Frans
Frans, the parallel for loop will work as expected in this situation. The six tasks will run simultaneously in different threads. What part of the aid could be made clearer?
-
How to create a table with two unique columns
How to create a table with two unique columns. I use the following syntax below and I get the error message such unique or primary key already exists.
create the table COPQ_WORKCELL_GOAL
(
Type_id varchar2 (4) NOT NULL UNIQUE,
Tyle_Location varchar2 (30) NOT NULL UNIQUE,
Type_Description varchar2 (20).
KEY elementary SCHOOL (Type_id)
);Use 1 or the other column type_id;
create table COPQ_WORKCELL_GOAL ( Type_id varchar2(4), Tyle_Location varchar2(30) NOT NULL UNIQUE, Type_Description varchar2(20), PRIMARY KEY (Type_id) ); Table created drop table COPQ_WORKCELL_GOAL; Table dropped create table COPQ_WORKCELL_GOAL ( Type_id varchar2(4) primary key, Tyle_Location varchar2(30) NOT NULL UNIQUE, Type_Description varchar2(20) ); Table created
-
How to create IT strategy using the BES administrator API
Hi all
Can tell me, how to create IT strategy using the BES administrator API.
Please provide me with the code example.
Thanks in advance.
Kind regards
Sampath
Hi Sebastian,.
The Administration of BlackBerry API does not support the creation of it political. This feature is currently with the development of control and review for a future version of the BlackBerry Web Services for the Administration of the company.
Kind regards
-
How to create a JPEG of two JPEGs placed side by side?
How to create a JPEG of two JPEGs placed side by side?
Oh... Thank you very much SO!
Philippe
-
How to create screen saver using the java bean
Hi all
can someone knows how to create screen saver using java beans?
Thanks in advance.
SarahIt is a strange requirement, but you can go
A TIME-NEW-FORM-INSTANCE:
DECLARE timer_id Timer; one_minute NUMBER(5) := 60000; BEGIN timer_id := CREATE_TIMER('chnage_color', one_minute, REPEAT); END;
WHEN-TIMER-EXPIRED:
DECLARE RandomR NUMBER(10):=dbms_random.value(1,256); RandomG NUMBER(10):=dbms_random.value(1,256); RandomB NUMBER(10):=dbms_random.value(1,256); BEGIN SET_CANVAS_PROPERTY('CANVAS2',BACKGROUND_COLOR, 'R'||RandomR||'G'||RandomG||'B'||RandomB); END;
-
How to create the custom using Javascripts in PLM for Agile process validator
I have already created customized using ASP.Net validators. But now I need to create custom using Javascript validator.
Please provide me the details
1. how to create custom validator and where to create?
2 provide me with code samples for custom validators javascripts
Thank you
Floquet
I am currently using 6.1.1.5
-
How to create the report using the procedure.
Hi all
I want to create the report in the apex. But I don't have a sql code. I have a single procedure. Is it possible to create the report using this procedure in the apex.
CREATE OR REPLACE PROCEDURE headcsv_prc2
AS
CURSOR cr_header
IS
SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME."
FM.formula_vers AS "FORMULA_VERSION."
FM.formula_desc1 AS "FORMULA_DESC."
DECODE (fm.formula_status,
100, 'new ',.
400, "approved for use in the laboratory."
700, "allow the general."
800, "We Hold."
900, "frozen."
1000, "obsolete/archived.
) AS "FORMULA_STATUS."
DECODE (fd.line_type, '1', msib.segment1).
DECODE (fd.line_type, '-1', msib.segment1 ') ingrediant.
DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT."
DECODE (by_product_type,
"W', 'waste."
"R',"rework. "
"Y', 'Yield."
The of ', 'Sample. "
NULL VALUE
) AS "BY_PRODUCT_TYPE".
Of org_organization_definitions ood,.
fm_form_mst fm,
fm_matl_dtl fd,
mtl_system_items_b msib
WHERE ood.organization_id = fm.owner_organization_id
AND fm.owner_organization_id = msib.organization_id
AND msib.organization_id = fd.organization_id
AND fd.organization_id = ood.organization_id
AND fm.formula_id = fd.formula_id
AND msib.inventory_item_id = fd.inventory_item_id
- and fm. FORMULA_NO like '% THE % '.
AND fd.line_type IN ('1 ', ' 2', '-1' ")
Ood.organization_code GROUP,
FM.formula_no,
FM.formula_vers,
FM.formula_desc1,
FM.formula_status,
FD.line_type,
MSIB. Segment1,
by_product_type
ORDER BY fm.formula_no, fm.formula_vers;
BEGIN
Dbms_output.put_line (INITCAP ('the ORGANIZATION CODE')
|| ','
|| INITCAP ('NAME FORMULA')
|| ','
|| INITCAP ('FORMULA VERSION')
|| ','
|| INITCAP ('FORMULA DESC')
|| ','
|| INITCAP ('FORMULA STATUS')
|| ','
|| INITCAP ('PRODUCT')
|| ','
|| INITCAP ('INGREDIANT")
|| ','
|| INITCAP ("PER PRODUCT")
|| ','
|| INITCAP ('PER TYPE OF PRODUCT")
);
FOR ch IN cr_header
LOOP
Dbms_output.put_line (ch.organization_code
|| ','
|| ch.formula_name
|| ','
|| ch.formula_version
|| ','
|| '"'
|| ch.formula_desc
|| '"'
|| ','
|| ch.formula_status
|| ','
|| ch. Product
|| ','
|| ch.ingrediant
|| ','
|| ch.by_product
|| ','
|| ch.by_product_type
);
END LOOP;
EXCEPTION
WHILE OTHERS
THEN
Dbms_output.put_line (' No error: ' |) SQLCODE. "Error Msg: ' '.
|| SQLERRM
);
END;
EXEC HeadCSV_Prc2
Thank you
Rambeau
Hi Christian,
In addition to the fact that the Oracle database has an internal Java engine and it would be possible for Apex call a Java stored procedure, the Apex really has nothing to do with Java. To create a report, you discovered, you specify a SQL query. In certain circumstances, you can embed a query in a PL/SQL function, but the incorporation of an arbitrary Java application and waiting for it to be called from Apex for a kind of security is there with the fairies.
I recommend you research the Apex and then enter your so-called "higher authorities" how things work.
Concerning
André
-
How to create vSwitch distributed using vicfg-vswitch?
I was looking for to vSphere command-line Interface documentation to create the vswitches distributed using the CLI.
http://www.VMware.com/support/developer/VCLI/
But I couldn't find a way. So I would like to know, is it possible to create a dvSwitches using the CLI?
If it is not possible through CLI, then what is the opposite?
Unfortunately, my development environment is always downwards, otherwise I can whip up a small example.
But when you say it is no examples around, there are actually many examples using the SDK including the vSphere SDK for Perl. If you look at the source code of the any orders vCLI, you will notice that they are all written in Perl, and it is not surprising, he uses the vSphere SDK for Perl. Yes, there may be no examples for each use unique case or operation that can be performed against a host ESX/ESXi and vCenter, which is the same for given PowerCLI, the functionality is there in the API.
If you are new to VMware SDK/API and is interested to develop or create your own scripts, I'd take a glance at this document first - Getting Started with vSphere SDK - Update for SDK 4.1 release. Depending on your comfort level, you will choose an appropriate SDK (vSphere SDK for Perl, PowerCLI, VI Java, c#, .NET, etc.) to the script or program in. Some SDK will be easier to learn as PowerCLI, VMware has done a great job using the Powershell language to abstract much of the complexity of the vSphere API made it really simple to jump to the right, if you still need to understand what is happening and how the operations are actually called. The default value 100-200 + cmdlets cover most of the basic use cases, but once you start getting into more complicated scenarios, then you need to really understand the vSphere API to extend the functionality, including things like creating a vDS and distributed of the exchanges, etc.
Here is a guide on getting started with vSphere SDK for Perl - Getting Started with vSphere SDK for Perl and here a collection of vSphere SDK for Perl scripts that I've written scripts repository vGhetto. Another excellent resource is the forums for developers as well as for the vSphere various API/SDK - http://communities.vmware.com/community/developer
Bottom line is, everything that can be done via vSphere Client can be done using the API vsphere and with one of the vSphere SDK, it can still be trivial, but the functionality is there, you can simply create it if there isn't an example/sample code.
=========================================================================
William Lam
VMware vExpert 2009
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
Introduction to the vMA (tips/tricks)
Getting started with vSphere SDK for Perl
VMware Code Central - Scripts/code samples for developers and administrators
If you find this information useful, please give points to "correct" or "useful".
-
How to create this site using Dreamweaver?
I just finished a course of the basics of Dreamweaver and I would like to enter into a more advanced stage.
This is the site I want to create:
www.safaribig5.com
Could someone please help me understand whether it is possible to create a website using Dreamweaver? If so, HOW?
Thank you.
The cursor is a plugin called Galleria
The image gallery is a plugin called Flowslider jQuery
The page is a fundamental provision of 2 columns fixed centered width.
http://ALT-Web.com/templates/CSS-Basic-2-column-layout.shtml
Having said all that, you need to learn the theory of web design of base first and all that you can in HTML & CSS. He had to learn.
HTML CSS & Web Design theory tutorials.
http://webdesign.tutsplus.com/sessions/Web-design-theory/
Nancy O.
-
How to create a certificate using the keytool / terminal?
I have problems with the creation of certificates using the Terminal. I use the instructions below and exactly all the information required. When he asks me to type 'Yes' and confirm, the whole process starts right at the beginning over and over and I have to type in the same things. Do I did wrong? How can I confirm the information I typed in?
I'm trying to create a certificate to sign the apps for GooglePlay and Amazon. I use professional DPS.
Thanks for the help!
Directions for use:
(Mac OS) Create a certificate using Keytool
Open Terminal, located in Applications > utilities.
Type (or paste) the following line (replace "myname.key.p12" with the actual name of your certificate):
1
keytool - genkey - v - keystore myname.key.p12 - alias alias_name - keyalg RSA - keysize 2048 - stores pkcs12-validity 10000
The "10000" specification sets the expiration date after 22 October 2033.
Enter and enter a password. Until the Viewer constructor supports the creation of custom Android applications, it is necessary to share this password with Adobe. Create a password that you can share.
Follow the prompts to specify the certificate information.
When you are prompted to confirm the choice, enter Yes and press return to use the same password.
A certificate is created in your quick location, such as your user name folder. Copy the certificate file to a known location. Note the password as well.
It could be access question. Enable the root user, and then try again.
-
How to create a chart for the exact values in PivotTable
Hi all
How can I create a graph exactly indicating swivel values. I created a PivotTable and suppress the display of the table. When I create the chart it does not show the graph for the pivot table values.to do this, you must modify pivot table properties, and then select chart pivot results tab in the top middle... hope this helps
-
How to CREATE a DIRECTORY using local directory
Hi all
I want to get some data to the local computer from the remote database service, so I use a stored procedure to get these date and save them in a file before you perform the procedure, I have to CREATE a DIRECTORY ensures that the path of the file.
I use to CREATE a DIRECTORY on the local computer OCCI using, as: "CREATE or REPLACE DIRECTORY MSGDIR AS 'C:\test'" and I can't find the file in C:\test, I found the answer on the internet about this problem, it seems that use to CREATE a DIRECTORY on the database of service rather than on the local computer.
Anyone know how to CREATE the local directory to use?
Or give me advice to get the data to the local computer in my case?
Best regards.It looks that CREATE DIRECTORY use the directory on the database service rather than local machine.
Exactly. Where it States Furthermore?
Anybody knows how to CREATE DIRECTORY use local directory? Or have any advice to get data to local machine in my case?
1 all simply cannot do it. It is not possible, because this would be a serious security breach.
2 of course, you can share the directory on the server to the network and configure a share on your local machine.
It's so simple, most people think about it.
You might also consider using Apex or utl_http directly.-----------
Sybrand Bakker
Senior Oracle DBA -
How to create a relationship between two blocks
Oracle forms 6i
Hai All
I've created a form that I have four button ADD, QUERY, SAVE, EXIT.
I have two block named head and members.
Four Chief areas namely block unitid, deptcode, codeno name.
When I pressed the query button, and the cursor goes to the Chief name field when I enter the name of the leader and click
Enter I give the codeno, the deptcode and the unitid of the leader_name.
so now, I created another block in a tabular structure to bring members in the same deptcode that belongs to Leader_name.
So pls tell me the steps how to create the relationship between these two blocks.
When I enter the leader_name and gives enter need to bring the codeno, the deptcode, the unitid and
I also need to give the members of this deptcode...
Thanks in advance
Srikkanth.MTo write, only State a selection:
:blk2.item = :blk1.item
François
Maybe you are looking for
-
The screen sharing / video conference
Hey guys,. I'm trying to understand the best way to share my screen with a number of customers all over the world. I recently saw that iMessage, now called Messages, can make screen sharing. So I try to know if everyone can use Messages in order to s
-
Stuck on "Never remember history" privacy settings
I want to "Use the custom settings for history", but Firefox guard returning to "never remember history" no matter what I do.It happens with FF on Win7 and Win8 18.0.2.
-
Satellite M45 - S351 - port PCMCIA does not work
Help! I have a M45-S351. My PCMCIA slot is not working.When I go into Device Manager there are problems with the system Interrupt controller, SD slot & some unknown PCI device.Windows cannot locate the drivers. I downloaded all the drivers from the T
-
Hello WE HAVE AN EDGE THINKCENTRE 72 (3493) WHICH WILL NOT BE DOWN LOADED PPVIEWER IT SAYS WINDOWS INSTALLER IS NOT CORRECTLY INSTALLED 1719 ERROR CODE WE DO NOT HAVE A PANEL OF DEPARTURE AS WE HAD IN XP IT IS CURRENTLY RUNNING WINDOWS 7 (64-BIT) HOM
-
just downloaded windows 7 ultimate throught (the anytime upgrade feature) and now it won't turn on... Please help