RT FIFO, several variables

Hello

I use 2 loops on a CompactRIO 9074. One is for the deterministic i/o, synchronized with the scanning engine and the other for the e/s network with a client PC. I'm waiting for data in the network using shared variables published network loop, and when I get my data, I want to transfer (data are 2 tables, one is an array of double, the other is an array of boolean) to the deterministic loop using the RT FIFO (or any other type of method non-blocking also).

The deterministic loop works at 10 Hz and bed 2 RT FIFO containing the respective tables. It's probably nit-picking, but I want to assure you that in a deterministic loop iteration, the tables in the RT of the FIFO have both been updated. I'm not one of them have been updated while the other is being be written in ring network IO, for example:

-Deterministic loop-

FIFO of RT read [double table] (new data)-> RT FIFO read [table of boolean] (old data)->...

If I could group data to help somehow something RT FIFO-like, that could happen not that I would write to a variable only.

Any suggestions?

Best regards

You can turn the table of Boolean values in integer values (Boolean matrix to U8) and then transfer them in the FIFO even as the double.  If you nailed this value on the end of the double table before placing it in the FIFO, you just would read a table on your another loop.

Tags: NI Software

Similar Questions

  • Several variables from the session to the login page

    Hey there, I have to point out that I use ASP for several years and am trying to start a transition to PHP. I'm kinda stuck and I don't know that there is a simple solution for this. After a login page, I go to my home page. When you are at the homepage depending on the status you are given i.e. level 1, 2 etc.

    Dreamweaver gives you the code to start a page and I seem to be able to capture the session variable 'MM_Username' on the start page, but in my setup, that's your name. Of course there could be a lot of 'Fred' out there so you need the info from the first name field. How to capture the session password or create a new session for password, so when I'm filtering the session on the page following I can use several variables as what follows must match the user name, password, address, etc?

    In asp is was easy. I started just a session variable capture since the names of the fields username and password. Like this:

    < % session ("NomUtilisateur1") = request ("username") % >

    < % session ("password1") = request ("pass") % >

    My session would be NomUtilisateur1, password1, and I would like to sort out.

    In PHP how would I do a similar thing? Help please!

    Here's the code generated from Dreamweaver.

    <? PHP
    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    If (via PHP_VERSION < 6) {}
    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }
    ? >
    <? PHP
    Validate request to connect to this site.
    If (! isset {})
    session_start();
    }

    $loginFormAction = $_SERVER ['PHP_SELF'];
    If (isset($_GET['accesscheck'])) {}
    $_SESSION ['PrevUrl'] = $_GET ['accesscheck"];
    }

    If (isset($_POST['username'])) {}
    $loginUsername = $_POST ['username'];
    $password = $_POST ["password"];
    $MM_fldUserAuthorization = "";
    $MM_redirectLoginSuccess = "/ support/startpageSQL.php";
    $MM_redirectLoginFailed = ' / test2.php ';
    $MM_redirecttoReferrer = false;
    @mysql_select_db ($database_toyosupport, $toyosupport);

    $LoginRS__query = sprintf ("SELECT name, password AND password entry WHERE name = %s is %s",
    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $toyosupport) or die (mysql_error ());
    $loginFoundUser = mysql_num_rows ($LoginRS);
    If {($loginFoundUser)
    $loginStrGroup = "";

    If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}
    Declare two session variables and assign them
    $_SESSION ["MM_Username"] = $loginUsername;
    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    If (isset($_SESSION['PrevUrl']) & & false) {}
    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];
    }
    Header ("Location:".) $MM_redirectLoginSuccess);
    }
    else {}
    Header ("Location:".) $MM_redirectLoginFailed);
    }
    }
    ? >

    To make this work it turned out to be very simple. at the login page, I simply used:

    <>

    This is to set session values.

    $_SESSION ['username'] = $_POST ['username'];

    $_SESSION ['pass_word'] = $_POST ["password"];

    ?>

    After all the code from Dreamweaver to start a totally different pair of sessions.

    On the home page, I made the Recordset like this:



    <>
    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    If (via PHP_VERSION< 6)="">
    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }

    $pass_word_rsUSERNAME = "-1";
    If (isset($_SESSION['pass_word'])) {}
    $pass_word_rsUSERNAME = $_SESSION ["pass_word"];
    }
    $user_name_rsUSERNAME = "-1";
    If (isset($_SESSION['user_name'])) {}
    $user_name_rsUSERNAME = $_SESSION ['user_name'];
    }
    @mysql_select_db ($database_toyosupport, $toyosupport);
    $query_rsUSERNAME = sprintf ("" SELECT * WHERE the password = name = %s AND %s entry ", GetSQLValueString ($pass_word_rsUSERNAME,"text"), GetSQLValueString ($user_name_rsUSERNAME,"text")");
    $rsUSERNAME = mysql_query ($query_rsUSERNAME, $toyosupport) or die (mysql_error ());
    $row_rsUSERNAME = mysql_fetch_assoc ($rsUSERNAME);
    $totalRows_rsUSERNAME = mysql_num_rows ($rsUSERNAME);
    session_start();? >

    Although Dreamweaver code struggled a bit he works and seems to be stable. Note that I added a session_start to the top of the page, even if the source code for Dreamweaver does not. This helped.

    I hope this helps.

  • Several Variables in a text box or text field


    Is there a way to set different variables in a text area so that spacing between the line will be compatible?


    Or do I need to break the text box in separate text fields?

    (I searched the forum but have not found an answer.)

    It's really very simple. I wonder if there is a way to have more than one variable in a textframe?

    What do you mean by "variable"? Has Illustrator to an entire function defined in the user interface, called Variables. There are a range of Variables. If that's what you're talking about, then no, you can't bind multiple variables in a single text object. The so-called Variables data-driven are related to the object level.

    If you're talking about the generic term of 'variable' in the sense of a script language, then Yes, of course you can replace text different ranges within a single textFrame with the values of several variables - as long as the values of the variables in question are text. Or, you can use the text of text ranges in one or more frames of related as the values of several variables.

    Or should I abandon this script and write my own?

    Yet once, nothing more than a description very vague and General what exactly you're trying to do. So, Yes, given that the purpose of this script is to simply concatenate the contents of several frames of text bound in one alone, and it is quite complex, my guess would be that you need to write your own.

    Basically, if I have a list of addresses and hours of operation in a dataset. Currently, they are divided into separate, linked text frames.

    Again, you use a term (dataset) which implies that you do refers to the function of Variables in Illustrator. If you speak only attach the text of several frames of separate linked text in Illustrator into one, you can do this in the user interface without any manuscript at all: just copy multiple text objects, download the text and create a new text object and paste tool.

    If you need space, paragraph returns, or some other delimiter inserted at the beginning or end of objects separated prior to joining them through the normal in the user interface, you can take a look at the description of the scripts here named JET_ConcatenateTextAtEnd and JET_ConcatenateTextAtStart.

    JET

  • Several Variables import from CSV file

    Hello PowerCLI Masters!

    I've been dabbling in PowerCLI now for about 6 months, especially for larger deployments VM.  I've been tweaking my scripts to automate more over time.  I started with setting all the variables manually and just import the virtual machine to a txt file names, then created several loops in a single script that would incorporate different text files, depending on model, data store, disc sizes VLAN, etc..

    I think that the next step here is to import variables by vm (essentially, a line of a CSV file).  We receive our demands for construction as a spreadsheet, so it would be relatively easy to fill in the correct fields in a spreadsheet and run a script that will import values.  I can't seem to put on the right track with the simple search, so I thought I'd post it here and see if:

    1. someone already did and can provide guidance

    2. can someone put me on the right track to how I would go all this

    3. someone tell me that it is not possible (in the hope that it does not go down like that, but it is certainly possible)

    This IS JUST a SAMPLE of the SCRIPTS - may or may not have a syntax perfect at this stage...

    # SET VARIABLES #.

    $vmname = get-content C:\PowerShell\serverlist_1.txt
    $vmname | {foreach-object
    $vmname = $_

    $templatename = "TMPLT-GSI.
    $folder = "GSI".
    $date = get-Date - uformat "%Y %m %d '.
    $expdate = "20110930".
    $reqno = "00034.
    $sysowner = "GSI".

    $esxhost = "esxhost1.test.com".
    $datastore = "DATASTORE_1".

    $cpu = 1
    $mem = 4096
    $datadrive1 = 26214400

    $datadrive2 = 52428800
    $pgname = "ECOM_902".

    #

    # BUILD/CONFIGURE VM #.

    #

    New-VM - vmhost $esxhost - name $vmname - model $templatename - Datastore $datastore - thick DiskStorageFormat - location $folder

    New-disk-hard - vm $vmname - CapacityKB $datadrive1
    New-disk-hard - vm $vmname - CapacityKB $datadrive2
    Get-VM-name $vmname | $mem set-VM - MemoryMB - NumCPU $cpu - confirm: $false
    Get-networkadapter $vmname | together-networkadapter - networkname $pgname - confirm: $false
    Get-VM-name $vmname | Game-CustomField-name "creation Date" - value $date - confirm: $false
    Get-VM-name $vmname | Game-CustomField-name 'expiry Date' - value $expdate - confirm: $false
    Get-VM-name $vmname | Game-CustomField-name "Application number" - value $reqno - confirm: $false
    Get-VM-name $vmname | Game-CustomField-name "Proprietary system" - value $sysowner - confirm: $false

    }

    So, rather than setting these values in the script, I want to shoot them from a spreadsheet that looks like this (a partial list at condition of course):

    $vmname$templatename$cpu$mem$pgname$datadrive1$datadrive2
    Testdeploy001TMPLT RHEL614'ECOM_902 '.2621440052428800
    Testdeploy002TMPLT-2008_ENT_6428'ECOM_902 '.26214400104857600
    Testdeploy003TMPLT-2008_ENT_6428'ECOM_906 '.26214400104857600


    Thanks in advance for any help provided!

    -Brent

    vmname TemplateName central processing unit MEM pgname datadrive1 datadrive2 folder
    Testdeploy001 TMPLT RHEL6 1 4 'ECOM_902 '. 26214400 52428800 GSI
    Testdeploy002 TMPLT-2008_ENT_64 2 8 'ECOM_902 '. 26214400 104857600 GSI
    Testdeploy003 TMPLT-2008_ENT_64 2 8 'ECOM_906 '. 26214400 104857600 GSI

    I would do something like this:

    $date= Get-Date -uformat "%Y%m%d"
    $expdate="20110930"
    $reqno="00034"
    $sysowner="GSI"
    $esxhost="esxhost1.test.com"
    $datastore="DATASTORE_1"
    
    Import-CSV C:\PowerShell\serverlist.csv | Foreach {
     New-VM -vmhost $esxhost -Name $_.vmname -Template $_.templatename -Datastore $datastore -DiskStorageFormat thick -Location $_folder
     New-Harddisk -vm $_.vmname -CapacityKB $_.datadrive1
     New-Harddisk -vm $_.vmname -CapacityKB $_.datadrive2
     Set-VM -VM $_.vmname -MemoryMB $_.mem -NumCPU $_.cpu -Confirm:$false
     get-networkadapter $_.vmname | set-networkadapter -networkname $_.pgname -Confirm:$false
     Get-VM -Name $_.vmname | Set-CustomField -Name "Creation Date" -Value $date -Confirm:$false
     Get-VM -Name $_.vmname | Set-CustomField -Name "Expiration Date" -Value $expdate -Confirm:$false
     Get-VM -Name $_.vmname | Set-CustomField -Name "Request Number" -Value $reqno -Confirm:$false
     Get-VM -Name $_.vmname | Set-CustomField -Name "System Owner" -Value $sysowner -Confirm:$false
    }
    
  • Dashboard several variable guests of presentation in the title

    Hi all

    I have 3 guests of dashboard and I have to make them appear on the title of the report when they select guests. I know how to do it with a command prompt. Not sure if I can with several selections prompt appear on the title of the report, if so could you please give me the format how can I do. for example the electronic sales in-store Super CA, ABR,

    Thank you
    Ravi

    A presentation variable can only contain a single value. This is why you cannot use PVs when you have a multiple selection prompt. This is also true when you have "All choices" as the selection. Behind the scenes, OBIEE interprets this chain "filterless". Therefore, there is nothing to save in the PV, and you get an error. Once you press the "Go" button, you set the variable so it can display the value.

    I have no work around this issue for what you are trying to do. I'm sorry.

  • ActionScript 3 - several variables for event listener.

    OK, I have a question (of course this is the reason why I'm here).  I put emphasis on PHP a lot lately and just had a customer who requires an MP3 play several songs so I had to whip on my rusty actionscript skills.  I have the complete player and it does not work as you wish.  The downside is that there are several pieces.  I use separate functions for each song and separate event listeners.  My main question is there a way to combine these functions into one and just use the event listener to pass another variable to functions?  Here is a sample of one of the code for Song1.  I would like to do so anywhere there is Song1 in the code, I can make a variable so I can put for example (Song2, Song3, Song4, etc..)  In this way, I can have one or two functions to manage all the songs instead of having to copy, paste and then search and replace.

    Thanks for the help!

    // Song 1
    var Song1:Sound = new Sound();
    pbSong1.source = Song1;
    //pbSong1.visible = false;
    var Song1Loaded:Boolean = false;
    
    pbSong1.addEventListener(Event.COMPLETE, Song1LoadComplete);
    btnSong1Play.addEventListener(MouseEvent.CLICK, Song1Play);
    btnSong1Stop.addEventListener(MouseEvent.CLICK, Stop);
    
    function Song1Play(event:MouseEvent) {
         if (Song1Loaded == true) {
              sndchnlMain.stop();
              sndchnlMain = Song1.play();
         } else {
              pbSong1.visible = true;
              Song1.load(new URLRequest("media/music/Song1.mp3"));
         }
    }
    
    function Song1LoadComplete(event:Event) {
         trace("Size of file: " + Song1.bytesTotal);
         Song1.close();
         Song1Loaded = true;
         if(sndchnlMain) {
              sndchnlMain.stop();
         }
         sndchnlMain = Song1.play();
         pbSong1.visible = false;
    }
    

    You can code

    function SongPlay(event:MouseEvent) {var songNum:int = Number(event.currentTarget.name.split(btnSong).join("").split("Play").join(""));      if (SongLoaded) {  // use one booleanSongLoaded=false;           sndchn.stop();  // use one soundchannel
             sndchn = this["Song"+songNum].play();
         } else {
              pbSong1.visible = true;
              this["Song"+songNum].load(new URLRequest("media/music/Song"+soundNum+".mp3"));
         }
    }
    
    
  • Audit of several variables in an If statement?

    Hello!

    I just searched the internet for some code to check multiple variables in a big If statement, I just wanted to check here if the code I found is correct!

    It is good to type it like this?

    If ((véhicule == "voiture") & & (field == 'dryroad') & & (speed == '20') & & (State == "sober")) {}

    gotoAndPlay ("cardryroad20sober");

    } else if ((et ainsi de suite...))

    Yes, although you need not use inner brackets (not issue them with however).  Internal brackets can be used when you want to group several conditions to be evaluated as a combination compared to another combination or criteria...

    if(A && B) | C)...

    In this example, the A and B evaluate to true for their combination assess the true, whereas C itself can evaluate to true and get the same end result.

  • Using the variable string quickly calling several variables

    OK, I'm not entirely sure how to explain it, but I will do my best...

    I have had several similar Boolean variables which are publicly declared at the beginning of my class.

    for example

    public var _ball0_mcPlaced:Boolean = false;
    public var _ball1_mcPlaced:Boolean = false;
    public var _ball2_mcPlaced:Boolean = false; 

    This will determine whether or not a particular ball was placed in a target area.

    Now I want to use this variable again in a function... However, I do not want to write in the variable for each ball in the service.

    Is there a faster way to access this variable by using a string inside the function varibale?  Each ball becomes a target of the event if clicked, so I could use something like...

    ("_" + event.target.name + "Placé") to create the dependent variable on which ball is selected?
    So, if ball0_mc is selected it returns the _ball0_mcPlaced variable?

    How can I do this?


    See you soon

    It would be written using the array notation in the form of...

    ["_" + event.target.name + "Placé"] = true;

  • Is it possible to write continuously several variables in a spreadsheet file?

    I'm writing a LabVIEW program that will write continuously three variables (temperature (F), Temperature (C) and rate of change of temperature over the change in time (C/s)) to a single file, in 3 separate columns, as well as the corresponding time.  I have worked to understand a few hours and did not find anything.  I was wondering if it is possible and if so, how?


  • How to enable notification of change of value with DSC for several variables

    Hello

    I would like to request a notification with DSC for two shared variables value saved for change events. In the example attached, it is no problem to do it for only a variable. But I have no idea how to do to achieve for that variable.

    Any ideas?

    Matthias

    Hi Matthias,

    You can implement it as you can see in the attached example.

    Best regards
    Mencef

  • DATACOPY function problem using several variables quick

    Hello

    I have problem when I use more variables and then a quick calculation with DATACOPY function. When I put a prompt variable in function DATACOPY it works but when I add one or more it gives me error Essbasse (I can see it in the Essbase Administration journal not in the syntax checking process):

    Not valid [Calc Script syntax

    DATACOPY Q1020-> Dec-> 'FY14'-]

    [Fri Jul 11 15:04:25 2014] Local/TS_PLAN/Prihodi/admin@Native Directory/1004/Error (1200421)

    Error occurred at or after the line [8]

    -Essbase put FY14 because it is rapidly Variable in this error above.

    I try datacopy function with this:

    DATACOPY Q1020-> Dec-> "FY14 '... It works

    DATACOPY Q1200-> Dec-> {YearPrompt}... It works

    DATACOPY Q1200-> Dec-> {YearPrompt}-> {ScenarioPrompt} it doesn't it break on variable ScenarioPrompt.

    Thank you

    Finally, I solved my problem. That was the problem Essbasse how to understand the spaces between the dimensions. I didn't not use quotes for members and I put space between the arrows. It gave me an error I think because he did not understand space as the space. Now, when I use quotes and remove the space between the arrows cross dimensions it works.

  • Is it possible to make a variable of several variables?

    Which means that I can define a new variable as two existing variables?

    As in, I have already a username variable and one ID. I want a new variable called UserNameAndID that shows something like "Username, ID" or "username (ID).

    You can concatenate a new variable or one of the two existing variables, with an expression:

    If stored v_one 'Lieve' and stored v_two "Weymeis', the result for v_three will be"Lieve Weymeis".

  • Trying to save several variables

    I'm working on a deployment script, my goal is now to save the virtual machine name and a personalized vCenter attribute called "assignee" in a variable, I want the name of the variable for the actual name of the virtual machine to make it easier.  The "assignee" attribute is what it sounds just like the name of the person assigned to the virtual machine.  When I deploy new virtual machines they will have the same name VM and the transferee will be the same, so bascially, it's a pull down the current info, then a put option at the back of this same info

    So I'd like something like this:

    $VMname = $VMname, "John D".

    $VMname1 = $VMname1, ' Jane D.

    and so on.

    I have a small amount of code I try to use to get to work, really nothing of depth:

    Get-file test. Get - VM | {foreach}
    If (($_ |)) Get-Annotation - customAttribute "assignee") .value - gt 0)
    {$temp, $temp1 = @($_.name, ($_ |))} {(Get-Annotation-CustomAttribute_"Assignee").value)}
    }

    Any help is appreciated... Thank you

    There was indeed a missing brace (copy/paste is not my friend).

    I've corrected it.

    It will take not years, just convenient regular.

    And if you get stuck, start a thread.

  • How the value for several variables using a single guest

    Is there a way to put more than one variable with a single guest?
    for example, the value @CurrentYear and @PasteYear using just a single guest for @CurrentYear.

    A clue?

    Thank you

    Luke

    Using variables to repository you can set like this.
    Check this link http://gerardnico.com/wiki/dat/obiee/set_variable

    If brand pls help

  • Several variables in one in a package

    Hello

    I have 6 variables, I need to freshen up before the execution of two mappings put variables in one and how to use it in a package.

    Thanks for your time and your help.

    As Marc said, just drag all your variables within a packet and link them with OK (green) transition.
    Then click on each variable inside your package and make sure it is set to the refresh mode.

    You can add your 2 interfaces within a same parcel then;).

Maybe you are looking for

  • New tab is now "Bing." Add them all to have been deleted.

    I downloaded a virus I guess. Bing is now the new tab I opened. I want to return to the normal screen for new tabs on Firefox

  • Satellite A210-1AP - video card no longer works play Call Of Duty 4

    Hello I have problems with my video card.When I was playing call of duty 4 5 minutes from my video card stops work and the restart of the screen. Then he said: your video card no longer works and the problem solved.My graphics card is ATI Mobility Ra

  • Update video P6 card - 2220t

    Hi I need to update my video card to one that has a HDMI out on it, not for the games just to watch movies any suggestions would be great just need one that is compatible

  • Pavillion dv6 3060tx: rest for one minute the HP logo on my paviolion dv6

    Suddenly, my PC started to stay for approximately 1 miinute at the HP logo during boot, usually it took only a few seconds. There is no hardware changes during the period from the beginning of this problem. These are the things that I tried to solve

  • Need drivers for eMachines W3650

    Hello I need some drivers for an eMachines W3650. When I try to change my display settings of 1600 by 1200, it says "cannot display this video mode". It does the same thing for 1920 in 1440, which meant that I can't use a screen with this PC and I ne