How do I use a counter to measure frequency and multiple analog signals in the same VI?

I have a PCI-6071E, an SC-2345 with multiple modules, and a PXI-8184 (with a PXI-1002 Chassis).
My goal is to monitor pressures, flows, temperatures, and speed in one VI.
I am using Measurement and Automation Explorer version 3.1.1.3004 to manage my channels.
My speed is a PWM signal which I recently rewired through the counter 0 of my board.
I was hoping to configure this to read frequency directly in measurment
and automation, have this scale the value to RPM, and then feed it
directly in to my labView program.
In labView, it will not except this signal though.
I get error -200300 from the DAQmx Start Task.vi
Possible reasons(s):
Invalid timing type for this channel.
Property: SampTimingType
You Have Requested: Sample Clock
You Can Select: Implicit, On Demand
After doing some research, it seems that the counter wants "Implicit"
selected for the DAQmx Start Task.vi, but then I cannot use my other
channels. Also, counter is included in the "Sample Clock" option
description, so I do not understand why it is not working.
Does anyone know how to work around this problem or a way to configure the counter so that it will work in this way?
All my other channels are Analog.
Thank you.

I am working on getting just the counter working by using
the program posted previously, and I am running into issues. Periodically I get
the error:
Error -200141
occurred at DAQmx Read (Counter DBL 1Chan 1Samp).vi
Possible reason(s):
Data was overwritten
before it could be read by the system.
If Data Transfer
Mechanism is Interrupts, try using DMA. Otherwise, divide the input signal
before taking the measurement.
It seems to work better if I use cascaded counters, but I need timer 0 for
analog channels when I run this code along with the program for the other
measurements.
I have tried averaging, and selecting different values for the millisecond
timer, and these did not seem to have an effect.
I tried different DAQms configurations and "Counter DBL 1Samp" seemed
to work the best.
The program will work for a while and then it will give me the above error
message.
If I use counter 0 as a cascaded counter input, the program runs fine. If I run
this with other analog channels, it errors out because the analog channels use
counter 0.
If I use counter 1 as a cascaded counter input, it seems to work better than a
single channel, but it will still error out with the above error.
If I use only counter 1, I get the error above even faster.
Also, none of the
configurations give measurements outside the While Loop.
The only place I can add a speed dial for the front panel is within the While
Loop.
Is there someway to get the signal to continuously send out of the while loop?
I thought if I could get the signal out of the while loop, I could condition it
anyway I wanted without the program erroring out.
Any suggestions would be much appreciated.
Thank you.
Attachments:
Counter_error.jpg ‏45 KB

Similar Messages

  • How can I use a Counter in a Card 6601 for several times in the same VI

    When I try to use a Counter two times for read and for write, I get always a error (no. 50103). What should that mean.

    From the menu Help-->Explain Error...
    "The specified resource is reserved. The operation was completed by ignoring or overriding the specified resource."
    If you are using one particular counter for both read and write operations, you'll need to clear the read task before configuring the write task and vice versa. To clear the task in traditional NI-DAQ, pass in the task id to "Counter Control.vi" with a control code of 'reset'. When using DAQmx wire the task into "DAQmx Clear Task.vi".
    Do you really need to use the same counter in both a read and write mode at various times? Are the other three all tied up? Maybe I or someone else can help more if you describe the app and/or post some example code.
    -Kevin P.

  • How to create a cube/ods/infoobjects etc..and also  why to create the same

    Dear Friends
    how to create a cube/ods/infoobjects etc..and also  why to create the same objects.
    thanks & Regards
    Ramana

    Hi Friend,
    Creating Infoobjects
    1. Go to RSA1 -> Modelling tab.
    2. Click on Infobjects.
    3. Create a new Infoarea.
    4. Now create Infoobject Catalog for Characterstics and Key Figures.
    5. Now create Char Infoobject under Char Catalog and Key figure Infoobject under Key Figure catalog.
    Creating Cubes:
    1. Right click the info area and choose create info cube.
    2. Select the type of cube you wish to create and comnfirm your selections.
    3. The next screen is where you actually define the cube.
    4. Now you will notice the difference.
    5. Place your cursur on key fig and right click and chose infio object direct input; chose your key fig for the cube.
    6. Similarly for the dimension; right click the dimension and chose inbfo object direct input, chose your chars and out them in dimension.
    7. Activate the cube.
    Creating a ODS is also the same.(in step 1 choose create ODS)
    Creating Multicube/Multiprovider
    1. Right click the info area - chose create multi provider.
    2. select the cubes , DSOs, info objects that you need for the multi provider.
    3. On the right side of the screen, you will see all the objects that you selected and open the key fig and dimension and drag the ones you need to define the multi provider.
    4. Identify the chars and key figs.
    5. Acvitate the mullti provider.
    Why we create them ?
    Infobjects : They are fields in R/3. As we require fields in R/3 tables we require infoobjects in BI.
    ODS : This actually is like a table in R/3.
    Cube : This contain the Key figures.(e.g Sales quantity, Amount etc)
    Hope it helps.
    Regards
    Hemant Khemani

  • How to input/output a digital signal and acquire an analog signal at the same time?

    Dasylab, version: 8.0.04
    Acquirement Card: PCI1002L
    When I use DasyLab to acquire the analog signals is no problem without digital inputs and outputs,
    and when I use DasyLab to input or output a digital signal is no problem also, but when I do that at the
     same time, DasyLab tell me the rate is too high and stop.
    so, I searched the manual book1 (user guide) for that, it showed me :
    To internally equalize measurement time and system time in the analog input, digital input and counter
    hardware modules, use the following settings:
       Synchronization: PC Clock
       Sampling rate: <= 5Hz
       Block size: =1
    the problem is, if I set the Sampling rate to 5Hz, the speed of the acquirement datas is not enough for my
    application.
    so, how to improve it? who can give me a example programm for me. thanks!
    by the way, I come from China, my English isn't good, I'm sorry.
    Allen, China.

    Hi,
    Have things changed over the years?
    I need to syncronise a digital output (Modul NI9474) and an analoge input (AI-Modul NI9203) module. I need to measure time intervals from a flank in signal A to a flank in signal B. I would like accuracies of the order of 1 ms. Currently, the signals are not synchronised, with errors of the order of 2 times the block length (block size x sample rate), sometimes much higher. The best I got so far was a block size of around 20 with a sample rate of 1 kHz.
    If I use the master and slave settings on the RTSL settings, my program doesn't run properly.
    If I use digital signals for input and output, I can syncronise them with RTSL settings and everything is good, but I can't always do that.
    Also, if I do anything in the GUI (such as scrollowing something or going to another window), my output gets screwed up properly.
    1. What can be done to synchronise AI with DO?
    2. Is there something that can be done to avoid messing up the output when something happens in the user interface? (I know that I am messing up the outputs as they make some valves switch and that is loud).
    Thanks in advance!

  • How do I share new purchased itunes content automatically between multiple user accounts on the same computer?

    I have 3 different user accounts set up on the same computer. Whenever one of us buys or downloads anything, how can I get that to be automatically available for each of the other users? The main itunes library is stored at users/shared/itunes, but this doesn't seem to help much. As far as I can gather, Home Sharing only works between computers, not between users on the same computer......

    camillafromchichester wrote:
    The main itunes library is stored at users/shared/itunes
    is that the iTunes folder or just the iTunes media (or music) folder ?
    what should work is if the entire iTunes folder were in the shared folder and iTunes on each user account would access the same library file
    launch iTunes on each user account (one at a time) while holding the option (⌥) key, click on choose library when prompted, and select the iTunes folder you copied to the shared folder.
    if user A adds content, this will be available to the others immediately when they access the library, however, only one iTunes at a time can use the library. if you're using fast user switching, user A must quit iTunes before user B can fire it up.

  • Counter to measure frequency with multiple channels (Analog In/Out) in one vi

    Hi,
    I am using DAQ 6062E. I have multiple channels: an Analog In, Analog Out, Count Edges, and Count Frequencies. Without Count Frequency, the program works fine, I have defined a Sample Clock for each channel and then a common sampling rate. When I add Count frequency channel, I am not able anymore to use Sample Clock, since I get an error that Sample Clock can not be used, and if I change the Sample clock of the Count frequency to Implicit, then I can not connect different channels with a same sampling rate. In the attached file, if the Count Frequency is not connected to any Sample clock and sampling rate, the program works, but now I can not run the program for more than 5-10 Hz sampling rate, otherwise I get the error: 209802 “occurred at DAQmx wait for next sample clock, slow down the sample clock”. Does anybody know how to fix this problem?   
    Thanks a lot,
    Azadeh
    Attachments:
    multiple channel.jpg ‏117 KB

    Hi Otis,
    Thanks for looking at the problem. I ran just two counters in a same vi. I was not able to use the Sample Clock since I needed to define an external sample clock source. The vi is attached. I could run this vi fast (200Hz). So, I am not sure why when two counters are combined with AI/AO the rate is very slow. I have attached three vi(s). Just two counters, AI/AO/1 counter, and AI/AO/2 Counters vis. I am able to run the vis in 200 Hz except the vi with AI/AO/2 counters (maximum sampling rate 20Hz). I appreciate if you can look at it if I am missing something.
    Thanks,
    Azadeh
    Attachments:
    AI_AO_2 Counter.vi ‏153 KB
    2 Counter.vi ‏61 KB
    AI_AO_1 counter.vi ‏138 KB

  • How to select a layer mask (not its contents) and another layer/folder at the same time?

    I can do one or another, but both at the same time?
    It is annoying because a mask selection turns into layer selection when you select a second layer/folder.

    Well a layer mask is just that for that layer. If you want to apply that mask to a new layer, you can drag it or alt drag to drag a copy to the new layer. Then it will have its own layer mask. When your done, if needed you can then remove that mask from that new layer, if for some reason you only wanted to see a temporary mask.

  • Hi,new to macs and just purchased a macbook Air,was wondering if anyone uses Microsoft Office on their macs and if it works exactly the same as on a windows based computer.

    Hi all, i am new to Macs and have just purchased a Macbook Air,the only problem i have is there is no Microsoft Office installed,can anyone tell me if office for macs works exactly the same as the windows based version.
    Is there any problems i should look out for ?
    Thanks Paul.

    The Windows and Mac versions of Office are not exactly the same but few people will notice the differences between Word, Excel and PowerPoint unless they are macro gurus. Outlook is different and the Mac version doesn't include Access or Publisher.

  • How can I use word count without it counting the words in the end notes by default?

    How can I use word count without it counting the words in the end?
    Now I have to highlight the text to get a count.

    I don't think that is possible, it does what it does.
    Peter

  • Using a counter to detect frequency

    I have an application that basically needs to run as fast as possible given an input signal from a sensor on a vehicle. This frequency I get can range from 300 Hz to 2.2 kHz. I am also sensing three other analog inputs. This is how the vi should work:
    1. Input signal is passed to DAQ board counter (GPCTR0_GATE). The counter is configured to count on each rising edge.
    2. When a rising edge is detected, sample the three analog input channels and dump these values to a buffer (array).
    3. Capture the period of the input signal at the same time I'm getting the three analog channels, dump this to the buffer as well.
    4. Continue this process until a stop button is pressed.
    5. When the test has completed, copy the buffer to a database.
    Basically, what we're trying to do is capture readings based on an external clock that can vary with speed. While testing the application I wrote, I've noticed some serious problems, and this is where I need some expert advice on how to handle them. If the input frequency were constant at 1 kHz, and the test was run for exactly 10 seconds, I would expect to see 10,000 data readings copied to the database (in a perfect world, at least). What I get depends on whether or not I'm requesting the period of the input signal - if I only request the three analog input channels, then I get around 10,000 data points. If I request the period as well as the three analog channels, then I may get 20% (2000 data points) - and the period is wrong at the lower frequencies (300 Hz to 900 Hz).
    I'm at a loss here. I've written this using traditional NI-DAQ as well as with DAQmx. Neither one gives me the input period right, and the number of data points captured decrease significantly when I try to get the period. I've looked a the examples, used alot of the examples, but still no luck. Any help would be greatly appreciated.
    My configuration:
    LabVIEW 7.1
    PCI-6014 on the PC and a DAQCard-6062E on the laptop
    Windows XP

    Hello,
    I do think that a higher performance card would help you significantly in your application. Something like a Value M Series (NI 622x) might solve the problem since it offers 6 DMA channels. If you are able to strip down your program such that it is the easiest piece of functioning code that demonstrates the behavior you would like to see, I could give it a test run on an M Series device and let you know how things turn out. I would need the DAQmx code in order to do this since M Series do not support Traditional NI-DAQ.
    Another thing that I found interesting about your post is that the examples were not ever working for you. I would suggest trying the Meas Dig Period-Low Freq 1 Ctr.vi in the DAQmx examples to see if you are able to successfully measure the frequency of your signal. If that's not working, then it might be an issue with the signal that you are connecting up. You should confirm that the signal is TTL compliant and possibly even probe the signal to confirm you are receiving what you are expecting.
    Post back with your thoughts and code if you'd like.
    Jared A

  • Use GPIP for measure six point by six DMM at the same time

    First Question
    I will use GPIB for measure six point by six DMM at the same time. I will record the data in every mins.Could it avaiable? Is this method not accuray?
    I aslo wanna to run 3 labview programme at the same. time.Each programme is same and use GPIB to measure by 2 DMM and 2 Digital In .Could i do this?

    The first question is easily handled by triggering all instruments at the same time and then querying each in turn for the measured value. You can use eaither a hardware or software trigger (i.e. the gpib GET command). For your second question, are these 3 LabVIEW programs started by a single main program? How you want to run them will make a difference but in any case, the programs will have to have some sort of synchronization mechanism if you want measurements to be taken at the same time or if independent, a blocking mechanism to prevent simultaneous reads and writes. More details on the second question would help.

  • How can I use iCloud-keychain if i can not find my country in the country code list?

    How can I use iCloud-keychain if i can not find my country in the country code list?

    Welcome to the Apple Community.
    If your country code does not appear in the list…
    Go to System Preferences > iCloud > Keychain and enter your Apple ID password (Settings > iCloud > Keychain, from a mobile device)
    Select the ‘Create Different Code’ option. (Mobile devices only)
    Select the advanced option and choose whether to create a random code or no code, selecting the later allows syncing across devices but not with Apple’s servers.

  • How do I use multiple local workspaces for the same website in VS2013?

    For quite some time I've been using VS2010 with multiple workspaces mapped from the same TFS branch to test different variants of a website in parallel. The internal web server (Cassini) seems quite happy to run multiple versions and simply maps a new port
    number for the second and subsequent instances that start up.
    We are now looking to move to VS2013, so have to use IISExpress since the 'internal' web server is no longer provided.
    How do I configure things so that if I open a single workspace, IISExpress runs against that workspace using the default port number (specified in the solution), but if I open a second instance in a different workspace it correctly uses a new port number
    and working folder. Do I need to invoke IISExpress using the command line (presumably from each workspace) and specify the relevant defaults or is there some way to enter this in the local config file for IISExpress?
    My initial attempt at editing to config file resulted in the 2nd and subsequent instance using the same physicalfolder as the first instance, presumably because the speficied site name and port number are the same!

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Based on your description, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     or IIS forums: http://forums.iis.net/ for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do i use my itunes gift card money and not my credit card

    How do i use my itunes gift card money and not my credit card
    My ipod told me that i had to put in a credit card and because of that i put in my moms wit her permission. but the thing is i do not want to use the money on her credit card. i hav a 10 dollar itunes gift card in it already and none of it is used up. i want to use that money
    how do i do it

    Open iTunes on your computer. In the iTunes Store log into your iTunes Store account and view your account. Select Edit Payment Information. In the credit card choices I would choose None. That will remove your Mom's CC info. Next under iTunes Gift Cards and Certificates click the little arrow to redeem your Gift Card. Then follow the instrction to redeem your GC.
    You can also do this on your iPod, but it is more complicated to describe how to do it and to actually do it. It is easier to do in the iTunes on your computer.

  • I lived in the US for a few years, spent a fortune on iTunes [my then local Apple ID account].  Now I live in South Africa and want to use Match.  I have a local credit card but how do I use my new / 2nd Apple ID and gain access to all my US music??

    I lived in the US for a few years, spent a fortune on iTunes [my then local Apple ID account].  Now I live in South Africa and want to use Match.  I have a local credit card but how do I use my new / 2nd Apple ID and gain access to all my US music??

    You have to be in a country to use its store - you will need to be in the US and have a US billing address on your account to be able to use the US store (that applies to buying and redownloading).
    You can use iTunes Match in South Africa, do you not have a backup copy of all of your US iTunes purchases so that you can subscribe to it and upload those that aren't in the South African store to it ?

Maybe you are looking for