Data acquisition/control is reduced when reading in frequency

I am using a 6024E interface to operate a PID loop that keeps the RPM stable of a servomotor but having problems when attempting to read frequency at the same time from a flow-meter.
Basically the operation of the system is as follows;-
User sets an RPM demand, say 5000RPM, an analog signal is sent out to the motor controller which equates to this RPM (obtained operating system open loop) and motor runs up to this value after a brief delay. The feedback from the motor is from its shaft encoder which gives 1000 PPR, after signal conditioning in hardware this signal is applied to the gate of timer 0 and after scaling applied to the PID loop. This configuration is now quite stable and responds quite well to the operator demands. However the first problem was noticed when the RPM demand was taken to zero and an attempt to halt the program was made. There was a delay in shutting down that was roughly equiv to the time out value which was set on the DAQMX read Vi.
Things became much worse when a further loop was added to read a flowmeters frequency output (approx 50 to 300Hz max, counter 1) that varied with the servo motors RPM demand. This additional routine has almost stopped the whole program initially starting as it appears that counter channel 1 is waiting for an input before letting the rest of the program run. I have tried using the trigger functions to control the counters, i.e disable them until the servo motor reaches say 1000RPM but keep getting errors to say that mode is not supported. I guess that I could probably call the whole routine for the frequency measument only when required by using a case statement, but this seems to be a bit 'rough', configuring channels, start, read, stop etc every time the frequency needs to be read. The flow meter reading, once running needs to be fairly accurate because this will ultimatly be used in anoither closed loop to operate a stepper motor that controls the fluid flow through the flowmeter.
Sorry the above is a bit long winded and there is probably a really simple solution to controlling the counter inputs but I think I have tried most of the examples and previous suggestions that I could find on the forum. Also is there any way I could sync the analog output signal to the counter freq read signal? I found examples in the help files for this but using 'count edges' not frequency or period mode.
Thanks John
Labview Version 8.5
Labview Version 8.6
Labview Version 2013

Question re-posted in Labview forum with the Frequency read vi that is being used 
Labview Version 8.5
Labview Version 8.6
Labview Version 2013

Similar Messages

  • Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?

    Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
    I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
    I have attached the VI.
    Thanks for the help
    Attachments:
    new_control_and_acquisition_program.vi ‏946 KB

    Take a look at this document that discusses how to monitor IMAQ memory usage:
    http://digital.ni.com/public.nsf/websearch/8C6E405861C60DE786256DB400755957
    Hope this helps -
    Julie

  • Data acquisition from switching 500lbs load cell to 100lbs load cell

    I am using 500lbs load cell, and acquiring data by inputing 2volts from 2345 signal conditioning board, and sensor output is connected to SCC-AI03 pin 3 and 4 , and configure this load cell to a channel using NI MAX, data neighborhood, traditional NI-DAQ virtual channel, the physical quantity is voltage set at range -10 to 10, and sensor also set at voltage with no scaling, but, I couldn't get any signal when 100lbs load cell is use, the difference of this 100 lbs load cell is the rated output is at 2.958mV/V, while the 500lbs rated at 1.8295mV/V , how should I do this?
    Thanks.

    Hi,
    At this point, it is difficult to determine exactly what is happening to your acquisition. Could you please provide some additional information by answering the following questions:
    What voltage are you reading with the 500 lb load cell?
    Would it be possible to connect your load cells to a DMM and see what voltage reading you receive? If so, what do you see?
    What is specifically happening when you connect the 100 lb load cell?
    I also noticed that you are using the Traditional NI-DAQ (Legacy) driver. I recommend upgrading to the NI-DAQmx driver.  Here are a couple of links with more information about DAQmx:
    Advantages of NI-DAQmx:
    Transition from Traditional NI-DAQ to NI-DAQmx:
    Learn 10 Functions in NI-DAQmx and Solve 80% of Data Acquisition Applications:
    Regards,
    Hal L.

  • PC reboots during Labview controlled data acquisition

    Hi,
    I'm using LabView to control the acquisition of a large number of gamma spectra and whenever the system gets to the ~700th data acquisition the PC reboots itself. There is no sign that the Labview software has crashed, the PC just goes dead and reboots. This problem only happens when using LabView. After a data acquisition a data file is saved to the hard drive, the files are only 12KB in size and I have 1GB of RAM, so I don't think it's a memory problem.
    Would appreciate any help!
    Thanks

    hi there
    Are there any entries in the system events list (assuming MS Win) or in some application logs?
    You said "This problem only happens when using LabView". Does this mean you can acquire data without problems when using another language than LabVIEW? if possible I'd try to create a basic app in some other language to check if the problems depend on the hardware or on the application.
    Can you provide some information about your platform and post some code (pls. don't forget required additional files lile driver DLLs etc.)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Problem with data acquisition and motion control

    I have PCI-6024E and PCI-7342 cards on a single PC. Servo motion control works fine when it goes alone or is accompanied by one point data acquisition in a while loop, but when I start data acquisition with specified sample rate, the motor moves with breaks.
    Does anybody know what is the problem? Is it possible to fix it?

    How are you performing your motion? Is it a position move or a velocity move? How are your triggering the data acquisition? Using breakpoints on the 7342? If so, are you using single breakpoints or modulo? How are you configuring the data acquisition rate? Are you triggering just the start to the acquisition and the unsing the daq scan clock or are you using the motion controller to send the scan clock itself?

  • Does Firefox change the installation date in control panel when they upgrade?

    I installed Mozilla Firefox in early September. 6 weeks later I noticed the installation date for Firefox in control panel had changed from September to October (appeared as if it had been uninstalled and reinstalled). I uninstalled it, and reinstalled it, and I noted the date of installation, October 18. I kept an eye on it. November 5, I checked the control panel, I noted the installation date had changed again, to November 1. Now my dates may be off a day, but is it normal for Firefox to change the installation date when upgrading, and even more disturbing, is it possible to do it without the user knowing it's being done? And remotely?

    Each time you update any program, you install it. The installation date in Control Panel will therefore update accordingly. This happens when the installer runs on your system: there's no remote interference involved.
    By default, Firefox updates automatically. The setting is found under Options - Advanced - Update. If you click the Show Update History button there, you'll no doubt find Firefox was updated on November 1st.
    * [[Advanced settings for accessibility, browsing, system defaults, network, updates, and encryption]]

  • Multiple Sound Card for data acquisition gives read buffer error

    I am using 6 usb based sound cards for voltages and currents mearuments of a three phase delta system.. Hardware is working well. but in labview when i use builtin Input=>sound box for data acquisition it also works well upto 4 inputs... but when i use more i.e. 6 it starts giving error "cannt perform action, read buffer is full" some thing like this... som times it goes to "not responding"...i have tried to find the solution and found in another post of this fourm to varry the sampling rate... i did it upto 96000 that is maximum ... but still problem is same...i need to know, how to manually increase the read buffer. if not possible then.. is there any way that labview stop giving any type of error during simulation?

    thnx i hv solved that problem ... now there is another problem... i am getting all my signals in computer but problem comes when i use phase detector. it keep on showing different values in phase measurement block.. how can i manage the signal with correct phase. i cannt send code cz it has many VIs and they are spread in computer. so i am pasting come photos that are showing different. look in picture...it is from same signal and the phase is different..
    Attachments:
    Capturexcvxccxvxcvcxvvxcvxcv.JPG ‏11 KB
    Capturexcvxcvxcvxcv.JPG ‏11 KB

  • How to make users to select the date from calendar control my making the date field read only in date time control in external list in sharepoint 2010

    How to make users to select the date from calendar control only, by my making the date text field read only (don't want to let users type the date) in date time control in external list in sharepoint 2010. I am looking for a solution which can
    be done through sharepoint desginer / out of the box.
    thanks.

    Congratulate you got the solution by yourself. I am new to a
    WinForms calendar component, I feel so helpless on many problems even I'd read many tutorials. This question on the
    calendar date selection did me a great favor. Cheers.

  • Error when reading data from socket

    Hi,
    I am getting the error 'NiRawReadError: An error occured when reading data from socket.' when using the ABAP API  'mo_core_service->invoke_matching'.
    And I get this error only when I pass ABAP_TRUE to the paramter 'iv_wait_for_invocation' .
    Can anybody help me in correcting this?

    Hi Narasa,
    The following error is already in discussion in the below forum.Plz consult the forum link you will find the error solution.
    Problem in ABAP API - NiRawReadError: error when reading data from socket
    Rgds
    Ankit

  • Error when reading the access data for the Adapter Engine

    We are getting the following error in XI. It started on Jan 22 and resolved on Jan 23 automatically. Nothing has been changed and we don't able to understand how problem started and how it resolved:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
      <SAP:P1>af.xpd.dbcixpd</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>3: Unable to find URL for Adapter Engine af.xpd.dbcixpd</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when reading the access data (URL, user, password) for the Adapter Engine af.xpd.dbcixpd</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Pls suggest if anyone has gone thru same problem.
    Regards
    Amar

    I got the same problem while using RFC lookup.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
      <SAP:P1>af.tx1.netweaver</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>3: Unable to find URL for Adapter Engine af.tx1.netweaver</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when reading the access data (URL, user, password) for the Adapter Engine af.tx1.netweaver</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Any idea ,when we get this error usually.

  • I am writing datas into a FIFO ,i am reading datas from fifo .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place .what is the reason ?

    I am writing datas into a FIFO in FPGA Target side  ,i am reading datas from fifo in windows host side  .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place, a(1) comes to a a(0) .what is the reason ?

    Please use a shorter title in your subject line and not post the entire question in therre.  (See the subject line I created.)   There is also no such word as "datas".  Data is already plural.
    Please read http://stackoverflow.com/help/how-to-ask.  Your question is hard to read because you aren't using proper punctuation and capitalization of your sentences.  It looks like one run-on sentence.
    Beyond that, it is impossible to help you solve our problem with just your question.  Please provide some more information.  Perhaps even attach code we can look at.  Show us what the data you are sending is supposed to look like, and what it actually looks like.

  • Error when reading the DDIC-data for table

    Hi Tobias
    We upgraded from DMIS 2011 SP04 to SP07. We are in development system.
    To test initial load, we stopped replication for an existing table and then started replication for the same table.
    Mass transfer id connects ECC system to BW on HANA system.
    Replication errored with the following message:
    Error when reading the ddic-data for table MARD (RFC destination DWACLNT010).
    Looking for your guidance.
    Kind Regards
    Kamaljit Vilkhoo

    Was able to solve using oss note 1972533.

  • Error when reading the access data(URL,user, password) for Adapter Engine

    Hi,
    We are getting this error in production system 
    "SXMBSysErrorAlerts, Category INTERNAL, Error code: AE_DETAILS_GET_ERROR error text: Error when reading the access data (URL, user, password) for the Adapter Engine".
    Please tell what can be the cause of error. Where are the access data (URL, user, password) for the Adapter Engine read from?
    Its urgent.  We are in support project.
    regards,
    john

    Hi jhon,
              please check the following threads to resolve the problem.
    AE_DETAILS_GET_ERROR
    Error : no_adapter_engine_found: Unable to find Adapter Engine
    regards
    mahesh.

  • Error when reading the data of infoprovider

    Hello,
    I have a problem when excecuting the transaction 'listcube' on a specific infocube. It occurs an error message which complains problem when reading the data of the infoprovider. The message text sounds as follows:
    Error reading the data of InfoProvider ZDPPTGR1
    Message no. DBMAN305
    Diagnosis
    Errors occurred while reading a VirtualProvider outside the BI system. Check whether the previous error messages contain any information about the possible cause of this error.
    It is possible that the error message cannot be displayed because the error message class does not exist in the BI system. If this is the case, only the name of the error class and the message number are displayed. View the error message text in the specified error class in the source system of the VirtualProvider.
    Procedure
    Since the error is not necessarily in the BI system, there is no specific procedure for resolving it. With VirtualProviders, problems often occur with the connection to the remote system; these can lead to system termination. If the code for the VirtualProvider is not from SAP, contact the relevant contact person to help resolve the issue.
    If an SQL error is listed in the previous message, see the procedure for SQL errors.
    Has anybody experience with solving this problem? It sounds like a bigger problem - can somebody confirm this? Or is it a problem which is easy to solve?
    Thanks for answering!
    Kind regards
    Heinz

    Hi,
    Please follow the below threads. They are similar to the error you are facing and they may help you with the issue ::
    Remote cube - uncaught exception
    DBMAN350 Error reading MultiCube data over aggregate
    Error reading the data of InfoProvider 0TCT_VC01
    Regards,
    Arpit

  • NTFS data lost when read on Mac OS X Mountain Lion

    I am having external disk with NTFS and using Mac OS X Mountain Lion to work with the data inside the disk.
    However I encountered problems when working with those data in Mac, somehow the data inside several directories on NTFS disk are lost.
    The data lost was not because it was deleted, the data just lost directly when it was opened on the mac.
    From the Mac's Finder, it is said that the size of the directories were zero bytes.
    When I connected the disk to windows machine after that then it keep showing 0 byte. The data was lost permanently just after I opened it from Mac - the data was there previously before I openned it in Mac, but right now it's gone.
    It's happened two times on different NTFS disks, it seems that Mac OS X deleted those files on NTFS disks.
    Has anyone here encounterred the same problems like I did?
    How to prevent it from deleting NTFS data again?
    Is there any way how to recover those lost NTFS data?

    Data Recovery – Best
    Data Recovery – Disk Drill
    Data Recovery – Data Rescue
    Data Recovery – File Salvage
    Data Recovery – Stellar Phoenix
    Data Recovery - uFlysoft
    Data Recovery - Recovering Deleted Files
    Data Recovery - Recovering Deleted Files (2)

Maybe you are looking for

  • IWork '06 trial expired, now .pages 'cannot be opened'

    In essence, I was stupid and on my new MacBook actually created some Pages documents. I say stupid because the machine automatically opened the trial version of Pages in the trial version of iWork '06. So now that the trial has expired, all those .pa

  • Download error on applications.

    Every time I open CC I go to the applications tab and it gives me an error message saying they can't download. So I click the reload applications button, and it never fixes the problem! I'm running on a MAC

  • How to i get album covers to download ??

    I purchased Clay Walker thru the i store and cannot get the album cover to download ?? what is the trick ?? thanks .

  • We've billed you for Apple services only. You will not receive a physical item.

    hi anyone can tell me what this mean??? isit have hidden charges after i get my product?

  • NAC Temporary Role

    Folks, I am configuring the NAC CAM 4.7.1 and I created two roles, Employ1 and Employ2 but when that roles are into posture assessment with CCAA (Clean Access Agent) I saw that role Employ1 fall in Temporary role and Employ2 fall in Unauthenticated r