Acquiring two input signals simultaneously

Hi,
I have an LVDT and a force sensor (both attached to a motor) plugged into my SC board and I am trying to read out & save the output data from both sensors simultaneously while the motor is in motion. The SC-2350 board is connected to the laptop via DAQCard 6036E . Two questions:
          1) in my block diagram, the DAQ assistant blocks for both sensors are wired to their respective waveform graphs (one for the LVDT signal and one for the force signal), the whole being included in a while loop (which remains true until the motor stops moving). When running the program, only one signal is read out at a time and I have no control on which signal is transmitted (this seems to occur in a random fashion). Do I need to "link"/synchronize the two DAQ assistants in some ways so that both signals will appear simultaneously? If so, how would it be possible?
          2) ideally, I'd like to read out both input signals on the same graph (with 2 different y-scales but the same time scale) to observe the phase shift. I tried to "bundle" the two data output coming from the two DAQ assistants but it resulted in an error saying that the two outputs were of different types. Is there a way to plot these two physical quantities on the same graph even though they're different and come from different sensors?
Thanks for your help!
Thibault.

Hello Dani,
I assume, based on your position sensors and the image you posted, that you are using counters to acquire your data. Is this correct? If so, it is important to note that you cannot add multiple counter operations to a single task because they have different timing requirements and all channels in a single task must share the same timing and triggering. In fact, if you attempt to add a second counter channel to a DAQ Assistant for a counter operation, you will receive the following error when you try to close the configuration window:
So, you will have to use two different tasks to acquire your counter data. You can do this either by using two separate DAQ Assistants or by using two different tasks in the NI-DAQmx sub-VIs in LabVIEW. Since you are trying to compare the phase difference between the two measurements, you will also need to synchronize the operations so that you are reading from both counters simultaneously. There are several resources online which discuss synchronizing counters, and I have linked some that I thought might be useful below:
KnowledgeBase 1JPES6LL: How Do I Synchronize a Buffered Quadrature Encoder Measurement to a Signal
KnowledgeBase 3GGATSCC: Hardware Counter Start Trigger for Counter Synchronization
It would probably be easier to use the NI-DAQmx Sub-VIs to implement this synchronization because they give you more control over specific parameters of your task. You can use the NI Example Finder to browse some examples which use the NI-DAQmx sub-VIs for counters. You can open the NI Example Finder by going to Help>>Find Examples... in LabVIEW. Once in the NI Example Finder, you can find the counter examples by selecting the Browse tab and navigating to Hardware Input and Output>>DAQmx>>Counter Measurements; then you can select the Position category (shown below) to find the Position measurement examples.
Let us know if you have any other questions about taking position measurements.
Message Edited by Matt A on 04-09-2008 03:55 PM
Matt Anderson
Hardware Services Marketing Manager
National Instruments
Attachments:
Error -200147.jpg ‏32 KB
Example Finder Position.jpg ‏124 KB

Similar Messages

  • How can I measure the frequencies of two analog input signals simultaneously?

    Hi
    I have two AI signals, and I need to determine the frequencies of those signals. The frequencies range from 1-125Hz. I currently have a VI where I can sample one of the signals for 1 second (sampling at 300 Hz for 300 samples) and determine the frequency. 
    I need to read two signals at the same time and get both of the frequencies at the same time, but I can only figure out how to read them individually, so I can read one signal, then one second later I read the second one, then I read the first one again, then the sceond one, etc..  How can I read two signals simultaneously?
    Thanks
    Attachments:
    FreqMeas11.vi ‏41 KB
    FreqMeas11.PNG ‏18 KB

    "at same time", this depends on the hardware, you can do as has been previously stated just set up a 2 channel acquisition and you will get 2 sampled waveforms back.  Most hardware A/D as multiplexed and true simultaneous sampling is not done.  At 125Hz this is not an issue unless you are interested in very small phase changes between the samples.  just keep this in mind if you are expecting samples to be completly synchronized.
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • How to seperate two input signals

    Hi people, currently i have one input voltage signal, i would like to add another input signal which display the temp from my Arduino IDE wirelessly via serial visa configure. After doing that, i would like seperate these two signals by using data bits. Can anyone explain to me in a detailed procedures?
    i will upload up the file to show the current program that i am having now. One would be the main, the other would be the SubVI file.
    Attachments:
    Arduino Visa FG.vi ‏20 KB
    Arduino Visa FGV SubVI.vi ‏26 KB

    I can't tell you anything because you haven't shown me anything of what you are doing.
    Show the subVI you've created.  How are you merging them together?  What does the data stream from your Arduino look like?  Once we know that, then it will be easy to figure out how to split them apart.
    I wouldn't go so far to see you have a temp waveform and a voltage waveform.  It looks like you are just reading them a datapoint at a time.  You almost always need to have a Serial Configure when dealing with serial ports.  It doesn't matter whether you are reading both datapoints through the same serial port or just one datapoing through the serial port.

  • How can I measure the phase difference of two input signal?

    Hello,
    I'm trying to measure the phase difference of two input sine waves with the
    same frequency.
    Is there anybody how I can do this with labview?
    Thanks,
    Dae-han

    This is my case! I have TDS3034 which can measure phase. However when I open Read Waveform Measurement vi that comes with tkds30xx.llb, I have a number of options under "measurement function" but not the phase measurement. May be I need another vi to do this?

  • How can i employ "Datalogger" to read several input signals simultaneously

    Dear friends
    I am using National instrument DAQ 6008, The interface i am using is labview 7.1.
    i used the "Datalogger" that came with the DAQ driver to Acquire the signals from the DAQ. it worked great for one Signal at a time. the thing is that i need to acquire 5 signals;one of them is differential, while the other four are single ended; simulatneously.
    so to sum up
    first how to configure the "Datalogger" to acquire 5 signals together one of them is differential.
    Anyone got ideas ????
    Thanks for ur patience.

    Hello Temraz,
    Data Logger does not allow you to individually configure your AI channels. To do this, you can open the NI-DAQmx Base Configuration Utility to set up each AI channel in one task. Then you can use that Task in LabVIEW 7.1. Try running an example at: C:\Program Files\National Instruments\LabVIEW 7.1\examples\daqmxbase\Static\ai. You will have to type the task name manually into the control, they will not be listed in the drop down menu.
    I hope this helps. Please let me know if you have any further questions.
    Regards,
    Sean C.

  • Acquiring Analog Input from Multiple Channels in Labview

    Hello,
    i am working on a VI where i need to acquire signals from multiple channels in Labview using NI-9129.Initially i want to acquire contineous input signals (voltage and current) and display it on the graph.
    Having looked at forum and Labview examples i tried to make an initail VI but i am not sure if the setup i made needs any modification to serve my purpose.I am fairly new to Labview software.
    All i want is
    1.To acquire conteneously current and voltage 
    2.Display current and voltage individually on the graph.
    3.Perform some basic calculations like MAXIMUM,MINIMUM and AVERAGE values of voltage and current.
    4.Log the data into  excel file
    I have attached the VI i made so far.i need abit of advice if i am moving in the right direction or not.
    Thank You for having a look at my question.
    Attachments:
    Voltage-Current VI.vi ‏81 KB

    Engr_tech wrote:
    i think i already have the tdms for  data logging.as far as the tdms data logging is concerned,when i enable the logging mode to "read and log" the data logged inside the excel sheet would be seperate for current and voltage.?
    Is it practically possible to acquire data from 4 different channels and plot them.if yes,then am i right to assume that all i need is to modify the current VI for four channels having all of them in parallel.
    Yes, you are logging directly to a TDMS file.  This is definately the best route for data logging from a DAQ.  The currents and voltages will show up as different channels in the same group.
    To add more channels, just add them to your DAQmx task.  The logging will handle it with no issue.  Your calculations will also a little work to add the extra channels.  Same for the graphs, since you are using seperate charts.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to control two 6011e daq card to acquire eight signals simultaneously.

    I use two 6011e daq card to acquire eight signals simultaneously .I use labview function to realize it,but the data graph show that the signals aren't acquired simultaneously,why?how to do it?

    Hello;
    You need to use the RTSI bus to route one board's clock signal to be the second board's clock signal. By doing that, you will have the same signal clock timing both boards, which will make the synchronization hardware timed.
    You will need to have a RTSI cable connecting both boards together also.
    The best way to go about this is to open the Labview examples that show how to synchronize multiple devices. You can apply the same idea to your board.
    The examples can be found at Search Examples->I/O Interfaces->Data Acquisition->Multiple Device DAQ Examples.
    Hope this helps.
    Filipe

  • 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!

  • Why is it that when I saved the waveform of my acquired signal into a wav file, the output waveform of my saved file turn out to be different from my input signal?

    Hi all,
    I am currently doing a heart sound analyzer project. I acquired signal using NI USB 6008 continuosly. My program is able to saved the acquired signal into a wave file. But when I browse open the saved file, the output waveform did not look the same as the acquired input signal and also the sound of the heartbeat captured cannot be heard from the loud speaker though I have saved the file as a wav file. I am not sure if the method i use to save the acquired data as a wav file is correct.  I have attach the print screen of the differences of the output I have notice and the program I have created. I would be glad if anyone here is able to troubleshoot my program.
    Thanks. 
    Attachments:
    heart sound analyzer.zip ‏257 KB

    Hi Brett Burger,
    Thanks for your reply. For your information, I have set the sampling rate as 10000 as for the sound format, I have set the bits per sample as 16 bit, the rate as 11025 and the sound quality as mono. I tried using your method by changing the sampling rate as 8K but still my program encounter the same problem.
    I wish to also create a button that is able to generate a preformatted report that contains VI documentation, data the VI returns, and report properties, such as the author, company, and number of pages only when I click on the button.  I have created this in my program, but I am not sure why is it not working. Can you help troubleshoot my program. Or do you have any samples to provide me. Hope to hear from you soon.
    Many thanks.
    Regards,
    min
    Attachments:
    Heart Sounds1.vi ‏971 KB

  • How to make a synchronous acquisition of two analog signals with a one channel DAQ ?

    Hi !
    It is the first time I use Labview. I have just made some easy VIs, and now, I do not know how to deal with my problem...
    My problem : I have only one acquisition card (DAQ Ni 6034E) and I would like
    to acquire simultaneously two analog signals. It seems to be possible, in a quasi-synchronous acquisition if the card acquires one point of the first signal, then the first point of the second signal, then the second of the first signal, and so on ... I thougth that I could made two sequencies with a VI of data acquisition in each sequency, with the AI MULT PT. But with this, I think that I will lose the precision of the sampling frequency. And I have to know the sampling fre
    quency ...
    Thanks for your help !
    Carline

    Hi Carline,
    A PCI-6034E is a low-cost board, which only has one Analog to Digital Converter (ADC).
    With only one ADC you can't acquire different channels at the same time. That's why you find a multiplexer before the ADC in this type of board. This enables you to acquire multi-channels at the same rate quasi simultaneously. The samples of the different channels will be interleaved as it is explained in the following knowledge base :
    - http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/9379ea091c264b7c86256bc90082ca5d?OpenDocument.
    With this method, the sampling frequency is the same for all channels. The sampling frequency of one channel is determined with the "scan rate" parameter. There is only a small delay between the samples
    of each channels. When you perform an interval scanning acquisition, this delay depends on the "sample rate" that you specify. To have more informations about this terminology, please refer to the following KBs :
    - http://digital.ni.com/public.nsf/websearch/4D1435DF82EF494186256D8A006DD6D4?OpenDocument.
    - http://digital.ni.com/public.nsf/websearch/4D1435DF82EF494186256D8A006DD6D4?OpenDocument.
    To easily perform such a multi-channels analog acquisition, you can use the VI named "AI Acquire Waveforms.vi". You also can use an example provided with LabVIEW. You just have to browse the NI Example Finder in "Harware Input & output >> Traditional NI-DAQ >> General".
    Best regards,
    Benjamin
    National Instruments France

  • I would like to tare (rezero) the input signal from a forceplate (glorified

    I would like to tare (rezero) the input signal from a forceplate (glorified scale) so that the base signal is set to zero, e.g.: a button on the front panel that resets the signal to zero prior to getting a measurement from a subject.
    We calibrate the force plate through labview and input our new equation into our scaling and mapping box which sets the signal to zero (or near zero) and the change in newtons (force reading) is accurate but when the application is closed and reopened the signal does not always start at zero (-400 to +1200 N), while the change in newtons is still accurate. I am NO engineer, I have Forest Gumped my way into getting some nice working VIs but I can't seem to find this function.
    Thank you very much for your time.

    Maybe that is the limitation of Acquire Input Data.vi.The vi can't identify the Unformal key.
    You can try to use Event structure and set to listen "key down" event.
    There are two terminals VKey, ScanCode will sent out the information when you press key.
    There are two pictures in attached file, 2.jpg will show you the detail.
    Good luck.
    Attachments:
    SpecialKey.zip ‏17 KB

  • Generating an input signal

    I have completed the FPGA Module tutorial and I am attempting to generate an input signal, but i really don't understand exactly what is going on in the tutorial.  I have two FPGA I/O nodes in the FPGA VI that are labeled "ADC 0 PORT A_I" and a corresponding one labeled Q as well.  I'm assuming that these generate a sine wave that the tutorial used as the input signal.  I want the input to be a sine wave with noise, and Mauricio suggested using DDS, but I don't know exactly how to add this to the existing FPGA VI that I created in the tutorial.  Can anyone help me out on this one? 

    I'm a bit confused by your post. The FPGA Module tutorial guides you through the creation of a VI that acquires a signal. The I/O nodes labled "ADC 0 Port A I" and "ADC 0 Port A Q" are the I and Q elements of the acquired and downconverted signal. Just to be able to test this code, the HOST VI also configures one of the Analog Output channles in "Single Tone Mode" and therfore generates a sine through it. However, the FPGA is not doing anything to generate the sine tone, it's the DAC which is configured to generate the sine tone.
    The I/O nodes that you need to use to generate signals are the "DAC 0 Data" and "DAC 0 TxEnabled". You will also need to use another clock, the "DAC 0 IQ Clk".You might want to read some documentation on the Analog Output and look at the IQ Output example. You can find the documentation on this post: http://forums.ni.com/ni/board/message?board.id=ifrio&message.id=140

  • Upgraded to Yosemite and Windows 8.1 Pro in Bootcamp, can no longer drive retina display and two external monitors simultaneously?

    Greetings
    I just upgraded from Mountain Lion and Windows 7 Ultimate (Bootcamp) to Yosemite and Windows 8.1 Pro on a late 2012 MBP 13" Retina. Prior to the upgrades, I was able to drive the retina panel and two external monitors simultaneously when operating directly in Bootcamp. Now, I can only drive 2 of the 3 simultaneously though all three are recognized under Graphic Properties. I simply cannot find any option or profile under Graphics Properties or Options or Personalization to run all three screens.
    My hardware hasn't changed and this worked prior to the updates. I have no issue on the Mac OSX can run all three. I also have no issue doing it in Windows under Parallels Desktop 10. It is just when I boot directly into Bootcamp that this happens. What am I missing?
    Thanks,
    G.

    Great point, Loner T.  It was late when I was working and I thought about this afterwards also.
    The issue was that in Windows=>Control Panel=>Display, under "Change Display Settings", the three screens showed but "Extend Display"  was not selected for one of the screens. It was simply off. I can't believe I danced around this w/o picking it up sooner. In fact, it has happened in the past that for some reason a display loses this setting.
    As an aside, thanks again for all of your help and terrific input to upgrade both the Mac and Windows operating systems. As I was going from Windows 7 Ultimate to Windows 8.1 Pro, one thing I did come across that made life much easier was to upgrade first to Windows 8 so I could keep my apps. The jump from 7 to 8.1 would otherwise migrate my personal files, but not programs and require a lot of time to reinstall all. This was completely avoided by going to Windows 8 first.
    Thanks, again, and very much appreciate the work that you do here.
    Best,
    G.

  • Input signal out of range with HDMI to VGA adapter LE1901w

    Hi!
    Recently I acquired an LE1901w monitor to use as second screen. I'm trying to connect it to my Toshiba u925 using an HDMI to VGA adapter (because neither the monitor has a HDMI port nor the notebook has a VGA output).
    I'm getting the message "input signal out of range" asking to change to 1440x920 @ 60Hz and it keeps showing until the monitor goes to sleep even when I change the settings as per requested.
    I have an integrated Intel HD Graphics 4000 and i'm using the default Windows monitor drivers for Windows 8.1
    Any comment will be helpful
    Thanks
    This question was solved.
    View Solution.

    Hello @fbinim,
    I understand that you are getting the message "Input Signal Out Of Range" and it is asking you to change to 1440x920 @ 60 Hz. I suspect this is a driver issue and you will need to ensure that your drivers are up to date on your computer. Just to be sure I would recommend if you could to move the HP LE1901W monitor to another computer and ensure that you do not have the problem there. If you do have it on another computer The issue you are experiencing appears to be a physical issue. Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html.
    I would like to thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Is it save to use digital output as a digital input signal for another channel

    Hi all,
    I know this is a stupid question, but I do not have other signal generator by hand. So what I want to know is, can I use the digital output signal of my USB-6001 as an input signal for the same device but on other digital port? I did not try out directly because I do not want to burn the device down......
    Thanks
    Solved!
    Go to Solution.

    I do loop backs all the time, especially in my test systems as a way of making sure my signal is making it to the UUT pin.  I typically throw in a 10k resistor just in case, but I have never had an issue.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • Is there any way (or app) where I can change the qwerty keypad to the telephone textpad?

    Is there any way (or app) where I can change the qwerty keypad to the telephone textpad?

  • What features do you need in a LabVIEW build tool?

    When developing LabVIEW applications, libraries, and components often ones needs many more features than the Application Builder provides. For example: * excluding certain directories from the build * defining custom destinations for specific source

  • DataFormat in JavaFX 2.2b15

    Did something change? I had previous had two classes which defined identical dataformats for drag and drop. They both defined the structure like: private DataFormat dexTaskFormat = new DataFormat("DexTaskFormat");However, when I upgraded to JFX 2.2,

  • Dynamic Date Variant for SAP Job

    Hi Guru We have a program to be ran in the Background . I am unable to create a Variant for Date ( Current year Jan 01st to  Current Date). Could you please advice how to create a Variant with Dynamic Date Calculation for above date range. Thanks in

  • There i something stuck in my disk drive

    My macbook pro has something stuck in the disk drive can i fish it out or something? im scared to open it or void warranty