Digital I/O why can't I have line outs and line ins in the same application?

I have a problem with my digital lines. I have several "write to digital line" VIs, and I also need some "read from digital line" VIs. My problem is that when I supply 5V to the line in, it doesn't register high. I checked this on a separate program, and when I did not have a "write to digital line" , the "read from digital line" was at 5V (I checked it with a multimeter). As soon as I included a "write to digital line" in the program, the input was jumping around 1.3V. What is the problem here?

Hello,
I apologize for the delay in responding to your question. You are writing to digital channel 0. This is the same thing as digital port 0. A port is simply a collection of digital lines. Since you are reading and writing to lines 0-7 on channel 0, the Write to Digital Line and Read from Digital Line VIs are resetting the state of the port every time they are called. I notice you have wired a 0 to the iteration count of all the write VIs, but nothing to the read VIs. To fix this problem,
Wire a 1 to the iteration input of all the write VIs except for one. This last VI you can either wire a 0, or leave it unwired as 0 is the default.
Wire a 1 to the iteration input of all the read VIs.
I have m
odified your VI in this way and attached it below. Ideally, you would want to write to a line with 0 for the iteration count only once (outside the loop). The modified VI will do it at the beginning of every loop iteration. I have tested it here and it seems to work without problems. The reason for the modification is that both the high level read and write VIs reset the port when they are called unless you wire a nonzero number to the iteration input. This effectively tells the VI that the port has been initialized and it can skip it.
Feel free to post again if you have further questions. Happy coding,
Grant M.
National Instruments
Attachments:
dio_problem.vi ‏75 KB

Similar Messages

  • Using iPad 2 - if i use the slide switch to lock rotation, i cannot unlock rotation, unless i use it to mute sounds.  i can't therefore have unmuted sounds and unlocked rotation at the same time??

    using iPad 2 - if i use the slide switch to lock rotation, i cannot unlock rotation, unless i use it to mute sounds.  i can't therefore have unmuted sounds and unlocked rotation at the same time??

    Uh .... Yes you can. You just have to understand how the whole thing works.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • Why can't you Fullscreen both Mac and Thunderbolt display at the same time?

    The plan was to movies in the background while I  surf the internet... Not have a grey screen. WARNING! If you're considering purchasing a Thunderbolt display... I'm warning you. You can't use the Thunderbolt in fullscreen and still use your Mac!
    This is the worst purchase I've ever made- Exactly WHAT am I supposed to do with this Thunderbolt display, charge some iPhones? Why won't it do the very thing I bought it for? Windows has had this capability since XP!!! I sear, if I can't figure out some kind of "hack" to make this piece of junk work: I'M TAKING IT BACK!

    You can't use the Thunderbolt in fullscreen and still use your Mac!
    You can with VLC.
    <http://www.videolan.org>
    Make sure Mirroring is disabled in the Arrangement tab of Displays system preference.
    Select the Thunderbolt display for full screen in VLC's Video preference.

  • If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    Actually, everyone missed one point, when a device is priced, the cost of icloud storage space for that device is also included in it that is why they are able to give you 5gb each for each user ID, in nutshell there is nothing free coming with apple device purchase, it is paid for.  What they are trying by giving only 5gb per user ID irrespective of the number of devices used is pure broadlight looting, they take money from you when you buy each device and give you nothing, This is a case of goods and services bought but not fully deliverd ie apple can be suied for discreminatory treatment towards it's users. I wonder why no one tried this yet in America where everyone sue everyone for petty things..... there is no one to take up this issue? . if tim got any love for the guys who shell out money for the devices his company makes, he should be implimenting this as priority before someone wake up from sleep and sue him.

  • My sister has a mac and i want to update my phone onto the computer but i dont want her to see all my stuff can you somehow have more than one itunes account on the same computer so my stuff with save?

    my sister has a mac and i want to update my phone onto the computer but i dont want her to see all my stuff can you somehow have more than one itunes account on the same macbook so my stuff with save?

    How to use multiple iPhone, iPad, or iPod devices with one computer. The only way is for you to have a separate user account to log into on that computer.

  • I would like to have an email account that is password-protected that I can access on my Mac, Iphone and Ipad, separate from the Mail application, with an alert button that indicates unread messages

    I would like to have an email account that is password-protected that I can access on my Mac, Iphone and Ipad, separate from the Mail application, with an alert button that indicates unread messages

    Try a search... I'm sure if you put forth a little effort you can find a solution that will work for you.

  • If i have multiple iPhones and Mac Mini sharing the same Apple ID, can I use Facetime between the devices?

    if i have multiple iPhones and Mac Mini sharing the same Apple ID, can I use Facetime between the devices?

    Yes, but if you want these devices to have complete capability of calling each other they each must have their own separate, individual e mail address.  If they don't have individual e mail addresses, the i phones will be able to call each other because you'll be using their  individual phone numbers -- the Mac mini will be able to call the i phones, but, the iphones will not be able to call the Mac mini.  This is because the iphones will be using the mini's e- mail address to make the call, and if they have the same e mail address, they will think they are calling themselves, so the call will not connect.
    So, the way I see it is,  if you keep all of the email addresses the same, the only thing you'll loose is the ability of the iphones to call the mini.
    EDIT:  Thinking about it, my first sentence needs to be modified.  Your iphones can share an email address but it must be different from the Mac mini address.
    This isn't rocket science, but it can make your head spin. LOL

  • Is it possible to have a calendar and reminder list with the same name?

    I migrated from MobileMe to iCloud on the first day. MobileMe was then set up with my MacBook and so in iCal i saw my calendar events duplicated. I didn't like this so I tried deleting the MobileMe calendars first, then realised I couldn't delete all of them, it seemed that I must have one calendar. I then removed the the account setting (which would have been the smarter thing to do). A few hours later I notice that the calendars I deleted from MobileMe have been deleted from iCloud, as well as associated task/reminder lists. Luckily for me I made a backup before moving to iCloud so I've managed to recover my calendars.
    My question is: Can I make a calendar and reminder list by the same name?
    After the migration I did have some calendars and reminder lists by the same name eg. Work, Home.

    T-Storm, I'm having the same annoying delay on my X-Fi Extreme Gamer card, it's driving me nuts trying to fix it.
    I noticed that if I un-tick the Dolbly Digital Li've in the console it goes away, along with the 5. sound, %$*&^^&%!
    Is it he same with you? Try un-ticking the DDL while playing something and see if it stops the delay or not. At least it will see if the problem is the card, the connection, the optical cable, or DDL itself.
    Dolby Digital Li've works in real-time so I fear that is causing the delay rather then a bad cable or connection. But I don't know if others are getting the same delay or not, if it is DDL then everyone should be getting it.
    But, if they are not trying to play a digital signal at the same time as a anolog one they might not notice it.

  • HT1284 Can I back up my Mac and my pc to the same external hard drive?  If so, could you explain how? Thanks.

    Can I back up my Mac and my pc to the same external hard drive?  If so, could you explain how? Thanks.  I am a new user with mountain lion.

    You could partition the drive into 2 partitions.  One formatted as HFS+ for Mac OS X back, and one formatted as NTFS for Windows backup.
    You would have to move the drive from system to system to do your backups.  If there are 2 systems, I would suggest just getting separate drives for each, unless they are both laptops, then you will be disconnecting the drives all the time anyway.
    Unless Windows is running in a virtual machine on your Mac.  Then a partitioned drive would be fine.

  • I have 2 ipads and my iphon on the same icloud account and it wont let me back it up cause i dont have enough space so I want to move my iphone over to a new icloud account i made with a new apple id but i dont want to delet the ipads off their account?

    I have 2 ipads and my iphone on the same icloud account and it wont let me back it up cause I dont have enough space. So I want to move my iphone over to a new icloud account with my new apple id that i made but i dont want to delete the ipads off the old account just move the iphone to the new one. How do I do that I despreatly need help!!!

    To migrate your phone to a new account, start by saving any photo stream photos that you want to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save to Camera Roll.  If you are syncing notes with iCloud that you want to keep on the phone, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Delete Account (which only deletes it from this device, not from iCloud; your other devices won't be effected by this), provide the password to turn off Find My iPhone (if using iOS 7) and choose Keep on My iPhone when prompted .  Then sign back in with your new Apple ID to create your new account and choose Merge to upload your data to the new account.

  • Can't i sync my iPad and my iPhone on the same computer

    i can't sync both my iPad and my iPhone on the same computer.the iPhone can sync but the iPad can't.anytime i try it ,i am asked to authorize this computer which i do but still can't sync

    anthonyitaliano
    HT1386 Re: My new iPhone5 won't finish syncing. 
    Nov 10, 2013 5:47 AM (in response to anthonyitaliano)
    not sure if this is a permanent fix but, ever since upgrading to itunes 11.3.1, my iphone5 seems to finish syncing on its own, now. didn't seem to be a problem anymore. at least after doing only one sync, since the upgrade.
    (stiil have a blank "purchased" page at itunes store, though).

  • Is it possible to have Office Standard and Office Enterprise on the same computer?

    Hi,
    Would it be possible to have Office Standard and Office Enterprise on the same computer? For instance, we would like to have standard installed for Word, Excel, and PowerPoint. And then have Office Plus/Enterprise installed for Outlook so that archiving
    is possible? TIA

    Hi GibsonLP2012,
    You can run multiple versions of Office, yes:
    https://support.microsoft.com/en-us/kb/218861
    However, I don't believe you can run multiple editions of the same Office version. Perhaps somebody else will be able to shed some light on this? It sounds unlikely though.
    Best regards,
    Please remember to mark the replies as helpful if they help, or as answers if they answer your question. Please also unmark the answers if they provide no help.
    Zach Roberts
    Independent Microsoft Community Support Advisor
    Disclaimer: I don't work for Microsoft. Any advice given is my own and does not represent Microsoft.
    Follow me on Twitter:
    @WindowsZach

  • Can i run remote memory profiling and remote debugging at the same time .

    can i run remote memory profiling and remote debugging at the same time .
    i am using jdev9.0.5 and oc4j9.0.4 standalone server.
    how to write the batch file to run both at the same time

    Thanks for your help!
    Another question. How do you turn off the ATT wireless transmitter? Also, there are more computers connected to the 2Wire network. I will have to set up a wireless pc to work with the Base Station after disconnecting the ATT transmitter. Easy answers for both, I hope?

  • Can I run Apple TV 1 and 2 together on the same iTunes account and on the same tv with two hdmi slots?

    Can I run Apple TV 1 and 2 together on the same iTunes account and on the same tv with two hdmi slots?

    Yes.
    Captfred

  • I have two Macs and I am using the same Apple ID on both.  All of my info, history etc is showing up on both.  How do I turn this off?

    I have two Macs and I am using the same Apple ID on both.  All of my info, history etc is showing up on both.  How do I turn this off?

    You likely have iCloud turned on in at least Safari. If you don't want Safari to sync between these devices turn one of them off. System Preferences - iCloud - Safari (uncheck the box)

Maybe you are looking for

  • CUSTOMER BALANCE LINE ITEM DISPLAY WITH PROFIT CENTER WISE

    Dear Folks,                  Please suggest whether is there any standard report related to customer balance report against Profit center wise or suggest the best way to create the Z  REPORT LOGIC Thanx In advance REGARDS ASHOK K

  • Temporary table with in a stored procedure

    Hi: I am trying to create a SP with a temporary table, and getting a syntex error. Here is my code. Can someone help me on this ? Thank you, Dima create or replace procedure ACCEPT."HIROC_IBC_CLAIMS"(policy_no cm_pm_interface.policy_no%type ,EXPOSURE

  • Oracle SQL Prompt commands

    1) How to identify the problem of Oracle database from SQL command prompt   By executing a set of SQL commands one by one after connecting /as sysdba   2)what could be possible errors and how to resolve from SQL prompt   e.x db corrupt         not mo

  • CM 14 and BI Publisher

    I am currently using CM 14 and BI Publisher for the reports. When I create a report, it makes all of the sentences run back to back, even if I have pressed enter between sentences and spaced them out in CM 14. Is there a way to format this to make it

  • Satellite A210 - Can't install common module and display driver

    Just downgraded to XP, downloaded drivers from toshiba and the installation ended with an error message saying no driver found for my hardware. Happened with Common Module and ATI Display Driver. I mean, I need em both! Help!