Converting Units in LabView and specifying sampling rate with Universal Library functions

Hi,
I am having trouble converting units in LabView 7.0 and having it write to a file / output on a chart in Nm instead of in volts.  I can't seem to find any straightforward instructions, eventhough it seems like a simple task. 
Another task that would seem rather simple is changing the sampling rate with the XAIn program from the Universal Library for LabView (this is version 5.40).
If anyone could help me out, I would greatly appreciate it - I have tried other sources without much luck!
Thanks
Jenna

Are you really needing to change units or do you need to scale the voltages read from your sensors? If it's scaling, it would be trivial to set this up in mAX or with the DAQ Assistant if you were using an NI board. Since you are not, then you could use the Scaling and Mapping Express VI. The y axis of a chart is just a label. You can use the text tool to change it to anything you want.
I have no idea how to change sample rate for your board. Have you asked the vendor?

Similar Messages

  • Which DAQ card can give accurate specified sampling rate

    Dear friends:
    I have an application to sample the data from an analogue device with user specified sampling rate, e.g.171KHz. May I know which NI DAQ card can specify any sampling rate below 200KHz within tolerance  of inaccuracy of 1KHz? Appreciate for your help
    Andy   

    Do you need both accuracy *and* precision?  
    Precision will largely be determined by quantization effects as the sample clock must be an integer divisor of the board's master timebase.  For example, the 6259 M-series board that I commonly use has an 80 MHz master timebase which can be used to generate the sample clock.  In fact, I'm pretty sure it *is* used by default.   The nearest integer divisor when requesting 171 kHz will be 468, producing an actual nominal sample rate of 170.9402... kHz.  (A divisor of 467 would produce a nominal sample rate of 171.3062...)     The quantization doesn't really scale linearly over wide ranges of target sample rate, but for rates in the vicinity of 171 kHz, quantization steps are a bit less than 0.4 kHz, so you can expect to hit your target to within about +/- 0.2 kHz.
    Next you need to consider clock accuracy.  The 6259 board is rated at 50 parts per million accuracy at nominal temperature of 25 C.  I don't know the temperature effect or whether you need to concern yourself with it in your app.  But 50 parts per million on a target of 171 kHz amounts to less than 0.01 kHz accuracy error.
    So it would appear that the 6259 would be a candidate.  There are likely other cheaper M-series boards that could also work.  The older E-series had only a 20 MHz timebase, which would lead to quantization error of about 1.5 kHz.  Don't recall their accuracy specs, but quantization already puts you over your error budget.
    -Kevin P.

  • Error message trying to synchronise audio and midi sample rate 42463

    I have a Rode Podcaster mic that is terrific. It has been working fine in GB. suddenly I am getting this when I try to record my podcast:
    'Error message trying to synchronise audio and midi sample rate 42463 recognised. Check conflict between Garageband and external device'
    Has anyone experienced this before? How do I resolve it? I'm still using my Version 6.0.5.
    Apple, is this a way of forcing me to upgrade to V10?

    Just click the icon on each track that stops it acting as a live input. It looks like a sound wave. Only have them clicked orange when using the track to record! I don't know if that will solve your problem!

  • Error while trying to sync audio and MIDI, sample rate 39100 recognised??

    When I press record a message appears saying 'error while trying to syncronise audio and MIDI, sample rate 39100 recognised. Check conflict between garage band and external device. I'm using a Behringer UMC-202 interface. The inputs are selected as the device but no audio is present either.

    Just click the icon on each track that stops it acting as a live input. It looks like a sound wave. Only have them clicked orange when using the track to record! I don't know if that will solve your problem!

  • Conflict between the saved data and the sampling rate and samples to read using PXI 6070e

    Hello, I am using PXI 6070e to read an analog voltage. I was sampling at 6.6 MHz and the samples to read were 10. So, that means it should sample 10 points every 1.5 um. The x-axis of the graph on the control panel was showing ns and us scale, which I think because of the fast sampling and acquiring data. I use "write to measurement file" block to save the data. However, the data was saved every 0.4 second and as 35 points data at the beginning of each cycle (e.g. 35 points at 0.4 sec and 35 at 0.8 sec, and so on) and there was no data in between. Can anyone help me how there are 35 reading points every cycle? I could not find the relation between the sampling rate and samples to read, to 35 points every 0.4 second!
    Another thing, do I need to add a filter after acquiring the data (after the DAQ assistant block)? Is there anti-aliasing filter is built in PXI 6070e?
    Thanks for the help in advance,
    Alaeddin

    I'm not seeing anything that points to this issue.  Your DAQ is set to continuous acquire.  I'm not sure if this is really what you want because your DAQ buffer will keep overwriting.  You probably just want to set to Read N Samples.
    I'm not a fan of using the express VIs.  And since you are writing to a TDMS file, I would use the Stream to TDMS option in DAQmx.  If you use the LabVIEW Example Finder, search for "TDMS Log" for a list of some good examples.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Where can I found hardware to get analog signal from VCR and work with labview and then sample this signal in very high frequency?

    I am trying to build a Digital Video Recorder using Labview. The problem is that I found that Labview sample the signal in the order of milisecond. I wanted it to be in the order of microseconds. Also I am looking for a cheap Hardware solution if it is possible

    Your question does not make a lot of sense to me, so I will just point out a few things.
    1. The PCI-1411 works well with VCR signals. It has a BNC connector as well as a S-Video connector. The price is under $1000, so it is fairly reasonable. The amount of time you save getting it to work with LabVIEW is worth any extra cost.
    2. The PCI-1411 is sampling three colors at 30 frames per second, with an image resolution of 640x480. This is the best resolution you are likely to get from a VCR signal. The sampling rate for each byte in the image is about 28 MB/sec. This is in the microsecond range that you are looking for, I think. If you are only interested in the raw signal instead of the image, you could look at the high speed digitizing boards NI sell
    s that acquire at higher rates.
    If this information isn't really what you were looking for, perhaps you could clarify your question.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Green & Pink horizontal Lines? and Audio Sample Rate? Help, Please!

    I have just successfully completed one short film. I'm believe I'm doing exactly the same as before but I'm running into problems. Used a Panasonic PV-GS300 camcorder with mini DV. Then a Sony DSR-11 deck. When I capture there are green and pink bars within horizontal lines over the image in the viewer. When I end the capture I get the message 'the audio sample rate of captured media files does not match the sample rate on you source tape. Video and audio out of sync.' The captured film clip audio rate is 48.0 KHz, the audio format is 16-bit integer, the audio is 2 Mono and the tracks are 1V 2A. Any suggestions, help would be greatly appreciated.
    1.8 GHz Power PC G5, 2GB DDR SD RAM   Mac OS X (10.4.9)   FCP 5.1.4

    Sorry about that, I'm away from my FC system, so I can't refer to it. You should choose DV-NTSC in Easy Setup as a starting point, then if the audio settings of your footage are different from 48kHz 16-bit, then you can easily change the capture settings to match.
    tim

  • FCP Stops Capturing and Gives Sample Rate Error

    I've just installed FCP 6 and began capturing from MiniDV. After 9:25;23, the capture stops "due to lack of disc space" and then tells me that the audio sample rate for the capture clip doesn't match that of the source.
    This is a new install, but the previous install on another machine didn't have that problem.
    Help me. My hair is getting thinner from tearing it out.

    What are you capturing to? An external drive? Is it formatted macosextended? Are you connecting to it via firewire? Have you run diskwarrior on the drive? Is the audio on the minidv 48k 16 bit or 32k 12 bit? Does the capture preset match this?

  • Audio and visual sample rates

    hello
    everytime i capture using FCE it comes up with the warning that my rates do not match and says 'make sure the audio sample rate of your capture preset matches the sample rate of your tape'.
    when i ignore this warning, the visual and audio often match nonetheless. then at times they do not, and there is a definite lag.
    i posted a question about this before and the reply was to change the settings in Easy Setup to DV-NTSC. however, this did not work. i bought my camera in the uk (it is a sony DCR PC330E PAL) and so can't really see why ntsc would work.
    im sure this is a simple problem, but i am too inept to solve it! can anyone offer any help?
    thanks in advance

    Hi(Bonjour)!
    It's important to match video and audio format between your sequence(project) and your shooted material(camcorder settings).
    If you camera support PAL or NTSC, select the correct video format in easy setup dialog. That's the video format.
    Check your camera settings for audio format: there are 2 options 12 or 16 bit (in standard DV). It's preferable to use 16 bit with FCE.
    Select the correct audio format in easy setup dialog: if your shooted in 12 bit, select 32 kHz in easy setup. If you shooted in 16 bit, select 48 Khz in easy setup. That's the audio format
    Michel Boissonneault

  • 16 bit or 24 bit and what sampling rate?

    Hi there
    I have a Metric Halo Mobile I/O ULN-2 and an Intel iMac dual processor with 2Mb RAM. Should I be using 24-bit recording because I'm capable of doing so or is there no real world benefit? Also, what about the sample rate?
    I'm producing music for CD and MP3.
    Any thoughts welcome!
    Thanks.
    Steve

    Always 24 bit. I'd rather have less tracks at 24 bits than more tracks at 16 bits. It's a difference most people, even non-musicians and engineers, can hear.
    Sample rate: Most people will pick a sample rate based on the delivery format (44.1 for CD, 48 for DVD, etc.) if you don't know where the files will end up, 44.1 or 48 are both fine for rock and pop. Personally, I like 48. I used to do everything at 44.1 because 99% of the recording I do is for bands putting out CD's, which have a sample rate of 44.1.
    Recently I have discovered that I like the way 48 sounds a little better. Maybe the machine likes it better, or something. I did a bunch of recording at 96 and 88.2 for a while but the files were huge and the extra dynamic range was not worth the extra trouble, IMO. That said, there are times when you'd want to use higher rates. In any case, I'm gonna say go with 24/48 unless there's a reason to use something else. I would also say experiment and listen so you are familiar enough with your gear that you'll know when to deviate from the norm.
    -John

  • Low sample rate with NI USB-6008

    Hello,
    We are working on a project collecting data from a hybrid rocket motor for
    University research. We are using a NI USB-6008, which has a sample rate of
    10kHz. We are using 3 channels and getting a sample rate of ~60 samples per
    second. I have attached the VI. Is this slowed by software, or physical
    computer computation speed? This sample rate needs to be much higher. Any help
    is greatly appreciated.
    - Theo
    Attachments:
    Hybrid DAQ_10.vi ‏73 KB

    Hi Rocket 154,
    You’ve already had some
    great responses, but I just wanted to add a little bit. A great starting point
    to writing good code would be the Getting Started with NI-DAQmx: Main Page,
    as well as the shipping examples (In LabVIEW, Help » Find Examples) already
    mentioned.
    If you navigate a bit
    through the links (Basic Programming with NI-DAQmx » Getting Started with NI-DAQmx
    Programming in LabVIEW) you’ll end up with some great resources. I recommend Learn
    10 Functions in NI-DAQmx and Handle 80% of your Data Acquisition Applications.
    It will detail many of the functions you can use and give you a feel for proper
    code style in LabVIEW.
    I hope that helps.
    Mark E.
    Precision DC Product Support Engineer
    National Instruments
    Digital Multimeters (DMMs) and LCR Meters
    Programmable Power Supplies and Source Measure Units

  • How can I continuous​ly streaming data to disk with 1MHz sampling rate with PCI 6110?

    I can only save 3 seconds data with 1MHz sampling rate using PCI 6110. Is it possible to continuously save longer time data (say 1 minute)?
    Many thanks

    if the binary file is big the ASCII file is very very very big.
    1 measurement is coded in a I16 => 2Bytes ( 4bit is not used 611X is 12bit
    card)
    if you use +/-1V range the quantum is (2 * 1V) / 4096 = 0.0004883V or 0.4883
    mV you need to use 8 digits minimum.
    And If your binary file is 1 Mo your ASCII file is 4 Mo.
    You can use this VI for inpiration you need to add the translate I16 to DBl
    to make a real value before saving.
    For Help you can mail inthe newsGroup.
    I'am a french user and my english is not good Sorry..
    Fabien Palencia
    Ingenieur d'etude ICMCB CNRS
    "StephenZhou" a ?crit dans le message de news:
    506500000005000000A5AF0000-1031838699000@exchange.​ni.com...
    > Hi, Fabien Palencia
    >
    > The program is great.
    Do you happen to know how to convert the big
    > binary file to ascii file? Thanks
    [Attachment recup data I16.vi, see below]
    Attachments:
    recup_data_I16.vi ‏57 KB

  • FMLE won't let me set the sample rate with Blackmagic Decklink Studio 2 (Windows)

    Hi,
    I am trying to set the audio device on FMLE to the Decklink Studio 2's audio inputs. However,
    the sample rate sticks to 44.1k and I can't change it to the 48kHz sample rate that
    the Decklink defaults to (standard for broadcast is 48k).
    Try as I may, it isn't changeable. I seem to remember a similar problem where the
    sample rate defaults to the system audio card (on the motherboard) which is at
    44.1.
      Any ideas on a work-around? The audio from the Decklink is *much* better than
    the built in card.....
    thanks
    jeff

    One thing you might try doing is trashing the preference file in your user directory:
    ~/Library/Preferences/com.apple.compressor.Compressor.plist
    Like repairing permissions, this is a bit of a "catch-all" fix, not something specific to this particular problem.
    Also, have you tried different file types like: TIFF or JPEG, there could be an issue with output from Fireworks. You could use QT Pro to transcode the file. Sometimes that can work to fix funky problems.
    Does the Text Overlay filter work?
    BG

  • Error Msg.: "Inconsistent Audio Sample Rate" with Flip4Mac

    If you're using Flip4Mac to produce WMV files, the latest QT updates will create a conflict with Flip4Mac, which produces the error msg. referenced in the subj. heading above.
    If you're using Flip4Mac, you may want to wait until Telestream resolves the issue before upgrading QT.
    More info is here: http://www.flip4mac.com/knowledge/kb_0070.htm
    and here: http://forum.flip4mac.com/forum/messageview.aspx?catid=10&threadid=270&enterthre ad=y
    MacPro, MBP 17in (2 GB RAM), PB G4 15in, PB G4 12in, iMac G3   Mac OS X (10.4.9)   Loyal to Apple since the Apple ][+

    Just in from flip4mac support:
    The recent release of QuickTime 7.2 created an audio compression error for Flip4Mac WMV Studio, Studio Pro and Studio Pro HD customers. Specifically, when encoding WMV files with Flip4Mac WMV v.2.1.2 using uncompressed audio sources on QuickTime 7.2 systems, customers were receiving "Inconsistent Audio Sample Rate" error and the encode will fail. This problem has been resolved with the beta release of Flip4Mac WMV v2.1.33. If you are using QuickTime 7.2, please upgrade to this release at http://www.flip4mac.com/wmv_beta.htm

  • How to sync. 50Hz sample rate with 5Hz external digital trigger signal?

    Hello there,
    I want to sample an analog input at 50Hz, where I further want to use
    the 5Hz PPS signal of a GPS receiver as an external trigger/clock
    signal for the NI DAQ USB-6008 device. However, I do not want to read
    10 samples every 200ms (= 50Hz avg. sample rate), but I want to read 1
    sample every 20ms, i.e. with "real" 50Hz.
    The "natural" way, it seems would be to use a task that waits for a
    rising edge on the ext. trigger input, then reads 10 samples, then
    waits for the next trigger edge, and so on.
    However, it seems that with this approach I cannot read the data from
    the DAQ with real 50Hz, further it seems that every 10 samples the task
    needs to be restarted, which takes longer than the 20ms (corresponding
    to the 50Hz target sample rate).
    I hope the problem description is clear enough....
    Thank you in advance for any advice.
    Regards,
    Oliver

    You have to use the counter together with the analog input to achive this. You could configure the counter to generate 10 pulses with 50 Hz whenever the counter sees a rising edge on the inpput of the counter. The output of the counter would be used as the external clock for the analog input.

Maybe you are looking for

  • Where is the workload redistribution link in SRM 7?

    Hi, I can not find the workload redistribution link that I use in srm 5 to change the purchase group of one SC or resdistribute the SC to other User. Is in any role? or is a program or service. Thanks. Alex.

  • Created clone doesn't work??

    Thank you for your attention. I am doing a project on transmiting video and audio from a server to some clients. It works well on trasmission, but I would like to show the visual component on the server computer during transmission and I get trouble

  • Regarding Exception in  compiling BPEL in Jdeveloper

    I am getting the following exception building the SOA Composite in Jdeveloper. Can any one please help me in solving this issue. Your help is appreciated. c:\programfiles(x86)\oracle\middleware\jdevloper\bin\ant-sca-compile.xml : 236 : Java returned

  • HT2731 They ask me about security questions, how do I figure out what they are?

    How do I buy an app? It won't allow me with out security answers

  • Using SAP SRM on Windows Tablet

    Hi All, (1) Have anyone used SAP SRM portal on a windows tablet? How is the experience? Any Issues? (2) Can we install SAP GUI on a windows Tablet (assume that I have enough memory in the Tab). Thanks, Ganapathi