Starting analog read corrupts analog write waveform

I have come across an odd condition that can occur if I am running a diagnostic routine on my system.  My diagnostic routine is basically four while loops, each containing code to control specific items in the system hardware. Two of the items are DIO's and always work no problem.
(Am running LV 2013 on Win 7 with a PCI-6014 daq)
Another contains an analog read using AI8 and the last contains an analog write on AO0.
When I run the analog write task, I am feeding in a waveform that essentially pwm's the output.  By itself it works fine.  The only parameter I edit for the waveform generation is the total duration in seconds.  I set at two seconds and I get the modulated output for 2 seconds.
The problem occurs when I try to do this and read the analog input (a simple voltage in from a pressure transducer) at the same time.
If I start the read task while the write task is running, the modulation goes away and the signal goes high and stays there, not shutting off until I force it.   If I have the read task already running (in a loop remember so I can monitor pressure)  the write task acts even more wiggy.  When I start the task it runs for maybe 100-200 ms with the modulated signal and stops.  On about the fourth start, the signal goes straight to high again and stays there until forced off.
So, is there some kind of limitation on this older hardware on reading and writing (at least a waveform) at the same time?
The write task was orginally created in front of the loop and I tried creating it in daqmx and using that but it made no diffference.  I use a daqmx timing vi to set the sample clock rate based on the same waveform with a setting of finite samples.
Any thoughts are appreciated.  This isn't stopping me from going forward but I would like to know why it's acting the way it is.
Thanks....
Doug
"My only wish is that I am capable of learning each and every day until my last breath."
Solved!
Go to Solution.

As I have not got this figured out yet, I am posting the guilty code in hopes someone might shed some light on what is causing the issue.  Code is pretty generic in nature with only one sub vi (also attached) and a couple simple tasks for reading the analog-in.
This is on LV 2013 on a win-7 32 bit system using a PCI-6014 daq.  Analog read tasks are both on AI8. One task is configured to read the straight voltage from the transducer (0-10vdc) and the other uses a custom scale to convert to pressure.  Either one causes the conflict.
Pressing the button to start the motor run works as intended by itself.  Default values for waveform are correct for my application though total pulse time (4 seconds) can be adjusted without consequence. (Note, waveform output controls an isolated SSR that contrls the higher level voltage)
Running either option on the read pressure routine causes the analog out for the motor to wig out.  Stops pulsing and goes to a straight high condition.  If it is on first, starting the motor causes just a little blip of output for 4 - 5 clicks then eventually just sets the AO to high as well.  Continued clicking of the start eventually returns it to blip mode but not to the regular waveform that it is configured for.
I have removed all un-related code from the routine that exhibits this behavior.  I returned the analog out to creating a task in the vi as was the original approach used. I had tried a preconfigured task in MAX but it made no difference.
Small loop inside of motor state is to allow minor adjustments in power supply voltage while motor is running.  This has not even come into play at this point.
If anyone can point out the error in my ways, I would much appreciate it.  I know the power supply vi is not the most robust and I will end up changing that to something better that uses the dll supplied by the mfg.  Current code is legacy material that I inherited.  Everything else though looks on the up and up from my persepctive.
Thanks for any insight........
(just had a thought, if the ground between the two drive voltages is made common, could that impact things ?  will have to see what the internal grounding connection on the daq is)
Doug
"My only wish is that I am capable of learning each and every day until my last breath."
Attachments:
Analog_Conflict_.vi ‏43 KB
Serial Pwr Sply Driver.vi ‏68 KB

Similar Messages

  • How do i expand my labview program to read 8 analog inputs?

    I am an electronic tech learning labview, The program I developed drives a solenoid high for three seconds, takes an analog reading, and then goes low and takes another reading.
    Program seems to work well. I would like to expand it to drive 4 solenoids and read 4 analog channels. Any sugggestions on how to create multiple instances and info on other design implementations would be appreciated. Thanks in advance. I have attached vi.
    JohnG.
    Attachments:
    write_and_read Dig Port9b.vi ‏40 KB

    You can define multiple channels in your DaqMX controls.  In your write and read statements, you change them from 1 channel to N channels.  You will need to send in an array on the Write Booleans, and the output of the Read Analog will also be an array.

  • Error while reading the analog data?

    Hi,
    I was trying to read the analog data from 4 voltage channels with -5,+5 voltages as minmum  and maximum values.Iwas using 250khz as sampling rate and 2seconds as duration.When I try to read the analog data using DAQmxReadBinaryU16 method.I was getting the following error :
    ADC conversion attempted before the prior conversion was completed.Increase the period between ADC conversions.I f you are using external clock check your signal for the presence of  noise or glitches.Task Name _unnamed Task<0>.Status C.
    I would appriciate if you could do this needful.
    Thanks In Advance,
    Meka

    Meka,
    The M Series devices have a specified maximum sampling rate for a single channel.  Past a single channel, the maximum sampling rate is then divided down depending on the number of channels sampled.  The reason for this is because each M Series device has one analog-to-digital converter (ADC).  Every channel in a scan list must pass its data through this one ADC. To allow for this, the M Series devices also have a multiplexer (MUX).  Because of settling time limitations with the MUX switching, the maximum sampling rate is the specified single channel sampling rate divided by the number of channels be scanned.  In your case, because you are using 4 channels, the maximum sampling rate you can achieve with the 6221 is:
    250 KS/s / 4 = 62.5 KS/s
    If you need a sampling rate of 250 KS/s for each channel, you may be interested in our S-Series devices.  These devices have a separate ADC for each channel, allowing all analog channels to run at the maximum sampling rate simultaneously.  Take a look at the PCI-6143, which can sample at 250 KS/s on all of its 8 channels at the same time.
    I hope this helps!
    Justin M
    National Instruments

  • What is the fastest way to detect on to off tag transition​s and then read 500 analog tags?

    what would be the fastest way to read 500 analog tags from the tag engine when a boolean tag transitions from on to off?? Right now I have a boolean indicator setup with the HMI wizard in a while loop with 20ms timer. The indicator feeds the boolean crossing ptbypt vi. When the output is true, I use one read multiple tags vi to get all 500 at once. I am reading data into the tag engine through an opc server and have around 2500+ tags. I need to read all of the data in less than 100ms. My plc logic is setup to zero out all of the 500 analog tags when the boolean indicator turns on again. Would I be better off using the trend tags vi to monitor the boolean indicator??

    Unclebump,
    You might try using read tag.vi

  • SGA size is 1 GB  free but oracle starts physical read/write,why ?

    Dear Friends ,
    In my production server I observe that it takes the the data from the HDD where my SGA is still 1 GB free .
    As far I know , In oracle , when the allocated SGA size is filled up then it reads the data from the HDD which is called "physical read/write " . I am using oracle 10g database . In performance tab(From Oracle 10g OEM) , when I see that oracle starts to read the physical data , at that moment I run the following query :
    select sum(bytes)/1024/1024 " SGA size used in MB"
    from v$sgastat
    where name!='free memory';
    and I found that still 1 GB memory are still free in the SGA .
    In this moment , I want to know , is it possible to start the physical read / write while the SGA size are still free ?
    Edited by: shipon_97 on Mar 24, 2009 10:45 AM

    shipon_97,
    Your understanding is wrong. From your previous posts it appears you never read the concepts manual.
    Begging on my knees PLEASE READ IT and stop asking doc questions.
    Sybrand Bakker
    Senior Oracle DBA

  • How to read 2 analog inputs with VISA

    Hello everyone! I want to read two analog inputs using VISA serial communication from the arduino.  I'm currently able to read one of the input but how do I read two analog inputs on labview?

    Hi lamela,
    again I have to ask: HOW does the string look like? Is it so hard to provide an exact example of your received string???
    I think the string is showing one value from the two inputs
    Are you sure or are you guessing? How can we tell what you might "think" when you aren't able to provide examples?
    You wrote you send values from the Arduino using the command "println(value1, value2)", but now you "think" you only receive ""value1" in LabVIEW?
    Get your data communications clear! (And learn to provide meaningful examples!)
    Edit after your edit:
    my code to serial print two inputs: Serial.println(Voltage, Current);
    Even if I print separately: Serial.println(Voltage);
                                                 Serial.println(Current);
    The first command is completely different then the second part! In the first you should receive two values in one line, in the 2nd one you receive one value per line: You need to adapt your string parsing to these strings!
    Again: send both values in one line. Use the LF as termchar. Separate the values by some separator char like comma. Check the received string for validity. Use some error checking in your VI.

  • Analog Read Pin VI for Arduino interface (LIFA)

    Hi all,
    I'm new to Labivew and Arduino but hoping to incorporate both into my classroom. The Uno I have is functional; I've had some success with it already in the sketch editor. I'm hitting a wall with the interface, though.
    I downloaded VISA but probably overlooked something in the setup. I can't get this Analog Read pin VI to work (from the examples). After setting up a constant on the Init.VI to specify the correct COM port, I hit Run and I can see the TX/RX lights flashing on the Uno. The data from the analog pin is not being read, however. The meter doesn't move.
    Hopefully it's something simple I'm overlooking. I'd really like to move forward and explore LIFA.
    Thanks
    Solved!
    Go to Solution.

    Hi SpuriousD,
    We actually have a specific community group dedicated to LabVIEW Interface for Arduino (LIFA) located at: www.ni.com/arduino. You would most likely get a better response if you posted your question on this board, and it also has some great resources.
    Bill E. | Applications Engineer | National Instruments

  • "Can't read from or write to disk...." iPod error

    I recently switched from my old PowerBook G4 (running Leopard 10.5.2) to a newer MacBook Pro (running Leopard 10.5.5). I migrated my account and permissions from the PB to the MacBook Pro, and everything is working just fine except for iTunes (version 8.0.2) and my older 160 GB iPod Classic (running 1.1.2).
    NOTE: THE VERSION OF iTunes ON THE PB WAS VERSION 8.0.1.
    Since the migration, I've been getting this "can't read from or write to disk..." error whenever I attempt to sync my iPod to iTunes. Previously, I'd never had any problems. I have tried to restore the iPod using iTunes - didn't work. I have tried different USB to dock connector cables - didn't work. I have even tried completely re-formatting the iPod using Disk Utility - didn't work. Everytime I begin syncing the iPod, it starts out just fine. At varying degrees of completion it ALWAYS fails with the same error.
    I had an idea. I tried syncing the iPod to a different computer - my G5 4 x 2.5 GHz (running Leopard 10.5.5) with iTunes (version 8.0.2). I still got the same error. I haven't dropped it, submerged it in water or done anything to it that would otherwise compromise its functionality. So, I'm at a loss.
    PLEASE! PLEASE! PLEASE!
    Does anyone have any other suggestions? - OTHER THAN BUYING A NEW IPOD

    UPDATE:
    OK, after the visit to my Genius Bar; I thought of a variable that wasn't previously considered. Because their transfer of media was successful without the slightest hitch, I had to figure out something else.
    Everytime I had tried to sync the iPod with my various Macs, I was using the same process. Since all of my music and movies "live" on an external 500 GB drive, I was attempting to use that same drive whenever I would try to sync. It occurred to me that possibly the failing was in the drive and not the iPod.
    I have part of that library on a Power Mac G4 867 DP (running 10.4.9). I updated the iTunes on that machine to 8.0.2, connected the iPod and made a successful transfer of a large amount of media!
    My only problem now is that I can't figure out how to get the 500 GB drive to stop hanging on transfer and update of my Genius information. The drive just completely stalls and I get the spinning wheel from iTunes and the application ceases to respond. When I force quit iTunes, the drive recovers fine. I don't have any problems transferring data to and from it and Disk Utility reports that the drive is healthy.
    I have tried re-installing iTunes on all affected Macs - didn't help. I believe my problem may exist in the iTunes Library file or in the associated .xml document. My only concern is that if I do a completely fresh install of iTunes where those files would be re-created, I would lose all of my play and ratings data as well as the information about when my files were added. On a related note, when playing the music from this drive through iTunes. I don't have any issues at all.
    ANY SUGGESTIONS?

  • Simultaneous Analog In and Analog Out

    How to Output on Analog Out and read Analog In at the same time.
    I am using a VC++, NIDAQ 7.01.
    No LabView.

    Greetings,
    The following example demonstrates how to perform synchronized analog input and analog output:
    Synchronizing Analog Input and Output
    The example was written in CVI, but modifying it for use in VC++ is fairly straightforward and documented within the code.
    Good luck with your application.
    Spencer S.

  • Every time I want to download an app From AppStore when I start downloading it after I write my password there is warning that says to me that it isn't possible right now to download power DVD mobile even now were this app is deleted from my ipad

    Every time I want to download an app From AppStore when I start downloading it after I write my password there is warning that says to me that it isn't possible right now to download power DVD mobile even now were this app is deleted from my ipad

    The power DVD app is active, and seems to download ok.  You have already deleted the app? 
    I suspect what is happeneing is that a download is in your queue, and is blocking the queue until it completes, thus the message every time you try to do a down load.  It may be failing because while it thinks you have the app, it is not finding it, and doesn't know what to do.  ( sounds like a poorly designed download).
    I think the way around this might be for you to resync with your iTunes, and let it reload the app onto your pad.  Let it complete the download.  Then, if you do not want the app, delete it again from your pad, and if you never want it, from I tunes as well.
    The next time they do an update, you may wind up in the same situation, so if it happens again, until they fix the download routine, you will get stuck again.
    So try the suggestion, and see if this clears it out.
    The other option would be to open your account in I tunes on your computer, let it complete the download there.

  • Start-up Disc Corrupted all the time

    Start-up Disc Corrupted all the time
    MacBook Pro early 2008 running 10.6.4 and Windows 7.
    My MBP, early 2008, 2.5 GHz, 4GB Memory, HARD Disc 250 GB Hitachi (HTS 542525K9SA00) needs disc repair and erase and reinstall ever 5 days or so. This problem started in 10.6.3 and is continuing in 10.6.4. Which was updated by combo 10.6.4 and backed up with time capsule/time machine.
    Even though it will not start up on Mac 10.6.4 it will still boot up on Windows 7. It will also boot up with the Snow leopard disc and repair. However some times even after the repair it will not boot up and I have to reinstall 10.6 + about 5 times
    I have completely erased and zeroed out and reinstalled twice but I still get the problem about 4 days later. This was necessary because even though the disc was repaired successfully it would still not boot up.
    In reading about Resolving Disk Corruption at http://www.thexlab.com/faqs/repairprocess.html#Anchor-Using-47857
    The article suggests that a 'Bad Sectors' can cause this problem and suggest a complete zeroed out rein install, which I have done, They also recommend the purchase of DiskWarrior or TechTool Pro. Both are around US$95 on line. Which one is the best to purchase?? They say that TechTool Pro can identify a 'Bad Sector'
    The article also suggested Bad sectors can be an early indication of a hard drive that will eventually need to be replaced.
    I have now order a new 320 GB Hitachi HB from USA and it will take about 14 days to arrive. I have also completely erased and reinstalled again, but this time I have not reinstalled window 7.
    I have also reset the power and PRAM a number of times but it made no difference to the problem.
    I have not shut down the MacBook and I am leaving it in sleep mode as the problem really only seems to come about when the MacBook has been shutdown for a day or two.
    I am quite sick of reinstalling. Has anyone else had this problem and is it my HD or software issue???
    I have also reset the power and PRAM a number of times but it made no difference to the problem.
    Best Regards Peterbill

    Gurus - Can you please advice on this. Basically have developed a form and couple of users want to access that but get error " page cannot be displayed" and I figured out the "Start OC4J instance" windows gets closed automatically after some hours.
    so I wanted this OC4J instance to run 24*7 ( always) without closing by itself. Please advice how could I do that.
    Thanks
    Sheik

  • Prompt if you please, to me are necessary programs making it possible to draw off music from the network VK, program- analog Ward, program- analog of adob Flesch pleer. if there are free, the thanks a lot

    prompt if you please, to me are necessary programs making it possible to draw off music from the network VK, program- analog Ward, program- analog of adob Flesch pleer. if there are free, thanks a lot

    Hi Christoffer,
    Thanks for the reply, excellent information! I was a bit struggling with the availability of the tokenGroups attribute, but your info makes it pretty clear.
    Do you also happen to have experience with the LDAP_MATCHING_RULE_IN_CHAIN method to retrieve nested groups? It seems to perform pretty well, retrieves all nested groups using the memberOf attribute and works on all AD environments (W2K3 SP2 or higher).
    Richard Mueller did a performance test using both methods:
    http://social.technet.microsoft.com/Forums/fr-FR/f238d2b0-a1d7-48e8-8a60-542e7ccfa2e8/recursive-retrieval-of-all-ad-group-memberships-of-a-user?forum=ITCG
    User with 14 groups:
    Method                      Groups   Ave. (10 runs) 1 standard deviation
    LDAP_MATCHING_RULE_IN_CHAIN    11     0.1664 sec.   +/- 0.0325 sec.
    tokenGroups                    13     0.0895 sec.   +/- 0.0038 sec.
    Recursive memberOf             11     0.0774 sec.   +/- 0.0021 sec.
    User with 308 groups:
    Method                      Groups   Ave. (10 runs) 1 standard deviation
    LDAP_MATCHING_RULE_IN_CHAIN   305     0.2664 sec.   +/- 0.0151 sec.
    tokenGroups                   306     1.2147 sec.   +/- 0.0271 sec.
    Recursive memberOf            305     1.2813 sec.   +/- 0.1190 sec.

  • How can i synchronize analog output and analog input timings to generate and measure voltage at the same time.

    how can i synchronize analog output and analog input timings to generate and measure voltage at the same time.

    Read this Tutorial
    http://zone.ni.com/devzone/cda/tut/p/id/3615#toc3
    And also refer to this link where You have repeated this question.
    PS: Please stick to one thread. That way, its easier to keep track of your query and answers

  • Snd Write Waveform.vi not run on Suse platform

    in lvsound.so, VI 'Snd Write Waveform.vi'
    Configuration : LabVIEW 7.0
    OS : Suse 9.3
    Alsa v 1.0.8 and 1.0.9
    This function makes LabVIEW to exit!
    It works perfectly with RedHad 9.0, XP and MacOSX
    The behaviour is different between source and executable :
    - source : no trouble before executing this VI
    - exe : the main application loads and runs as expected.
    As soon as it launches a subpanel calling this subVI it makes LabVIEW to quit.

    Hi,
    I have reproduced this problem and have been trying to figure it out for
    a few hours now. It seems to happen on LabVIEW 7.0 only for SuSE 9.2
    and 9.3 (both kernel 2.6 based), when running the SO Config.vi.
    I have something for you to try. Please replace the file lvsound.so in
    the LabVIEW resource directory (usually /usr/local/lv70/resource) with
    the attached version.
    On my system, this avoids the crash, which appeared to be caused by a
    problem in the system pthread library trying to unwind the stack during
    pthread exit. (The sound library uses threads to asynchronously
    read/write data to the sound device.)
    Regards
    David D.
    AE - NI France
    Attachments:
    lvsound.zip ‏7 KB

  • M73 start problems and corrupted registry after windows updates

    Hi,
    we are a Lenovo reseller, having had not a lot troubles so far with M72 models in the past.
    Since M73 the problems have dramatically exploded. We had so far 5 machines, on which we had to run the Factory Recovery as the OS won't start or was corrupted. It appears that especially after a windows updates the chances of a not starting Windows is very high - Windows repair mostly fails.
    Is this a known issue? Does others have the same troubles? Any chance to fix this?
    We are currently reviewing all Lenovo installations and will decide whether we still want to sell them or not. Our business clients are not happy about such an instable installation.

    andreascis wrote:
    Hi,
    we are a Lenovo reseller, having had not a lot troubles so far with M72 models in the past.
    Since M73 the problems have dramatically exploded. We had so far 5 machines, on which we had to run the Factory Recovery as the OS won't start or was corrupted. It appears that especially after a windows updates the chances of a not starting Windows is very high - Windows repair mostly fails.
    Is this a known issue? Does others have the same troubles? Any chance to fix this?
    We are currently reviewing all Lenovo installations and will decide whether we still want to sell them or not. Our business clients are not happy about such an instable installation.
    We purchased many M72e's and recently appx 100 m73 standard builds and 100 recent custom M73 ax builds, we are regretting this right now. We are scrambling to try to keep these machines functioning properly. At first they seem good but they have tons of issues we are discovering, out fo our  new 100, so far we have 10 dead machines, another bunch that have usb issues even after doing bios updates. Many pc's have issues with usb devices not working in one port but will in another. I believe lenovo has a serous problem on their hands with these machines they don't realize or want to admit.
    Being the reseller puts you in a bad spot with a product like this. I believe this is a huge liability to anyone at this point in time, I will be going back to our reseller to deal with lenovo b/c I didn't get the help I was looking for with them directly. GOOD LUCK!

Maybe you are looking for

  • I just upgraded to itunes 64 bit 12.1.1.4 on Windows 8.1 and it does not recognize my devices

    ITunes was working fine but it kept prompting me to upgrade which I did. After the upgrade it took a very long time to identify my iPod classic, but it finally did and I was able to download one song I had purchased. I have 3 iPods. I then put in my

  • Pre: corrupt contact blocks send/receive of SMS?

    Hi all.  Here's my issue - I had just had my wife add her Yahoo messenger info to the Messaging accounts on her Pre.  She already had a contact for me for receiving text messages, so I tried to link the (newly appeared) Yahoo account to my full conta

  • IPhone won't backup, but no error message

    Hi! I got a message this morning saying that my iPhone hasn't been backed up in 3 weeks. I thought this was odd as I have it set to automatically back up, but I plugged it in today, connected to wifi, and tried a manual backup. I'm not getting any so

  • Installation of Photoshop Elements 12 fails on Win 8.1, 64bit

    Hello. The Installation of Photoshop Elements 12 fails on Win 8.1, 64bit. Clost to the end of the installation I get the message: There is an error at the installation of the "shared used technologies" (translation) and the uninstaller starts automat

  • How can I convert a PDF with a XFA file format

    I have an application that reader will not send, and it will not let me convert it to word or any other format.  I keep getting an error message that forms with an XFA format are not compatible.