How to transmit DATA between several state machines.

Hi I'm doing a project that needs to acquire data from a simulated data file and display it on a graphical interface. Two of them are manufactured in a state machine. I wonder if it is a good way of communication of data between two state machines? It would be very appreciated if you can provide a few examples. Thank you very much.

OK, there are plenty of ways to communicate, but who are these state machines in the same project? Same VI? All LabVIEW?

I like functional global variables due to the functionality that can be included in the. If they are used wrongly, as most of the things with the coding, you will create the races and break your code.

Work of local variable, but I try to clear them tsar when possible. If they are used wrongly, as most of the things with the coding, you will create the races and break your code.

Queues are pretty popular to connect, but try to stay with fixed size data, if you think that the limits of memory could be a problem.

If you speak through the eyes of network to published static Variables (do not use these unless you have a stable network) network, TCP/IP, UDP, or Web Services flow (you need experience in this field. It is not just together.

LabVIEW is a good way to program, but this kind of key options.

Tags: NI Software

Similar Questions

  • Storage of data in a State Machine

    Hello

    I am building an optical measurement of fluorescense set-up and plan to control using LabView.
    I need to scan a range of wavelengths and to each acquire a measure. I just realized the best way is to do it with a state machine, which will travel two States (first Set wavelength, second Aquire) until the final page is reached.

    I would draw wavelength acquired data vs (X vs Y, two tables I guess) that the analysis is performed.

    And after several iterations, when the analysis is complete, I want to save all the data to the file (for example, only two columns, one of the wavelengths, the second the acquired data).

    Therefore, for each iteration of the scan, I need store the length of current wave and its correspondents. This information will also have to pass between the States, as I want the plot to be real-time (during scanning).

    As a novice of LabView, I'm not sure what is the best way to do it (shift registers? AE? queues?) and I would appreciate any assistance.

    Thank you!

    Shift registers is the most simple and suggested way.

    Just be a little careful to connect across all States, otherwise you'll ditch the data to halfway.

    /Y

  • How to filter dates between the current date and the number of dates past

    Hello

    On the answers, how can I do to return a report that contains data between the current dates and 31 days in the past?

    Users want to connect display the report and the report should show only data 31 days to the date of the day... How would I be able to set it up on the answers that since I have not access to RPD?

    Please let me know

    Thank you

    use the date filter between current_date and timestampadd (sql_tsi_day, -31, current_date)

    fixed

  • Marshall plan: how to pass data between the main field and sub-application

    Hello

    I'm trying to load a Flex 3.5 application in Flex 4. In the process, I need to move a strong local typed object from main application to the loaded swf file. And I also have to pass a rope and a bitmap of application sub to the main application. Have an example to show how to pass data in the application domain?

    Thank you

    SW

    Define scaleContent = true, set a breakpoint on SWFLoader.as:doScaleContent and

    see if he thinks there's a swfBridge.

  • Sharing the drive between several virtual machines

    Hi all

    We have a configuration with a SAN (Dell Compellent) and use vSphere 6 to host a number of Windows servers. We now have a giant machine of Windows with a large number of small files for a particular application.

    Now, we would like to create a cluster with a LoadBalancer in front of him, so that we can handle more load. To do this, we want to create a disk that is shared between 2 (or more) of windows machines.

    One of the problems is that NTFS is not a supported clustered file system. So, I did a lot of research on Google to see what my options are. In my opinion, they are the following:

    1. set up a Cluster Shared Volume (CSV) Microsoft (use SMB if I read the documentation)

    2. the user Windows shares on a separate file server

    3. the user NFS (depreacted under Windows)

    4. switch to Linux and use NFS

    The problem I have, is that they use all the network traffic. For example, option 2 is ridiculous slow. NFS under Linux is also a way slower than the local drive (managed by VMWare iSCSI) disk access and NFS on windows does not appear to be

    support very well.

    I know that there are aware filesystems, clustered as VMFS etc. Is there a way to access it directly from my Windows VM or are there devices SAN which is directly accessible from the virtual Windows machine?

    Or maybe there are other solutions to set up a shared drive?

    I know that there are aware filesystems, clustered as VMFS etc. Is there a way to access it directly from my Windows VM or are there devices SAN which is directly accessible from the virtual Windows machine?

    VMFS is a really clustered file system and allow access of multiple virtual machine the same amount of storage (data store) which is different from that to create a virtual disk (hard) and present to multiple virtual machines. You can do this, BUT the guest virtual machine should take care of several accesses to the hard, for Windows, you must turn on the feature... without this clustering with failover data may be corrupted.

    I think the best and supported solution for you is to create another cluster with Failover Cluster functionality and create a resource sharing files with files that will access your NLB nodes.

  • How to map data for several members of a new Member in the new application?

    We are creating a new application with the new account codes, projects and management centres. In some cases
    several former members will map to or roll up to a new Member. Originally we used rules to convert the old APP data to the new app but how cases would be treated? Is it possible to get the data to add to what is currently in a cell rather than destroy the old values?

    There is an option in a rule in the charge to "add to the existing values" or "replace values. If you are mapping multiple members in one Member, just use the "add to the existing values.

    To define this - open state of charge and select 'Options', 'parameters to load data. Select "add to the existing values.

    Using rules of load so that it works fine, until you need to split a member in several Member - responsible rules of course this is impossible.

    -Jake

  • How to separate data in 'several Information.vi tone "?

    NOTE: I have another post on this subject. Here is the link.
    -----------------------------------------------------------------------------------

    My ultimate goal is to get/display of the frequency at which the peaks that passes.

    I've used different methods (vi is attached) but does not own.

    1 table of Max and Min > it only shows Max amplitude but not all orders of magnitude and not the frequencies at which the peaks that passes. I guess I should somehow use a search function in a loop or something, but I have no idea how to do that.

    2 peak detector of. VI > This method was good for the summits, but not the frequency. It shows the indexes that are double. If I multiply them by 10, it gives me the frequency and I don't know why?

    3. several information.vi tone > This method has the advantage of threshold, but it's the combination of the cluster and the table which I don't know how it unbundle and get the frequency. Another problem is that it shows only a single tip and its frequency to the not all same time as I develop the table.

    Thank you

    I have change your dynamic waveform data. Extract several tone Information.vi works better now.

    This function need a waveform as input.

    Concerning

  • How to read data from several files and add columns in a single file

    Hi guys,.

    I have a problem in adding data from files in different columns. I have the attachment a file A and B which I am reading and not able to get the data in the Result.txt file. Please give your opinion on how can I do this

    You must add the data of all files before proceeding with a single entry.

  • How to view the table using state machine

    Hello

    I tried display all required number in the table to the State 'entry', but only can show more than one current. How can I fix this, thank you

    I return the VI you (saved LV 2011... the typedef remains the same, you can keep your)... Do you understand the change?

  • How to extend vmdk for several virtual machines?

    Hello!

    I have a 300 + vm on vsphere5.1 and I need to extend the system drive on each of them. Have ideas of how do with powercli? Thank you.

    You can try something like that.

    It will increase the size of 20% vmdk. Note that the virtual computer must be turned off for this.

    Get-VM | Where {$_.PowerState -eq "PoweredOff"} |Get-HardDisk -Name "Hard disk 1" |Set-HardDisk -CapacityGB ([int]($_.CapacityGB * 0.2)) -Confirm:$false -HelperVM $vm
    

    You can find another example in need a script powercli to increase Harddisk1 of virtual machines in a 20 GB file, can anyone give a script.

  • IR: Display a single row of data on several state lines.

    In an interactive report, it is possible to display data from a database on two or more lines line displayed on a page?

    Lieutenant Commander wrote:
    In an interactive report, it is possible to display data from a database on two or more lines line displayed on a page?

    Yes. Create the necessary structure by using the properties of the detail view .

    Users can switch between views by using the view controls. You can view the report for default detail via a dynamic Action: + {: identifier of the thread = 2187972} +.

  • How only migrate data between SQL Server 2008 Oracle 11?

    According to our requirement, we only have to migrate data from a SQL Server database to an existence
    Oracle database user.
    (1) I tried to do with the wizard of Migration SQL Developer 3.0.04, but find a problem.
    My SQL Server database name is SCDS41P2 and my Oracle database user name is CDS41P2;
    When I used SQL Developer move offline data by the Migration Wizard, I found all the oracle user
    name in movedata files who obtained by running the Migration Wizard
    is dbo_SCDS41P2. If the Oracle user name is not the same as my Oracle username existed.
    the data cannot be moved to my user Oracle existed when I run oracle_ctl.bat in the command line window.
    So I had to change the Oracle username in all the movedata files, but it is difficult to change because there are a lot of tables in
    databases. So could you please tell me how to get the movedata files which is the name of user oracle in them my
    WHEREAS Oracle user name?

    (2) I also tried to use the "copy to Oracle" to copy the data to SQL Server database tables
    the user database was Oracle. When you click on 'copy to Oracle', I selected the option 'Include data' and 'replace '.
    But I found some tables cannot be copied, the error info is as below:
    SPSSCMOR_CONTROLTABLE table failed. Message: ORA-00955: name is already used by an existing object

    Could you please tell me how to deal with this kind of mistake?

    Thank you!

    Published by: 870587 on July 6, 2011 02:57

    Hello
    After following with development the following should work too-

    1 use the migration option to capture and convert the SQL * database server
    2. go in SQL * Developer and remove the converted model.
    3. click on the captured model and choose 'convert '.
    4. click Next and you should get a screen with 2 options - "Data Type Mapping" and "Object Naming.
    5. choose "Object Naming" and scroll down the list until you see the name of the user who will be transformed. For example, in my test, I got the names scott_test and dbo_test - where the owners are 'scott' and 'dba' and 'test' was the name of the database.
    6. change the name of oner_database to just owner - scott_test to scott
    7 complete the conversion process and the owners must be created without the name of the database.
    8. you should now be able to generate the SQL * scripts of charger with only the name of the owner in the CTL files.

    Please try this and let us know if it works for you.

    Kind regards
    Mike

  • How to acquire data through several channels in parallel using E 6070 PXI, PXI-4071 and LabVIEW?

    Hello

    I use LabVIEW and NI PXI-4071 PXI NOR 6070E to measure the current through a variable resistance. Now, I use a single channel of SCB - 68, but I want to add another channel at the same time so that I can have two resistors instead of one that I cam measure current through them.

    I have attached a Pdf file showing installation of equipment to use and code LabVIEW also.

    Can someone look at these files and give me some guidelines or ideas that can help me solve this problem, please.

    Thanks in advance.

    Best regards

    Shaheen.

    Your 4071 can do a measure at a time. Your data acquisition cannot measure resistance is not she of the analog inputs.

    However, you could use a multiplexer and multiplexer your 4071 DMM. This habit give you simultaneous action, but can acquire data one after the other, the speed depends on the multiplexer, you choose!

    I hope this helps.

  • Best-how-how to share data between the case of the event?

    ... more, which would be the best way to disable a case of event if another case of event has not run yet?

    I store the table a landslide enter a while loop that surrounds the structure of the event, then your data is readily available to any event.  However, you will need to wire data in and out of each case of the event table, which can be done easily with the connected tunnels.  If you need display the table of data as well, put an indicator inside the while loop while out of the structure of the event, connected with the registry to offset.

  • How to move data between two similar tables?

    Hi all

    I have two tables with almost the same columns. Table A has 50 columns, table B has 51 columns, which are exactly the same, except a column defined as LOAD_TIME.

    Is there an easy way for me to move the data from Table A to B? the Extra LOAD_TIME column will be set as the time current system. All I want is to avoid the list of all names in column 50. The following SQL code has error ORA-00923.

    INSERT INTO TB_B
    SELECT *, TB_A sysdate;

    Thank you
    INSERT INTO TB_B
    SELECT a.*, sysdate from TB_A a;
    

Maybe you are looking for