2 directional variable
Hello
Can I set a variable directional 2 (indicator and control)?
I am trying to insert data into a digital waveform and extarct this wavefrom and transfer data
It's assistant Daq (defined for digital output).
Is there another way to achieve this?
Thank you
Leonid
may I suggest you have alook to attend labview core 1 and 2 basic training courses, they will help with many of your questions, in the meantime a lot of tutorials on the Web site can help with what norbert suggested
Tags: NI Software
Similar Questions
-
How to insert directly variable cursor in a table
Hi all
I use an attribute % ROWCOUNT cursor and I would like to insert the value into a table. When I try to do this directly, I got the error ORA-00911 invalid character. Inserting however more intermediate variable works. No idea why?
Consider that I have a table called une_table with for example two rows and SOME_TABLE2 with a column of type NUMBER (10) for example. Then I try to run the code like this:
DECLARE
CURSOR cur_Test IS
SELECT * FROM UNE_TABLE;
BEGIN
FOR c IN LOOP cur_Test
DBMS_OUTPUT. Put_line (cur_Test % RowCount); -This line is ok
INSERT INTO SOME_TABLE2 (COL1) VALUES (cur_Test % ROWCOUNT); - here, it fails
END LOOP;
END;
However when I run it like this:
DECLARE
I have SEVERAL;
CURSOR cur_Test IS
SELECT * FROM UNE_TABLE;
BEGIN
FOR c IN LOOP cur_Test
DBMS_OUTPUT. Put_line (cur_Test % RowCount); -This line is ok
I: = cur_Test % ROWCOUNT;
INSERT INTO SOME_TABLE2 (COL1) VALUES (i); - now it works
END LOOP;
END;
I guess that the character '%' the cause of the problem. Maybe there is some way of backslash or something?
Of course I can use ROWNUM value or another solution, I'm just curious as to why it does not work.
Thanks for help
> I'm just curious as to why it does not work.
Use of the attributes of PL/SQL in SQL cursor is not taken in charge, according to the documents.
-
Closing datos por en scada modbus
Muy buen dia a todos.
Estoy modificando UN SCADA in the empresa in donde trabajo pero el problema as hay are consta esta para trabajar con FIELDPOINTS, yo eliminate los fieldpoints u OPC powered through y con PLC of MODBUS TCPIP similarly o serial ABB. Comunicación is the prevalence, puedo leer y señales analogicas write y digitales pero el escollo librar trato're como VI individual intensification has the perfeccion, pero ago al of integrarlo hora of SCADA no works, me errores marca el as como modulo escritura y lectura modbus esta receiving characters no aceptados o things asi extranas, estos momentos estoy tratando crear a Subvi don't express pero no is como hacerlo , is that the of primero doy a tools y ahi in crear una nueva express vi, of doy NEW despues en CREATE from a VI selecciono mi VI y me appears lo siguiente:
SE me hace porque mi vi tiene tickets extraño y salidas, in this case tickets las salidas St o o reels pero no be that pasa.
También estoy intentando hacer algo con las share if is you can hacer algo pero tampoco, en so mi problema're than mi SCADA y MODBUS corran al mismo tiempo, tambien initiates include todo el vi in SCADA el plano y cuando llega el programa ahi flow to para todo, ahi is is, variables, supuse than era una structure while , is the altogether there are quick-witted pero solo is me da UN valor.
Ojala me can help alguien esto is to give has a client unos dias UN y todo esta por eso paradox.
Mucho thank knew tiempo, reciban a cordial saludo.
ING. A. Abraham. Alfonseca Melendez
Normal
0fake
fake
fakeEN-US
X NONE
X NONEMicrosoftInternetExplorer4
/ * Style definitions * /.
table. MsoNormalTable
{mso-style-name: "Table Normal";}
MSO-knew-rowband-size: 0;
MSO-knew-colband-size: 0;
MSO-style - noshow:yes;
MSO-style-priority: 99;
MSO-style - qformat:yes;
"mso-style-parent:" ";" "
MSO-padding-alt: 0 to 5.4pt 0 to 5.4pt;
MSO-para-margin-top: 0;
MSO-para-margin-right: 0;
MSO-para-margin-bottom: 10.0pt;
MSO-para-margin-left: 0;
line-height: 115%;
MSO-pagination: widow-orphan;
font-size: 11.0pt;
font family: 'Calibri', 'sans-serif ';
MSO-ascii-font-family: Calibri;
MSO-ascii-theme-make: minor-latin;
mso-fareast-font-family: "Times New Roman";
mso-fareast-theme-make: minor-fareast.
MSO-hansi-font-family: Calibri;
MSO-hansi-theme-make: minor-latin ;}Hola Abraham, the advantage of
comunicarte con directly los lugar por MODBUS FielPoints are that the communication
haces el through pilot directly variables compartidas, ahora o
con estos tambien you puedes Comunicar por MODBUS. Para con MODBUS communication
Server i/o MODBUS to estas using el este esta LabVIEW RT o en LabVIEW DSC, o
the MODBUS libreria utilizando estas. ?Ahora el error that you
Genera el del VI Express are you porque VI not las tiene nada en contacts
Terminal, an esto is refiere don't con as no tickets tiene y salidas. Ahora
probably aqui no using screw Express, the utility of los need live
Express General are building as despues con use en herramientas para
Los programas mas than fr if a component in a specific en programa, y proven
MAS well utility para el Worflow para el programa final.Ahora el problema aqui of
No funcionen juntos can be much more than a problem of integration. Como so
mencionas you colocas a Subvi, con a ciclo while inside of a VI, VI el
main goes a detenido meet (o por lo menos el ciclo in el as metiste
Este Subvi) terminen run one until. Quitar el ciclo Al solo everything is
runs una vez cada vez lo controls has call desde el principal, so solo lo
Mandas call una vez solo you will a dar UN dato.Ahora lo mas algo
con el to use are simple as puedes hacer I/O Server in case of than cuentes
El, there is what sets el I/O server variable ligar puedes compartidas has los
looking for MODBUS, y como utilizarlos compartidas variables in you sistema
SCADA.Estas ligas you pueden ser
utility of:Connected LabVIEW has any red Industrial y PLC.
Developer Zone - National InstrumentsHow to turn an RT target in Modbus slave using i/o
Servers - Developer Zone - National InstrumentsConnected LabVIEW has any red Industrial y PLC.
Developer Zone - National InstrumentsSaludos
-
Why "Paint" the Illustrator is ruining my lines? Help, please.
I'm new to illustrator, but I managed to get around the bases of creation and illustrations coloring. The other day, I created a beautiful picture very well without any problems. But today, when I put my image highlight and go to object > Live Paint (while I'm able to use the Live Paint Bucket tool and the color of the image). He just screws the lines and makes it look weird.
Before: http://s3.postimg.org/pnywj9f8z/rffref.png
After Live Paint: http://s21.postimg.org/ywg20q9x3/safuqq.png
Why is this happening?
Tool width thw allowing you to create lines?
Live Paint will not work with anything other than Plains traits (or no lines at all)
What you can do:
-Develop the traits of width varibale
-make a copy of the work (so you can keep the direct variable traits) and painting and then direct the copy
-
When to use the cursor for loop and the cursor (open, fetch, close)
Hello world
I have a small doubt about when to use the cursor for loop and when to use the cursor for loop and the cursor (open, fetch, close).
Well, I'm not the difference between implicit and explicit cursor. So please tell me how I got to know, what to use and when?
Kind regards
BS2012
Published by: BS2012 on January 29, 2013 12:15All SQLs are analyzed, stored and executed as cursors. Thus, you will always use a cursor.
The problem is that languages, such as PL/SQL, provide different interfaces to interact with the SQL cursor. As the ref, the slider interface, the interface DBMS_SQL slider interface and so on.
Each of these interfaces offers different features. For example, using the interface DBMS_SQL allows binding dynamics and dynamic recovery. The Ref Cursor interface allows your code PL/SQL pass a handle to a reference pointing to the SQL cursor, to an external client. Etc.
The fundamental reason for the use of an explicit cursor interface is mainly that you own and manage bulk made extraction output provided by PL/SQL cursor.
With a cursor FOR , the motor loop of PL/SQL optimize the loop by extracting block a 100 lines both. However, you cannot access this collection in bulk directly inside the loop.
With an explicit cursor interface, you specify the size of the extraction in bulk via the clause LIMIT , and you set the variable of collection to use. This allows you to use the collection directly variable inside the loop.
However, the need to do - code manually in bulk collection - rarely occur in the daily programs in PL/SQL. A line of treatment is both slow and not well fits. And even if your bulk code collects lines, these lines must still be processed one at a time in your code. It is much more efficient and scalable rather write SQL code, and make the engine SQL the line of treatment for you.
-
Hi all:
I have a question about custom pages OFA release 12.1.2 (EBS 12.1.2/DB 10.2.0.4/z/O)
Is it possible to migrate these pages without providing the developer with the APPS password?
All the tools (freeware or other) that are useful for these migrations?
Thank youXMLImporter works for the pages developed using JDeveloper also, so I did not understand your point.
DBA can set the password for APPS in a unix environment (I'm sure it would be already) that are visible and accessible only for the user to super/appl. In your script, access the variable directly ($VARIABLE NAME) while XMLImport.
Thank you
Shree -
Need advice to make a simple Flash video file. Trying to accomplish two things.
I have some video files (.avi) that I'm trying to convert a Flash video format. I'm trying to export it to a Flash drive to be in a Powerpoint file. With that, I'm trying to accomplish two objectives:
1. to have the small clip (15 s, 30 fps) constantly loop, like an animated .gif.
2. allow the user to click on the video and made player slide left/right for ff / rew.
The video itself is an animation of the turntable. One of our products makes a full 360 degrees turn. By allowing the user to capture and drag, it will simulate turning the model.
So far, I have already achieved objective 1. I made a new Actionscript 3, any video file (embed flv in swf and play in timeline), and then made the video loop on the timeline. This seems to export properly, and video loop if necessary. The only thing I can't understand is how to "interactive" video and let the user drag left/right.
For context, I have never used Flash before. Any help would be greatly appreciated.
Essentially, it comes down to move the playback cursor in Flash based on the movement of the mouse. It certainly won't be smooth, however, you would need a clock to be responsible for moving your head to read and reverse space compression is very intensive CPU (reverse on the timeline). I would recommend having an upstream release and in advance of the video then you could return them, but if you're new to flash you are already in way over your head.
Add a new layer and try to add this example script (or Download Source example here, registered in CS5):
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.events.MouseEvent;
Make sure that we don't raise this image twice
If (! stage.hasEventListener (MouseEvent.MOUSE_DOWN))
{
stop the playhead
Stop();
set state (forward? back?)
var movingForward:Boolean = true;
var curFrame:int = 1;
var mouseStartX:int; used later to determine the drag
detect the click of the mouse and drag to the left or right
stage.addEventListener (MouseEvent.MOUSE_DOWN, onMouseF);
stage.addEventListener (MouseEvent.MOUSE_UP, onMouseF);
create new timer to control the playback head, start it
var phTimer:Timer = new Timer (33.0).
phTimer.addEventListener (TimerEvent.TIMER, movePlayheadF);
phTimer.start ();
function to control the playback head
function movePlayheadF(e:TimerEvent):void
{
curFrame += movingForward? 1:-1;
validate the frame (60 total frames)
If (curFrame > this.totalFrames) curFrame = 2;
ElseIf (curFrame< 1)="" curframe="">
Goto the next image
this.gotoAndStop (curFrame);
}
function that controls the direction variable
function onMouseF(e:MouseEvent):void
{
If (e.type is MouseEvent.MOUSE_DOWN)
{
the user began place start touching, record
mouseStartX = int (stage.mouseX);
}
Else if (e.type == MouseEvent.MOUSE_UP)
{
user let the mouse go, determine the change in direction (by scanning stype)
If (stage.mouseX > mouseStartX)
{
slipped right, move forward
movingForward = true;
trace ("move on now '");
}
ElseIf (stage.mouseX<>
{
crept to the left, move the rear
movingForward = false;
trace ("back up now '");
}
}
}
}
It's pretty simple. In the link source of the example above, an object in the timeline (nice ugly red circle) is moving right plus 60 frames and then left on 60 images (120 total). Consider that your film.
A clock at a speed of 33ms (30 fps). It's where he won't necessarily be too smooth with video. If you wear at 60 fps, then decrease the timer of the half (16.5ms), season to taste. Whenever the timer fires the playhead is moved, either forward or backward.
For whether she should go forward or backward a simple variable (movingForward) keeps track of the last "swipe". The shot is simply captured when a user touches the screen (mouse/finger), moves in a direction and then leaves upward. If they moved to the left the direction will be reversed. If they moved to the right, it will move forward. This does not include nor this logic, but illustrates how you can watch the mouse for movement and 'do something' on this basis.
A very simple validatior in the event timer function checks if the next image (in both directions) is valid and if it is not the case, it fixes it so that it remains within your length of video editing.
Note there is a MOUSE_MOVE event you can try to hold on to who can literally let the user drag the video forward and back the amount, they drag their finger/cursor. Also if it is a kind of circular surface as a disc rotates, the direction of the user moving the mouse based on where they registration would change the direction in which they expect to move. Etc etc...
Who should get your feet wet in how you should consider for your project.
-
Hey!
I do LV Core 3 and hope someone enlighten me more... (Excersie 7-2 Solution more about 01:50 in the video to be more precise)
According to this module, an indicator that is updated very frequently must be connected with direct data and not a local variable. Research assistance he said local variables to make copies of the data.
It's a bit like this:
1. I have an indicator that is 'coupled' to the X position of the memory.
2. If I write a light directly he wrote directly to the X position of the memory.
3. If I could write instead through a local variable... It would first create a copy of the data to write to the position indicator Y memory and then copy it to the X position of the memory?
Thank you
Peter
Yes it's true.
Now, imagine if you have a very large painting (and the elements of array must be States.map in memory).
the first memory manager must find a place in memory where it can hold the table and you now have a memory more occupied by the local variable location.
-
new to labview :-) and I have a problem when I want to change the value of a string in bunches, and I want to implement this using the node value of property instead of writing directly to the stream or by using the variable, enclosed is the picture. No matter, I have change in cluster (control) or value of Popery out (indicator) cluster, the value (sensor 7) dataflow keeps unchanged even I gave the new value by value of property node. Thank you to give me some advice about this.
Hi GerdW
Thanks a lot for your answer. The reason I'm stubbornly tring to break the flow of DATA is: we have a test system that have about 100 screws, they have a few connected flow, some of them will be unbundling a cluster dataflow chain to check the value in order to make the different cases. Now I want to insert user event by changing the control and influential cases during run time.
As I initially uses a global variable (to control cases) instead of unbundle string data flow, it works well. But then, I found there are a lot of screws that are using the string unbundle. One of the 'lazy' means, I tried is to change the value via the property node (because that way, I did not need to find all the places where using the unbundle string and replace them with the global variable), then I noticed a problem with "dataflow", the value in the stream of cluster in fact will not be changed by changing the value of the property node.
I did a test with VI simple (like the picture in last post), and after reading your advice, I tell myself that I need to understand the concept of "DATAFLOW" in labview, it seems that my "lazy" way can not work in this scenario.
I have attached the criterion VI here, have you furthur suggestions on what I can do in this case?
Mant thanks!
Minyi
-
How to assign the next value in the sequence directly in a variable?
How to assign the next value in the sequence directly in a variable without using a table TWICE in PL/SQL.
BluShadow wrote:
How about a quick test on 11g, just to see if you directly select a sequence in a variable is significantly better than the mark of DOUBLE.
...
Nope... no obvious difference.
This is because there is none: Oracle's SELECT sequence. NEXTVAL FROM DUAL under the covers. The direct assignment is just a convenient encoding for us, but it does not change the work that accomplishes Oracle.
create sequence s; alter system flush shared_pool; declare l_num number; begin l_num := s.nextval; end; / select sql_text from v$sql where parsing_schema_name = user;
SQL_TEXT Report the number of l_num; begin l_num: = s.nextval; end; Select sql_text from v$ sql where parsing_schema_name = user Select double S.NEXTVAL -
I want to set up an online quotation tool in my view based on a small number of variable input by the visitor. If someone has done this through Muse and able to assist / point me in the right direction please? Thank you!
Hello
These discussions could be useful
I need to put a form to give a quote, does anyone have any ideas
"Click to add to your" function
Get the Quote button functionality
Let me know if you have any question.
-
Request Direct DB can use Variables?
Hello
You can use presentation or the request variables in a direct request of the DB in OBIEE?
I'll have a lot of problems with the conversion of a select statement with a subquery using the guests and all that, so I was wondering if I could just handle it with the direct request of db.
Thanks in advance.Hello
Yes, we can use variables for presentationSyntax:
' @{p_v}', date ' @{date_v}
Thank you
saichand.v -
complete lines in variables directly?
version: 10g
Hi, lets say I have 2 rows with one column per row. I can store them directly in two variables
I can get them in a single select statement or to regular looping.
I need "30 AMERSFOORT, 3821 BB NLD PLOTTERWEG' in the variable loc_a and 'PRINS BERNARDWEG 1 a ARNHEM, 6862 ZE NLD' loc_b variableWITH t AS (SELECT 'A' end_type, 'PLOTTERWEG 30 AMERSFOORT, 3821 BB NLD' loc FROM DUAL UNION ALL SELECT 'B' end_type, 'PRINS BERNARDWEG 1A ARNHEM, 6862 ZE NLD' loc FROM DUAL) SELECT loc FROM t
Thank you
Edited by: devarade may 6, 2010 09:24Assuming that you know always that you have (at most) 2 values, then Yes.
ME_XE?WITH t AS 2 (SELECT 'A' end_type, 'PLOTTERWEG 30 AMERSFOORT, 3821 BB NLD' loc 3 FROM DUAL 4 UNION ALL 5 SELECT 'B' end_type, 'PRINS BERNARDWEG 1A ARNHEM, 6862 ZE NLD' loc 6 FROM DUAL) 7 SELECT 8 max(decode(end_type, 'A', loc)) as var1_loc, 9 max(decode(end_type, 'B', loc)) as var2_loc 10 FROM t 11 / VAR1_LOC VAR2_LOC -------------------------------------------------- -------------------------------------------------- PLOTTERWEG 30 AMERSFOORT, 3821 BB NLD PRINS BERNARDWEG 1A ARNHEM, 6862 ZE NLD 1 row selected. Elapsed: 00:00:00.17 ME_XE?
-
How to access the variable JoinColumn directly in an entity.
I have the below two entities with relationship @OneToMany between them,
Employee
@Entity
@Table (name = "EMPLOYEE")
public class employee {}
@Id
int employe_id;
String employee_name;
I can uncomment this?
int emp_department_id;
@ManyToOne
@JoinColumn (name = "emp_department_id")
Department;
}
Department
@Entity
@Table (name = "DEPARTMENT")
public class {Department
@Id
department_id int;
String department_name;
@OneToMany (mappedBy = "department")
The value < employee > employeesSet;
}
I only want to make persistent employee since I already have the data of the Ministry in Db,
* 1.purpose, if I Uncomment emp_department_id and try to do that, *.
Employee e1 = new Employee();
E1.employee_id = 1;
E1.Employee_Name = "Employee1";
E1.emp_department_id = 1;
I get,
Inner exception: java.sql.SQLException: ORA-00957: duplicate column name
Error code: 957
Call: INSERT IN EMPLOYEE3 (EMPLOYEE_NAME, employe_id, EMP_DEPARTMENT_ID, emp_department_id) VALUES (?,?,?,?)
link = > [bound 4 parameters]
* 2. Instead, I have to do something like that, *.
Department d = new Department();
1 = d.department_id;
d.department_name = "Engineering";
Employee e1 = new Employee();
E1.employee_id = 1;
E1.Employee_Name = "Employee1";
E1. Department = d;
Is there a way to uncomment Employee.emp_department_id and insert data about employees using PT. 1 ???The correct method is to define the ManyToOne and set it to the appropriate Department. You can use find() or getReference() to get the service object with the ID.
If you want to have a base for both Id mapping, then you must use the same column name.
@JoinColumn (name = "emp_department_id")
should be,
@JoinColumn (name = "EMP_DEPARTMENT_ID")
But since you have two mappings for the same column, you must set one of them write,
@JoinColumn (name = "EMP_DEPARTMENT_ID", insertable = false, updatable = false)
Or you could remove the ManyToOne and have just the base.
----
James: http://www.eclipse.org/eclipselink/Published by: jsutherl on 7 Sep 2011 06:57
-
Hello world
I worked on an RT program deployed to our cRIO-9024 with custom FPGA, and I changed the way in which the data is written to these three types of DBL 1 d. I renamed the shared variables ("shvars") in the library of the RT project shvar and also changed the target to the PC for the debugging of the function of the code written for them. I used a struct of conditional compilation to turn them off and something has been corrupted along the way and the second node broken shvar (node moved directly from project, no programming style) and caused a hard compilation failure in the Subvi. I got the compile error and go after the removal of the node of shvar entirely and placing him again the project and everything seemed fine.
Soon, I bring the Subvi RT application instance and build my RT exe and deploy it. On the host PC, this second shvar now not get written in at all. I hunt and chase and decide that something is wrong with the deployment of the shvars. I redeploy all and even delete all 3 of the nodes of these shvars in the Subvi and place them again. Now, all 3 are not be written to. My next step is to move the shvars out of this sub - VI I put them in but this is recommended? Note that sometimes they seem to get written once and then are forever silent after that. Is this because I use the nodes instead of the function of programming with shvar addresses?
Thank you.
Edit: Notice the same level superior RT vi successfully wrote in 19 other shvars that I have not touched.
-Very well, I shot myself in the foot and was in fact barking the wrong tree. Put shvar nodes in a Subvi was well and not at all related to the problem.
The problem is that I had a bug in my code FPGA in a particular case, that could get him to stop putting valid data. Once I corrected this bug, everything returned to normal. I would like to delete this thread, but a little shy is right for you.
Maybe you are looking for
-
Can you iPhone 7 connect to USB headset
Hello! I am the owner reasonably high-end headphones Sennheiser Momentum M2 wireless. It connects to my iPhone via bluetooth or using removable 3.5 mm plug + cable. When I use it with my MacBook, I connect USB cable to the USB port on my MacBook Pro
-
Since tvOS 9.1, update when I try to play an ongoing game from the beginning, using the NHL Gamecenter Live application, it will start playing for a second and then jump to live. Basically, it breaks the app for the way I use it. You can save 10 se
-
Problem with the Zoom IV 5 d to update?
Very experienced with my 5 d III and I like the ability to hit the button to zoom in reading to zoom in and see if I put the point to spot AF point. I see the exact same option in the playback menu, 3rd tab. I put in "Actual size (from selected pt)",
-
G4-1303au Pavilion: driver software
Product: HP Pavilion G4-1303au (Windows 7) 64-bit After installing windows 7(64bit), wifi my laptop does not work. It shows not all availability even network wireless network. and in the Device Manager, it is showing yellow triangles with exclamation
-
Is TOMMYSOFTWARE® compatible with Windows 7 Home Premium (x 64) CAD/DRAW?