2 AI channels on one DAQ, with different sensitivity range

This vi is based on the State Machine from "new project" on the splash screen at LV startup.
A while loop is in parallel to the main while loop of the state machine, shown in picture. 
It runs continuously until the Exit button is pressed.
The problem seems to be in the ..............start>read>stop..........start>read>stop.......... part along the error line. 
The reason for this clunky start/stop arrangement is that the voltages measured are in two different sensitivity ranges. 
The shunt voltage is small and needs the -.2 to .2 V range. The load voltage is larger and -10 to 10 V range is good. 
In the initialize state, two separate "create channel" vi's were used to specify the voltage range for the physical channel. The corresponding tasks are sent over via local variables.
The DAQmx errors happen randomly, sometimes the first iteration, sometimes the 50th. 
I tried disabling one or the other    start>read>stop    for the shunt or load voltage. 
I tried replacing them with DAQ assistant. 
I tried various DAQmx vi's:   "wait" and  "control task with unreserve resource selected". 
But error -50103 "specified resource is reserved" keeps popping up. 
Is it possible to create two tasks on the same device when they are not used simultaneously? 
The only reason is to measure in two voltage ranges. 
Win 7 Pro, 64 bit
LV 2014 Base
DAQ hardware: USB 6210
Thank you.
 

This has been discussed numerous times. Do NOT use separate tasks. You can use different ranges for different channels with one single task. Just wire the task out of one create channel to the task in of another create channel.
You are also using local variables where they are almost certainly not needed.

Similar Messages

  • Wifi sync 2 iPhones in one iTunes with different Apple-ID's.

    Wifi sync 2 iPhones in one iTunes with different Apple-ID's. My Phone will show up in iTunes, my wife's wont. After plugging my wife's phone into my Win 8.1 pc and check Sync over wifi, I hit the eject button, could this be the reason? Or might it be the different Apple-ID's? If the answer is the first, is there any way tohave iTunes forgetmy wife's phone so I can addit from scratch?

    Ello,
    I know this, but thats in the past now sadly. The question is: Why wont my wife's iPhone show up in iTunes via wifi?
    Is it because I pushed the eject button? And if so, is there any way I can make iTunes forget my wife's iPhone and *** it from scratch again?
    Or is it because the phones uses different Apple-ID's?

  • One Key FIgure in more than one column with different restrictions

    Hi,
      I am using a key figure in more than one column with different restrictions, but restriction in one column is affecting the result in other column. What shall i do to make it independent from one another??

    Hi Pravender Chauhan,
        If you want in Single column different value for different Rows based on same Key Figure, you can create Structure where you can define different logic for each row but using same key figure.
    If you want to use different Key figures then you should have to Restricted Key Figure and for any calculation you can use calculated Key figure.
    Assign points if Useful.
    Regards,
    Rajdeep.

  • Okay can you have more than one account on one computer with different e-mails

    Okay can you have more than one account on one computer with different e-mails

    Yes for iTunes....started a new account and when I try to sign in to the store it gives me a message that this id hasn't been used and would you like to review at which time then it tells me your request cannot be completed and to check date on computer and the cookies well the date is correct and not sure what or how to alter the cookies..I turned firewall off and tried that but still no luck...also deleted temp cookies and still having problems..I have been trying to fix this for days and just about to give up any ideas

  • HT204053 We have two Iphone 4S but we set each one up with different accounts, how can we share purchased or downloaded music from and iTunes card without purchasing twp different cards?

    We have two Iphone 4s with different accounts, what would we need to do to share music from and Itune card if one of us purchased and the other did not?

    Put all of the music on the computer(s) to which you sync, then sync to your idevices

  • How to maintain one vendor with differant plants at differant states.

    Dear All,
    i have one scenario with me in that my client purchasing his goods from one vendor that vendor is having two plants one at mumbai & one at gujarat. Now how i will maintain these two address with the same vendor. Along with that i need to mainatin the tax structure for both in one vendor. While creating purchase order how buyer will pick the tax structure.
    Regards,
    Nandkishor Nachane

    Hi,
      You can create one main vendor code and use partne function to add address of different plant location.
    regards,
    zafar

  • Two iPods on one cumputer with different songs

    I can't find out how to put two ipods with different music on one cumputer and how to put songs on one iPod and not the other. if you know how plz help!

    Additional links and help...
    Using iPod with multiple computers
    http://docs.info.apple.com/article.html?artnum=61675
    Managing content manually on iPod
    http://docs.info.apple.com/article.html?artnum=61148
    iPod: Frequently Asked Questions
    http://docs.info.apple.com/article.html?artnum=60920
    Patrick

  • One landscape with different databases releases

    Dears,
    A customer have MSSQL 2000 installed on your systems DEV and QAS. The PRD system does not installed.
    Now the customer need install only the production system, but he want with MSSQL 2005.
    Does have problems? What SAP recommend?
    Thanks,
    Dejalma Rodrigues

    Hi,
    It is possible to have different releases of DB within a landscape <u>as long as the same release of the SAP application supports it</u>. The end users will not see any difference.
    The challenge is support for DB patching if you don't have anywhere to replicate production issues. Not to mention possible issues with different DB tuning parameters and back-up recovery processes.
    I would suggest that you <b>at least</b> upgrade the QAS system to SQL Server 2005 too in the short term. The recommendation you will always get is to have all 3 aligned on the same release - that should be your longer term goal.
    Cheers,
    Mike

  • Is it possible to create Order type with different number ranges-Plant wise

    Hi Experts
    Client wants to get the different number ranges for the order types created in the different plants. Is there any user exit for the same.
    I have assigned the order type to the different plants. And Order type is assigned to a no range. So whenever a order type is created in different plants; order types uses the same number ranges.
    so with this situation one cann't know the total no. of order created within a plant.
    Is there any solution for the same.
    Pease give your valuable solutions.
    Regards
    Pankaj

    Hi
    Best way is to create different order types for different plants.
    like we have order types OR15 ,OR20 & OR30 for different plants 1500 ,2000 & 3000 .
    you can assign different number range for different order type.
    this is simplest solution.
    Regards
    Sujit

  • Crosstab or Crosstabs with different date ranges not lining up.

    I have a crosstab with a dimension (item) in the vertical axis, and different date ranges on the Horizontal (top) axis.
    I want to display counts of a measure over specific ranges of time. For instance, count of items sold for weeks 1,2,3,4, horizontally, then count of items sold for months 1,2,3,4 horizontally, next to each other.
    Problem is that count rows by item do not line up. Count by week has fewer items, so it has fewer rows than the counts by month. I need it to have the same number of rows, and just show 0 or blank in that row, instead of just not being there. I need all rows to line up by item.
    Its like there needs to be an outer join, but I haven't been able to make it work. What am I missing?
    Does that make sense?
    Any ideas welcome. Thank you!

    Wavery,
    You are looking to display a grid with a high degree of consistency, regardless of the data present.  There is no "single" step capability provided by WebI to achieve this, so it requires creativity on your part.  A second data provider (DP) for your report is necessary and can be either a view in your database, a custom SQL, or some folks have even built a derived table in their universe to accommodate.  At any rate, there are one of two ways to achieve.  If you are familar with SQL and the "union" statement, you would run the basic SQL, then via union, dummy up a second query that has all the requisite columns, but for the measures you would use a value of zero so as not to affect the generated facts.  For example, suppose you had a report for a hardware store, and you wanted to track the following items:  Nails, Flashlights, and Screws.  Your basic query might look like this:
    select item,sum(inventory) from inventory_table where item in ('nail','flashlight','screw') group by item
    Then your next portion of code:
    union select 'Nail',0 union select 'Flashlight',0 union select 'Screw',0
    See how the union is providing "dummy" info?  To do this in WebI with a second DP, you would not use union, but a separate view perhaps, then in WebI apply Merge Dimensions on the item column (and the equivalent of an outer join).
    Thanks,
    John

  • Shopping Cart with different number ranges

    Dear SRM GURU's
    We have two product Types one is material and other is service.
    While we are creating a  shopping cart for material it should pick up one sequence of the number ranges and when we are creating service shopping cart it should pick up some other number ranges.
    Is it possible to maintain  a separate number ranges for Material shopping cart and Service Shopping cart.
    If yes
    Then in Transcation type which alternate transcation type can be used ????
    Current is SCH - for Shopping  cart to which we assign the number ranges.
    Regards,
    Nimish Sheth

    Hi Vadmin
    Then   in that case we would like to restirct the Material Group in shopping cart.
    Like when a user creates a shopping cart and for first line item the product category is LGEN01 then the second line of the shopping cart should be of the same  product category if the user selects different product category then the system should throw error and force the user to select the same product category.
    Can you pls suggest some way how to restric the material search in the shopping cart.
    regards,
    Nimish Sheth

  • One order type different number range for different company code

    Hi
    I have created one order type. Same order type I extended in another company code (plant).
    I required different number range for another company code.
    Can any give detail solution.
    Regards
    ARK

    Hi,
    In CO82, define groups of order types. Define number intervals and assign number intervals to groups. Organize order types that you want to assign same number interval under groups.
    Regards.

  • Multiple channels in one task with ch to ch config

    Hi,
    Normally the way I acquire sample from more than one channel on a cDAQ system is like this:
    1, I create virtual channels for my AIs in MAX
    2, in LabVIEW I use channel constants and merging them using comma as a separator (eg. with the concatenate string node).
    3, the I configure the sample clock using the comma separted channels as an input
    4, start the task
    5, acquire samples
    6, stop and clear the task
    This worked just fine so far as I acquired samples from my cDAQ modules with the same speed and all of them were simple analog inputs. But I have to implement a strain gage measurement (NI 9237) now and I'd like to use the bridge offset nulling calibration VI to get rid of the offset I have. That complicates my structure.
    It seems the VI I have created runs just fine but I am wondering if this is a legit solution as I used the sample clock twice. (the VI uses simulated channels for now)
    Attached the VI (LV2012) and its block diagram image as well.
    Please advise. Thanks!
    i-
    Attachments:
    Strain_test.gif ‏14 KB
    Strain_test.vi ‏36 KB

    I have failed to realize that the offset nulling VI has another input called "skip unsupported channels". This is false by default, but setting it true resolves the problem without changing my structure at all.
    Well done, kudos to myself
    Attachments:
    Strain_test2.gif ‏8 KB

  • How to calculate the phase difference between two square wave (acquired from two channel in one DAQ)

    Hello everyone ,
     I need a quickly help that as below :
    I am trying use PCI-6220 to acquired six signals from one rotation encoder (channel A, channel B,channel Z ,and their non-signals) .The encoder out signals will be square wave and 4000pulses per revolution. I set it rotation at 300rpm speed. I need show every square wave of six out channels in waveform and measure the A-B phase difference to check if the value is correct (designed value should be 90deg) .
    I have no idea how to measure or calculate the phase difference of two square wave base on synchronizate to acquire these two square wave from two channel on the PCI-6620....
    Anyone can give a idea how to calculate the phase difference with two square wave ?
    Thank a lot and Thanks again...
    Tim

    Tim,
    Here is a simple rising edge detector for one channel.
    Lynn
    Attachments:
    Rising edge.vi ‏15 KB

  • One JVM with different system.out / system.err files

    I have a menu application which allows me to launch different swingapps which runs inside one single JVM.
    All applications have their own properties.file which is read and handled at the start of each application.
    One property allows me to print all kind of system.err / system.out which i want to redirect to a specific file. This is implemented with following code:
            if (isTRACE_ENABLED()){
                try {
                    setTrace_out_log(new PrintStream(
                              new BufferedOutputStream(
                                    new FileOutputStream(props.getProperty("TRACE_OUTLOG_FILE")),128), true));
                    System.setOut(getTrace_out_log());
                    setTrace_err_log(new PrintStream(
                            new BufferedOutputStream(
                                  new FileOutputStream(props.getProperty("TRACE_ERRLOG_FILE")),128), true));
                    System.setErr(getTrace_err_log());
                } catch(IOException e) {
                    e.printStackTrace();
            }This works file but... all system.out and system.err is redirected to same file... which is not what i want.
    Example:
    debug property for menu application = enabled
    debug property for app 1 = disabled
    debug property for app 2 = enabled
    In above case i want to have 4 new files:
    - menuapp_out
    - menuapp_err
    - app2_out
    - app2_err
    This doesn't work, the files are created but after starting app2, the print-statements for the menu application are alse redirected to the app_2_xxx files. And when i finish app2, i do not get any print-output anymore
    IMHO this is because the JVM only has 1 system.out and 1 system.err file. Is there some way to solve this?

    I understand that i need to use java.util.logger (JUL) or Log4j
    Are there any (free) tools availabe to read/analyze the logfiles created by above tools?

Maybe you are looking for

  • HT3965 how do i change the phone number for imessages?

    how do i change the phone number for imessages? i have set up an iTouch for my 10 year old son. To set up iMessaging between him and his parents i used my iTunes account but this picked up my phone number..........i now need to change this but cannot

  • Hiding a column in WAD

    I have a dropdown box for calendar year Intitally when I run my webtemplate it should show me the values for all the years in the below format Industry  - Value2006  -   Value2005 When I select from the dropdown value of the calendar year = 2006 then

  • How to pass a variable value in message area

    hi i have a requirement in which i need to display a table with records and below it in a message area i need to display the total no. of records found ( eg : 2 records found ) am using message manager for the display and calculating the total no of

  • 24" iMac drive nightmare - not even a day old

    Well, Im very unlucky! My old 20" intel mac is going back to Apple because of a faulty DVDR drive. I thought to my self, Ill buy a 24" iMac and sell my old one once its fixed. 8 hours into using my new iMac 24" after burning 4 or 5 DVDs, the mac fail

  • Intents wrong when exporting from or importing to Pages for iPad

    Anytime I create a document on the iPad and export it for e-mail the indents are messed up when I open them with Pages on the Mac. The same thing happens in reverse direction too. Does anyone have a solution for this or is this a known issue?