Link digital and analog signal?

Hi, I am trying to "link" a couple of analog signals to a dital signal.
I have a torque transducer with a integral quadrature encoder.  I am also monitoring a couple of other analog signals.
The 3 analog signals are being monitored through simultaneou sampling: 1Mhz for ~1sec
In these analog signals i am capturing certain events (peaks, etc).
What I would like to do is tie these events to the encoder which is tracking "angle" (rotational position).
For example, I determine that the peak torque occured at index 579,397 of the 1,000,000 element array.  What was the angle of the encoder at index 579,397 ????
I am using 7.1
Thanks for the help!
Ryan
Ryan
LV 7.1

Ryan,
Because we share the same name, I've created an example for you.
Basically,  we're using the analog input sample clock to latch the
position of the encoder (connected to the counter). In a finite
acquisition, the exact number of samples you request are generated on
the sample clock. Since we are starting the counter task first, we'll
be waiting on the analog input sample clock to start. This way, the two
tasks will be exactly synchronized. Please let me know if you have any
additional questions.
Good luck!
Ryan Verret
Product Marketing Engineer
Signal Generators
National Instruments
Attachments:
AI_Encoder_Sync.vi ‏99 KB

Similar Messages

  • Array of different (digital and analog) values into multigraph

    Hello everyone,
    So I have an array with a timestamp on the first column, either "off" or "on" string on the second column, and a number value string on another. The columns are based of variables that reads data based on an update rate. My question is, what is the easiest way to separate these values into a digital and analog graphs. This is because the number values are so high that the "off" and "on" signal is being pushed down as the y-axis auto-scales. I'm hoping that I can use a multigraph, but the multigraph puts the data in one graph (since it's one array). 
    Any suggestions or help is appreciated.

    Hi jachy25, 
    Below is a link to a KnowledgeBase article that goes over how to use stacked plots in LabVIEW.
    http://digital.ni.com/public.nsf/allkb/21E8163F259DA2058625703B007511AA
    The second link contains a lot of general information on configuring graphs and charts in LabVIEW, and is a useful document to have when configuring plots.
    http://zone.ni.com/reference/en-XX/help/371361L-01/lvconcepts/customizing_graphs_and_charts/
    I hope this information helps!
    Regards,
    Kelly B.
    Applications Engineering
    National Instruments

  • Breakoutbo​x for Digital and Analog Output

    Hallo everybody
    i need  to design a breakout box with BNC and SMD connectors for Digital and Analog output (the DAQ cards we use are  PXI-6723 for analog and PXI 6259 mostly for the digital an fast AO Channels) I am looking for tutorials and info material for that. On what I have to pay attention what would be a good circuit diagramm design and so on.
    Maybe you could give me some tips where I can find good Material about that.
    Sebastian

    Hello Sebastian
    first of all I'll need some more information about your intention. What exactly are you going to do? Do you want to connect, or divide signals? (Which signals?)
    Maybe if you have a look in the manuals of the cards, you'll get closer to this. Here you can find out the pin assignment of the cards.
    Manuals and specification:
    PXI-6723:
    http://www.ni.com/pdf/manuals/370822c.pdf
    http://www.ni.com/pdf/products/us/04-3513-301-101-​DLR.pdf
    PXI-6259
    http://www.ni.com/pdf/products/us/044063301101dlr.​pdf
    http://www.ni.com/pdf/manuals/371291h.pdf
    Regarding
    Gregor Allexi

  • Can digital and analog channels be simultaneously accessed

    Hi,
    Is it possible to simultaneously access digital and analog channels on
    a Multifunction DAQ (such as NI-4351) by issuing commands from parallel
    threads using LabWindows/CVI (5.5.1)?
    John.

    Hi JAH,
    I have no experiance with this product, so can not give you a definative answer.
    The best I can do is to suggest you try it, if it does not work then you most likely can not do what you want.
    Also what version of the driver are you using, I have checked the
    download page and version 2.1 only works for CVI 6 or higher and LV 7
    or higher.
    Regards
    JamesC
    NIUK AE

  • Problem Receiving Digital and Analog Channels- 22LV610U

    I have a LCD/DVD combo TV model 22LV610U and had satellite tv for over a year and the tv worked great! After shutting off the satellite, I wanted to only receive the local channels via antenna. I bought a new RadioShack Indoor TV antenna ( to receive basic UHF, VHF and FM radio signals to HDTV and FM HD Radio signals)...
    After setting it up, I still only saw snow...I tried setting up the channels through the menu, and was not picking up any signals. I was also unable to view the "DTV Settings" options for Digital Signal...
    Do I need a different kind of antenna? I called Toshiba customer service and was told the HDTV antenna would not be compatible, however, ALL channels are now digital and must be received through this kind of antenna...
    Help, Im in a pickle Thanks!

    If you are using a STB, then you should connect it with an HDMI cable or component cable as you did.
    However, you do not need to autoprogram your TV if you are using an HDMI or component or composite or any other indirect connection. That is because the STB is acting as the tuner; it will automatically receive channel information as part of its on-screen graphics. All the HDMI connection is doing is delivering that video feed to your TV.
    Therefore, what you need to do is press the "input" button on your TV remote and select HDMI, or component, whatever you are using. Then you control the channels using your STB remote, not your TV remote, which changes the channels on your STB, not your TV. Again, your TV is only receiving the video from your STB, it's not directly changing the channel itself. It's like having a VCR and turning your TV to channel 3 in the old days; you just need to pick up the video.
    The reason why, when you tried hooking the TV up directly to the wall with coax is because most FiOS programming is encrypted digital. That is why the STB is needed to "unscramble" the channels and output them to your TV along with all of its on-screen graphics and program guide. Therefore, if you connect coax directly to the TV, the only channels you will receive are local channels (i.e. CBS, NBC, PBS), the ones that Verizon cannot by law encrypt. The reason why some of those channels are "16-2" or "17-214" is because digital broadcasting, as opposed to analog (think the digital transition last summer) uses "sub-channels," which are the -XXX. Verizon can assign whatever number they want to their encrypted programming (i.e. ESPN HD can be 214-1445) because the STB will read that channel and display it within it's own system as Ch. 570.

  • Digital to analog signal?

    I have a new Apple TV set up with my HK AVR 247 receiver. The HK receiver is incapable of using a digital audio signal from Apple TV (HDMI or Optical) to send to multi room speaker zones. All primary zone audio and visual works great but I'm no longer able to play my itunes library throughout the house as I was with my Roku. Any ideas to convert the Apple TV optical signal to an analog signal? Thanx.

    I'm running the same combination and have an unusual problem. Everything was working just fine and then all of a sudden content from AppleTV started having blank black screens at random while playback.
    Now- nothing. Bypassing the AVR247 everything is fine but if I try to use the receiver to pass the signal through: a plain black screen.
    I've eliminated the possibility of the HDMI cable and the receiver still passes through the DVD player just fine.
    Any thoughts?

  • Problem when combinning PWM signal and Analog signal TOGETHER!

    Hello everybody,
    first of all i have DAQmx 6212, and i need to run a small water pump (9V-16V) which needs to be driven by a PWM signal; also i have a motor (5V-13V) for a water valve that needs to be driven by a analog signal and it has a built in a force feedback potentiometer, i connected on the extremeties of this potentiometer +5V from the DAQmx and used the output voltage from the third extremety as a diagnose value for knowing the position of the motor.
    my VI shows:
    1. is a normal Counter output to create my PWMout signal.
    2. is an analog input i use it as a PWMin to the LabVIEW to diagnose what is happenning in my water pump through the duty cycle and the frequency.
    3. is an analog input from the third extremety of the potentiometer.
    4. is an analog output which i have used as a power supply for the motor valve and i have used an AC/DC amplifier to aplify the signal from the DAQmx and drive the motor, between (3. and 4.) i have made a feedback with some calculations i had a P-controller to know the actual position of the motor valve.
    My Problem:
    when putting 1. and 2. in the same VI alone, i am getting a clean PWM in/out with no problems mentioned;
    also when putting 3. and 4. in the same VI alone i can control the motor valve without any problems;
    but when i put all these 4 together as found in the attached VI, i have a problem that the motor valve is running continously without stopping even if i change the valve position between 0 and 100 %, i should mention that i am seeing a normal PWM out/in signal on my oscilloscope, one other thing that if i delete one of (1. or 2.)  and run the VI the motor valve is working fine without any problems.
    so this my problem, if you can think of any solution please let me know.
    thanks in advance for your help.
    Regards,
    Alosh
    Solved!
    Go to Solution.
    Attachments:
    pwm.out.in.analog.out.in.vi ‏45 KB

    Dear nathand thanks for your reply,
    i have ran the vi again and i am have error no 50103 from the (AI, number 3. )  but it is not displaying the error message, the VI keeps running without any error notification.
    adding to that,  i have tested the VI again today by placing (1. and 2.for the PWM inout) together in one VI and (3. and 4.for the motor valve) in another VI and ran them one after the other, i had another problem. if i turn the motor valve vi, the motor will run smoothly but in the pwm vi i will have a problem in which the AI did not read any value. also doing this vice versa by running the pwm vi first it will work perfect but the motor vi will have problem in reading the measured voltage in AI during this the motor will keep on running without stopping.
    so i think now the problem is in AI (2. and 3.) readings they are interfering on each other but i am not discovering where is my problem...
    Q: does the AI's seems well build or i can do it in an another way so to get over the interfering?
    Regards,
    Alosh

  • Anyone have an example of a PCI-6250 Digital and Analog Aquistion with Analog Post-Trigger?

    Hey All,
    We're trying to set up a post trigger data capture of parallel absolute strobed Gurley 17-bit encoder data (ignoring MSB for 16-bit aquisition) with an analog signal that is the output of a torque load cell.  The trick is to use the analog signal level as a post-trigger to stop the data aquisition.
    1) can the analog signal be recorded and used as the trigger?
    2) does anyone have an example using the PCI-6250 (or 6251)
    Thanks in advance for your help,
    -Drewksi 

    Hi Drewski,
    You can use the APFI0 line as an analog trigger for your signal. However, in this case you need to connect your analog signal to both the analog channel you want to acquire at and the APFI0 line.
    Assuming you are using LabVIEW,you can check the "Acq&Graph Voltage-Ext Clk-Analog reference.vi" example. This examples uses an external clock but it works also with the internal clock. All you have to do to change the control to onboard clock.
    You can find this example in LabVIEW Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Measurement >> Voltage
    Best Regards,
    Faris
    Bueller

  • Digital and analog in at the same time

    Hello Group,
    how do I simultaneously and synchonously aquire (read) data from digital and
    analogue channels? In the Manual there are just chapters for aquiring one of
    both at a time and I also can't see a function in the menu for that.
    Thanx
    Frank

    Frank,
    Depending on the DAQ hardware you have you may have issues with simultaneously acquiring data even on your analog channels. Our MIO (Multifunction Input/Output) DAQ cards have one analog to digital converter (ADC) and a multiplexor is used to scan all of the input channels. There will be a slight interchannel delay and you will not have truely simultaneously acquired data (loss of phase will occur). In order to perform true simultaneous acquisition you will need one of our SIO (Simultaneous Input/Output) cards.
    Furthermore, our DAQ driver, NI-DAQ, is not multithreaded. Meaning, you have to pay close attention to what calls you make into the DLL, or to what VIs you are using, if LabVIEW is your development environment. For instance, AI_Read is
    a blocking call, meaning if you ask for 10 bytes of data it will block all other calls until 10 bytes have been acquired. So even if you write a multithreaded application to perform analog and then digital acquisition you will have to not ask for so much that you will be blocking for great periods of time.
    I agree with Ben's comment that one solution would be to pass your digital inputs to an analog input and use a SIO card to simultaneously acquire data. However, depending on what these DIO inputs will be used for this may not be a suitable option for you.
    Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • Optical digital and analog audio out

    I just purchased a Pavilion 500-214 with IDT High Def Audio CODEC / DTS Sound+
    Is it possible to get both opitcal digital audio out and analog (speakers/headphones) out at same time?  Stereo amp needs access to both for multizone/source function.  I can manually pick one or the other before playback - it is clunky in that when switching audio out devices the active will turn off but one switching to does not always turn on.  But i really need  both simultaneously active for amp to work properly.  I have also found rear speaker jack to be more stubborn during switching than front headphone jack.
    This question was solved.
    View Solution.

    Hi zombi1,
    Welcome to the HP Forums!
    I have done some research on whether or not one can utilize both digital or analogue audio out at the same time, and unfortunately this is not possible.
    Thank you for posting, and Happy Earth Day!
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • Z77a GD65 simultaneous audio output via digital and analog jack?

    Hi,
    Does anyone know if it is possible to use the digital audio spdif out, and the green 3,5mm jack (I use it for my headphones) at the same time?
    When I use the digital out, and I run a 'test' with the analog out, I can hear the test signal so technically it should work.
    However, I can't find the right settings to actually use both outputs (same source: for instance iTunes) at the same time.
    Any advice? Thanks in advance!
    Regards,
    Jeroen

    My old msi cuba 7301 from 2007 has an spdif output, and I was able to use this digital out together with the 3,5mm line out (which I used for my headphones) simultaneously. I understand what you're saying, but I'd say the user should decide in what way he/she wants to use the product  . Technically, it shouldn't be a problem, since I can hit the 'test' button and hear the sounds through my headphones via 3,5mm stereo out, while playing music through the digital out.
    Anyone from MSI who knows the answer? If it was possible in 2007...
    Thanks for your answer

  • Connecting 5700 with laptops' only digital AND analog output

    Hi everyone!
    Although I'm an experienced creative user this is the first time I'm posting. I looked trough the forums but I couldn't find any answer to my question and I hope this is not the "n"th time it is asked...
    I have Inspire 5700 Digital speakers and I recently bought a Sony VAIO VGN-FES laptop, with an Intel 945PM Express chipset, which features Intel HD audio. In the sound setup utility of Sigmatel HD audio, there is even an option to enable digital SPDIF output, which I enabled. But when I connect the digital din cable to my laptops only output jack (headphones...) I have no sound at all...
    I thought that it may be due to the fact that the jack is not digital only. But I still want to have real digital 5.1 audio. So could anyone tell me how I can do that?
    Thanks beforehand!

    Addlclove,
    in the sony forums the answer I recieved was that the headphone jack was normally 2.1 analog, but I didn't receive a fulfilling answer to my query about the reason to the spdif setting in the setup utility and the chipsets features. That's why I came here The only output I have on the computer is the one for the headpohes. But there is a docking station that I could buy, having an optical out.
    And Jason-CL,
    You're right, I used to have an Audigy, and I understand that you're saying that I can't do it through the headphone jack, right?
    astarem
    "hope..."

  • How to use both digital and analog input modules in the same worksheet - MCC USB1208LS

    Dear all,
    Hi, I am Imran. I am using MCC USB1208LS. I have created the worksheet using digital input module as below and able to execute (run).
    But when i add another analog input module in the same worksheet and executes, An error Message pops-up as in the below image
    I have connected temperature sensor sognal to the analog input of USB1208LS. When using analog input alone in the worksheet, it indiates the actual values. 
    is any black box solve? please guide me. I am attaching in images
    We already placed a purchase order for USB1208FS. Will it sort out my issues?.
    Thanking you,
    Imran Mohamed.
    Attachments:
    present worksheet digital input only.JPG ‏67 KB
    with analog input module.JPG ‏81 KB
    error menu.JPG ‏77 KB

    Hello Imran,
    the USB-1208LS is not capable of running concurrent operations such as an analog input scan and ANY digital Ins, Outs, counter reads, or analog outs.  In Dasylab, the 1208LS is scanning, and nothing else from that particular device can be requested of it while that is happening.
    Yes, using the 1208FS will resolve some of these issues.
    Please refer to the ULHELP.CHM file installed on your computer in c:\program files\measurement computing\daq for details on this issue, et al.
    also I recommend you send your MCC/DASYLab requests for support to [email protected] as MCC staff (that includes me) does not normally monitor NI's Developer Zone.

  • What are the separate "digital" and " analog" cable (or wires) for that connect inside pc c

    , you know the ones I mean. They go from the cd/dvd rom dri'ves and then to, in my case the SB audigy 2 card.
    Can someone tell me if they are needed, what they are used for if they ARE needed and the diff. between the analog and digital functions of the wires?
    And anything else abou them, because I used to use them be then stopped and I dont see any loss in functions of my computers sound!!!

    Mattyboy,
    If you are using XP or 2000 then these cables are no needed. If you are running earlier versions of Windows, then you need these connecters for you to get CD Audio and DVD Audio to the sound card.
    Jeremy

  • Newbie: 6020E (USB) slow performance with mixed digital and analog input

    Hi,
    I'm using a 6020E to do analog and digital input, and I'm getting very bad performance.
    Please note that doing IO in Labview is new to me!
    I have read the post about 6020E slow performance, and it says I should do buffered IO.
    Can anybody point me to some DOC or SAMPLE that actually shows or explains how one should do this. I need to read several digital IO lines (which I can combine in one port-read), and several analog inputs.
    Seeing how slow the reading on the 6020E is, I am amazed there is only one post that deals with this issue.
    I would be satisfied to get the 6020E into some sort of continuous read mode so that whenever I need data, I get the latest reading right away.
    thanks,
    Peter D'Hoye

    Hi Peter,
    Your cannot do buffered digital I/O with your daqpad. It doesn't have that capability. You can only make direct software calls with digital read/write from/to your port. So your digital IO is completely software clocked and not hardware clocked. The example you are trying is only for specific Simultanuous sampling boards or now also for M-series boards that are able to do correlated DIO.
    Use the Cont Acq&Graph Voltage-Int Clk.vi example for your analog measurements. (NI Example Finder) For your digital IO you can only use the examples like Read Dig Chan.vi, Read Dig Port,...
    There are indeed some slow performance issues with single point I/O Operations, that is correct.
    Check the explaination below:
    DAQPads are offered for the Universal Serial Bus (USB) and the IEEE 1394 (also known as FireWire). Both of these standards use a high-speed serial communication protocol between the computer and the device with a bandwidth up to 12 MB/s for USB and 400 MB/s for FireWire.
    During a single point operation, the DAQ device requires a complete set of configuration commands. This is done through serial communication (USB or FireWire), making the process slower than in a PCI-based board. The speed obtained for single point operation in a DAQPad is system dependent; this means that your computer processor, memory, bus speed, and other factors alter the speed at which you can do single-point operations with a DAQPad.
    For example, on the DAQPad-6020E, timed non-buffered analog input operations are limited to about 50 Hz. At higher rates, the software may become unresponsive. On a FireWire device, you can expect stable operation around 3,000 Hz. But again, these figures are system dependent.
    Regards.
    JV
    NI

Maybe you are looking for

  • How to export the report in HTML format for desktop application

    Hi, i have wrote the JRC desktop application to export the report and i am able to export it in PDF and other formats as mentioned in "ReportExportFormat" API. i would like to know is there any API there which can export the report in HTML format. i

  • Mass purchase requisition deletion

    Hey Gurus, We have changed some materials from planning to no planning in MRP.  the users would like the Purchase requisitions that have been created to be deleted now that we no longer plan these materials. I checked MEMASSRQ and I also checked MASS

  • Posting through AC_DOCUMENT_DIRECT_INPUT

    Dear consultants, I need to post debit/credit posting  through tcode FB01 . for this suggested F.M is AC_DOCUMENT_DIRECT_INPUT. Now I got data into database tables and need to post data through the above function module . could u pls guide me how can

  • Where do i download file sRGB.pf and GRAY.pf .

    When i debug : public static ICC_Profile getInstance(String fileName) ICC_Profile thisProfile; thisProfile = getInstance("sRGB.pf); return thisProfile; desplay: An exception of type 'java.lang.StackOverflowError' was not handled'. Where do i download

  • Convert Tree output of IH01 transaction to simple ALV list output

    Hi, We have immediate requirement of changing the ALV TREE output of transaction IH01 to general ALV LIST display (with rows and columns) . To match with the requirement, I have to analyze the standard program first, copy the code to custom program a