Can a shared variable be forced like an IO variable?

Forcing an IO variable is supported.  However, what if I want to force the value of a shared variable?

You cannot just force the value of the shared variable if it's being constantly updated from somewhere else. What you can do is to create an application that updates the shared variable with a value constantly. That way, you can get close to the behavior of forcing the value on the variable. Doesn't help answer the question, but could be used as a way around it.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies

Similar Messages

  • Can LabVIEW variables be used like those found in a Java program?

    I created a decoding program in Java that reads in a certain number, or code, and returns the decoded version of that number.
    I tried initially to create this program inside of LabVIEW itself but was hindered by my lack of familiarity and knowledge of what LabVIEW can and can't do and how to approach the problem in LabVIEW.
    My stumbling blocks in LabVIEW seem to be the arrays and working the variables. I'm probably approaching this completely wrong, more than likely because I'm trying to think in Java rather than LabVIEW. 
    Any help that can be given is most appreciated. Also I have attached a text document with my Java code in it. It's not perfect but it works.
    If I need to clarify anything just ask.
    Once again thanks for any help in advanced.
    Solved!
    Go to Solution.
    Attachments:
    Decoder.txt ‏5 KB

    In LabVIEW the wire is the variable. The way you pass parameters to functions (subvis) is with a wire through the connector pane. Same for returning results.
    Forget that local variables exist! A lot of new programmers that come from a text based programming background discover the LabVIEW local and global variables way too early. Like duct tape they can be useful. But it is possible to write huge complex applications without touching them. And the code is much simpler than programs of less complexity that make extensive use of locals and globals.
    Since you are new to LabVIEW you can become a very good programmer if you keep the following in mind. It is a little confusing but "local variables" and "global variables" are not really variables in labVIEW like they are in Java. The wires are the variables. Those rectangle things you create from controls or indicators are more like a function for that control or indicator. They can not exist without an owning control or indicator. It is unfortunate that they are called variables but they are a relic of the stone ages when code was carved into cave walls.
    =====================
    LabVIEW 2012

  • Public variables can be shared by multiple users?

    I have public static variables in some of my classes...think that there are 2 pages...
    page1:sets that public variable..
    page2:reads that public variable...
    so the 2. person can read 1. person's variable by directly calling the second page or he gets null,error etc:?
    its important for the security!generally are the values are session protected?or user must handle this security by coding correctly...
    thank you

    Actually, neither your question nor your English are
    particularly clear.
    However, if you're asking what I think you're asking,
    then, yes, the variable can be seen by multiple
    "users." I put that in quotes because there really
    isn't a concept of "users" or "people" here unless
    you build in such a layer. It's really requests that
    we're talking about.
    Servlets should not usually have member variables.
    The reason is that usually only one instance of your
    Servlet implementation exists, and it processes all
    requests for that servlet. This is more a data
    validity issue than a security one. Security comes in
    at the layer where you build it (or use a 3rd party
    library), but a side effect of this can be compromisd
    security. The access levels--public, private, etc.
    are NOT intended for security purposes, however.
    Now, if that servlet's doGet(), doPost(), service(),
    or whater methods create instances of some
    other class, then, no, other requests cannot
    see those objects, as long as the references to them
    stay local to the servlet's methods, and don't get
    put into the servlets member variables or an
    application context.thank you this is what i exactly wanted to learn...i have also tested it with my test codes and same things seen parallel to your explanations...

  • Using LIKE with a variable in a report query

    Probably an stupid question, but I can't find the answer on this forum or by trying. How do use LIKE and a variable together in a query?
    The following solutions don't work f.e.:
    LIKE :P310_ENTITEITID%
    LIKE ':P310_ENTITEITID%'

    Hi Elmo
    Try '%'||:P310_ENTITEITID||'%'
    Elsie

  • How to use variable in the LIKE function along with % operators

    Hi,
    Is there any way i can use the variable in the Like function. That means i have query like
    SELECT * FROM Device WHERE DeviceName LIKE %v_MediaName%;
    Here "v_MediaName" is the userdefined variable which contains string. I want to retrieve all the records from the "DEVICE" table whose DeviceName LIKE %v_MediaName%;
    If i put it in a single quotes '%v_MediaName%' then the v_MediaName will be treaded as a string instead of a variable. I am using this query in a Procedure.
    please help me out to resolve the issue.
    thanks

    LIKE '%'||v_MediaName||'%';
    Will not make use of the indexes though.
    Message was edited by:
    satishkandi

  • Why CBO don't use function-base index when I use like and bind variable

    Hello
    I have litle problem with function-base index and like with bind variable.
    When I use like with bind variable, the CBO don't use my function-base index.
    For example when I create table and index:
    ALTER SESSION SET NLS_SORT='BINARY_CI';
    ALTER SESSION SET NLS_COMP='LINGUISTIC';
    alter session set nls_language='ENGLISH';
    -- DROP TABLE TEST1;
    CREATE TABLE TEST1 (K1 VARCHAR2(32));
    create index test1_idx on test1(nlssort(K1,'nls_sort=BINARY_CI'));
    INSERT INTO TEST1
    SELECT OBJECT_NAME FROM ALL_OBJECTS;
    COMMIT;
    When I run:
    ALTER SESSION SET NLS_SORT='BINARY_CI';
    ALTER SESSION SET NLS_COMP='LINGUISTIC';
    SELECT * FROM TEST1 WHERE K1 = 'abcd';
    or
    SELECT * FROM TEST1 WHERE K1 LIKE 'abcd%';
    CBO use index.
    PLAN_TABLE_OUTPUT
    SQL_ID 4vrmp7cshbvqy, child number 1
    SELECT * FROM TEST1 WHERE K1 LIKE 'abcd%'
    Plan hash value: 1885706448
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | | | 1 (100)| |
    | 1 | TABLE ACCESS BY INDEX ROWID| TEST1 | 2 | 98 | 1 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | TEST1_IDX | 2 | | 1 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - access("TEST1"."SYS_NC00002$">=HEXTORAW('6162636400') AND
    "TEST1"."SYS_NC00002$"<HEXTORAW('6162636500') )
    but when I run
    SELECT * FROM TEST1 WHERE K1 LIKE :1;
    CBO don't use index
    PLAN_TABLE_OUTPUT
    SQL_ID 9t461s1669gru, child number 0
    SELECT * FROM TEST1 WHERE K1 LIKE :1
    Plan hash value: 4122059633
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | | | 89 (100)| |
    |* 1 | TABLE ACCESS FULL| TEST1 | 2 | 48 | 89 (3)| 00:00:02 |
    Predicate Information (identified by operation id):
    1 - filter("K1" LIKE :1)
    What should I change to force CBO to use index.
    I don't wont use index hint in query.
    My oracle version:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    OK. But why if I create normal index (create index test1_idx on test1(K1)) and return to default nls settings this same query use index.
    PLAN_TABLE_OUTPUT
    SQL_ID 9t461s1669gru, child number 0
    SELECT * FROM TEST1 WHERE K1 LIKE :1
    Plan hash value: 598212486
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | | | 1 (100)| |
    |* 1 | INDEX RANGE SCAN| TEST1_IDX | 1 | 18 | 1 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    1 - access("K1" LIKE :1)
    filter("K1" LIKE :1)
    Note
    - dynamic sampling used for this statement (level=2)
    when index is function-base (create index test1_idx on test1(nlssort(K1,'nls_sort=BINARY_CI')))
    PLAN_TABLE_OUTPUT
    SQL_ID 9t461s1669gru, child number 1
    SELECT * FROM TEST1 WHERE K1 LIKE :1
    Plan hash value: 4122059633
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | | | 89 (100)| |
    |* 1 | TABLE ACCESS FULL| TEST1 | 3 | 54 | 89 (3)| 00:00:02 |
    Predicate Information (identified by operation id):
    1 - filter("K1" LIKE :1)
    Note
    - dynamic sampling used for this statement (level=2)
    when I create index with upper function "index test1_idx on test1(upper(K1))" the query use index
    SELECT * FROM TEST1 WHERE upper(K1) LIKE :1
    Plan hash value: 1885706448
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | | | 1 (100)| |
    | 1 | TABLE ACCESS BY INDEX ROWID| TEST1 | 4481 | 157K| 1 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | TEST1_IDX | 806 | | 1 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - access("TEST1"."SYS_NC00002$" LIKE :1)
    filter("TEST1"."SYS_NC00002$" LIKE :1)
    Note
    - dynamic sampling used for this statement (level=2)

  • How do you configure the DAM so it can be shared across multiple CQ instances?

    How do you configure the DAM so it can be shared across multiple CQ instances?

    You can use shared datastore http://dev.day.com/content/kb/home/Crx/CrxSystemAdministration/HowToCombineTheDatastoreToP reserveDiskSpace.html multiple CQ instance will use same file system to share asset
    clustering http://dev.day.com/docs/en/crx/current/administering/cluster.html multiple node will share repository.
    But you can not have something like one DAM and then have different CQ instance pointing to it (As not everything goes in to one location in file system)
    Yogesh

  • CAN SOMEONE PLEASE HELP ME IN CREATING A TEXT VARIABLE???

    Hello Friends,
    I want to display the Key and Text for 0CALYEAR in a report. I searched the forum and it seems that for doing this I need to create a text variable. In the query designer I tried creating a text variable for 0CALYEAR, but in the variable wizard, the "Type of characteristic" drop-down is greyed out. Please guide me in creating a text variable and on a larger scale in getting the Key and Text for 0CALYEAR. Thanks!
    Regards,
    Prem.

    Hello Friends,
    Thanks a lot for your replies!!! I am really delighted to see the helping spirit of the forum. I have assigned points to all of you. Thanks again!
    Now coming to the issue. Let me reply individually. (Friends, reply may be a bit lengthy. Please read atleast your part fully).
    Venkat, you said that we can display the key and text for 0CALYEAR if the texts are mainted for it. However, in the display option for 0CALYEAR there is no option for text. Moreover, since 0CALYEAR is provided by SAP itself, I did not find any option for maintaining texts for it. Infact in 0CALYEAR, under the master data tab the "With texts" option is unchecked. Please share some info on this one.
    Srini, your suggessted solution was not possible as there was no option for displying text in the context menu for 0CALYEAR.
    Karthik, I tried your solution. In my KeyFigures structure I have only two key figures and the 0CALYEAR is in rows. What I did was I right-clicked on "Key Figures" and clicked on New Selection. In the popup screen there is a button for variables. Clicking on it and then clicking on the "New" opton in the subsequent window brought me to the variable creation wizard. Interestingly this is a text variable creation wizard. Happily I created a text variable with replacement path and selected 0CALYEAR as the characteristic. Then I selected "Name(text)" for "Replace variable with" option. Everything went fine. Under key figures, I got an icon which is having a green triangle with a matrix cube (Apologies for explaning the situation like this :-). This is essentially the icon for characteristics. The description reads "&ZTXTVAR& New Selection". Now when I try to run the report I get an error saying "Use a Key Figure everywhere in the structure 'Keyfigures' ". I think the text variable is not getting created, instead a New selection is getting created. Please assist. Thanks!
    Regards,
    Prem.

  • Can I share documents with others like I do with dropbox?

    I wanna know if I can share documents with iCloud Drive like I do with Dropbox. I would like to send a link to others so they can download files stored on my iCloud Drive.

    Not that I know of.  You might want to consider a different file sharing service such as Dropbox.

  • Does anyone have a sample implementation plan that can be shared?  High level?

    Does anyone have a sample implementation plan that can be shared?  High level?

    You will probably need to inquire with a VMware consultant to get this kind of information.  VMware depends on these people to make sure they keep the reputation of the software at a very high level.  
    They will have access to various free tools to help large and small scale deployments.  Tools like VMware Health Check Script and the ESX deployment tool.
    If you find this information useful, please award points for
    "correct"
    or "helpful".
    Wes Hinshaw
    www.myvmland.com

  • Can c:foreach have two vaiables like i, j in the for loop?

    Hi all,
    I'm trying to do the following iteration: (this is just a fragment)
    <c:forEach items="${cemeta.FRSMAPPINGs}" var="frsmapping" items="${scripts}" var="st">
    <tr>
    <td>  <c:out value="${frsmapping.valuescript}"/> </td>
    </tr>
    <tr>
    <td><c:out value="${st}"/></td>
    </tr>
    </c:foreach>it doesn't recognize the first variable (in this case cemeta.FRSMAPPING). I tried it just for the fist variable, or only for the second variable. I don't know why it doesn't work for both.
    I changed the order of variables so it became:
    <c:forEach items="${scripts}" var="st" items="${cemeta.FRSMAPPINGs}" var="frsmapping" >at this time the first variable also (this time st) is not recognized.
    Plz tell me how to make a declation of the two variables using JSTL without using scriptlet thing.
    Bye

    No, you can't specify multiple collections for a forEach tag.
    If you have parallel arrays like this, the best would be to use a varStatus variable:
    <c:forEach var="frsmapping" items="${cemeta.FRSMAPPINGs}" varStatus="status">
      <tr><td><c:out value="${frsmapping.valuescript}"/></td></tr>
      <tr><td><c:out value="${scripts[status.index]}"/></td></tr>
    </c:forEach>This uses the index of the iterator to look up the value in the parallel array.
    Hope this helps,
    evnafets

  • I just updated my pages and now it won't load. This is on my iPad. The first version which has the latest version it can have 5.1 or something like that. I am trying to open a document and am worried that if I uninstall and reinstall I will lose all my do

    I just updated my pages and now it won't load. This is on my iPad. The first version which has the latest version it can have 5.1 or something like that. I am trying to open a document and am worried that if I uninstall and reinstall I will lose all my documents

    I just uninstalled it and am waiting for it to reinstall. I sincerely hope that I have not lost everything that I worked on so hard. Now that mobile me is gone, I have not been able to go between devices to transfer things. I was merely trying to take a document I had worked on and open it in pages, but it said my version was too old. When I updated, it wouldn't load. Now I cannot do anything. I hope that the reinstall fixes it without losing everything. Please advise!!! Yes, I am in panic mode.

  • How can I use my Zen Xtra like a flash memory

    Hello, I want to know how can I use my MP3 player like a flash memory.
    I have one and if I conect it with other computers I can't transfer documents and with a flash memory I conect it in all the computers with Windows XP and all of they detect the flash memory and they can transfer documents.
    With my Zen Xtra I connect it and the computer detects it but I can't transfer anything because the computer doesn't have the software.
    My question is.. Do I have to install the software in all the computers that I use ? or there are other forms to conects PC and MP3 Player? ( I want to transfer documents like text, image, etc)

    But some MP3 players do that, why this one can't be connected with all the computers ?
    Message Edited by morfo on 0-22-2005 05:54 PM

  • Can you calculate multiple text boxes to achieve a total value?  If so how is that done?  I am trying to create a order form where multiple items can be purchased but i would like the values of each item to calculate so I can achieve a total value.

    Can you calculate multiple text boxes to achieve a total value?  If so how is that done?  I am trying to create a order form where multiple items can be purchased but i would like the values of each item to calculate so I can achieve a total value.

    Hi sashby51,
    I've moved your discussion to the PDF Forms forum--the folks who visit this forum regularly should be able to point you in the right direction.
    Best,
    Sara

  • How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files?

    How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files? I need to look at several thousand PDF files. It takes too long to open each one individually. The only thing I could think of is combining them into large groups and then using the Navigation index. But I like the way windows Picture and Fax Viewer does it because you can keep the files separate. Combining PDFs causes loss of individual file names. That would be a problem since I do need to have the individual file names.

    Windows Picture and Fax Viewer is a DLL and is started via a rundll32.exe call and can't be set as an application to handle images in Firefox 3 and later versions.
    Try to set Windows Picture and Fax Viewer as the default viewer in Windows, then it should be listed automatically in the Mozilla Firefox Browse dialog.
    *http://www.winhelponline.com/articles/115/1/Windows-Picture-and-Fax-Viewer-as-the-default-viewer-in-Mozilla-Firefox.html
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

Maybe you are looking for