How do I associate timing with multiple AI loops that is independan​t of loop execution speed

I am using Labview 7.1 and I am performing AI of
voltage on different channels of the same multifunction DAQ.  I am
using while loops to aquire the data.  I am writing the data to
spreadsheet file with an associated time as a 2D array.  Currently I am
using the 'elapsed time' interactive subVI to get the time in seconds
(attempting to use the 'Get Date/Time in seconds' and converting it to
DBL results in time values that do not change. My thoughts are that
maybe the number of seconds is too large to display single second
precision with a DBL floating point number). When I run AI on two
multiple loops they execute at different rates and thus the time values
from "elapsed time" are accumulated at different rates. I have tried
using timed loops to control timing, but if one loop executes at a rate
slower than the timing of the loop the 'elapsed time' still accumulates
at different rates.  I need to be able to associate both analog inputs
to the same time
value in the spreadsheet value and I would like to find a way to
associate a time with each data point that is independant of loop
execution speed (although I would still like to control execution speed
of the loops. I am pretty new to Labview and programming in general,
any help would be greatly appreciated.

If you want to read more than one AI at the same time, you should use a trigger.  You would need to set up the AI Trigger to an external source.  Then you would have to use a function generator or digital out to create a clock.  The clock would be wired to the AI external trigger.  When the clock goes high (or low depending on configuration), both AIs would read.  That is the method I use when needing to sync multiple AI inputs.
- tbob
Inventor of the WORM Global

Similar Messages

  • How do I share iTunes with multiple users on Mac mini?

    How do I share iTunes with multiple users on Mac mini?

    You have to turn on Sharing and then Authenticate Sharing on the other devices. You can have up to 5.

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

  • How to design a form with multiple lang(Arabic and Eng) in a page

    Hi All,
    Could you pls help me how to design a form with multiple languages. when I set the form proprties-->Form Locale as Arabic. English text is comming in reverse and when set the FormLocale as English, Arabic text is comming in revese.
    Pls help me how to design
    Thanks in advance.
    Regards,
    Jayakar

    I am not sure how you can have two different languages inside the same PDF.
    Alternatively, if you want to place only the static labels, you can convert all the static label in one language to images and set the form language setting to other. And place the images inside the form using Image field. For example, you can keep the form language as English and then convert all the arabic language labels/ Static text to images.
    Anotherway,
         Have same sections in both the languages and hide and unhide based on the user selection of the language..
         if your user chooses Arabic, then you can unhide the Arabic sections and change the form language properties programmatically..
    Thanks
    Srini

  • How to design a form with multiple lang(Arabic and Eng) in a pge

    Hi All,
    Could you pls help me how to design a form with multiple languages. when I set the form proprties-->Form Locale as Arabic. English text is comming in reverse and when set the FormLocale as English, Arabic text is comming in revese.
    Pls help me how to design
    Thanks in advance.
    Regards,
    Jayakar

    I am not sure how you can have two different languages inside the same PDF.
    Alternatively, if you want to place only the static labels, you can convert all the static label in one language to images and set the form language setting to other. And place the images inside the form using Image field. For example, you can keep the form language as English and then convert all the arabic language labels/ Static text to images.
    Anotherway,
         Have same sections in both the languages and hide and unhide based on the user selection of the language..
         if your user chooses Arabic, then you can unhide the Arabic sections and change the form language properties programmatically..
    Thanks
    Srini

  • How to write a applet with multiple menu

    Hi all,
    How to write a applet with multiple menu or please tell me where can I get a examples
    thanks

    i'm writing a project and it seem not work with browser. If anyone can help please leave me a e-mail so that i can send my source to you.
    Thanks so much

  • How does create a server with multiple Clients ?

    Any people can lead me .
    How does create a server with multiple Clients ?
    Thanks

    For a multithreaded server you will need a thread to listen and at least one thread per client. If the conversation is half duplex, one thread per client works very well, if it's full duplex you will find one thread to send and one to receive much easier to program.
    I posted a Simple Socket Server that uses 1+2*clients threads.

  • How can I cancel an order made as apple guest? or how can i associate it with an account?

    how can I cancel an order made as apple guest? or how can i associate it with an account?

    You should still have an order number
    call 1-800-MY-APPLE

  • How to fix a problem with my book pro that has a gray screen with a folder with a question mark on it

    does any one know how to fix a problem with my book pro that has a gray screen with a folder with a question mark on it?

    Hello Mokhtary123 and welcome to Apple Support Communities,
    It will help us diagnose your problem to know the exact model, size, year built, RAM installed and OS you're running.
    But basically your system can't find the boot disk. Usually this is a symptom of a dead/dying/corrupted hard drive;
    A flashing question mark or globe appears when you start your Mac - Apple Support
    OS X Recovery
    http://support.apple.com/en-us/HT4718

  • How do i sync iphone with multiple macs? and few questions

    Hi
    I would appreciate if anyone would help me.
    1. I would like to know how to sync my iphone with different macs. I have a macbook 13 and a macbook 15 and would like to use BOTH to be able to transfer data without losing them. (address, apps, photos and music)
    would like to use this feature if I were to be suddenly on a trip and a friend would like to share some of his files (audio, apps, photos..etc)
    2. is it possible to use internet tethering on multiple macs or example a "spontanious" mac? (ex. if I were suddenly to use internet through usb on a friends mac while we were on a trip but it were programmed on my mac at home)
    3. my internet tethering is only working on one mac which I usually use to sync everything... i tried just using tethering through usb on the other mac wihtout any sync but somehow it didnt work... usually i just plug and play and start using firefox... by automatic detection...
    4. is there also a way to copy files from iphone onto a mac which would not be one of my libraries?
    5. why cant i use iphone like the ipod as a disk use?
    I am aware that these things are somewhat possible because i have read quiet a few artivles but they are sadly enough not so current... any help appreciated.

    #1: As has been said, you can't get around it. An iPhone cannot be synched to more than one computer for any media content (it can be for contacts and calendar information, I believe).
    #4: You can transfer items purchased from the iTunes Store to another computer but only if you disallow synchronization and authorize that computer to your iTunes Store account. There are third-party utilities that can transfer non-iTunes Store content.
    #5: there is no disk mode in an iPhone and no way to enable one, at least not in the sense of disk mode in earlier iPods. There are third-party apps that allow some file transfer to and from an iPhone.
    I can't help with tethering questions.

  • How to use one PSE with multiple URLs?

    I need to hit my DMZ SAP Web Dispatcher with multiple unique URLs.  I am starting off using webdisp1.abc.com and webdisp2.vde.com.  DNS will resolve both the Web Dispatcher Host.  Following Tobias Winterhalter's Blog: Name-based virtual hosts and one SAP Web Dispatcher to access multiple SAP systems.
    My question is how do I go about generating the pse so I can store both webdisp1.abc.com and webdisp2.vde.com?  Do I just import the first request and initiate another certificate request using the same pse?
    Example
    sapgenpse gen_pse -s 2048 -p D:\<file path>\SAPSSLS.pse -r D:\<file path>\webdisp1.req CN=webdisp1.abc.com, OU=IT, O=XYZ Inc., C=US
    Cheers,
    Dan Mead

    Hi Daniel,
    what you are looking for are so called SAN certificates. As Martin said, with sapgenpse you are pretty out of luck. However you can create the certificates using openssl and then use sapgenpse to import them into a pse. There are a number of guides on how to create SAN certificates on the web, like the one mentioned by Martin from CAcert (which is one of the best imho) or this one. And there are also guides on the internet on how to convert OpenSSL keys to PSE.
    You should however keep in mind, that SAN certificates are more expensive than standard certificates. Therefor they only pay if the hostnames in there are stable for the lifetime of the certificate. If the hostnames need to change once a year, you already will be better off (from a cost perspective) by creating one pse per hostname an let the webdispatcher listen to different addresses, as each hostname requires a new certificate signed by the CA.
    Please also make sure, the systems and browsers connecting to your webservers are able to understand SAN certificates. For SAP systems this requires at least pl24 of the sapcryptolib.
    Kind regards,
    Patrick

  • How to control one server with multiple clients via TCP/IP

    I am wanting to control a single server with multiple clients.  Only one client would be active at a time, so there would be no conflict.  I want to use TCP/IP.  So far, I have programmed a cluster that passes data back to the server with no problems.  The challenge come in when a second client is added to the mix.  I have't been able to figure out how to turn each client on and send the appropriate data and then turn it off so it doesn't keep sending the same data to the server. 
    Here are the things that I have considered and did some preliminary testing, but don't really know how to impliment:
    1.  Send a numeric on the front of the cluster packet that tells the server that data is on the way.
    2.  Send a boolean on the front of the cluster packet to somehow turn the server TCP/IP on.
    The problem I have found is that LabVIEW TCP/IP doesn't like to be turned on and off.  If it doesn't get the data it expects, it goes into a reset mode and that kills the response time.
    Any help?

    You should consider implementing a set of simple one-byte commands that can be sent back and forth between the Server and the Clients. You can base all of these ideas off the example in the Example Finder under Networking >> TCP and UDP called Multiple Connections - Server.
    You will have two loops in the server VI: one to wait for new connections, and one to send and receive data from the existing connections. For instance, after one of the clients connects, it can request control of the server to send data to it by sending the character "R" for request. Every time the send/receive loop of the Server executes, the first thing it can do is to check all the existing connections to see if any of the clients have sent a control request ("R"). If so, it will create a buffer (array) of control requests. This could be in the form of Connection IDs or indexes in the array for a particular Connection ID. Your choice.
    After the Server receives a request for contol, if it is not already under control by another client, then it can send a response to the first client on the control request list. For instance, the server could send the first client a "S" command for send. Note that after the clients send their control request, they should execute a TCP Read and wait indefinitely for the server to respond with the one-byte "S" command. Then, once the client in control is finished sending data to the server, it could send the character "X" telling the Server to release it from control.
    The example I mentioned above already does a similar thing. Note how when a client wants to disconnect, they send the letter "Q". You can see this in the Multiple Connections - Client VI. The Server then checks each individual connection to see if it's received this one-byte command, and if it has, it closes the connection to the client. This is what you would want to implement, but instead of having just one command, you'll have to distinguish between a few and build up a buffer of control requests.
    Finally, if a client does decide to disconnect in your application, they could send the command "Q" just like the example above. At this point, close the connection and remove that Connection ID from the array of connections. You will also have to handle the case that this client was in the request control waiting line when it disconnected, in which case you need to delete it from that array as well.
    This will definitely work for you, but it will take some work. Best of luck!
    Jarrod S.
    National Instruments

  • How to create list items with multiple attachment files using rest api javascript

    In one of user form I am using javascript rest api to create a list item with multiple attachment files. So far I am able to create list item and once created uploading an attachment file. But this is two step process first create an item and then upload
    a file.
    It create an additional version of the item which is not desired. Also I am not able find a way to attach multiple files in a go. Following is the code I am using.
    createitem.executeAsync({
                    url: "/_api/web/lists/GetByTitle('UserForm')/items(1)/AttachmentFiles/add(FileName='" + aFile.name + "')",
                    method: "POST",
                    contentType: "application/json;odata=verbose",
                    headers: {
                        "Accept": "application/json;odata=verbose",
                        "X-RequestDigest": $("#__REQUESTDIGEST").val()
                    binaryStringRequestBody: true,
                    body: fileContent,
                    success: fnsuccess,
                    error: fnerror
    So somehow I need to combine item attributes along with attachment files in body: param. I visited https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListItem but no success.
    Appreciate any help.

    Thanks Mahesh for the reply and post you share it was useful.
    But this does not solve the core of the issue. You are uploading attachments after creation of item and multiple files are being attached in loop. This is kind of iterative update to an existing item with attachments. This will end up creating multiple versions. 
    What I am trying to achieve is to create an item along with multiple attachments in a go. No item updates further to attach a file.
    Please suggest how this can be done in one go. SharePoint does it when one creates an item with multiple attachment.
    Thanks for your reply.

  • How to create a ListDefinition with multiple ContentTypes

    Hi,
    i need to create a list definition with two contenttypes. When is use the Visual Studio SharePoint ListDefinition from ContentType, i am only able to add one contenttype to the list. But i have two contenttypes. I don't know how to add them to a ListDefinition
    (DocumentLibrary).
    This is my Contenttype:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Field ID="{1D6C3BF2-5269-4892-B147-659A5EE36BED}" Name="MyChoiceField" DisplayName="MyChoiceField" Type="Choice" Group="MyBox" Hidden="False" Required="False">
    <CHOICES>
    <CHOICE>-/-</CHOICE>
    <CHOICE>Choice1</CHOICE>
    <CHOICE>Choice2</CHOICE>
    </CHOICES>
    </Field>
    <!-- Parent ContentType: Document (0x0101) -->
    <ContentType ID="0x010100d7d016b413b244e8a6a185cf8b0afd3b"
    Name="MyBox Document"
    Group="MyBox"
    Description=""
    Inherits="False"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{1D6C3BF2-5269-4892-B147-659A5EE36BED}" />
    <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Hidden="TRUE" Required="FALSE" DisplayName="_hidden" />
    </FieldRefs>
    </ContentType>
    <!-- Parent ContentType: Folder (0x0120) -->
    <ContentType ID="0x012000cdce40c9703b4b5aa7a84044a040c005"
    Name="MyBox Folder"
    Group="MyBox"
    Description=""
    Inherits="False"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{1D6C3BF2-5269-4892-B147-659A5EE36BED}" />
    </FieldRefs>
    </ContentType>
    </Elements>
    Is there a way to create a minimal schema.xml with these contenttypes manually or what are the steps to build a listdefinition with multiple contenttypes?
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    You can define them in the schema.xml of list definition.
    <?xml version="1.0" encoding="utf-8"?>
    <List xmlns:ows="Microsoft SharePoint" Title="Something" Direction="$Resources:Direction;" Url="Something" BaseType="1" xmlns="http://schemas.microsoft.com/sharepoint/" EnableContentTypes="TRUE">
    <MetaData>
    <ContentTypes>
    <ContentTypeRef ID="0x0100707A19136D594D7784D9E30A5FBA58C1002D7898DEE60A4FDEBD3CD1EFAB442000" />
    <ContentTypeRef ID="0x0100707A19136D594D7784D9E30A5FBA58C1002D7898DEE60A4FDEBD3CD1EFAB4427A000678E9CDB185C4DCEAC41F865393A1234" />
    <ContentTypeRef ID="0x0100707A19136D594D7784D9E30A5FBA58C1002D7898DEE60A4FDEBD3CD1EFAB4427A0007A4D2F6526CA4D8F8B5AD2BD64C3A123" />
    </ContentTypes>
    <Fields> </Fields>
    <Views> </Views>  </MetaData>
    </List>
    --Cheers

  • How can i author a DVD with multiple timelines so that "previous chapter" actually works?

    I am trying to burn a DVD with multiple short films. i used a timeline for each film and a playlist for the "play all" button that includes all timelines. Problem is when you press previous chapter it only takes you to the beginning of the current film youre watching, no amount of double or triple clicking back will work. How do I get around this?

    To mix the footage, you should be able to go back to PrPro, and create a 16:9 Sequence. Bring the 4:3 material into that, allowing the black bars to exist, and then Export that 16:9 Sequence as 16:9, for Import into En. You will have the pillarboxing with that 4:3 material, but that is what you want, correct?
    Good luck,
    Hunt

Maybe you are looking for

  • Budget exceeding error message coming up at the time of GRN

    Dear Guru's I am facing a problem at the time of GRN, When i am going to create GRN to purchase order then message is coming up budgut exceed. Regards, Vishal Kr. Sharma

  • FM for compairing The values of two TR

    hi Experts, FM for Compairing transport request (TR) based on the   primary key  values assosiated with that . Regards Amit kumar Edited by: Amit Kumar on Sep 10, 2008 10:59 AM

  • Change the kernel keymap and xkbd keyboard layout?

    I'd like to remap CTRL+(Left,Right,Up,Down) to Begin,End,PgUp,PgDown And i've to say that i almost succeded, but probably there's a better way. For the tty, i made a modified it.map.gz called itCtrlArrows.map.gz, put it into /usr/share/kbd/keymaps/i3

  • HT5654 How to restore my IPAD

    Hello, how do I restore my IPAD, it is showing power cable and itunes icon on start-up window

  • Can't establish VPN on windows client to OSX server

    Hi everyone, I'm stuck for a while now with a very annoying problem. I can't establish a VPN connection on a windows client to a OSX Server. It worked fine while we had OSX server 10.6. We recently updated to 10.8 and got this problem. I know some of