Digital(sw​-time) and analog(con​tinously) in one graph?

Hello,
i have usb-6008 when (DI is sw-timed) and AI when i want (continous sampled) and then the both signal show in one graph, is it possible, please could you writte me how can i do it?

Hi Ondik,
Firstly, please do not duplicate posts.
I've seen your other post on this link http://forums.ni.com/t5/Multifunction-DAQ/usb-6008​-DI-is-sw-timed-and-AI-when-i-need-continous-sampl​...
and it is exactly the same question.
To answer your question, you have couple solutions:
1. As it was stated in the previous posts, you can acquire the data on another analog line, and than you will see your signal displayed on a waveform graph.
2. In case you still want to use data that are acquire on SW DIO and Hardware time Analog Input you can do the following.
When you acquire data from Analog Input, the data have the following strucutre - a cluster that contains three elements: T0, dt, and Y - an array of samples.
More details here http://digital.ni.com/public.nsf/allkb/B965F316364​DE17B862572DF00363B10
Basically, you can programmatically build a waveform from the static data you have. Let's say, every iteration of your while loop, you will receive one boolean value and waveform data that contains 100 samples of Analog Input. You can create the Y array with 100 samples of an double value (5V for TRUE and 0V for False, or any logic level you are interested in), copy the dt and T0 value from the waveform received on Analog Input measurement. Later, you build an array of waveforms (AI and DI) and you represent it on a graph.
I still believe that the first solution is easier to implement, but if for any reason you can do it, you can use the method described above.
Best regards,
IR

Similar Messages

  • How can i get the time and result together show in one Array or in Cluster?

    hello everyone i am a new user .I want to get the time and voltge form a Generater. How can i get the time and result together show in one Array or in Cluster?When i selecte the first(or third...) result then in the front panel display the time and the voltge.Thank you!
    I post the time and voltge NOT together photo
    Attachments:
    12345.GIF ‏54 KB

    You can create an array of clusters with one element being the time and the other being the voltage, like so (using the "Get Waveform Components" function):
    Message Edited by smercurio_fc on 10-17-2007 03:15 PM
    Attachments:
    pic.PNG ‏11 KB

  • I have a loop made to read temperature 30 times and averages it down to one value which is then displayed on the screen.

    My problem is that this loop is not permitting me to abort instantly because I have to wait until the for loop is done. I am using event structure which is allowing me to interrupt at any time and jump to something else in the software but nothing stops the for loop and I really need to calculate temperature by taking at least 20-30 points. I have been moving this part of the software all over the software and if I solve one problem wherever I put this vi it slows down that part of the software where I put it. I need to read te temp. all the time whle software is running.
    Do you have any ideas how to speed up this VI so that it doesn't take t
    his long to execute or how to build this software so that read temp.vi doesn't affect software. Thanks for your time. Here is the read temp. vi
    Attachments:
    Read_temperature.vi ‏50 KB

    Hello,
    Here is a simple VI (saved in LabVIEW 7.0) that uses a control reference to pass a front panel control's value into a subVI. You can run the VI, then press the "Start SubVI" button, which will cause the subVI to start running. It waits until you press the "Abort SubVI" button, at which point the "Value" property of the boolean inside the subVI is read, and terminates the loop. I am then resetting the boolean value after the subVI returns a value (this is because you cannot use the Value property on latch booleans). This should be enough to get you started.
    Keep in mind that you cannot perform this operation inside an event case of an event structure, since the UI is locked while the event structure is processing the event...t
    hus, you wouldn't even be able to press the abort button. In your case, you should probably have a loop handling the UI events, and a separate loop handing the data acquisition.
    For more examples on using Control References, check out examples\general\cntrlref.llb. There is also extensive help on them in the LabVIEW On-line Help.
    Good luck,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    ctrlref.llb ‏29 KB

  • Is there a way to roll back ios6? I upgraded before I knew about the new mapping. I used google maps all the time and absolutely hate the new one. Just about everything I've looked for is wrong or missing.

    I hate the mapping in IOS6. Is there a way to roll back to the older OS? When I upgraded I didn't know about the mapping change. I used google maps a lot, for a variety of things. In just a few searches I've found more errors or missing landmarks than anything else. I really hate this app!

    I agree. How can I roll back to the previous OS? Developers, please post a procedure for reverting.

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

  • RE: Time and Date Changed by itself

    The date and time will change to the wrong one automatically especially after the batt died. This repeated itself regardless on how many times i readjust the time and date to the right one. Someone please help me.

    I had the same problem today. I also have the iPod 4g, no problems up until today. First make sure you calender is set to "Gregorian, you can do this by going to Settings --> General --> International, and you will see the calender options, mark Gregorian. Still didn't work? Try this: I experimented a little, and what i did was: First, I went to Settings --> General --> Date and Time --> Set Date & Time (before doing this make sure you're in the correct time zone) and here you can change the time and date. But, if it changes automatically, go to the date, and you may have the same problem here, but here's what i did. I couldn't change the month, or day, but i could change the year. Change the year to 2011, and then all the other options should come up. Hope this helped!

  • Plotting two continuous analog intpus on the same graph.

    Hey,im currently using visual basic 6.0 and Measurement Stdio and want to read in two analog input signals at the same time and plot them on the same graph.Is there any sample code available to look at to carry this out?Or any help on how to go abouts this.
    Cheers

    Hi Dazza,
    The link below takes you to a page which should provide you with what you need. Let me know if you need further help.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E03B56A4E034080020E74861&p_node=DZ52130&p_source=External
    Best regards,
    Peter H.
    Applications Engineer.
    NIUK.

  • I need to edit out parts of a song to cut it down to two minutes for my daughter's talent show. I went to info and it will cut down one part but only one part. I need to put three parts together. I tried adding duplicates of the song to the list but if I

    I need to edit out parts of a song to cut it down to two minutes for my daughter's talent show. I went to info/start time and it will cut down one part but only one part. I need to put three parts together. I tried adding duplicates of the song to the list but if If I change the start time on one it will change it on all of them.

    In your library, right-click the song you want to edit.
    select "get info".
    go to "options" and select the start and stop times for your first section of the song.
    click "OK".
    Find the shortened version of the song in your library. It may take a minute for it to show up. right click it again and select "create (????) version". (the ???? is different for different formats).
    The library will spit out a new, second version of the song which you can rename. I suggest you use the original title and add a 1 to the end.
    Now you can go back to the other version and repeat the process with a different  start/stop time.
    Once you are done editing, you can burn all of your versions to a disk, just make sure your interval time is zero so there are no gaps between edits.
    To keep the orginal song on your library, just go back to the original and put the start/stop times back to the original settings.

  • 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

  • Any cards support simultaneous dolby digital live and analog 2 channel output?

    I am searching for a sound card that can output both dolby digital li've and 2-channel analog at the same time. I'm not sure if any of the Creative Labs sound cards can do this.
    My Denon receiver outputs 5. in my main home theater room, but outputs only 2 channels to a separate room. I want to be able to play music in both rooms simultaneously. Unfortunately, the digital signal (which feeds the theater) is not converted to analog internally within the Denon receiver to output to the other room. The other room must receive an analog signal.
    That is why I am looking for a sound card that can output both at the same time.
    Does such a beast exist?

    My computer updated to Widnows 8.1, now my sound blaster does not work. Everything else works (DVD, CD, Speakers, etc.) but I have no sound.
    I'm not a tech person, a PC user and depend on my surround sound system.
    I'd appreciate any help possible.
    Thank you.

  • After updating iOS, I only see a black screen on my iPad asking for a 4 digits passcode, I've tried severeal times and now every time I try I get this message "Ipad dissable wait 60 min... I do not know what to do???

    After updating iOS 8.0, I only see a black screen on my iPad 4 asking for a 4 digits passcode, I've tried severeal times and now every time I try I get this message "Ipad dissable wait 60 min... I do not know what to do???

    Howdy mendjes25,
    It sounds like you’ve recently updated your iPad and now it’s disabled because the passcode you’re entering isn’t being accepted. I can imagine that would be frustrating. Take a look at the article linked below, it describes the alert you’re seeing and provides the possible resolutions for that issue.
    iOS: Forgot passcode or device disabled
    I hope this helps,
    -Jason

  • 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

  • Simultaeno​us digital out and analog in

    Hi. I am running into an issue with the simultaneous AI (analog in) and DO (digital out) with Athena (www.diamondsystems.com) and LabVIEW (see the supplied files): The original program example supplied by somebody (the attached 060126 file) runs fine with these two simultaneous operations.
    However, for my specific requirements, I would have to put a frame (flat sequence) around the DO part (the attached 060131 file), followed by another flat sequence frame that changes another DO state. The reason that I must do this is that I have 2 valves which change states as the AI operation continuous to run.
    I have noticed though, once I put those flat sequence frames around it, the DO pauses and doesn't perform the operation until the AI loop is stopped. I have tried to create various local variables but the issue persists. Would there be a workaround for this? Thanks.
    Attachments:
    HMIR_SBC_060131.vi ‏374 KB
    HMIR_SBC_060126.vi ‏137 KB

    I have taken a look at your code. Based upon your description,
    and the fact that I do not have the driver for your device, I am not exactly
    sure where the program is pausing.  I can give you some suggestions to
    resolve your problem.  When you use a flat sequence structure, every piece
    of code in a frame has to finish execution before the next frame will start
    execution.  If you have code in parallel (i.e. digital output and analog
    input) in one frame and the same in a second frame the digital output and analog
    output in the second frame will not start until all the code in the first frame
    has finished execution.  In your case it you have a while loops for
    digital input and output in the first frame.  When both of these loops
    finish execution, you should see the second frame start shortly after. 
    From your description what I believe is happening is that the digital output in
    the first frame is finishing and waiting for the analog input to finish. 
    After the analog input loop finishes the second frame can start.  If you
    want the second frame's digital output to start before the loop finishes
    execution you will need to take that code out of the frame.
    Regards,
    Jesse O
    Applications Engineering
    National Instruments
    Jesse O. | National Instruments R&D

  • 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

  • How can i synchronize analog output and analog input timings to generate and measure voltage at the same time.

    how can i synchronize analog output and analog input timings to generate and measure voltage at the same time.

    Read this Tutorial
    http://zone.ni.com/devzone/cda/tut/p/id/3615#toc3
    And also refer to this link where You have repeated this question.
    PS: Please stick to one thread. That way, its easier to keep track of your query and answers

Maybe you are looking for

  • Email activity not working on Clients site

    Hi, I created a Bpel process that contains an email activity, It works fine when I am connected to the Oracle network through VPN and while i am in the Oracle office. But when I am at the clients site or connected through VPN, it doesnt work at all.

  • Audio missing on playback. Sony GV-D300.

    There is audio showing in the meter on playback and I can hear audio when I play something in iTunes but there is no sound from Final Cut Express - this has become a recurring problem. The guys at tech support suggested I dump the Final Cut folder an

  • Working with data services on remote server (not just deploying)

    Hi!, Is this possible? I'm used to work directly agains remote servers, but it seems flash builder 4 data services doesn't like it in development phase. I know I can deploy my services to a remote server for production, but want to do the same in dev

  • When using Firefox and Bing, auto search suggestions will not populate even though all options for it are enabled.

    If I try to perform a search using Firefox as my browser, and Bing as my search engine, auto suggestions will not populate. I can use other search engines with Firefox and they work, and I can use Bing in other browsers and it works.

  • Baggage Files keep disappearing

    I am aware of the RH6 issue of the baggage files not being able to be added the traditional way, and the user having to add them manually in rhbag.apj file. I have done that and they do work after that is done, but my problem is that they keep disapp