Acquire 2 digital signal with custom scaling (Engg Units)

I am a newbie to DIO world.
I have write a VI to acquire 2 digital signals. one from a load cell and other for motor rpm (pulses). I need to acquire these two signals and then convert them into engg units using custom scaling and write them to a txt file with time stamp.
Please suggest best ways to accomplish this task.
Thanks
DAQG
Solved!
Go to Solution.

Look at the examples on DAQmx in the example finder.
You wouldn't actually be acquiring 2 digital signals.  You would be acquiring an analog signal from the load cell.  A digital or counter acquisition is what you would acquire from the motor.  Search for analog measurements and counter measurements in the example finder.  Some of the example should show you how to apply the custom scaling.

Similar Messages

  • Acquire a signal with mac osX

    Hello.
    I am a very beginner with LabView. 
    I would like to acquire a signal with a NI-USB 6009. I have LabView 10 on osX 10.8. I already installed the daqmx base driver.
    Could you explain me how to acquire a signal which come from the NI USB 6009 and export it as a list of numbers (the amplitude and the time).
    Thanks!

    Hello matttgic,
    What kind of signal do you want to acquire/generate?
    For exemple, if you want to acquire an analog input, you should use the architecture use in the file "Analog_input attach to this email.
    As Johnsold told you, you can find some code for your device in the "find exemple" section of LabVIEW.
    Hope this help
    Sabri 
    Attachments:
    Analog_input.PNG ‏13 KB

  • Acquire generated signal with this hardware ?

    Hello everyone,
    I didn't really know where to post this, I apologize if it's the wrong place.
    I'm very new to the LabView thing, and I have for project to trigger an injector and so to create a digital signal like this:
    Due to the characteristics of the signal (110V, 10-20A, injection duration: ~20ms), someone recommended me this hardware (sorry if I'm not allowed to post these links):
    - programmable power supply: http://fr.farnell.com/ea-elektro-automatik/ea-ps-9200-25-2u/alimentation-1-voie-200v-25a-prog/dp/2422474
    - USB interface: http://fr.farnell.com/ea-elektro-automatik/usb-interface-ea-if-u1/interface-for-psi-el-usb/dp/1268147?ost=EA-IF-U1
    I'll try to figure out on how I create (on my own for now) the signal with LabView.
    My question is, will I be able to acquire the generated signal with this hardware in LabView, do I need something else ?
    Thanks.
     

    I have designed and built injector drivers. To get a waveform somewhat like the one you showed requires a sophisticated and fast control circuit. I would not call that a digital signal.  It may be controlled by some kind of logic signals, but that is an analog signal.  No programmable power supply I have seen is fast enough to come close.
    The pull-in current does not typically go into a ring/overshoot flat-topped waveform as you have shown. It follows an exponential curve defined by the L/R rise time and the current limit set by the supply voltage and the injector coil resistance. For the injectors I have seen that current limit is much higher than the current required to generate the magnetic field required to open the valve.  That oscillatory response could be the result of a switch-mode current regulator.
    Similarly, the hold-in current does not occur by magic. Either the supply voltage needs to be changed (open loop system) or the current sensed and regulated (closed loop system).  The kind of ringing you show can occur in a switch-mode current regulator.
    Lynn

  • Generate complement​ary digital signals with dead time between each pulse and controlled by duty ratio

    I am to generate  two complementary digital signals using NI 9606 conected by RIO Mezannine Card to NI 9683 (Half Bridge DO).
    I am able to generate the signals but I am not able to put dead time between high and low signal and also, low and high signal.
    Requirement:
    (1) When the first signal goes high and the second signal goes low, there should be a controllable dead time.
    (2) Also when the second signal goes high and the first signal goes low, there should be a controllable dead time.
    I am able to do requirement 1, but I am unable to fulfill requirement 2.
    Please have a look at my VI and let me know how to go about satisfying requirement 2.
    Attachments:
    complementary test 2.vi ‏69 KB

    Hi Frank ,
    I have already taken note of the example Tannerite has provided  and have built my vi ( attached in previous post) surrounding that example.
    Now I require to control the PWM duty cycle as you can see from the vi using a knob and that control refers to both the signal 1 and 2.
    Now the signal 1 end and signal 2 generation requires a controllable dead time. Similarly, signal 2 end and signal 1 geneeration also requires another controllable dead time.
    I am able to do either one dead time at a time using delay but not two dead time simultaneously.
    I feel that I have two put the delays at the appropriate data flow point. I am working on that.
    I would really appreciate if you could give some insight on how to solve this dead time issue and generate two complementary waveform with dead times whose duty cycle can be controlled by a knob controller in fronty panel .
    I have also posted the required timing diagram for reference as suggested by Tannerite.
    Best regards.

  • Sequence 1create output digtal signal- 2 make microsecon​ds delay or less- 3 measure digital signal with board 6023e

    hello
    I need creat a digital signal and for this i use a counter output and then i need creat a delay after  a signal measurment and for this i use again a couter. My problem is how i can make this delay betwen create and measure a signal. this delay must to bethe shortest  possible  and precise. une of my attemps was make  a sequence and for make the delay i create a task for une virtual output with max frequency 5000000hz and just une pulse but i dont know how many time the labview get to go by the first task ( creat a output pulse and ent it) to make tis task before discribed to the last task (measure a digital sinal). Another thing that i dont know is how many time the libview get to create and eliminate une task. Une information beyond the kind of board (6023E) that can be useful to help me  with this problem is the information about my pc in this case i use a pentium4 3Ghz.
    thanks  

    ...My problem is how i can make this delay betwen create and measure a signal.
    ...how many time the labview get to end one task and start another one.
    What I tried to say is, that even if you use the counter of the 6023e-Board
    to create the delay and trigger the measure via LabView under Windows,
    you leave the realtime-path. Executiontime of LabView-code is then not
    determinated.
    One way to solve this, is triggering measurement via hardware and use LabView to read Data from the Buffer of the DAQ-card.
    You can find more info about DAQ in the "measurements manuall" of NI, delivered with your LabView Software.
    Lorand

  • Capture digital signal with DAQ 6015

      I am wondering what is the best way I can capture a digital event accurately using my DAQ 6015 Pad.  It seems as though I can only capture it using (on demand) timing which I'm assuming means it will only capture it as fast as the loop iteration.  I'm looking to monitor this signal with accuracy down to about 10 ms.  Are there any good digital examples i can goto that you can vary how fast you can capture an event using the 6015?

    Hi caunchman,
    In this card, the digital lines are static so you will have to provide the timing through software, which might not be too accurate. I would suggest using one of the counters of this card to count the digital event. I don’t know what programming language you are using, but if you are using LabVIEW you can find good examples in the NI Example Finder. You can go to Help > Find Example > Hardware Input and Output > DAQmx > Counter Measurements > Count Digital Events. If you are using Visual Studio, C or DotNet you can find the Counter examples here: \All Users\Documents\National Instruments\NI-DAQ\Examples. I hope this is helpful,
    Ana P
    National Instruments
    Applications Engineer

  • Acquire 2 signals with different sampling rate?

    Hello,
    i am using first time labview signal express together with a NI pci 6251 & NI Scc 68 device.
    There are 2 signals I wish to acquire over a 2 week time period. They should be saved in several tdms files. One is a dc Voltage.(sampling rate 100Hz) The second is voltage given by an acceleration Sensor. (sampling rate 4kHz)
    When I try to acquire them I couldn't figure out how to set the sampling rate for each signal, only for all signals.
    When I created two DAQmx assistant acquire tabs. An error occurs always: "the specified resource is reserved".
    So my question is is it possible to do this?

    hello markus_umd,
    no, it is not possible to create different samplingrates for individual channels on one daq device.
    if you want to record one channel slower, you must reduce the samples for that channel in your program.
    if the channels have a common divisor, you could implement your task. you find more information here:
    Sampling Different Channels at Different Rates with NI-DAQmx
    kind regards,
    robert h
    NI germany

  • Acquire analog signal with NI PXI 1042 with RT

    HELLO,
    Do you have an example of this program ??
    I ACQUIRE a analog signal on the enter of the PXI and then i must to write it on the RT computer !!
    Thank you for your help!

    Hi,
    You can find examples in the LabVIEW "NI Example Finder". You can access it in the LabVIEW help menu. Click on "Toolkits & Modules" then "Real-Time" to find RT examples.
    Best regards.
    Benjamin
    Application Engineer
    National Instruments

  • Acquiring CONSECUTIVE signals with Signal Express

    How can I record multiple signals consecutively in Signal Express using the same input device and the same DAQ channel?  It seems to me that even if I have separate execution loops, the program will still try to run all the acquisitions at the same time through the same channel.   ..and I'll get an error.  I've tried one exceution loop and I can't the program to do this ..even when I have the 'run after previous step' box checked.  Any help would be much appreciated.

    Hello Sound Tech
    You do not have to put another step inorder to acquire multiple channel. In the first DAQmx Acquire step you can select multiple lines by pressing Ctrl and configure your timing and you will be all set.
    Thanks
    nAyer

  • Parallel acquire 2 signals with different sampling rate on 2 cards

    Hi NI,
    I have cDAQ-9178 and NI 9221, where sample rate is 10kHz and NI 9219, where I need sample rate about 10Hz, it's possible this confiruration for parallel acquire?
    Thank you.
    Neolker

    Hi Neolker,
    Do the tasks need to be synchronized or are totally independent tasks?
    If the tasks are independent, than you basically have to create two different tasks, even in two different loops that will run with different sampling rate.
    You can have them in the same loop the reading if you assure that the data are transfered in chunks to application memory according to tha sampling rate (Ex. for 10kS/s rate you can transfer data with 1kS chunks and for 10S/s rate with 1S chunk).
    If  you want to synchronize them, you will need a counter that will divde the sample clock from 9221 and route it to 9219.
    Let me know if you need more help.
    Best regards,
    IR

  • Measuring digital signals coming from the HSDIO (PXI-6542) with the DMM (PXI-4070)

    Hello,
    in attachment you can find the program I'm using for my measurement: I'm generating and acquiring digital signals with the PXI-6542 and at some trigger point of one of those digital signals I'd like to capture the measured values on a plot with the Digital MultiMeter (PXI-4070).
    It does work if you configure the generation repeat mode as continuous, but if you do have a finite repetition (repeat count is 1) it doesn't react on the trigger, as if it can't find a trigger. On the other hand, if you have a finite repeat count of 30 or more it does react and triggers correctly again.
    First I though it had something to do with autocalibration before the measurement takes place, but If you do a highlight execution (stepping through the program) it looks like it measures before the generation session is initialized.
    Is there a way to measure correctly when the repeat count is only 1?
    Thanks in advance,
    Jürgen

    Hey Jürgen.  I apologize that you haven't gotten an answer yet to your post.  I looked at your code and had some questions.  What is the source of your trigger to your DMM?  I see that you're exporting the data active event to PFI1, and your comments indicate that PFI1 and PFI2 are connected to give you a start trigger for your digital acquisition.  Exporting the data active event with a finite or continuous pulse should only give you a single edge per run, though - you wouldn't get a pulse each time.  Is your trigger coming from a data line?  I didn't see any line in your included data that would indicate a single pulse.
    The other thing that I noticed is that you've got no timing dependency between your HSDIO code and your DMM code - they're in parallel with each other.  Thus you could get different results run-to-run, since it's not deterministic as to which parallel "thread" that LV will start on first.  LV may switch back and forth several times, but let's say that LV reaches the HSDIO Start command before reaching the DMM Start command - in that case, the HSDIO device may finish it's entire operation before the DMM ever starts looking for a trigger, and thus never get the trigger at all.  I'm not sure why this would explain why you're seeing the finite case work and the continuous case not, but I wanted to point it out because it could bite you down the road.
    I hope some of this this helps get you going in the right direction.  I'd also suggest posting HW-centric questions in the appropriate form.  There are Digital forums and DMM forums that might help you reach people that will be more familiar with your particular hardware.
    Chris

  • How to check 6 digital signals change value at the same time with PCI-6229??

    I am using DAQ card PCI-6229.
    Channel 1 generate a digital signal.
    Channel 2,3,4,5,6,7 acquire digital signals.
    I want to check:
    1. Whether the rising edge of Channel 2,3,4,5,6,7 occures at the same time;
    2. The time delay from the rising edge of Channel 1 to the rising edge of Channel 2,3,4,5,6,7 is within a certain range.
    I know I can use counter to get the two edge seperation time delay. But I only have two counter, it is two time-consuming if I check one by one.
    I don't know how to check the rising edge of 6 different channels occure at the same time.
    Does anyone has any suggestions?
    Thanks

    Hello,
    You can use the DAQ card's digital input change detection circuitry to detect changes in the input, you can then use a counter to measure the relative time between samples. Please read Page 6-9 DI Change Detection Applications for more information. Let me know if this helps
    Christian A
    National Instruments
    Applications Engineer

  • Signal express custom calibration data, where is it?

    I have a PXI 1042 rack with 4472 modules. I am using Signal exress 2011.
    I have setup with custom scaling for the channels (so that I can log in engineering units rather than volts).
    I have just replaced the disk and reinstalled everything. I have got everything working BUT...
    When I try to open a previous Setup file it no comes up with an error stating it cant find the calibration values!
    Is the custom scaling calibration data stored outside the Signal express setup file, if so where is it?
    Thanks
    mike

    Ok sorted.
    Refitted old disc with previous system on it. Ran  Measurement and Explorer and then exported the configuration data.
    Fitted new disk, imported configuratio data and all the scaling is restored.
    Useful lesson, I had always thought the scaling was held in the TDMS files but its in the .nce files from the measurment and Explorer.
    mike

  • Read encoder signal with 9201

    Hi
    I have a quite uncommon problem. I need to acquire the encoder signal with a NI-9201 (analogue module).
    Is this even possible? Of course I saw I that I should use a NI-9401 but my chassis is full...
    I already tryed to acquire impulse signals with such a module but they were slower.
    Thanks for any help.
    Yves

    Hi Yves,
    when you acquire data from an encoder, do you mean a quadrature encoder or rotary encoder?
    This encoder generates a binary or digital signal.
    Of course, you can always acquire a digital signal with an analog input module. This isn't recommended and necessary when you can use a pre-built api in the palettes for digital modules.
    When there is no free slot you can think about an expension chassis or a single carrier. This depense on your application.
    How did you acquired the slower signal until now?
    Kind Regards,
    Philipp K. | NI-Germany

  • Ni 6008 acquiring digital inputs from an absolute encoder.

    Hi, i'm a student working on my master thesis.
    I'm trying to acquire 9 digital channels from a 9bit absolute encoder on the NI-USB 6008 but i'm encountering the following problem.
    I'm powering the encoder trough the 0V (GND) and +5V ports on the NI-USB 6008, and if i read the digital outputs directly from the pins
    of the encoder with a tester, without connecting them to the NI-USB 6008, i see +5V or 0V with respect to GND.
    If then i wire the outputs of the encoder to the NI-USB 6008 digital ports, the readings of the tester,  are 5V or 3.6V with respect to GND, so basically
    when i try to acquire the signals with Labview, they never switch to logic low.
    I'm a doing something wrong or is it a problem with the NI-USB 6008?
    Thank you for the help.

    Hi,
    It seems that NI-USB 6008 works well and that the encoder is not able to force low the digital output signal.
    I think that this problem could have different explanations:
    - the encoder needs a pull down resistor in order to work properly
    - the encoder try to force low the digital port while the 6008 is forcing high the same port
    - the encoder is damaged
    Try to take a look at the encoder manual in order to see if the encoder needs some additional circuitry to work properly.
    Alex

Maybe you are looking for

  • XML Message is status scheduled on R/3 side

    Hi All While trying to send message via outbound ABAP proxy i am getting my XML message in status "scheduled (commit work follows)" on R/3 side ... My queues are also registered .. I tested the HTTP connection to XI server also and it seems fine .. w

  • Functions: Oracle VM Manager vs. Grid Control Oracle VM Management Update

    Hello guys, i have seen both tools .. and i have to say that some really basic functions are missing in the Oracle VM management addon for Grid Control 10.2.0.5 .. just some examples: - Renaming virtual machines (because of the prefix syntax is not v

  • Need to find out link between reservation created and actual issue of mater

    Hi I am going to develop a Y report for client, where they want to see the reservation details created in MB21 and the actual goods issue against the reservation (some more details also). Now from the table RESB I got the details of reservation and a

  • Youtube Blues

    So the issue now lies with youtube. I posted a video on the webpage but it's not showing up.. Here is the link. and the following code are as follows. <iframe width="300" height="169" src="http://www.youtube.com/watch?v=GbsR6zt_KpIautoplay=1" framebo

  • Call log keeps automatically clearing for 8130

    My call log disappears automatically.  Sometimes 2 minutes after a call is logged.  How can I keep my call log until I decide to delete it?