Simultaniously Input / Output

Hello,
i tried to
Output an analog signal and read it simultaneously with  Borland C++ Builder 6.0 and a NI-DAQ 6115
Card.
That is the
code I’m using:
/*/ DAQmx Configure Code
/*SEND OUTPUT*/
DAQmxErrChk
(DAQmxCreateTask("",&taskHandle));
DAQmxErrChk
(DAQmxCreateAOVoltageChan(taskHandle,"Dev1/ao0","",-10.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk
(DAQmxCfgSampClkTiming(taskHandle,"",sampleRate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,transcount));
/*READ
AI0*/
DAQmxErrChk
(DAQmxCreateTask("",&taskHandle1));
DAQmxErrChk
(DAQmxCreateAIVoltageChan(taskHandle1,"Dev1/ai0","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk
(DAQmxCfgSampClkTiming(taskHandle1,"",100,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,1000));
/*/ DAQmx Write Code
DAQmxErrChk
(DAQmxWriteAnalogF64(taskHandle,1000,0,10.0,DAQmx_Val_GroupByChannel,voltageOutput,&written,NULL));
/*/ DAQmx Read Code
DAQmxErrChk
(DAQmxReadAnalogF64(taskHandle1,10000,10.0,DAQmx_Val_GroupByChannel,input1,10000,&read,NULL));
/*/ DAQmx Start Code
DAQmxErrChk (DAQmxStartTask(taskHandle1));
DAQmxErrChk
(DAQmxStartTask(taskHandle));

second part
/*/ DAQmx Stop Code
DAQmxStopTask(taskHandle);
DAQmxClearTask(taskHandle);
DAQmxStopTask(taskHandle1);
DAQmxClearTask(taskHandle1);
Error:
if( DAQmxFailed(error) )
DAQmxGetExtendedErrorInfo(errBuff,2048);
if( taskHandle!=0 ) {
 /*/ DAQmx Stop Code
DAQmxStopTask(taskHandle);
DAQmxClearTask(taskHandle);
DAQmxStopTask(taskHandle1);
            DAQmxClearTask(taskHandle1);
      if( DAQmxFailed(error) ){
            Application->MessageBoxA(("DAQmx
Error: %s\n",errBuff),"ERROR");
                errorLog = true;
  for(int i = 0; i < 1000;
i++){
   asLine += input1[i];
asLine += ";";
              asLine += "\n";
But somehow
I don’t get the input I expected. Have You any idea how I can solve this
problem?
Thanks in
advance 

Similar Messages

  • External Hard Drive Input/Output error

    I recently started having problems with an external hard drive setup that I did not have problems with prior to upgrading to 10.5.5 and trying to setup the drive to be compatible with Time Machine.
    The hard drive enclosure that I have has 2 bays for two SATA drives. I have used this enclosure without any problems until I tried to get 1 drive to act as the backup drive for Time Machine and the other to be storage. I formatted them using Drive Genius. I used the option for GUILD or GUIL which it said was the better format for using with Time Machine.
    The first problem I ran into since upgrading and reformatting the drives is I got an "input/output" error the first couple times I connected the drive via USB to my Mac. I could still use the drives but I got weird errors every once in a while like "input/output error" or "device was not ejected properly" even though the device had not been unplugged.
    Now the drives will not mount using OS 10.5.5. The drives show up when I open Disk Utility, but I cannot get them to mount. I have ran Disk Utility First Aid, and it says the drives are fine. There is one error that shows up when I run the "Repair Disk" feature. It reads "Invalid content in Journal". But Disk Utility also says "The volume was repaired successfully".
    I have seen some posts when I do a search in google about this issue and it seems this is a known issue. Every suggestion I see says to insert your Tiger DVD and reformat the drive using that and the problem will be solved. The only problem with that is I have a lot of important files on the drive that I cannot lose. I had the files backed up until I moved them to the new drive a while back. Now I do not have a backup because I was in the process of switching to bigger drives and erased the old drives after doing so because everything was working fine.
    I am hoping someone out there may have some suggestions (other than erasing the drive) to get my dives to mount so I can transfer the data off to another drive and reformat after.
    Thanks,
    Paul Rugg

    Thanks for the suggestion.
    Do you think that would work better than Drive Genius? I bought Drive Genius 2 and it does not even see the drives when they are plugged in unlike Disc Utility which can see the drives but cannot mount either one.
    Maybe this following post I made to a different questions may help. The data on the drive is other buying another program for if it will work. I think my next step may be to go over to a friends place and try to mount the drives on his computer and transfer stuff off if they connect.
    text below posted to other question relating to external hard drive problem.
    I have recently had the same mounting issue with my new external hard drive. I just purchased a new 750Gb Western Digital Sata drive and got everything transfered over to it. Immediately, I got an error saying that the drive had been ejected incorrectly even though it was still plugged in. I was a little curious. I restarted the computer (hard drive still plugged in via USB 2.0) and the drive showed up just fine. I plugged another 250Gb drive into the same case (2 bays) and the 250GB drive showed up just fine.
    Well, I then noticed there was an OS upgrade available when I ran Software update so i ran it and when I rebooted the drives were gone. I can see the drives in Disc Utility, but they will not mount. Drive Genius cannot see either disc. Disc Utility says I need to repair the drives, but when I do it says they are fixed but they don not mount.
    The problem really seems to be related to mounting USB external drives. I got ahold of 2 seperate external firewire hard drives and one shows up just fine while the other has the same problem (both work on other systems. I would try wiping the drives and reformatting but ALL MY stuff is on them and not everything has been backed up. Yuck! I have not tried connecting my hard drive to another Mac yet.
    The drives being used are #1 Maxtor Maxline Plus II 250GB SATA/150 HDD 1.5b/s 7Y250m00654ra
    and #2 Western Digital WD7500AACS WD Caviar GP Green Power drive.
    I have another post similar to this and I have not received any feedback, but I have been doing my own searching and have found similar posts on the net.
    Anybody have any clue what might be going on here? It really seems to be related to my upgrade.

  • Text Input/Output

    I have downloaded the text input/output widget found here:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    I inserted the input animation on one slide and the output
    animation on another.
    When I preview, the input box doesn't show up. What am I
    doing wrong?
    Thanks in advance for help or advice!

    Hi there
    Likely you are using Captivate 3 and you have upgraded your
    Flash Player to version 10.
    Click
    here to read a thread where I believe one of he Adobe Captivate
    team sheds a bit of light on the issue
    Click here for an Article
    and link for uninstalling Flash Player/Plug In:
    Click here for an Article
    and link for installing and older version of the Flash Player/Plug
    In:
    Version 9 should allow things to work okay with Captivate 3
    Cheers... Rick

  • I am in mavericks disk utility recovery mode as my mac book will not boot up & stays only on the grey apple screen. When I verify the disk I get open error5 :input /output error on Syst stuck on 1 minute pouring out over 50 error messages & still counting

    I am in Mavericks disk utility recovery mode as my mac book pro will not boot up &amp; stays on the Apple grey screen . When I verify disk permissions I get
    Open error 5:"input/ output error" on syst with over 50 of this messages &amp; still counting . Disk Utility says 1 minute
    But this has been going on for over 10 mins .
    I can not verify disk or repair disk .
    I have tried to reinstall mavericks operating system but it says my hard drive is locked which is very strange .
    Does anyone know what is going on here ?
    My system looks like it has been totally corrupted . Thanks Andrew

    Could be. The "lock" isn't actually looking for a password.
    WARNING: This will completely erase the ENTIRE hard drive.
    What you would need to do is boot to recovery > disk utility > select the MAIN drive on the left side > partition > change partition layout from CURRENT to 1 PARTITION > ensure on the right side it says Format : Mac OSX Extended (Journaled) then push APPLY.
    Then if it will allow us, close the windows until you see the 4 options popup again and select "Reinstall Mac OS X" select the Mac HD and you should be good to go!

  • I am trying to run my electric guitar in garageband 11 but there is no options to modify the inputs/outputs to built

    There is no option to modify the sound input/output to built-in input or built-in output.  I'm guessing the electric guitar is not being registered.  I am using a 1/8" mono -1/4" mono cable to go directly from the output jack on my electric to the headphone jack on a macbook pro.  How can I get this to work?

    When you use an external device for input, GB often automatically selects that same device for output. It's an ease-of-use feature for most external devices. If your device doesn't give you the option to output to speakers/headphones, you don't want GB to do that.
    Within GB, go to GB>Preferences, Select the Audio/Midi tab. In the Drop-down under output, choose "Built-in Output" and connect your external speakers/headphones to the Mac's headphone port (Alternately, you could use system preferences to direct your Mac's audio-output to your speakers and select "System Setting" in GB Prefs. The Mac's own speakers aren't going to be nearly as much fun as running it to your big speakers/headphones).
    Hope that makes sense...

  • How to get center alignment of Input/Output field in Module Pool

    Hi Friends,
    I am using Input/Output field in my Module pool program. Dynamically i am submitting the text to Input/Output field. What i want is i want to display the submitted text as center. By default It is displaying left aligned.
    Thank U in advance.
    Mahender.

    Hi,
    Use syntax "Centered".
    take one variable push into the field
    write w_variable1 to w_variable2 centered.
    next push the varaible to Destination screen input/output Field .
    Make sure the Field the Character Type.
    Prabhud@s

  • How to check current input/output rate on router subintenterface via SNMP?

    How to check current input/output rate on router (2821, etc..) subintenterface via SNMP, like cacti monitoring system.
    I cant find OID to make this with snmpwalk.
    Or there is no way to check current load by this way? Only polling?
    P.S. Ethernet subinterface, of course.
    With great respect, S.A.

    Hi,
    Try to use:
    1.3.6.1.4.1.9.2.2.1.1.6 - InBitRate
    1.3.6.1.4.1.9.2.2.1.1.8 - OutBitRate
    1.3.6.1.4.1.9.2.2.1.1.28 - ifDescription

  • Disc image input/output error

    When burning a disc image using disc utility, I get the ever so popular input/output error message. I cannot find anywhere on these posts a solution to this problem. It is not dirty discs, etc. It happens when I try to copy dvd's... which are not licensed, etc.

    Could be so many things, Input/Output errors are generally loosing contact with a device for a variety of reasons, do you get any error # with that?
    Open Console in Utilities & watch for more info whn you try to burn, or open the Disk Utility Log if there.

  • "input/output error' when making disc image from DVD

    I've had problems installing Logic, and a Pro Apps Genius at Applecare suggested I try making an image of the problematic DVD (Audio Content 1) and then trying an install that way.
    While I can make an image of the Install disc to my desktop fine, the Audio Content 1 disc reports an "input/output error".
    This means I'm unable to copy the disc and then successfully install my Logic Studio.
    Any ideas?

    Thanks for your answer.
    Yes, I thought that might be the case - but I'd taken my Mac and Logic disks to a Genius bar, and the 'Genius' had said he'd fixed the issue. I just wish he'd explained what he did and why he didn't replace the faulty disk(s)!
    But is there any way around having the claim a disk, now I'm living abroad and my 'warrantee' has run out? It's going to be a pain in the fundament trying to claim a replacement set.

  • How to set input/output "use" attribute in the WSDL file of BPEL process?

    Hello,
    I have a BPEL process that I want to deploy it as an RPC web service. I want to access it from a Java module (via an automatic generated Java stub from the WSDL file exposed by the BPEL process).
    I wrote manually the corresponding WSDL file for my BPEL process, where I stipulated for the operations exposed by my process ( in <soap:binding> tag) the value of the attribute "style" to "rpc". Also, for each <input> and <output> of the operations (inside the <operation> tag), I set manually the attributes "use" to the values "encoded". Something like this:
    <operation name="getCustomers">
    <soap:operation style="rpc" soapAction="getCustomers"/>
    <input>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
    </input>
    <output>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
    </output>
    </operation>
    The issue is that, when the BPEL process is built and deployed, the WSDL file generated automatically by BPEL (based on the one manually writen) set the values of the "use" attributes to "literal". This is what is generated:
    <operation name="getCustomers">
    <soap:operation style="rpc" soapAction="getCustomers" />
    <input>
    <soap:body use="literal" namespace="http://acm.org/samples" />
    </input>
    <output>
    <soap:body use="literal" namespace="http://acm.org/samples" />
    </output>
    </operation>
    Is there any chance to keep the original values (written by hand) for the "use attributes?
    Many thanks in advance!
    Regards,
    Marinel

    I am not sure I understand your question. If you want all your BPEL service to be rpc still by default, you can change the templates: C:\eclipse\plugins\bpelz_0.9.XXX\templates.
    The BPEL PM engine support both style of invocation.
    I hope this helps. -Edwin

  • Input/output error when copying a DVD

    I created A DVD some time ago using Roxio.  It plays in DVD Player on my Mac Pro, but I can't create a .dmg using Disk Utility.  I always get "Input/Output error".  I got the same result on my wife's newer Apple. I tried to Restore it but can't, and Verification shows no problems that I can see.  I am able to copy DVDs created on Final Cut Express just fine.  Any suggestions to help me create copies of an old DVD I love?

    I just figured out how to get around the problem.  Download Burn and use it to burn the VIDEO_TS file to a new disk.  It must be something that Apple adds to make it hard to copy DVDs made from non-Apple software.

  • I'm trying to backup a my harddrive with disk utility but I'm getting an error  Unable to create Backup.dmg" (input/output error). Is there any other way to save my data? I believe my hard drive is failing or corrupt file. I can't boot up. Grey screen

    I'm trying to backup a my hard drive with disk utility but I'm getting an error  Unable to create Backup.dmg" (input/output error). Is there any other way to save my data? I believe my hard drive is failing or corrupt file. I can't boot up. Grey screen and spinning wheel. I've tried everything https://discussions.apple.com/message/20580424#20580424
    any help will be greatly appreciated.

    Check here. Also have you done a TimeMachine back up?
    http://support.apple.com/kb/TS2570

  • External Hard Drive not Readable & Input/Output Error?

    I was using my OWC 300gb external hard drive for a while and it's worked great. I had a bunch of files on it, but I recently transferred everything to another external HD I have, which worked fine, so I could erase this 300gb one. I can't remember what happened, but somehow my Macbook doesn't recognize this hard drive. I think erased everything and then unplugged it without ejecting it first. Anyways, nothing is on the the drive anymore and I get this error message:
    "The disk you inserted was not readable by your computer"
    This pops up when I restart my Macbook. When I try to use Disk Utility, it greys everything out on the partition and Disk Repair tabs. On the 'Erase' tab, it will allow me to select Erase, but then gives me the error:
    "Input/Output error"
    Does anyone know how to get my Macbook to see my drive (so I can start to partition it)? For some reason only Disk Utility acknowledges it's there, Finder won't.
    Anyone have any tips of what it is or what I can try? I did try to use my OS discs booting up holding C, but that doesn't work either.

    Hi there. Everyone is saying on these forums that the hard drive is failing...suck. I went and bought a new when I got input/output error and found that the new one showed the same input output error, making it impossible to partition the disk. Then the guy in the apple service center told me the new one was bad too, after having seen the code that came up related to my new scorpio 250 GB drive. Instead of sending it back, I took it out and installed the old one..however this time with a slihtly more of pressure on the tape holding down the hard drive cable between the hard drive and the circuit board. Amazingly, this time it didn't even show any hard drive at all! Then I understood what was wrong. It was exactly what was indicated an "input/output errror"! ..the cable was broken. I bought a new cable, well the Powerbookmedic sold it as new but it was an old working one that arrived. Immediately, after change of cable the old hard drive and now also the new 250 GB works perfectly! I remember that some interesting symptoms prior to all hard drive problems appeared, such as not being able to start up properly, strange blue screens, flipping question marks etc. I remember that shaking the comp occasionally worked to get it going. No wonder, shaking occasionally made it work and i believe the damaged cable maybe changed position and started conducting. The cable is very sensitive and probably should not be taped down so hard as the first service center guy at apple had done with mine when he fixed it the comp a few years ago. Polymers/plastics bent heavily become fragile/brittle with time and are specially sensitive under pressure/bent. Note that my old damaged cable still conducted and showed the hard drives but didn't work fully. I hope this will help someone, it took me 2 month to figure out..

  • External HD - Input/Output Error

    I had external drive that was not mounting or appearing on Disk Utility. The drive was out of warranty so I went ahead and changed the casing.
    1.The drive appears on Disk Utility but still does not mount. DU only shows the root and not the volume.
    2.Connecting it via USB tells me the drive is 298GB and appears as Maxtor 5000DV v0.1.00.00 Media. I connect it via Firewire 400 and it DU shows it as 128GB Maxtor.
    Any help on what's going on here? DU also won't let me First Aid, Erase, or anything else on it. After I try to Erase it,Partition it, or anything it gives me "Input/Output Error".
    10.5.2
    Maxtor External (Actually a Seagate inside)
    G5
    Thanks for any help!

    Adding:
    What is the point of "Restore" and how is it used exactly?
    Thanks!

  • External Drive Disk Erase Failed with the Error Input/Output Error

    I have 2 hard drives in an external FW800 enclosure that I am unable to format. When I go to initialize the drives in Disk Utility, I get the following error message: "Disk Erase failed with the error: Input/output error."
    The drives show up in Disk Utility, but I can't repair them (that option is grayed out). Disk Utility correctly ID's the manufacturer of the drives (Maxtor), their size (200gb each), so it's obviously seeing that the drives are there. But it won't let me format them.
    The drives are new, by the way; they don't have any data/files on them. I have Disk Warrior, but the drives don't show up there to be repaired -- probably because they aren't formatted yet.
    After looking at other posts, I tried switching the jumper settings around on the drives -- from Master/Slave to cable select and back again, but it didn't help. I also tried doing a zero erase (even though the drives are new), zapping the PRAM -- again, no help.
    One question I had is whether this could be a bad FW800 cable? The cable is new -- it came with the enclosure, which is an OWC Dual FW 800 enclosure. Other than that, does anyone have any other thoughts about what's causing this? Any help would be greatly appreciated.
    Matthew

    SOLUTION!!!!
    I had the exact same problem. I have the original 20 GB hard drive that came in my Powerbook G4 550MHz and a couple of years ago I traded up for a 60 GB drive and bought a FW/USB enclosure for my original drive to use it to backup my important files. I hadn't backed up in over a year (shame on me!) and I decided maybe I should erase the drive and start from scratch. It was connected via USB.
    At that point DiskUtility gave me the exact same Input/Output error. I tried partitioning the drive into 1 or more partitions but came up with the same error. I couldn't figure out what was wrong so I decided to startup in OS 9.2.2, I did that and let it start up, then plugged in the hard drive and it gave me the standard "This disk is unrecognizable, do you want to eject or erase?" so I clicked Initalize. It worked!
    Just make sure you choose the MacOS Extended option when initializing out of OS 9 (instead of the MacOS Standard option) so it can be read and viewed in OS X.
    If your computer is too new to be able to boot from an OS 9 folder on your drive or an OS 9 CD, then see if a friend or a local library has older computers that are running OS 9 or can boot from it. If not let me know and you can send me your drive and I'll reformat it.
    Kind of crazy...I haven't used the OS 9 partition on my HD in YEARS...was even thinking about erasing it since I don't use any Classic applications anymore...good thing I didn't!
    Nick
    Powerbook G4 550Mhz   Mac OS X (10.4.6)  

Maybe you are looking for

  • Inbox empty in Mail 3 after 10.5.2 update and IMAP prefix "fix"

    After updating to 10.5.2, Mail detected an "error" in my IMAP configuration and asked me if I wanted to "fix" it by changing the prefix (or root or some such) to "INBOX". Since I assumed it knew what it was talking about, I said yes. It completely ch

  • Can't send text to some people

    I have a problem with texting that is driving me buggy.  I can't send a text message to my wife or my son.  They are both part of my friends and family plan.  There may be others, but I don't send a lot of text messages (there are at least six or sev

  • Can't see my 1920x1080 folio in my iPad library in adobe content viewer

    I would like to make a single .folio to view on iOS and Android.  I'm making it 1920x1080, but when it's been published it only shows up in andoid version of adobe content viewer, not on the ipad. is this a bug or expected behavior?

  • BOM Report

    Dear Gurus , Is there any report that will give me the Actual BOM, Standard and moving average price on a single report.(other than CK13N) ???? Many thanks !!

  • Lyrics Double-Pasting in iTunes 6

    Since installing iTunes 6, I find that when I manually paste lyrics they actually paste twice--the last line will be immediately followed by the whole thing all over again. Has anyone else been seeing this happen? The method doesn't matter--Command-V