Multiple VI's using different digital lines in one VI.

I have created multiple vi's, each of which require either reading or wroting to a different digital line on the CB-68LP board. I need to put them all in one individual vi so that I can see everything on the front panel. When I have tried this the vi seems to send a confused signal and operate things which it shouldn't.
Is it even possible to try and do what I am doing? If not, any ideas what I can do? Thanks.

Multiple VIs are usually the better approach. What I would suggest is parallel loops. These are loops which do not have any data dependency on each other. One handles the User Interface - the front panel where you "see everything." Another which reads and writes from/to the digital lines. Maybe even a third which processes the data. Exchange data among the loops with queues or functional globals.
Keep a record of the state of all the digital lines. When something is to be written to certain lines, use either a Write Line.VI ( I don't recall the exact name) or use AND and OR functions with masks to protect the states of line you do not want to change.
BTW, the CB-68LP is merely a connection interface, not the digital I/O baord itself.
Lynn

Similar Messages

  • Can I place a multiple card order using different cards?

    Can I place a multiple card order using different cards eg personalising Christmas cards for family and friends, but ordering them on the one order?

    No.
    Regards
    TD

  • HT4436 I have 2 I phone which is using same apple id to back to icloud and restore it. I want to use different id on the one phone what can I do or change the id?

    I have 2 I phone which is using same apple id to back to icloud and restore it. I want to use different id on the one phone what can I do or change the id?

    Welcome to the Apple community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add a new account by tapping the "create Apple ID" button. (Settings > iCloud, scroll down and hit "Delete Account")

  • How can I use different iTunes accounts on one iPad?

    How can I use different iTunes accounts on one iPad?

    You can't, well not easily anyway.  The iPad is not meant as a multi account device. 
    You can Sign Out of your iTunes account in Settings->iTunes and App Stores->Apple ID->Sign Out
    However if you sign in with another ID and then download past purchases with it you will lock out the previous ID for 90 days. Which means it will not be able to be used on the iPad for 90 days. 

  • PCI 6602:How can I use the digital lines of the board and in the same time to generate pulse train using a counter?

    Hello!
    My problem appeared when I tried to update my code from Traditional NI-DAQ Legacy to DAQmx.
    I am using 2 counters (counter 5 and counter 7)  from PCI-6602, to generate pulse train, and also the Digital I/O lines of the port 0 (the lines form 0 to 7). What I do in my application is that I am starting to generate the pulse train on the output of the 2 counters, and after that I am playing with the state of the digital lines.
    In traditional there was no problem using the counters and the digital lines in the same time, everything was going perfectly, but in DAQmx this is not possible.
    What happens: I start to generate pulse train on the output of the counters,  no errors encountered, but when I try to modify the state of one line of the digital port the generation of the pulse train is stopped. This is happening when I start the task associated to the digital port.
    My question is: it is possible to create a channel on the digital lines without altered the channels created for the counters?
    Another thing what I manage to see using the  "Measurement & Automation Explorer" and Test panels for PCI-6602, basically is the same thing, I generate pulse train on the output of the counter 7 and try to start a task on the digital line, but I get one error :
    "Error -200022 occurred at Test Panel
    Possible Reason(s):
    Measurements: Resource requested by this task has already been reserved by a different task.
    Device: Dev4
    Terminal: PFI8"
    Instead if I use the counter 0 or counter 1 to generate pulse train I don't encounter the same problem.
    Which resources are used by the counters 2 to 7 from the PCI-6602 board and the counters 0 and 1 do not use?
    Thank in advance for any replies!
    Ciprian
    Solved!
    Go to Solution.

    Hello Jordan, thank you for your reply.
    I am sorry but I can not see or run your example, I don't use LabView, I use Visual C++ for developing.
    Here is the code for generating the pulse train:
    GeneratePulseTrain(unsigned long ulCount1, unsigned long ulCount2)
        short nStatus = 0;
        nStatus = DAQmxCreateTask("",&m_taskHandle);
        nStatus = DAQmxCreateCOPulseChanTicks (m_taskHandle, "Dev4/count5", "", NULL, DAQmx_Val_Low, 0.0, ulCount1,ulCount2);
        if( bTriggerMode == true) // if hardware trigger is enabled
            nStatus = DAQmxSetTrigAttribute (m_taskHandle, DAQmx_ArmStartTrig_Type, DAQmx_Val_DigEdge);
            nStatus = DAQmxSetTrigAttribute (m_taskHandle, DAQmx_DigEdge_ArmStartTrig_Edge, DAQmx_Val_Rising);
            nStatus = DAQmxSetTrigAttribute (m_taskHandle, DAQmx_DigEdge_ArmStartTrig_Src,"Dev4/PFI17" );
        //set the internal timebase
        nStatus = DAQmxSetCOCtrTimebaseSrc(m_taskHandle,"Dev4/count5","20MHzTimeBase" );
        nStatus = DAQmxStartTask(m_taskHandle);
        return nStatus;
    And the code where I try to set the digital line:
    SetChannelState(short nState)
        short nStatus = 0;
        uInt8 wrtBuf0[1]={0};
        nStatus = DAQmxCreateTask("",&m_taskHandle);
        // Configure line as output 
        nStatus = DAQmxCreateDOChan (m_taskHandle, "Dev4/port0/line0", "", DAQmx_Val_ChanPerLine);
        nStatus = DAQmxStartTask(m_taskHandle);
        wrtBuf0[0] = nState;
        nStatus =DAQmxWriteDigitalLines (m_taskHandle, 1, 0, 0, DAQmx_Val_GroupByScanNumber , wrtBuf0, NULL, NULL);
        nStatus = DAQmxWaitUntilTaskDone(m_taskHandle,10);
        nStatus = DAQmxStopTask(m_taskHandle);
        nStatus = DAQmxClearTask(m_taskHandle);
        m_taskHandle = 0;
        return nStatus;      

  • Digital waveform acquisition using DAQ digital lines-urgent

    Hi, I would like to use DAQ Digital input acquisition to acquire the attached waveform. The wavform is actually analog but olways varies between 0 and 3.3 V (  I use 6363 OEM) . I also have another waveform that varies between 4.4 to 5.8
    the problrm I have is for the first waveform I always read 0 and for the second waveform I always read 1., Is there any way to change the decision level when I select  digital input acquisition. Lets say when the voltage is below 4.6 consider it as 0 and when it is above 4.6 take
    Or I need to use analog acquisition
    Thanks
    Attachments:
    tek00001.jpg ‏192 KB

    According to the X series multifunction DAQ documentation for the 6363 the maximum level for a Low=0.8V and the minimum level for a high=2.2V.
    So your first signal (0 to 3.3V) should work ok assuming the digital ground reference is connected properly.
    The second digital waveform (4.4 to 5.8V) will either need some extenal conditioning or be read as analog and converted to digital.
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

  • Multiple Guest Accounts using different system languages

    Hello there,
    I have an old G3 iMac that i want to set up in my guest room. As some of my friends are japanese and some are german i would like to prepare one guest account using german system language und one using japanese.
    Is that even possible, or can i only use one system language (i.e. language used in Menu Bar and Finder ect.) for all accounts?
    OS would be Tiger.
    Thanks!

    Hi GoldyPPC, und ein herzliches Willkommen zu den Foren!
    Yep, I just did it, made two new Accounts, in each one went to System Preferences>International>Language tab, dragged German to the top in one, then the Formats tab to set Currency, Date/Time & such, after logging oit and back in to the first one, everything... Finder, Safari, Desktop, Dock, all was in German, repeated on second one for Japanese!

  • Having Multiple Material Codes with Different Profit Centers in one Plant

    Hi,
    Can someone explain me what impact it will have, if there are different Material Codes with multiple profit centers in a single plant? For example, say Material 1 has Profit Center as PC1 and Material 2 has Profit Center as PC2 and they are in a single plant. Will this have impact on Financial Transactions?
    Thanks and Regards,
    Sameer Joshi

    Hi Sameer
    No negative impact.. It is very much possible and logical
    All the purchases made - > Stocks and vendor liability will be tagged to the PC of the Material
    All the sales made -> COGS, Revenue and Customer Liability will be tagged to the PC of the material, unless you overwrite using a Substitution
    Br, Ajay M

  • Using different RFC's in one Application / Entity Service?

    Hello *,
    I just want to create my first Composite Application Service but before I begin I have some questions.
    The service will read out material master data from PLM. For that it has some findBy-operations with full-text search (creationDate, MatNr. ...) which return a result list and one operation which returns the material object for a given MatNr.
    For this operations I need to call different RFC's which are imported by external services.
    Now my questions:
    1. What kind of service should wrap my external services and provide the operations? Should I use one or more entity service to wrap external services and then realize the operations in an application service? Or should I just take an application service without entity services?
    2. The created service should not only be an internal CAF  service but also a Web service? How can I realize this?
    Thanks for your answers.
    Best regards
    Joschi

    Ok, thanks a lot. So nearly everything's clear now. Only one question remains:
    > 6. mark the entity service as "remote" and create a
    > web service from it
    > (note: this requires NW04s SP8)
    Is this possible? I can't find any checkbox to mark an entity service as "remote" like in an application service (NWDS 7.0.07 and NW04s SP8).
    So I have to map the findBy operations to an application service and create a web service from it!?
    Regards
    Joschi

  • What's the best way to sample multiple AI's with different sampling rates under one task?

    I'm using a PCI-6221 card and CVI 7.1.
    I have a tri-axis vibration sensor and two other pressure transducers.
    I want to take 10k samples from each vibration axis at 80 kHz. This is
    possible by configuring the scan rate of the "vibration task" to 240
    kHz. (The card maximum is 250 kHz).
    I want to take 1k samples from each pressure transducer at 250 kHz. This happens very infrequently.
    Each measurement is required by a separate task.
    I thought I could do this by setting up three finite tasks (1
    vibration, 2 pressure), but DAQmx won't let me run more than one AI
    task at a time. I've read other posts here, and I realize I have to
    add/remove physical channels on-demand.
    What is the best way to optimize this setup so that I'm not hogging up system resources?
    Should I do the following?
    1. Stop the task
    2. Remove the vibration channels from the task
    3. Add in a pressure channel
    4. Configure the pressure channel
    5. Start the task
    6. Take the pressure samples
    7. Stop the task
    8. Remove the pressure channel from the task
    9. Add in the vibration channels
    10. Configure the vibration channels
    11. Start the task
    Also, the vibration portion is running in finite mode, but I'm looping
    it. Should I switch it to continuous and run the "DAQmxReadAnalogF64"
    to sample the latest 10k samples. (If the task is continuous, would I
    pull the latest 10k samples, or would I pull some old buffered samples
    instead?)
    Thank you,
    Nobody

    Hello Nobody,
    If you configure your task timing to acquire a finite number of
    samples, then you can only read the number of samples that you
    specified in your configuration.  Once you try to read more
    samples, you will receive the error you are seeing.
    If you configure your task timing for continuous acquisition,k then you
    can read samples indefinitely.  Any given DAQmx Read will read the
    oldest unread samples in the buffer.
    If you are going to be switching between different tasks, you will definitely need to stop one before you start the other one.
    I hope this helps!
    Eric
    DE For Life!

  • Want to use different valuation type for one finish in house prod. materia

    Hi,
    Please update on subject requirement of different valuation type for same finish in house produced material.
    We take e.g. as below
    Valuation type -1) VA01
                             2) VA02
    Want to assign both valuation types to material FINISH01
    Then, i want create process order as per valuation type VA01 & VA02 ,let consider for 5 quantity each. While creating process
    order, system shoulf propose selection of valuation type.
    Regards,
    Chetan

    Hi,
    use Split Valuation, When u do the GR against production order...System will ask valuation type.
    and Same material code with maintained with different valuation type in your inventory.
    Regards,
    Pardeep Malik

  • Exchanging ink - New printer uses different ink than old one

    I just posted my issue and do not see it anywhere.  Here it is again.
    I was told by the gentleman at HP that I could exchange my ink that I can no longer use because I just upgraded to a different HP printer.  My ink is new and very costly.  How does this work?

    Hi bodhi1. You should contact support for any details that may exist on exchanging ink.
    Please call HP technical support at 800-474-6836. If you live outside the US/Canada Region please click the link below to get the support number for your region. http://www.hp.com/cgi-bin/hpsupport/index.pl
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • HT204074 So your telling me that me and my brother (using different apple IDs on one computer) have to alternate every 90 days on backing up our purchases from an Iphone.

    Trying to transfer the purchases from my iPhone to iTunes but my brother just did the same last week so it's saying i have to wait 84 days to back up purchases. Any ways around this? After using apple products for 10+ years, if i have to deal with this I won't be buying an iPhone 5 in a few months. because in the end the only think keeping me with the 4S was the fact that i already had a large music library but at this point my recent purchases a fairly useless for the next 3 months

    Correct.  You can only redownlaod previous purchases from one account every 90 days.
    You can still transfer them from your iphone ipod.  File>Transfer Purchases

  • Using different logical tables in one dimension

    Hello.
    I have two fact tables and two dimension tables Country and Region. One fact table depend on one dimension table like it shown in this link - http://file.qip.ru/file/121151603/3b4ebdba/2_online.html. Table Country is received from table Region by DISTINCT.
    At the presentation I have to realize one column in Presentation Catalog for both columns Country Name (or Country Id) from Country and Region, the user won't know that one fact table depends on COUNTRY and other on REGION.
    Also I have to realize the dimention "Geography" (Country->District->Region) for fact table SALE_REGION.
    Could Oracle BI automatically choose from which table get data and if it can, how I should make the logical model?
    Thanks.
    PS.
    The best variant I realized it this - http://file.qip.ru/file/121154314/8d242b81/3_online.html where District is the shared child for second Country level, but it doesn't work properly.

    Y don't u use union request in first request details of fact1 and its related dimensions and in 2nd request fact 2 and its related dimensions.
    I guess this should work
    Thanks
    Subhash

  • I want to use two analog channels and one digital simultaneo​usly

    Hello and thanks in advance for reading this!
    What I am trying to do is generate two different signals from the output channels of my interface card (PCI6024E) and simultaneously use a digital line so that I can switch two tranzistors (one NPN, one PNP) which actually control the "flow" of the two signals. This means that both signals need to be "active" while the VI is running and at the same time whenever I want to choose the signal not in use I need to use the digital line so that I switch the tranzistors and I get the desired signal.
    I have already created a VI which activates a digital line and while I was trying to add with the NI-DAQmx Assistant the first digital output, I discovered that it c
    ould not be used simultaneously, because there was the error code -200324 saying that "Device not available in NI-DAQmx. It is possible that the device is being used by Traditional NI-DAQ or that the device is being reset."
    I did reset the device but as I get it when VI runs, it cannot have an active digital channel and an analog output channel at the same time (not to mention two analog channels). Correct me (And make my day if I am wrong but this seems to be the case. Thanks a lot for your time!

    Hey Shootist000,  Thanks for the replies.  First off, I am actually okay if we both have each other applications so I am not concerned about that. It is still unclear from what you have said as to whether I can in fact, use these two separte time machine backup to create two separate profiles on the new hard drive.  If that in fact can be done, then - will it create two copies of the apps we both have in the ROOT of the drive as well as placing all the ones we each have separately?
    And reading your second reply, makes me think that maybe the partition is the way to go to begin with and then down the road - after I am in the new iMac, I could reformat the iMac 27 with only one partion and restore my son's latest back prior to the reformat thus giving him full access to the 2 TB of the drive.
    If this is still making sense, does this mean :
    replace the 1TB with a 2TB - but have it partitione - 1.5 TB & 500 GB.
    Install(Restore using Time Machine) my latest back up prior to the  1.5 partition
    Install (Restore using Time Machine) my son's latest back up prior to the 500 gig partition
    Lastly, in order for us both to be using the partioned computer - I am assuming Switch user can no longer be used - so would we need to restart and select our respective partions in order to use the computer?   And if so, how would we each be able to be using time machine to back up - two separte external hard drives - with each one dedicated to only one partition? Or ? 
    Thanks so much.
    Ironically, I am only trying to do this so that I don't need to manually install all his apps, setting, games, blah blah for this temporary period.  :-)

Maybe you are looking for

  • How to change report query dynamically in Oracle APEX?

    Hi, I want to dynamically change the where condition in APEX report query. Can anyone help me solve my this problem? (Just want to change the query which we change in Oracle Reports using lexical parameter to change &Where, &Order by etc. dynamically

  • Intermittent oracle.security.jazn.spi.xml.XMLJAZNPolicy null pointer excep

    hi, in my application I am using container and ADF security. Sometimes I get following exception but not always!? What could be the cause? (I added a new role with three members - 1 user and two sub-roles. I configured these sub-roles in web.xml as r

  • IBooks Author crashing before any editing

    Installed 2.1.3 with updated Mavericks 10.9.4, on a 2 week old iMac 27", 3.2 GHz i5, 8 GB, 1 TB.  Farthest I have been able to get is deleting a background image from template, then it gives me the below error report.  I have been unable to do any te

  • Update statement wrong??

    if(str1.equals("Update"))                try                     Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");                    Connection c = DriverManager.getConnection("jdbc:odbc:Student");                    Statement st = c.createStatement();

  • Import adjusted photos from camera raw into Lr5

    I like using Bridge to import my photos but also like to use LR5. After I organize and edit in camera raw I want to import (ADD) the adjusted photos into LR5. Problem is the adjustments dont import into LR. The original raw DNG is imported without th