Shared variable does not work in executable
In editor mode, the shared variables update fine. When I build the executable, the shared variables no longer work.
See attachment.
Attachments:
TestCitadel.vi 30 KB
I found this note in the LV2010 help, I wonder if this could be related to your problem...
Note You can use scaling only for network-published
shared variables, I/O variables, or I/O aliases. When the shared
variable you want to scale is a network-published shared variable, it
must have a data source. Configure a network-published shared variable
to have a data source by placing a checkmark in the Enable Aliasing checkbox on the Variable page of the Shared Variable Properties dialog box.
Similar Messages
-
Shared variable does not work between two computers
I am using LabVIEW 8 on Windows XP computers.
1. On one computer I have created two projects, writeProject and readProject.
2. In the writeProject I have a shared variable, writeData, which is "network-published" double. In this project I have a writeData.vi which in while loop assigns a random value to the writeData variable.
3. In the readProject I have a shared variable, readData, which is "network-published" double and is bound to the writeData variable. This is on the same computer as the writeProject.
4. I run both the writeData.vi and the readData.vi and all works fine.
5. Now, I create a readProject on a diferent computer. Perform all the steps as described above and also in tools/shared variable/register computer, I have entered the IP address of the target computer on which the writeData shared variable exists.
6. Binding the readData variable fails in the following way. When I browse for the source, in the "Select Source Item" dialog, I see <IP> <Populating Node...>, where <IP> is the IP address of the source computer (on which exists the writeData shared variable). A very long time later it is still "Populating Node...". Neddless to say, this readData.vi does not work!
What am I doing wrong? Or, perhapse what else do I need to do to make it work?Hi,
I would suggest checking out the two KnowledgeBases I have linked below for common issues with Network Shared Variables. Let me know the results. Thanks!
Troubleshooting Network-Published Shared Variables
Why Are My Network Shared Variables Taking Very Long to Initialize?
Stephanie -
The shared variable does not exist????
This seems really strange!!
I already use several shared variables within my whole project without any problem. At this point, I created a new one (a boolean network published) and everything seemed just fine (no errors were detected in my VI and it runs normally). However, when the VI on my host computer tries to use the shared variable, it generates an error message saying "LabVIEW: (Hex 0x8BBB0005) The shared variable does not exist." (see attached screenshot).
What is going on? I can't find any help online about that... Can anybody help me with this please?
Thanks!Hello,
This error can occur if you have an incorrect Path specified under your Bind to Source section for the shared variable - this could be as simple as a typographical error in the defined path. Double-check that portion of your shared variable definition, and hopefully it'll be as simple as finding a typo in your path. You should be able to browse for your variable/path by clicking Browse and then selecting Network Items if your shared variable is on the network. Can you find it by browsing?
I hope this helps!
Best Regards,
JLS
Message Edited by JLS on 10-05-2006 03:54 PM
Best,
JLS
Sixclear -
Shared Variable does not update when typedef is changed
I have a shared variable of type custom control (typedef made up of a cluster). When I chang the typedef, e.g. the name or type of one of the fields in the cluster, and then save it, the shared variable does not update to reflect this change. That is, if I place the shared variable on my block diagram and do a "UNBUNDLE BY NAME" on the output, I see the old fields. I have to go back to the properties of the shared variable, change its data type, apply it, then go back and change it back to my custom control.
Anyone else seen this behaviour? Anyone know how to get the shared variable to update without going through this procedure?
Bill
“A child of five could understand this. Send someone to fetch a child of five.”
― Groucho MarxI guess I should have included this information:
LabVIEW 8.2.1 using Project Explorer.
“A child of five could understand this. Send someone to fetch a child of five.”
― Groucho Marx -
Select list with bind variable does not work
Hi,
What can be wrong with a 'select list' with the a simple select
select omschrijving o, id i
from basiscodes b
where domein = 'OPTIES'
and b.id in
(select eo.basiscode_id from evenementen_opties eo
where eo.event_id = :P16_ID)
The :P16_ID has a value and should give result
But it does not work at all with 'select list'
Using the POPUP LOV (display discription, return key value) works nice
The select retuns less then 10 recordsHi Flavio,
As I explained, the P16_ID is an item of the master page (page 16)
In Page 18 where I want to reuse that value, the item is not there, but I use it to assign
P18_EVENT_ID with the value in P16_ID and that works fine.
In an after submit process, I do this :
declare
function get_pk return varchar2
is
begin
for c1 in (select EVENEMENT_INSCHRIJVING_SEQ.nextval next_val
from dual)
loop
return c1.next_val;
end loop;
end;
begin
:P18_ID := get_pk;
:P18_EVENT_ID := :P16_ID;
:P18_CREATIE_DT := TO_CHAR(SYSDATE,'DD-MM-YYYY HH24:MI:SS');
:P18_CREATIE_USER := APEX_APPLICATION.G_USER;
end;
The value P16_ID is there before I open page 18
I made a display item that displays the value P16_ID
If I change the LOV select in :
select b.omschrijving o, b.id i
from basiscodes b
, evenementen_opties eo
where b.domein = 'OPTIES'
and b.id = eo.basiscode_id
and eo.event_id = 16
then it returns the value I want : 1 record
You see, I'm a really new one in apex.
Forms 6i was easier for me...
Regards Jules
null -
Shared variable clusters not working as intended
Hi All,
I've been using shared variables to communicate between a host computer and a crio real time target. This works well as simple variables. I configured a cluster of shared variables to try and clean up the code a bit.
I have a couple of problems. If I write to a single element, using bundle, the other elements in the cluster that I do not want to write to are overwritten with some unknown default value. Second, when the host computer program is stopped, the cluster on the RT host writes what appears to be default values to all the variables in the cluster on the RT. The idea is to keep the RT program running in it's current state until the host computer recovers. Of course this is impossible, if it resets all the data to default.
It appears that I can only write to a cluster on one side and read on the other side. I cannot read/write to the same cluster at different points on the host and target machines. With a single shared variable, I can read/write to my hearts content on any process. I haven't been able to find a way to solve this.
I will post the code, but you will need a cRIO to run it. If anyone is using clusters in shared variables, I'd be curious to see how you are doing it.
Thanks,
John
Solved!
Go to Solution.
Attachments:
host cluster test.vi 25 KB
rt target cluster test.vi 25 KB
Params 1.ctl 6 KBThat makes some sense, what I can think of is you are writing to the same cluster in two different places. Each place updates both values so if the host writes B1=False and B2=True then the Rio Writes B1=False and B2=False then the variable will have the latest value of both being false.It's a loop condition.
Even though you are only setting one value in the bundle by name the other value is coming from the cluster input to the bundle by name.
To handle this you will need remove the input cluster to the bundle by name and replace with the shared variable read. This is where you may need a delay to ensure the variable has the most recent updated value.
Also you still have the coercion dots. For the shared variable try linking it to the custom control instead of a undefined cluster (Next choice below in the SV setup)
Robert Fogg
Certified LabVIEW Architect
Attachments:
host cluster test.vi 27 KB -
Network Shared Variable: Aliasing not working
Hello!
I am running a cRIO 9075, which is publishing network shared variables.
I can see and modify them within Distributed System Manager.
Unfortunately I am not able to read/write the variables through labview.
What I have done so far:
Tools -> Shared Variable -> Register Computer, using the IP of the cRIO
Adding a Variable to the project. Type = Network-Published, Enable Aliasing, choosing "Browse" to select the variable (all published variables from cRIO are shown there), Access Type = read/write. The PSP-URL is: \\192.168.10.70\WaveformManager\Op
Trying to read the variable results code -1950679034 and the result is always the default value for that data type.
BUT this works: using the VIs Data Communication / Shared Variable / Read/Write Variable and typing in the same URL the Distributed System Manager is showing is showing (in my case: \\192.168.10.70\WaveformManager\Op)
So, what am I doing wrong? Did I forget something or misunderstand how "Aliasing" works?
Thanks!hi,
in which way to you read your shared variable? If you read it before you write a value "into" the variable it may couse this waring.
Have you tried this?
http://digital.ni.com/public.nsf/allkb/7DBC2C3E95AFD85C86257442005CF74C?OpenDocument -
Online Shared Review does not work
Hi
I have just bought Acrobat 9 Pro (which costs a fortune!) and am rather disappointed with a few things. I'll ask about one of them to start with.
I have created a PDF and sent it to a collaborator for shared review, who does not have Acrobat but does have Adobe Reader. She is not a member of acrobat.com, but is not offered to join during the process.
She can download the file and open it with Adobe Reader (showing the extended toolbar) but cannot connect to the server. A message states that she is probably disconneted from the internet, but this is not true.
She is allowed to work offline and then email the document with her comments, but this is not what I want. I want comments to stay online for other reviewers to see.
She had Adobe Reader 8 so downloaded and installed Adobe Reader 9 but this did not solve the problem. The message however changed slighty to: "The shared review location on share.acrobat.com could not be written to, or the server has run out of disk space".
Anyone knows what could be the problem?
Thank you
IsabelHi,
Yes, I am getting all the questions and answers that are being posted in the forum. it goes to the junk mail and I have to clean it every day, because there are so many problems with the new Adobe, and people send so many emails. Do you know how I can stop this? Thanks a million.
Here is an example:
BigDog. Like Ramón mentioned, Adobe is a company not an application so it would help to know what application you are using and what version number you have. Also, what exactly are you doing when you get that error (please give step by step details).
The more info you can give, the better chance you have of getting a solution. -
Help: ORDER BY variable does not work in CS3
I have a variable in my recordset query for the ORDER BY
clause which is set by the URL variable, 'order'. With CS2 the
recordset worked fine with the variable. CS3 shows N/A for the
variable type in the Recordset dialog, and when I click Test to
test my recordset, it says I need to specify a variable type. So I
set it to 'Text' and suddenly the variable doesn't even work. It
just orders the records by ID. Am I going to have to use CS2 to
create recordsets with an ORDER BY variable in the future or is
there some other way around this?AngryCloud wrote:
> In CS2, Dreamweaver does not ask for a data type.
There is no such thing as Dreamweaver CS2. You are presumably
talking
about the version of Dreamweaver that was bundled with Adobe
Creative
Suite 2 after Macromedia was acquired by Adobe. That was
Dreamweaver 8.
From the sound of it, you have the original Dreamweaver 8,
which didn't
use data types for variables. Everything changed when the
8.0.2 updater
was released. The updater made important changes to the way
Dreamweaver
handles variables in SQL queries. These are designed to
prevent
malicious attacks through SQL injection. Dreamweaver CS3 uses
the same
code as Dreamweaver 8.0.2.
If I remember correctly, Dreamweaver will automatically
update all the
code if you open the Recordset dialog box, make any changes,
and then
click OK. If that doesn't work, the safest approach is to
select the
Recordset in the Server Behaviors panel, and click the minus
button to
remove it cleanly. Then build the recordset again: a
nuisance, I know,
but it makes your code more secure.
When using LIKE in a SQL query, you must always choose Text
as the data
type, even if you're using numbers in the variable field.
This is
because the SQL specification says that LIKE is for comparing
strings.
Dreamweaver 8.0.2 and above now follows the SQL
specification, whereas
it didn't before.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Security filter with variable does not work correctly
Helo,
I have one table with this columns (called BI_USERS):
USERBI | REGIONS
XXXX 10,5 -> In this case the user XXX can access the region 10 and 5
AAA 9,7
I use this table to apply the security filters. Fisrt I did a initialization block with the select: SELECT USERBI, REGIONS FROM BI_USERS WHERE USER = :USER
This select populate two variables: variable USER (system variable) and UserRegion (Non-system variable)
After I use the UserRegion variable in the securty filter of the one group of users. For exemple:
Name | Status | Business Model Filter
"Claro"."Historico Saldo Pre-Pago" Enabled "Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" In(VALUEOF(NQ_SESSION.*UserRegional)* )
But the issue is that the query is not working, because the query created for BIServer no use the IN operator. Seems the IN operator is changed for equal (=).
And the query returs error because the value 10,5 (for example) is not a numeric value.
Anybody could help me, please? I am using the version 10.1.3
Mauricio|||\/||| wrote:
Helo,
I have one table with this columns (called BI_USERS):
USERBI | REGIONS
XXXX 10,5 -> In this case the user XXX can access the region 10 and 5
AAA 9,7
I use this table to apply the security filters. Fisrt I did a initialization block with the select: SELECT USERBI, REGIONS FROM BI_USERS WHERE USER = :USER
This select populate two variables: variable USER (system variable) and UserRegion (Non-system variable)
After I use the UserRegion variable in the securty filter of the one group of users. For exemple:
Name | Status | Business Model Filter
"Claro"."Historico Saldo Pre-Pago" Enabled "Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" In(VALUEOF(NQ_SESSION.*UserRegional)* )
But the issue is that the query is not working, because the query created for BIServer no use the IN operator. Seems the IN operator is changed for equal (=).
And the query returs error because the value 10,5 (for example) is not a numeric value.
Anybody could help me, please? I am using the version 10.1.3
MauricioHi Mauricio,
First of all you have some syntax errors with your init block:
select USERBI, REGIONS from BI_USERS WHERE upper(USER)=upper(':USER');
Couple things to consider here:
1) Why are you selecting Userbi column from the table? Is USER system session variable not getting populated through other souces like LDAP or default security?
Ans: If your user session variable is getting populated from a different init block, then you dont need to select that column. Then your init block would look something like this:
select 'USERREGIONAL', REGIONS from BI_USERS WHERE upper(USER)=upper(':USER'); - Data Source
Row Wise Initialization - Data Target
Initblock that is populating the user session variable as the order of precedence.
2) If you dont have USER session variable populating from any other source, then your init block would look something like below:
select 'USER', USERBI, "USERREGIONAL', REGIONS from BI_USERS; - Data source
Row Wise Initialization - Data target
After following one of the above two steps, you need to apply the filters on the table.
"Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" IN(VALUEOF(NQ_SESSION.USERREGIONAL))
Note: Make sure you understand that variables are case sensitive.
Please award points as this is correct answer.
Thanks,
-Amith.
Edited by: Amith on May 10, 2011 3:18 PM -
Shared font does not work when changed
Hi, I am using a shared font in an eLearning course. The font
is in a separate library file and is used in all pages. But if I
change the font in the font properties, the text in the other pages
does not show up. Has any one come across a solution for this
issue?
Thanks.A file called FlashPaper2PrinterPort was on the network under
my personal folder. Is there a way to add this to my hardrive to
allow me to convert at home? -
ADF VO bind variable does not work in 'OrderBy' clause
Hello, All
When trying to define a VO with a SQL query, we use VO bind variables on the 'OrderBy' clause and set Groovy expression to populate values at runtime. Based on simple experiments, ADF throws out an exception saying that "Attempt to set a parameter name that does not occur in the SQL'. I am wondering if it is allowed to use bind variables in a 'OrderBy' clause? I know it does in 'Where' clause.
Thanks a lot for your answers.
Regards,
DavidSo is there any change of the BC framework being corrected to allow this, since it is legal syntax, as in the following sql*plus example?
select last_name, decode(&&1, 'SA_REP', nvl(commission_pct,0), 'SA_MAN', nvl(commission_pct,0), nvl(salary,0))
from hr.employees
where job_id = &&1
order by decode (&&1, 'SA_REP', nvl(commission_pct,0), 'SA_MAN', nvl(commission_pct,0), nvl(salary,0))
/ -
I have a simple Java HttpServlet and a simple JSP page. They are both served by a WebSphere Application Server at port 80 on my local host. I have created a TCP/IP Monitor at port 8081 in
Eclipse IDE so as to create a second origin. The protocol output further down comes from this monitor. This should work equally well on a simple Tomcat server.
When I perform the cross-origin resource sharing test, I see that all of the correct TCP data is exchanged between Firefox and the web server (i.e. HTTP OPTIONS and its response followed by an HTTP POST and its response) but the data in the body of the POST response is never passed to the XMLHttpRequest javascript object's responseText or responseXML variables and I get a status equal to 0. If I click the button while pressing the keyboard control key then the test will work as it will not be performed as a cross-origin request.
Here are all of the files used in this test:
Servlet Cors.java
<pre><nowiki>--------------------------------------------------------------------------------------
package example.cors;
import java.io.IOException;
import java.util.Enumeration;
import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
* Servlet implementation class Cors
public class Cors extends HttpServlet {
private static final long serialVersionUID = 1L;
private static final String APPLICATION_XML_VALUE = "application/xml";
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doPost(request, response); // do the same as on the post
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setBufferSize(1024);
response.setContentType(APPLICATION_XML_VALUE);
response.setStatus(HttpServletResponse.SC_OK);
String xml="<?xml version=\"1.0\"?>\n<hello>This is a wrapped message</hello>";
response.setContentLength(xml.length());
response.getWriter().append(xml);
response.getWriter().close();
* @see HttpServlet#doOptions(HttpServletRequest, HttpServletResponse)
@SuppressWarnings("unchecked")
protected void doOptions(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Enumeration<String> headers=request.getHeaders("Origin");
StringBuffer sb=new StringBuffer();
while (headers.hasMoreElements()) {
String o=headers.nextElement();
if (sb.length()!=0) sb.append(", ");
System.err.println("Origin= "+o);
sb.append(o);
response.addHeader("Access-Control-Allow-Origin", sb.toString());
response.addHeader("Access-Control-Allow-Methods","POST, GET, OPTIONS");
sb=new StringBuffer();
headers=request.getHeaders("Access-Control-Request-Headers");
while (headers.hasMoreElements()) {
String o=headers.nextElement();
if (sb.length()!=0) sb.append(", ");
System.err.println("Access-Control-Request-Headers= "+o);
sb.append(o);
response.addHeader("Access-Control-Allow-Headers", sb.toString().toUpperCase());
response.addHeader("Access-Control-Max-Age", Integer.toString(60*60)); // 1 hour
response.addHeader("Content-Type","text/plain");
response.addHeader("Allow", "GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS");
response.getWriter().print("");
And a simple JSP page test.jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%
String url ="http://localhost:8081/cors/ping";
String url_ctrl="http://localhost/cors/ping";
%>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Test CORS</title>
<script type="text/javascript">
var invocation;
var method='POST';
var body = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><hello>Today</hello>";
var buttontest2_label="Direct AJAX call";
function callOtherDomain(event){
invocation = new XMLHttpRequest();
if(invocation) {
var resultNode = document.getElementById("buttonResultNode");
var resultMessage = document.getElementById("buttonMessageNode");
resultNode.innerHTML = "";
document.getElementById("buttontest2").value="Waiting response...";
var url
if (event.ctrlKey) url="<%=url_ctrl%>";
else url="<%=url%>";
resultMessage.innerHTML = "Sending "+method+" to URL: "+url;
invocation.open(method, url, true);
// invocation.withCredentials = "true";
invocation.setRequestHeader('X-PINGOTHER', 'pingpong');
invocation.setRequestHeader('Content-Type', 'application/xml');
invocation.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
invocation.onerror = function(errorObject) {
display_progress(resultMessage, "***** error occured=" +errorObject);
invocation.onreadystatechange = function() {
display_progress(resultMessage, "onreadystatechange="+invocation.readyState+", status="+invocation.status+", statusText="+invocation.statusText);
if(invocation.readyState == 4){
document.getElementById("buttontest2").value=buttontest2_label;
display_progress(resultMessage, "responseText="+invocation.responseText);
resultNode.innerHTML = "Response from web service='"+invocation.responseText+"'";
invocation.send(body);
function display_progress(node, message) {
node.innerHTML = node.innerHTML + "<br>" + message;
</script>
</head>
<body>
<p>The button will create a cross site request (Use the control key to disable this, i.e. no cross site request)</p>
<p><input type="button" id="buttontest2" onclick="callOtherDomain(event)" name="buttontest2" value="Waiting for page load..."></p>
<p id="buttonMessageNode"></p>
<p id="buttonResultNode"></p>
<script type="text/javascript">
document.getElementById("buttontest2").value=buttontest2_label;
</script>
</body>
</html>
When I click on the Direct AJAX call button, I get the following output on my page:
The button will create a cross site request (Use the control key to disable this, i.e. no cross site request)
Sending POST to URL: http://localhost:8081/cors/ping
onreadystatechange=2, status=0, statusText=
onreadystatechange=4, status=0, statusText=
responseText=
***** error occured=[object ProgressEvent]
Response from web service=''
Here is the HTTP traffic produced:
HTTP REQUEST
OPTIONS /cors/ping HTTP/1.1
Host: localhost:8081
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Origin: http://localhost
Access-Control-Request-Method: POST
Access-Control-Request-Headers: content-type,x-pingother,x-requested-with
Pragma: no-cache
Cache-Control: no-cache
POST /cors/ping HTTP/1.1
Host: localhost:8081
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
X-PINGOTHER: pingpong
Content-Type: application/xml; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://localhost/cors/client/test.jsp
Content-Length: 75
Origin: http://localhost
Pragma: no-cache
Cache-Control: no-cache
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><hello>Today</hello>
HTTP RESPONSE
HTTP/1.1 200 OK
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: CONTENT-TYPE,X-PINGOTHER,X-REQUESTED-WITH
Access-Control-Max-Age: 3600
Content-Type: text/plain;charset=ISO-8859-1
Allow: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS
Content-Language: en-CA
Content-Length: 0
Date: Wed, 11 Jul 2012 17:50:10 GMT
Server: WebSphere Application Server/7.0
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 62
Content-Language: en-CA
Date: Wed, 11 Jul 2012 17:50:10 GMT
Server: WebSphere Application Server/7.0
<?xml version="1.0"?>
<hello>This is a wrapped message</hello>
--------------------------------------------------------------------------------------</nowiki></pre>No errors in error console. No effect using *. I tried using the dns name of my localhost both in the Firefox URL and in the javascript and I get exactly the same. I have spent a huge amount of time looking into this issue.
One thing I noticed is that if I use the examples on the internet (http://arunranga.com/examples/access-control/preflightInvocation.html or http://saltybeagle.com/cors/) they work in the same browser. These examples however, are accessed through HTTP proxies.
I am wondering if the issue has to do with using the same hostname just with different ports. -
Variable does not work for sqlplus (command line)
Here is an select:
variable x number;
variable y number;
variable a number;
define x = 2000;
define y = 2*1000;
define a = &x+&y;
select ener from adding where ener = &a;
When I execute it under SQL*Plus Worksheet (client installed on my PC) then I get output:
ENER
4000
1 row selected
When I execute this same under command line sqlplus (under unix shell) then I get output
old 1: select ener from adding where ener = &a
new 1: select ener from adding where ener = 2000+2*1000
no rows selected
What is worng ?Nothing.
Sqlplus is correct and sql worksheet is buggy.
Define works with strings only. You cannot use it to calculate an expression.
Apparently sql worksheet did calculate the expression, and sqlplus didn't, submitting it as a string.
This is the expected behavior.
This behavior can likely vary by version, so thank you for not providing version info.
Will anything awful happen when you do, or is this just the lazyness epidemia in this forum?
Sybrand Bakker
Senior Oracle DBA
Experts: those who did read documentation. -
Linux shared library does not work in fedora core 4
I have transferred an application that ran perfectly on fedora 3 to fedora 4. It uses a shared library that I wrote in C.
The vis no longer appear to recognise this file as a shared
library. I have recompiied the library in fedora 4 but this makes
no difference.
Any ideas?Hi jbroughton,
There are few things that I need to know in order to investigate why your file is no longer being recognised:
What version of LabVIEW are you using?
What is your kernal version of federa four?
Is your application a built executable?
What is your librarying doing currently when you try to call it? If any error popups what are the error codes and messages you are getting?
Can you call your C library outside of LabVIEW?
Thanks
Emma R
NIUK & Ireland
Maybe you are looking for
-
How to display a message in dashboard when the source is not available
Hi, I had a requirement to display a custom message in the dashboard instead of showing the default error message like "Client commands are disabled by administrator" when the source is unavailble for the reports. I'm using Essbase as the source and
-
Shared variable error 1967362044
Hi everybody, I am using shared variable in one of my project to communicate between RT program and my PC program. FOr very first time I run the program in my PC. I am facing the error 1967362044. Can anyone tell the reason for this error and solutio
-
Have new computer can't see lightroom history on imports from old
Hi i have just imported lightroom photos I have been working on into new computer and cannot see any of the previous history
-
i changed the password on my iPad mini, is there anyway i could reset the password?
-
How do i open my downloads?
I downloaded LINE pc version and i don't know how to open it.