Which is the best way to edit this program and make it read 1 sample from each channel?

The original program was made with Traditional NI-DAQ. I have edit it to DAQmx the best that i could. The program it's already applying the voltages that are generate in the code(Daqmx Write.vi). But i'm having problems with acquiring voltages it's giving me rare readings(Daqmx Read.vi)  i don't know if i have to make a (Daqmx Start Task.vi) for each channel in the program or if i can make it work with a single one. Notice i have not make many significant changes because this program is already running in another lab and they give to us the program so we didn't have so much problems but instead of getting the BNC-2090 they got the BNC-2090A that uses DAQmx instead of Traditional. So anyone can help?
Solved!
Go to Solution.
Attachments:
2 Lock-In, 2 V Amp, Vd Amp - 090702(MTP).vi ‏100 KB
2 Lock-In, 2 V Amp, Vd Amp - 090702(MTP)new.vi ‏107 KB

A BNC-2090 is just a connector block.  It has no effect on whether you need to use DAQmx or traditional DAQ.  That is determined by the DAQ card you are connecting the terminal block too.
You might be referring to this document Differences Between the BNC-2090 and BNC-2090A Connector Blocks, but that is just saying to the change in the labels of the terminal block to accurately reflect the newer DAQ cards.
What problems are you having with the new VI you just posted?  Are you getting an erro rmessage?  I don't know what "rare readings" mean.
You really shoud look at some DAQmx examples in the example finder.  Some problems you are having is that your DAQ blocks are all sort of disconnected.  Generally, you should be connecting the purple wire from your create task function, throught the start, read or write, and on to the close task.  Many of your DAQ functions are just sitting out there on little islands right now.  You should also be connecting up your error wires.
With DAQmx, you should be combining all of your analog channels in a single task.  It should look something like Dev0/AI0..AI7.  Then use an N channel 1 sample DAQmx read to get an array of the readings, which you can then use index array to break apart.
Other things you should do is replace the stacked sequence structures with flat sequence structures.  Turn on AutoGrow for some of your structures such as the loops.  In the end, you might find you can eliminate some sequence structures.

Similar Messages

  • I have two videos and I would like to use parts of both videos with one audio track what is the best way to edit this?, I have two videos and I would like to use parts of both videos with one audio track what is the best way to edit this?

    In Final Cut Express I have two videos I'd like to merge parts of each video into a final film.  What is the best way to do this in FCE?

    Hi
    I use a slightly different way than Alchroma.
    Same
    • One video on track 1 and the other on Video.track 2
    • Resize to 25% and move one to the left and the other to the right
    Diff
    • I don't use the blade tool
    • I use the Pen tool and change the transparency - then I get fast or slow transitions in same stroke and easy to fine-tune later if needed. (But this can be done with the Roll-tool if Blade is used - so it might be as easy)
    Final
    • Resize to 100% and Center
    Video is done
    Audio - very close to this by changing the level so that best audio will dominate
    • Pen tool here too
    But that's me - the Alchroma way is as good as this or may be better for some
    Yours Bengt W

  • Which is the best way to solve this scenario

    Hi all I am very new to flex ,just know some basics only please give me your valuable suggestion on below mentioned quires.
    1. how to bulid this kind of layout in flex ??
    (I used data grid and itemrender but the buttons and combox are not comming direclty is it require any action to display them in data grid ??
    2. how to fix the size of a button in data grid ?
    Please help me on this ...
    Thanks
    ksk

    Thanks for the suggestion .. I have used the datagrid for that layout. for placing a buttons i have used the Hbox layout .. now everything is cmng in propermanner .. thank u once again ...
    one more query :
    how to call a function from itemrenderer ??
    here is my code :
    <mx:DataGrid  x="141" y="129" id="dg" dataProvider="{dgdp1}" height="112" >
            <mx:columns>
                <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
                <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
                <mx:DataGridColumn headerText="Column 4" dataField="col4">
                <mx:itemRenderer>
                          <mx:Component>
                                            <mx:HBox>
                                    <mx:Button label="+" click="outerDocument." />
                                    <mx:Button label="-" />
                          </mx:HBox>
                          </mx:Component>
                </mx:itemRenderer>
                </mx:DataGridColumn>
            </mx:columns>
        </mx:DataGrid>
    I have a one function(xyz) in script .
    can you please tell me how to call that xyz function from  itemrender ???

  • I purchased Martha Stewart Living for IPad then realized it was free for me if I already received it in the mail. Now I need help in canceling the order and am having trouble finding the best way to do this easily and quickly. Please help.

    How can I most easily get refunded for subscribing to Martha Stewart Living on iPad in error?

    Normally there are no refunds, but you can try your luck.
    You can report issues with your iTunes Store purchases directly through the iTunes Store:
      http://support.apple.com/kb/HT1933

  • What is the best way to edit meta data..

    What is the best way to edit meta data and tag photos, faces, places etc. and have the data saved to the original photo.
    On a PC I would just use Windows Gallery. iPhoto on the Mac allows for some tagging, but it doesn't save to the original file.
    I like to have my photos in a folder, edit them and save the changes.
    What software would work best on a MAC to accomplish this?
    Thanks for any help,
    Nick

    iPhoto is a database and any metadata you add or edit is available in any app - if you learn how to use it.
    iPhoto is a non-destructive processor. It never touches the original file - it treats it like a film shooter treats the negative.
    If you want a copy of the original file with the metadata included simply export a copy.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.
    As an FYI:
    For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491

  • Filter or Restrict on? Which is the best way to put it?

    Hello Experts,
    If there is a Characteristic/Key figure on a report in BEx, and I right click on it and find another data element say, 0FISPER it I EDIT. On right click on 0FISPER I a variable.
    My question is this, do we way that the key figure is RESTRICTED ON 0FISPER
    or, key figure is FILTERED by 0FISPER
    When do we use Filter or Restrict on? Which is the best way to put it? How best is it read, please include the variable in your discussion.
    I will appreciate this clarification.
    e.g. Company code EDIT shows Company codes ZPPTcomp: with nodes  8000, 9000
    Thanks.

    Hi Amanda,
    as per my understanding,
    you are checking the structure field, you have selected edit then you are viewing a key figure and 0fiscper restricted by varaible. am I right?
    if this is the case this is local selection and the key figure is restricted by fiscper variable means the restriction value user can enter in selection screen. if you select 0fiscper and select restrict there you can see single values, value range and you can also see varaible tab. by using varaible tab you can restrict to variable value.
    hope this gives you some understanding.
    Sathya

  • TS1314 I have lots of organized photos on my PC and I want to keep them organized to sync to ipad.... how is the best way to do this?

    I have spent a lot of time saving, organizing and arranging photos (for the last 7 years) on my PC, and would like to know the best way to transfer these, AND MAINTAIN THE ORGANIZATION OF THE FOLDERS, to my new ipad (and later, my iphone). I have a really good system, and I do not want to have to do it all over again, on the ipad. I DO NOT want to subscribe to another monthly service fee (i.e. the iCloud) but DO have iTunes on my PC.
    What is the simplest method to do this ?  I have tried synching, but, each time have lost photos (on my ipad) OR have had NO ORGANIZATION AT ALL to the photos once synced.  I have all these photos (5.6gb) in the My Pictures folder, then subdivided into years, then subdivided into events and months within the years.  So, my transfer of the My Picures folder, completely transfers all of them, but with NO further organization.  Again, I have spent years doing this, and don't want to have to re-invent the wheel. 
    Can someone advise (or even better, lead me to a youtube video) that accurately shows the best way to do this ?
    Thank you, in advance, for your help.
    p.s.  I particularly enjoy Dan Nations very informative articles on how to get the best from my products.  And, wish Apple would explain "how it works" regarding the syncing methods on the Operating System.  It is the only thing I "don't get" about using my iPad..... meanwhile I LOVE my new mini ! ! ! ! ! ! ! thanks Apple, for keeping things simple.... Please don't change that !

    Correct, it will only be one-level, the Photos app doesn't support sub-albums - the sub-folders photos will be included in the parent's album.
    If you select My Pictures at the top of the Photos tab when syncing, then you should get an album for each folder that is directly under it - so if I understand correctly what you described then that would mean an album for 2013, one for 2012 etc. And each of those should include all the photos in the subfolders under it - so 2013 would include the photos from the events and months subfolders under it.
    You can't sync them separately, only the contents of the last sync remains on the iPad, by not including a folder in the next photo sync you are effectively telling iTunes that you no longer want that folder/album on the iPad so it will be removed and be replaced by the contents of the new sync (you can't delete synced photos directly on the iPad, instead they are deleted by not including them in the next sync).
    The app that I use, Photo Manager Pro, allows you to select and copy a folder (via FTP), but you would need to select each subfolder individually, which if you have a lot would be time-consuming (I think that if you select '2013' it would ignore the folders beneath it).

  • I've been using older printers (including an imagesetter) connected to10.5.8  With a new 10.6 machine I'm looking to still use the printers. I can use the olderG5 as a sever if need be. What would be the best way to do this?   ine

    I've replaced my 10.5.8 with another machine 10.6.8 which as we know doesn't support Apple Talk which has been used to print to 2 bulletproof older printers and an imagesetter. I wan't to keep using the printers and can use the 10.5.8 as a server. What is the best way to do this?

    Hi
    You could do this a number of ways. Using the LPD Daemon might work best for your location?
    First: assign the machine you're going to use as the 10.5.8 'server' a fixed IP address.
    Second: add desired printers to that machine using the usual methods.
    Once added share them using the Print Sharing option in the Sharing Preferences Pane. On the 10.6.8 machine add the printer using the IP address of the 10.5.8 'server'.
    System Preferences > Print & Fax and click the '+' icon. Click on the IP Icon and key in the IP address you previously assigned. Leave the Queue field alone and select the relevant PPD from the Print Using field (see below). You'll have to search for these yourself.
    You don't have to 'install' the PPDs on the 10.6.8 machine as such. Simply copying them over from their location on the 10.5.8 machine (use a memory stick to do the transfer) to the same location on the 10.6.8 machine will be enough.
    There should be no need to restart.
    HTH?
    Tony

  • Which is the best way to parse nested XML

    Hello, I am just getting back into using ColdFusion and I am
    working on a project that needs to parse some XML.
    The XML is generated by a third party document.
    I figured out how to grab individual values and such, but I'm
    not sure what is the best way to grab a value in relation to where
    it is in the XML.
    Following is a rather simplified example of the XML
    I need to grab the value of 'Rich Text' in relation to the
    'ID name' value.
    &lt;project&gt;
    &lt;CT text&gt;
    &lt;Group&gt;
    &lt;id name = text1&gt;
    &lt;Rich Text&gt;some sample text&lt;/Rich
    Text&gt;
    &lt;/id&gt;
    &lt;/Group&gt;
    &lt;/CT Text&gt;
    &lt;CT text&gt;
    &lt;Group&gt;
    &lt;Group&gt;
    &lt;id name = text1&gt;
    &lt;Rich Text&gt;some sample text&lt;/Rich
    Text&gt;
    &lt;/id&gt;
    &lt;/Group&gt;
    &lt;/Group&gt;
    &lt;/CT Text&gt;
    &lt;CT text&gt;
    &lt;id name = text2&gt;
    &lt;Rich Text&gt;some more sample text&lt;/Rich
    Text&gt;
    &lt;/id&gt;
    &lt;/CT Text&gt;
    &lt;/project&gt;
    Once parsed, the info I need to output on the page would look
    like
    text 1
    some sample text
    text 2
    some more sample text
    The part that makes this difficult for me is that there may
    be 0 'Group' values or there might be a number of them. As such, I
    can't just grab the value by listing the tree out, since it changes
    depending on the document (there are thousands of these documents
    that I need to parse).
    From what I have seen in some XML examples, there are a
    number of ways to go about doing this, but before I put a lot of
    time into any of them, I was wondering what the 'best' way to do
    this is.
    XSLT? XMLSearch? Structures? Some combination of those or
    other functions?
    P.S. what little I know of using ColdFusion with XML all
    comes from the doc written by Nate Weiss.
    I was a bit let down that after spending well over $1,000 for
    ColdFusion, Adobe left out the only two books that were worth
    printing (the CFML reference guide and the Advanced book). It
    wouldn't have bothered me as much if there was something on the
    product page listing the manuals that said 'we only actually give
    you 2 of the ones listed'.
    Best regards
    Kevin R.

    Hello,
    Could someone do me a huge favor and provide some sample code
    that would parse/output the above xml so that the output would look
    something like the following. . .
    text 1 = some sample text
    text 2 = some more sample text
    The problem I am having is displaying the xmltext for the
    RICH TEXT element in relation to the ID element.
    The code below will return the value of the RICHTEXT
    (incorrectly named in the original XML examples) easily enough, but
    I need to have it show which text number it is.
    Best regards,
    Kevin R.

  • What is the best way to approach this?

    "php 5.3.x + oracle 11g R2 XE 11.2.x.x"
    Hello everyone,
    I'm quite new to oracle (2-4 months) and php(2 weeks).
    I have one query with results that needs to be reused in several parts of my website. I can't seem to find the equivalent of the mysql_data_seek in Oracle. I wanted to reset the cursor/pointer of oci_fetch($result) so that I can scroll the result again.
    So far this are what I have come up:
    A. On first fetch put the the results in a php array and call the array later on.
    B. Do the query again.
    C. Keep on looking for a mysql_data_seek equivalent and fail.
    I'm leaning towards option 'A' but I just wanted to consult the experts.
    Thank you!

    Moved to: What is the best way to approach this? (oci_fetch problem)
    Edited by: m.davide on Oct 23, 2012 2:21 AM
    Edited by: m.davide on Oct 23, 2012 2:22 AM

  • I want to run Quicken through Windows on my macbook pro, whats the best way to do this?

    I want to run Quicken 2012 through Windows on my macbook pro, whats the best way to do this?
    I have been looking at Parallels or VMware in order to use Windows but then I will also need to get a Windows license. Just looking for the most inexpensive way possible as this will probably be the only Windows app I run.
    Also looking at this CrossOver software which says you dont need Windows license. Anyone used this before? had success?

    CrossOver's website has a list of software it has certified as working or working with known issues - Quicken 2012 has a bronze rating meaning it runs but with enough issues that it isn't recommended. In other words, "Run away!"
    Get a copy of Windows 7 OEM from Amazon or New Egg and give it a try with VirtualBox (an open source virtualization program). If VirtualBox doesn't cut it you can always buy VMWare or Parallels.

  • I would like to display what's on my Mac Pro monitor on my iPad with as little latency as possible. What's the best way to do this?

    I would like to display what's on my Mac Pro monitor on my iPad with as little latency as possible. What's the best way to do this?

    Your image history (if I understand you properly) is stored in your catalog file, and nowhere else, and so it is only on a single drive.
    Do you mean you have edited photos on multiple drives? This isn't a problem for Lightroom at all, the software doesn't care, and you can leave things just the way they are. But if it bothers you for some reason, you can move the photos to a single drive if you want. In Lightroom select the desired photos or folders (it's easier to do this using Folders) and drag them to the desired drive.
    Alternative if you will be moving lots of folders: Adobe Lightroom - Find moved or missing files and folders

  • Which is the best way for a called function to identify caller class name.

    Which is the best way for a called function to identify the caller class name .
    1)Using sun.reflect.Reflection from called function
                    Class caller = Reflection.getCallerClass(2);
                    System.out.println("Caller Class Name ::"+caller.getName());2) Analyzing current threads stack trace from called function
                    StackTraceElement[] stElements=Thread.currentThread().getStackTrace();
                    System.out.println("Caller Class Name ::"+stElements[3].getClassName());Is there any alternate ways to achieve the same .Which is the best way ?
    Called function doesn’t have any arguments, I don’t want t pass any arguments from caller function to called function.
    Plz help.
    With kind regards
    Paul

    798185 wrote:
    Which is the best way for a called function to identify the caller class name .
    Is there any alternate ways to achieve the same.SecurityManager
        // 0 is the anonymous SecurityManager class
        // 1 is this class (also works in static context)
        // 2 is calling class
        static Class getClass(int i) {
            return new SecurityManager() {
                protected Class[] getClassContext() {
                    return super.getClassContext();
            }.getClassContext();

  • Narrating Keynote (Voice over slides)?  What is the best way to do this?

    If I have a keynote presentation and I need it narrated (like a a voice over) what is the best way to do this?
    Is it to record an audio file then insert it somehow into the presentation?
    Sorry if this is a dumb question, just not sure how to make it work. I need my boss to do the voice over- so I will probably only get one shot.

    This forum thread offers some options to do this. One simple strategy is to record separate bits of narration for each slide, and simply attach that to each slide. When the presentation is run, the audio file will play for each slide. This approach is much easier than alternatives, but the downside is that it does not allow for narration across slides, which may or may not be important to you. If it is necessary, then you should check out the option (discussed in the thread) of pre-recording the entire narration, then using Soundflower and Keynote's Record Slideshow functionality to create a show with narration.

  • I have iphone 5, after upgrading it to iOS7, front is working find unfortunately rear camera became blurred, what is the best way to fix this? Looking forward to the best solution of this problem.

    I have iphone 5, after upgrading it to iOS7, front is working find unfortunately rear camera became blurred, what is the best way to fix this? Looking forward to the best solution of this problem.

    WORKAROUND FOUND ! Download and install "Awesome Camera" app and take a picture with that app. After 1-2 seconds of standby, it will work. Then you can go back to default Camera app which would work again.Please let me know

Maybe you are looking for