How to acquire data from multiple dataports at the same time

Hi,
I studied the multithreading section of Labview, but still have no idea
how to make it work. Let me briefly explain my situation. I need to
develop a program that can control and acquire data from 4 serial
ports. I have 4 buttons to control starting or stopping acquisation
from the corresponding port. Every acquisation process is a while loop.
How can I start a new acquisation loop (eg. from COM2) while the loop
for COM1 is still running? In other words, I wish the 4 loops running
independently, and are controlled by their corresponding buttons only.
Thanks for any suggestion.
Jin

Hi Anonymous,
      If I were you, I'd create one VI (call it Port.vi) to listen to one port - then make it reentrant.  Drop 4 copies of Port.vi on your Main diagram.  Port.vi inputs could include a VISA reference, a "Start/Stop" notifier and maybe a "Quit" occurance.  Wire to each copy of Port.vi a unique VISA reference and a unique "Start/Stop" [boolean] notifier - let all the copies share the same Quit Occurance.
In Main, have one event case for each of your stop buttons.  When a button is pressed, send the appropriate Start/Stop notifier!
... of course you could accomplish the same thing with four identical loops right in your main diagram, but the more complex the port-handling gets, the easier it will be to manage in one place instead of four.
Cheers!
When they give imbeciles handicap-parking, I won't have so far to walk!

Similar Messages

  • How to acquire data from 2 chs of the same DAQ card at different sampling rate

    I am using single DAQ card (either 6013 or 6014) in my system i want to acquire data from 2 (or more) channels with following requirements
    1. sampling rate of each channel should be independant of each other (say one is 20 Hz and other is 15 kHz)
    2. data from all the channels should be acquired simultaneously.
    3. coding must be done using DAQmx VIs
    I have tried out following things
    1. I created separate task for each channel: i found out that two tasks can not run simultaneously even though the channels are different
    2. I tried out single task with two channels included in it. and i used 'channels to Read' property to determine from which ch. i want to acquire data: this method works fine if the sampling rates are same. but if i change the sampling rate of one channel it gets reflected in other channels as well.
    can somebody help me out to solve this problem.
    i will appreciate if somebody can post the sample code as my deadline is approaching
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

    Hi Dennis Knutson
    Thanks for your suggestion.
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • HT2693 How to download pictures from multiple iPhones with the same Apple ID?

    I have multiple iPhones (e.g. iPhone 4S, iPhone 5) registered under the same Apple ID however i only manage to download the pictures in my iPhone 5 via iCloud.
    How do I retrieve the remaining photos that was uploaded to iCloud previously from my older iPhones with the same Apple ID?
    Pls help!!!

    Hi edristiew,
    Are the photos that you are referring to still in Photo Stream? Remember, Photo Stream has limits which are outlined in this article:
    iCloud: Photo Stream limits
    http://support.apple.com/kb/HT4858
    If the photos are still stored in Photo Stream, this resource may answer your questions about how to extract them (Mac or PC):
    iCloud: Photo Stream FAQ
    http://support.apple.com/kb/HT4486
    If the photos are no longer in Photo Stream, but are in your camera roll, you can import them to your computer:
    iOS: Importing personal photos and videos from iOS devices to your computer
    http://support.apple.com/kb/HT4083
    Cheers!
    Matt M.

  • Retrieving data from different tables in the same time crash

    Hi
    this is probably the wrong way to do it, but this is how I did:
    - I wanted a screen with 3 datagrids components retrieving data from 3 different tables.
    - I could make it work while enabling 1 or 2 of them.  When the 3 are enabled, I get this error:
    btw its a huge msg, I will trim it:
    ArgumentError: Can't find ManagedQuery or ManagedOperation named: getItems_paged     at mx.data::RPCDataServiceAdapter/executeQuery()[C:\depot\DataServices\branches\lcds_modeler 101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:325]     at mx.data::RPCDataServiceAdapter/processDataMessage()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:920]     at RPCDataServiceRequest/invoke()[C:\depot\DataServices\branches\lcds_modeler101\frameworks\ projects\data\src\mx\data\RPCDataServiceAdapter.as:1668]     at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\DataStore.as:3343] ...  it continues forever. 
    the getItems_paged is a auto generated function inside the php class flex generates to handle the tables.
    Each of the datagrid is a custom component. I made so to avoid keeping a bunch of code lines in the main 'page'.
    Any suggestion to make it work smoothly?
    Thanks in advance,
    btp~

    Hi
    this is probably the wrong way to do it, but this is how I did:
    - I wanted a screen with 3 datagrids components retrieving data from 3 different tables.
    - I could make it work while enabling 1 or 2 of them.  When the 3 are enabled, I get this error:
    btw its a huge msg, I will trim it:
    ArgumentError: Can't find ManagedQuery or ManagedOperation named: getItems_paged     at mx.data::RPCDataServiceAdapter/executeQuery()[C:\depot\DataServices\branches\lcds_modeler 101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:325]     at mx.data::RPCDataServiceAdapter/processDataMessage()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:920]     at RPCDataServiceRequest/invoke()[C:\depot\DataServices\branches\lcds_modeler101\frameworks\ projects\data\src\mx\data\RPCDataServiceAdapter.as:1668]     at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\DataStore.as:3343] ...  it continues forever. 
    the getItems_paged is a auto generated function inside the php class flex generates to handle the tables.
    Each of the datagrid is a custom component. I made so to avoid keeping a bunch of code lines in the main 'page'.
    Any suggestion to make it work smoothly?
    Thanks in advance,
    btp~

  • Aperture cannot add GPS data to multiple images at the same time

    I am new to Aperture and have been using it for a week or so now. Today I tried to add GPS data to a number of images and found out, it appears Aperture can only add GPS data to one image at the time. When I select multiple images to add the GPS data to, it just doesn't do anything. It leaves the GPS data blank.
    Here is what I do:
    From the Info-tab I select "GPS" from the drop down menu
    At the bottom of the info tab I show the map
    In the map's search box I enter the location I want to assign to the photo(s)
    From the resulting drop down menu I select the locatiion I want and press the "assign to location" button
    As long as I choose only a single image, this works fine and the GPS Data is added. Not so when I select more than a single image. After pressing the "assign to location" button it seems as if the GPS data is added (there is no message indicating otherwise), but the GPS data in the selected images is blank.
    What am I doing wrong ?
    Additional info
    I have been testing this a bit more and the behavior is even more strange: When you select multiple images in Aperture, they get a thin white border, except the one that you touch last (normally the last image of the selection) that will have a thicker border around it. It appears that, when selecting multiple images, the GPS data is ONLY assigned to the photo in the selected setthat has the thicker border (?????)
    Message was edited by: dinky2

    Rereading your post, I think the problem is, that you are assigning the location from the Info panel and not from the Metadata menu. The Info panel and the Metadata menu ar behaving differently.
    The Info panel will always only affect the primary selection, but the Metadata menu will work on all selected images (unless "Primary only" is checked). So , if you want to assign your location to multiple images, use "Metadata > Assign location" instead of the little map in the "Info" panel.
    Or use the "Places" view. Then you can drag all images at once to the same pin on the map.
    Regards
    Léonie

  • Removing keyword from multiple images at the same time

    None of the documented methods seem to work for me.
    1     Select all the images. Go to Metadata > Remove Keyword [my keyword] - the keyword is only removed from the image that is selected in the batch - i.e the one that has the yellow border round it to show it's the active image.
    2     Select all the images, enter [my keyword] in the Add Keyword field when Keyword Controls is visible and press Shift + Enter - does the same thing as 1 above (removes it from the active image only).
    3     Select all the images, Shift Click on the keyword that I have in my Keyword Controls in the Control Bar - does the same things as 1 above.
    So all these methods, which are supposed to work, do not work for me. The removal of the keyword is only applied to the image that has the yellow border showing it to be the currently active image in the selected batch - the remaining selected imaged still retain the keyword. I can remove it "one at a a time" but it would be great if I could find a solution as to why this isn't working.
    Any ideas?
    If it helps, I'm running Aperture 3.1.3 in OS X 10.6.8.
    thanks
    Alan

    Based on the frequency with which this trips up users, the Aperture team is going to have to add a much stronger visual indication that "Primary Only" is active.  Marching ants, anyone?  Or a pink selection marquee?
    At least in the Viewer when multiple Images are selected the thin white selection marquee is dropped when Primary Only is active.  There is no such change in the Browser.

  • Do you have a way that allows you to save attachments from multiple emails at the same time?

    I have thousands of emails that I have put into Thunderbird's Local Folders, but now would like others in to access the attachments and don't want to go email by email to save off the attachments, time is prohibitive, so was hoping there is a way to select groups of messages and save off all the attachments at one time. Please let me know. THANKS!

    I'd install FiltaQuilla, which provides the ability to save attachments as files. Create a filter to do the attachment saving.
    Creative use of the QuickFilter should let you select the required messages, then use ''Run Filters on folder''.
    https://addons.mozilla.org/en-US/thunderbird/addon/filtaquilla/
    http://www.ramsden.org.uk/3_How_to_install_Add-ons_in_Thunderbird.html

  • How to select data from multiple dropdowns(HTMLDB)

    Hi,
    How to get the data from multiple dropdowns in the same report. Both the dropdowns are gerring data from the same table.
    Ex:
    abc-1st dropdown
    pqr-2nd dropdown.
    when abc and pqr are blank, it should display all records by default. If abc="some value" and pqr is empty then it should display all values corresponding to abc.
    Regards,
    Pallavi

    Pallavi,
    I think this might be something you are looking for:
    http://htmldb.oracle.com/pls/otn/f?p=31517:99
    There are some examples on how to modify your SQL to get it working the way you want.
    Denes Kubicek

  • How to acquire data from the memory of multimeter

    I am a beginner of Labview. I don't know how to acquire data from the memory of multimeter.
    I read some examples about DAQ, but it seems not similar to my case. I can't use DAQ in my computer, as I don't have DAQ board.
    Could anybody give me some guide? Similar examples would be great.
    Solved!
    Go to Solution.

    Confirm that you have the VISA Run Time Engine on the target machine. If you do not have it installed, you can install the VISA Run Time Engine from ni.com.
    Error -1073807346 Using VISA When Running LabVIEW Executable On Target Computer
    Message Edited by Mathan on 10-12-2009 07:11 AM

  • How can i select some row from multiple row in the same group of data

    I want to select some row from multiple row in the same group of data.
    ColumnA        
    Column B
    1                  OK
    1                   NG
    2                   NG
    2                          NG
    3                          OK
    3                          OK
    I want the row of group of
    ColumnA if  ColumnB contain even 'NG'
    row , select only one row which  Column B = 'NG'
    the result i want = 
    ColumnA         Column B
    1                         NG
    2                   NG
    3                          OK
    Thank you

    That's some awful explanation, but I think this is what you were driving at:
    DECLARE @forumTable TABLE (a INT, b CHAR(2))
    INSERT INTO @forumTable (a, b)
    VALUES
    (1, 'OK'),(1, 'NG'),
    (2, 'NG'),(2, 'NG'),
    (3, 'OK'),(3, 'OK')
    SELECT f.a, MIN(COALESCE(f2.b,f.b)) AS b
    FROM @forumTable f
    LEFT OUTER JOIN @forumTable f2
    ON f.a = f2.a
    AND f.b <> f2.b
    GROUP BY f.a

  • How to send data from internal table to the shared folder in ABAP

    Hi experts,
             My requirement is to transfer data from a file to shared folder. i just did reading data from a file to a internal table. Now i want to send this internal table data into a shared folder which is  "
    xxx\y\z....".
    I do not have any idea on how to send data from internal table to the shared folder path.
    can anybody please help me out how to do this?
    Thanks & Regards
    Sireesha.

    Where that folder is located, its on presentation server i.e. desktop or application server.
    If its on presentation server, use FM GUI_UPLOAD.
    If its on application server, then use DATASET functions. Have a look at below link.
    [File Handling in ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm]
    I hope it helps.
    Thanks,
    Vibha
    Please mark all the useful answers

  • How to pass Data from one form to the other

    Hi all
    Can any one suggest me how to pass data from one form to the other form, which i zoomed from the original one?
    I tried to do this by passing parameter in Event Procedure but i am getting error msg when i am opening the zoomed form.
    If any one of u have any idea, give me a reply
    Thank you
    Suhasini

    If you choose the second alternative you should erase these global variables after the second form is opened
    You can erase the global variable using:
    erase('global_var')
    Greetings,
    Sim

  • *Urgent*How to insert data from MS SQL to the table that create at the adobe form?

    Hi,
    I'm using Adobe life cycle designer 8 to do my interactive form. I would like to ask how to insert data from MS SQL to the table that i have created in my adobe interactive form?
    I really need the information ASAP as i need to hand in my project by next week... i really appreciate any one who reply this post.
    Thanks

    Tou need to do a couple of things
    1. On the Essbase server, set up an odbc system connection to your MySQL database
    2. In the load rule , go to the file menu and select open SQL data source and in the data source put in your SQL statement . A couple of hints. Where it says Select, don't put in the word select and where it say from don't put in from. The system adds them for you. The easiest way ti enter a SQL statement is to do it all in the select area So if your SQL would normanlly say select * from mytable just enter the code as * from mytable in the select area
    The click ol/retrieve and enter in your connection info. Itshould bring data back into the load rule. Save the load rule and use it

  • How do I view multiple images from different projects at the same time?

    Hello
    I've been trying to find the answer in the user manual, but no luck so far.
    I did find how to open 2 projects at once, but I can only see one image at a time in the viewer and I have to keep going back and forth between projects to compare images. (These are scans of old photos and I want to eliminate the ones that are poorer quality, so need to compare numerous images from 2 sets of scans)
    How can I view an image from one project at the same time as an image from another? I know that it can be done in the same project by apple-clicking the second, third etc image, but this doesn't work if the images are from different projects.
    Thank you
    Elizabeth

    Thank you again Tony
    I've now created an album, independent of the projects, and dragged test images into it and it does just the job I needed. Now i just need to keep my brain sorted with which ones are which while i'm working
    Elizabeth

  • Is there a way to delete multiple pictures at the same time from the iphone4s?

    Is there a way to deleter multiple pictures at the same time, from my iphone4s? I know how to delete one at a time. Thanks

    Open your Photos App > Camera Roll > At the top right corner you will see a rectangle with a right arrow, select that. Now you can select as many photos as you want and you can hit the red Delete button on the bottom right.

Maybe you are looking for

  • 17-inch to 15-inch: what is the exchange policy?

    Hi, So I recently ordered a MacBook Pro 17-inch laptop (the one released on October 24th) with the following specs: PROCESSOR     065-C0CD     2.4GHz Quad-core Intel Core i7 MEMORY     065-C09M     4GB 1333MHz DDR3 SDRAM - 2x2GB HARD DRIVE     065-C0

  • Passing multiple integer values as parameter in SSRS

    Hello, I am trying to pass a comma separated multiple integer value parameter in SSRS report and it errors out complaining that it is not able to convert the nvarchar value to datatype int. But it works fine when I pass a single value. Here is the co

  • Detecting complete loading of document in IE

    I'm opening a pdf document in IE. I would like to have a feedback to me when the pdf has finish loading completely. Does anyone know that after IE has ask pdf plugin to handle the document, would the plugin have some feedback to the browser to signal

  • Number to fractional string not working correctly

    I am measuring some parameters from oscillsocpe. i need to write these values to text file for which i am using write to spreadsheet, but what is happening is it is always writing zero value to file, on debugging i found that while converting from nu

  • HANA SQL for BPC cubes

    I have been looking for getting start help/ideas on how to push BPC BADI logic down to HANA SQL. Not really sure where is the right place my question. Which forum should I focus on?  Not much help in BPC forum on this subject. ~Dilkins