Access variable in the same tilme

Can i have to access in reading at the same time (for example by 2 process in parallel) at a control (string for example) witout risk to crash the PC?
Likewise, is it possible to write at the same time in a indicator  witout risk to crash the PC? How to work the access right on a variable (locale and others)
It is mandatory to use a queue file?
Thanks in advance  

Yes, it's possible to read the value of a control in multiple locations without it "crashing the PC". I'm guessing you've had a bad history with computer crashes?
For indicators the questions doesn't make much sense. An indicator will always display the last value written to it. So, while you can access it from more than one location, you will only see the last value (unless it's a waveform chart, of course.).
Now, there's actually a secondary issue, which is where the control/indicator is, and where you're trying to access it. A control/indicator resides on the front panel of a VI. If you're trying to access it from another VI then you have to use the VI Server functions to get to it. While errors with the VI Server are infrequent, they can happen. Never seen a crash, though, due to the functions. Can you use a queue? Of course. It all depends on the data you're trying to access and what you're trying to do. You asked if it's mandatory, and the answer is, of course, no.
If you can provide more detail into what you're doing a more specific answer can be provided as well as tips on program structure.

Similar Messages

  • Trying to move a list of form variables to session variables of the same name

    I am trying to move a list of form variables to session variables of the same name and I am having a lot of trouble.
    I have never had to post of this forum with a language question in all the 10 years I have been using ColdFusion. I was a qa Engineer @ Allaire/Macromedia back when it was going from one to the other. I have a pretty good grasp of the language.
    I have software that runs off a list. The fieldnames are variable and stored off in an array. It's survey software that runs off a "meta file". In this example; I have the number of fields in the survey set to 12 in the "metafile". I have each field declared in that file in array Session.SurveyField[1] and the above loop works fine. I include this "metafile" at the start of the process.
    I cfloop around a struct and it works wherever I have needed to use it; such as here - writing to the database for example;
    <CFQUERY NAME="InsertRec" DATASOURCE="Survey">
    INSERT into #variables.SurveyTableName#
    (EntryTime
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    ,#Session.SurveyField[arrayindex]#
    </cfloop>
    <!--- EXAMPLE OF WHAT THE ABOVE GENERATES
    ,q01_name,q02_AcadTechORNA,q03_Water,q04_FirstAid,q05_CPR,q06_LifeGuard,q07_AED
    ,q08_ProjAdv,q09_Color,q10_SantaClaus,q11_Supervisor,q12_SupervisorOpinion --->
       VALUES
        ('#EntryTime#'
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thisname = "Session." & Session.SurveyField[arrayindex]>
    ,'#evaluate(variables.thisname)#'
    </cfloop>
    <!--- EXAMPLE OF WHAT THE ABOVE GENERATES
    ,'#Session.q01_name#','#Session.q02_AcadTechORNA#','#Session.q03_Water#','#Session.q04_Fi rstAid#'
    ,'#Session.q05_CPR#','#Session.q06_LifeGuard#','#Session.q07_AED#','#Session.q08_ProjAdv# ',
    ,'#Session.q09_Color#','#Session.q10_SantaClaus#','#Session.q11_Supervisor#','#Session.q1 2_SupervisorOpinion#' --->
    </CFQUERY>
    NOW HERE'S THE PROBLEM: I am running into trouble when trying to move the form variables to session variables of the same name. It is the only part of the software that I still need the datanames hard coded and that is a roadblock for me.
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thissessionfield = "Session." & Session.SurveyField[arrayindex]>
    <cfset thisformfield = "Form." & Session.SurveyField[arrayindex]>
    <cfset #thissessionfield# = #evaluate(thisformfield)#>
    </cfloop>
    I have tried it with or without the "evaluate"; same result. It doesn't give an error; it just ignores them (session variables look as such in the next page in the chain)
    q01_name=
    q02_acadtechorna=
    q03_water=
    q04_firstaid=
    q05_cpr=
    q06_lifeguard=
    q07_aed=
    q08_projadv=
    q09_color=
    q10_santaclaus=
    q11_supervisor=
    q12_supervisoropinion=
    Note: they exist because I CFPARAM them in a loop like the above at the start of the procedure) - and this works just fine!
    <cflock scope="Session" type="EXCLUSIVE" timeout="30">
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset dataname = "Session." & Session.SurveyField[arrayindex]>
    <cfparam name="#variables.dataname#" default="">
    </cfloop>
    </cflock>
    I EVEN tried exploiting the Form.Fieldnames list using CFLoop over the list and the same sort of logic within and it still gives me nothing....
    Here's the FORM.FIELDNAMES value
    "Q01_NAME,Q02_ACADTECHORNA,Q03_WATER,Q04_FIRSTAID,Q05_CPR,Q06_LIFEGUARD,Q07_AED,Q08_PROJAD V,Q09_COLOR,
    Q10_SANTACLAUS,Q11_SUPERVISOR,Q12_SUPERVISOROPINION"
    Here's the logic; SAME RESULT - The session variables don't get set.
    <cfoutput>
    <cfloop list="#Form.FieldNames#" index="thisfield">
    <!--- <br>#thisfield# --->
    <cfscript>
    thisSESSIONfield = "Session." & thisfield;
    thisFORMfield = "Form." & thisfield;
    #thisSESSIONfield# = #thisFORMfield#;
    </cfscript>
    </cfloop>
    </cfoutput>
    The CFPARAM in a loop with variable output name works just fine; so does the post (which I included above) as does the SQL Create, Param Form Variables, Param Session Variables, etc.
    THIS even works for moving BLANK to each session variable, to zero them all out at the end of the process;
    <cflock scope="Session" type="EXCLUSIVE" timeout="30">
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thislocalfield = Session.SurveyField[arrayindex]>
    <cfscript>
    thissessionfield = "Session." & thislocalfield;
    </cfscript>
    <cfset #thissessionfield# = "">
    </cfloop>
    </cflock>
    Expanding on that code, you would think this would work, but it doesn't;
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thislocalfield = Session.SurveyField[arrayindex]>
    <cfscript>
    thissessionfield = "Session." & thislocalfield;
    thisformfield = "Form." & thislocalfield;
    </cfscript>
    <!--- debug --->
    <!--- <cfoutput>#thissessionfield# = "#evaluate(thisformfield)#"</cfoutput><br> --->
    <cfoutput>
    <cfset #thissessionfield# = "#evaluate(thisformfield)#">
    </cfoutput>
    </cfloop>
    And see that debug code in the middle? To add insult to injury... When I uncomment that it shows me this. So it certainly looks like this should work....
    Session.q01_name = "Me"
    Session.q02_AcadTechORNA = "N/A"
    Session.q03_Water = "Yes (certificate expired)"
    Session.q04_FirstAid = "Yes (certificate is current)"
    Session.q05_CPR = "No"
    Session.q06_LifeGuard = "Yes (certificate expired)"
    Session.q07_AED = "Yes (certificate expired)"
    Session.q08_ProjAdv = "Yes (certificate expired)"
    Session.q09_Color = "Gray"
    Session.q10_SantaClaus = "Yes"
    Session.q11_Supervisor = "Da Boss"
    Session.q12_SupervisorOpinion = "Not a bad thing"
    There must be some simpler way to do this. This way won't work against all odds even though it seems so much like it should.
    So I end up having to hardcode it; still looking for an automated way to set these #@%$*@!## session variables over the list from the form variables of the same @#@!$#%$%# name. Do I sound frustrated???
    No matter what I do, if I don't HARDCODE like this;
    <cfset Session.q01_name = Form.q01_name>
    <cfset Session.q02_AcadTechORNA = Form.q02_AcadTechORNA>
    <cfset Session.q03_Water = Form.q03_Water>
    <cfset Session.q04_FirstAid = Form.q04_FirstAid>
    <cfset Session.q05_CPR = Form.q05_CPR>
    <cfset Session.q06_LifeGuard = Form.q06_LifeGuard>
    <cfset Session.q07_AED = Form.q07_AED>
    <cfset Session.q08_ProjAdv = Form.q08_ProjAdv>
    <cfset Session.q09_Color = Form.q09_Color>
    <cfset Session.q10_SantaClaus = Form.q10_SantaClaus>
    <cfset Session.q11_Supervisor = Form.q11_Supervisor>
    <cfset Session.q12_SupervisorOpinion = Form.q12_SupervisorOpinion>
    I always get this from my next page because the session variables are empty;
    You must answer question 1.
    You must answer question 2.
    You must answer question 3.
    You must answer question 4.
    You must answer question 5.
    You must answer question 6.
    You must answer question 7.
    You must answer question 8.
    You must answer question 9.
    You must answer question 10.
    I tried duplicate as well, but I can not get the above to work...
    Can anyone help me do this thing that one would think is simple????

    I think if you use structure array syntax you should get the results you want.
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
          <cfset session[Session.SurveyField[arrayindex]] = Form[Session.SurveyField[arrayindex]]>
    </cfloop>
    Or probably even easier.
    <cfset session = duplicate(form)>

  • Using variable with the same name as field name?

    I have a complex proc where I have variables with the same name as field name used on a query. something like this:
    SELECT a.id_table WHERE a.id_table = id_table
    where the last id_table is a parameter sent to the proc:
    declare procedure myproc(id_table int)
    Is there any way or notation to declare the variable inside the query as a variable or I have to use a different name?

    Well, variables are not the only thing you have to change if you want to switch to Oracle.
    Although I don't think it is good practice (to use variable name same as column name), here is one example how you can achieve it using EXECUTE IMMEDIATE and bind variable
    SQL> select deptno, count(1)
      2  from scott.emp
      3  group by deptno;
        DEPTNO   COUNT(1)
            30          6
            20          5
    10 3
    SQL> set serveroutput on
    SQL> declare
      2  deptno varchar2(10);
      3  i number;
      4  begin
      5  deptno:=10;
      6  execute immediate
      7  'select count(1) from scott.emp where deptno=:deptno' into i using deptno;
      8  dbms_output.put_line('OUT ---> '||i);
      9  end;
    10  /
    OUT ---> 3
    PL/SQL procedure successfully completed.
    SQL> Message was edited by:
    tekicora
    Message was edited by:
    tekicora

  • Is there any way I can control which specific access point I connect (and stay connected) to from amongst a set of access points with the same SSID?

    I'm working from a boat in a harbor in which the ISP has deployed numerous access points around the periphery.  All the access points share the same SSID and each is configured to use either channel 1, 6 or 11.   From my location, there are over a dozen of these access points "visible" (based on the the output of WiFi Scanner) with a range of RSSI and S/N values that vary over time.
    The ISP has told me that the quality of my connection should be "perfectly fine" for any access point with an RSSI value better than -75, but I know from experience that my connection quality is miserable (i.e. < 50Kbps download) for almost all of these, including those with RSSI values better than -75.  There is at least one exception, however, which gives me on the order of 2Mbps download, which is "great" in this context.
    I've tried using a more powerful USB antenna plugged into my MacBook Air (mid 2011), but as far as I can tell, it really doesn't make much difference.  Neither does my location within the boat.   The overriding factor seems to be which access point I happen to connect up to.
    I should point out that the closest access points are about 75 yards away, with many of them being several hundred yards away or more.  I'm guessing that even though the signal strength of some of the distant access points is causing them to get "chosen" some times, the results are unacceptable due to the distance.
    I'm hoping that I can determine, through experimentation, which access point(s) provide(s) acceptable performance and then configure my Mac to limit my connection to those points through whatever mechanism I need to use (e.g. channel, MAC id, etc.).

    Establishing a wireless connection with a client computer is left to the access point for various reasons. One reason that your Mac may not connect to the strongest access point is that it may have reached a limit of the number of clients it can serve, leaving it unable to accept a connection with another. The limit may not be very large.
    Suppose that happens, and your Mac establishes a connection with a more distant access point having a weaker signal. Then, suppose a client drops off the network. Doesn't this mean your Mac will switch to the stronger access point? Not necessarily. The throughput delivered to and from your Mac would have to drop below a threshold specified in the AP for it to drop the client, leaving your Mac free to connect with another one. The reason for this is to prevent rapid switching from one AP to another in an area in which two signals are of approximately equal quality. If that were to occur the frequent and repetitive handshaking between the two devices would slow throughput to zero.
    In an environment in which several access points are broadcasting the same SSID, Apple provides no insight as to how it determines which access point to choose. This is the reason I suspect this "choice" is a function of the router, or access point. The connection originates with it, not the Mac.
    Now, what would solve your dilemma would be to determine a way to control the access point with which your Mac connects, by specifying the access point's unique MAC address for example. In this happy circumstance, you could maintain an editable "whitelist" or "blacklist" of the harbor's access points and be able to choose which among them you prefer.
    I do not believe OS X maintains such a record of MAC addresses though, only those of the routers it uses. If I am correct about that, such a solution is unlikely to exist. Don't let that discourage you from searching for one though... I would concentrate on something like "selecting access point by specific MAC address".
    I did find this patent application though:
    Roaming Network Stations Using A Mac Address Identifier To Select New Access Point
    Perhaps it's a start

  • How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    Hi Libby,
    Select all three columns of data. All three must be 'regular' columns, not Header columns, and the X values must be in the leftmost column.
    Click the Charts button and choose the Scatter chart.
    The resulting chart will initially show only the first and second columns of data, and the selection will have been reduced to show this.
    Click the gear icon at the top left of the selection and choose Share X Values.
    You should see a result similar to this:
    Notes:
    The values on my sample table contain a random element, so they have changed from thhe first image to the second.
    The chart is as created by Numbers, with two edits:
    Data points have been connected with curves, using the Chart nspector.
    The curves were selected and their stroke increased to 2pts, using the stroke formating button in the format bar.
    Regards,
    Barry

  • Two selection option-variables for the same object

    Hi,
    I'm using two selection-option variables for the same characteristic in my query:
    One is authorization variable and the other is used for restrictions (filter) in a selection screen.
    I get an error: SELOPT/Query variable .... does not allow any further selections.
    If a selection option-variable is used, no additional selections can be specified for this characteristic in this element.
    Is there a way to overcome this problem?
    Thanks,
    Hagit

    Hi,
    I have solved the problem by changing the authorization object (in RSECADMIN) from range to single value and also the variable in BEx from selection single value.
    To be more clear:
    object in RSECADMIN was: infoobject BT var1 - var5
    I have changed it to:
    infoobject EQ var1
    infoobject EQ var2
    infoobject EQ var3
    infoobject EQ var4
    infoobject EQ var5
    Hope this helps.
    Hagit

  • Sharing a library on a macbook pro between to Administrator access users on the same machine

    I have just bought a new Macbook Pro ci7 15" I have merged with the Help of the Genius bar and Entire apple team 5 different libraries to make 1 mega library. We then moved it to the new machine. I use this machine for work and home. since mac mail does not use profiles I have been instructed to make 2 users on my machine. User 1 is for work and mail is defaulted & set to my Exchange server at work. User 2 is personal and is defaulted to my mobile me account. I want to have 1 copy on my hard-drive of the 50GB Music iTunes that I can access regardless of which user I am logged into my machine as. I use the same Apple ID for each of the iTunes login's on the Macbook Pro.  Can anyone help or make some suggestions.
    PS We have tried to share the folder, even move music to the user>share folder...

    follow these instructions:
    how to share music between different accounts on a single computer.

  • Set expression's variable in the same step

    I probably asking a rhetorical question, but does it exist a way to set an expression's variable (say for load sequence dynamically) in the same step (sequence call)?
    I have a situation where I need to read a sequence path from the database and then call this sequence. If I try to do that in pre-step it doesn't work, TestStand tries to evaluate the sequence file path expression when call the step and before the pre-step is executed.
    So, what I doing now, do this in two steps, read database first and then do sequence call.
    Similar problem is for Message Popup, I need to read the message to display from the database.
    Two steps works fine but are not convenient to use. We create our test sequences from custom step types and it would be easier to drop just one step instead of pair of steps in order. Or, is it a way to bind two step types together and always drop two if one is selected?
    Sergey Kolbunov
    CLA, CTD

    Dah! I didn't know about the OnNewStep when I posted this.
    Juergen, thank you, this is interesting example but not related to my question.
    My concern is mostly cosmetical. I can do the job in two steps, but because these two steps will always come together I'd like to combine them in one step in the sequence. This is not possible because the second step depends of the first step output.
    Looks like my second example for Message Popup is not true, at least it works if I set the message in the step's Pre-expression. But take a look to my Sequence Call.seq. How to obtain Sequence Path specified by expression in the same SequenceCall step?
    Sergey Kolbunov
    CLA, CTD
    Attachments:
    Message Popup.seq ‏6 KB
    Sequence Call.seq ‏5 KB
    Dummy.seq ‏6 KB

  • Expand, unhide table and set variable at the same time?

    Hi all,
    How should i go about to create the following?
    I want to Expand a table at the same time as i set at variable and unhide another table. I have implemented a single-click solution i the Table API that works fine. I would like to use the Table API for this problem also.
    Is this possible? Do I need to make it in multiple steps ie some kind of java-script?
    Have tried this but it wont work:
    SAP_BW_URL_Get() +  ' ' ''&amp;DATA_PROVIDER=DATAPROVIDER_1&amp;' 'CMD=Expand&amp;IOBJNM=0MATERIAL&amp;FILTER_IOBJNM=0CUSTOMER&amp;FILTER_VALUE=' I_CHAVL '&amp;VAR_NAME_1=ZLS_CUST&amp;VAR_VALUE_EXT_1=' I_CHAVL '&amp;CMD_1=ITEM%3DTABLE_2%26HIDDEN%3D' ''''
    Any ideas?
    Cheers,
    Max

    Hi Alex,
    This is not written in the WAD, but in the Table API. The table API generates the link, creating a JavaScript call. But i hvae also tried to write this url directly in the WAD on an http://.... format but it still does not work.
    BR/Max

  • Multilpe offsets on the same variable in the same selection

    Hello,
    I'm trying to get the total rolling 12 value in a single column of a query based on cube 0PCA_C01. I have a regular selection variable called VAR_001 which I would like to manipulate with offsets for this purpose..
    I can add several offset values on the same variables by drag-and-drop in the selection pop-up, but I can't save it.. Whenever I click OK and go back into the selection, all offsets created on the variable except one are gone..
    Why is this? Should it work to add many offsets (with different values) in the selection on 0FISCPER. I.e:
    VAR_001 (-1)
    VAR_001 (-2)
    VAR_001 (-3)
    VAR_001 (-4)
    VAR_001 (-5)
    VAR_001 (-6)
    VAR_001 (-7)
    VAR_001 (-8)
    VAR_001 (-9)
    VAR_001 (-10)
    VAR_001 (-11)
    VAR_001 (-12)
    Since there is no selection for value range on offsets, I guess this would be the way to do it?
    Regards,
    F C

    FC
    Select a range between with your variable VAR_001 for 0FISCPER. You should see a range with the same variable entry:
    (VAR_001) - (VAR_001)
    Then select offset. You will enter two entries, first on is -11 and leave the second to 0.
    You should end up with something like this:
    (VAR_001)-11 - (VAR_001)
    This will create your rolling 12 where the report user will just have to enter the end date.
    Regards,
    Andy

  • How to apply different styels to different variable in the same window

    Dear experts
    can any one tell me how to print to different variable with different smartstyle in the same window in Smartforms
    thanks in advance

    Not possible to switch dynamically a smartstyle inside a text. A workaround is to use a SAPscript style (SE72) and switch to it with the following control command inside the text. To come back to the original smartstyle within the same text (if you need it) I think you may use style name &#42;.
    /: STYLE <stylename>
    (please search SDN if you need more information)

  • I have $1000 worth of music on 1 itune account and another $1000 worth of apps on another but want to access both from the same devices without logging in and out of itune accounts what do i do

    I am trying to merge the music I have bought on one Itune account and the apps I have bought on another any way I can do this I am not trying to have on both just moving from one email to another

    You cannot merge them onto different iTunes accounts.
    You can keep them in the same iTunes library on yoru computer.

  • Problem in package and accessing classes in the same directory

    i have a class JApplet1 which calls other classes from the same directory.ALL the other classes have a main within them whereas JApplet1 has an init method within it...the problem is this JApplet1 class is not able to call the other classes. there r no compile time errors but at runtime the classes are not being called...what should i do....suggestions plz..

    What exception are you getting?

  • Using currency conversion and text variable at the same time

    Hi all,
    In a 3.5 bex query, i am applying currency conversion on a key figure with a variable of 0currency.
    as i know, to be able to apply currency conversion, variable of currency should not be in Free characteristics or in Filter.
    it has to be selected only on the key figure.
    but now, i want to use text variable for selected currency (with type replacement path). But as i know, to be able to use text variable, variable of currency has to be
    in Free characteristics or in Filter.
    Can you please advise, how to both use currency conversion and text variable on currency?
    Thanks in advance.
    Sancho

    Sancho,
    I'm not 100% sure about this, but I'm thinking that if you are pulling the text variable from a selection in a structure, you should not need it in the free characteristic or filter. Try creating a structure, placing the currency in it as a selection, and creating a text variable as the title for the selection that is based on the currency. This may help.
    Cheers,
    Rusty

  • When my husband bought IPhone 4S like mine we need to sync with ITunes and share all information (except music). We need to access emails from the same account. We need 250 business contact info as well. Can this be done?

    When my husband bought IPhone 4S last year like mine we could not sync it and share our business email account and 250 business contacts. It wiped out everything in my IPhone and was a mess. Can you share an email account and contacts between two IPhones? Only thing is, we don't want each other's music. He still uses an old fashion phone because we can't be a two-IPhone household (home-based business) and share the same emails and contact information. What's up with that?
    Nancy in Dover, NH

    "Can you share an email account and contacts between two IPhones?
    Yes.
    " He still uses an old fashion phone because we can't be a two-IPhone household (home-based business) and share the same emails and contact information. What's up with that?"
    Not sure I understand.  You can set it up however you like.
    You can certainly share contacts and e-mail while not sharing anything else.
    Ope itunes, connect iphone, select the contact program/service that you would like, select the calendar service program and calendars,  select the music, photos, apps, books, etc,  sync.  Set up whtever e-mail address(es) you like on the iphone itself.
    Do the same for all of the other idevces that you like.

Maybe you are looking for