How to link an analog input to a controller implemented in PC(Labview) then feedback to the external system?

Atten : Jeff or anyone =)
I had discretized my controller onto labview. And would like to feed the analog input from external into the PC(that the controller is implemented in). I do hv a DAQ card. The problem is I do not know how to link the analog input -> ADC -> controller -> DAC -> system. And i really believe labview hv functions to do it. But really confuse how should i do it. Could anyone pls advise me. Thanks

Darren,
You have answered my question. I was wondering whether you were doing single point (non-buffered) analog input, or multipoint (buffered) acquisition. Seems you are doing the latter.
I'll offer answers to both, however, and I'll start with single point. If you have a single point of data that you'd like to output on a DAC, use the Functions->Data Acquisition->Analog Output->AO Update Channel. You can wire your data right into this VI, and it will update the channel.
If you have an array of data that you'd like to send out on the DAC, you can use the Functions->Data Acquisition->Analog Output->AO Generate Waveform. This VI is similar to the former, but you tell it the DAC you want to update, the update rate (samples per sec
ond), and the array of samples you want it to update with.
In LV5.X, the input is an array of samples; in LV6i, it's an array of waveforms. Therefore, you'll have to change your array to a waveform. Do this by selecting the Functions->Waveform->Build Waveform VI. Stretch the output down, and another input will show up (dt). Wire your array to the squiggly line input. Wire a 0 to the t0, and 1/scan rate into dt. Then wire this output to the AO Generate Waveform VI.
Hope this helps.
Mark

Similar Messages

  • I am new to pages and want to know how to link elements together to create one unified element that I can then duplicate several times on the same page?

    I am new to pages and want to know how to link elements together to create one unified element that I can then duplicate several times on the same page?

    I think you are talking about grouping objects.
    1. They must all be floating objects
    2. Command click on each in turn
    Menu > Arrange > Group
    Peter

  • How the external system will talk to ECXpert 3.5 for transfering files via HTTP SSl?

    We are using ECxpert3.5 on Solaris box. One of our Trading Partner want to communicate through HTTP-SSL and we are doing XML/EDI mapping. Could you guide us what steps we need to take care to implement this.
    How the external system will talk to ECXpert for transferring files. (We need the syntax for the URL). How ECXpert will receive XML file through HTTP-SSL protocol from External System and file submittion.
    Please send is there any other document which explain about. Thanks in advance for your help. [email protected] or [email protected]

    Hi Steve,
    You can bring the GRC framework to a state equivalent to a raw install by following options:
    Option 1.) You should have a base-line backup before GRC installation. If so then apply that base-lin backup and deploy GRC components. If there is no base-lin backup, then
    Option 2.) Uninstall and re-install J2EE and then follow up with rest of the installation process. If you don't want to go through re-install process, then
    **Correction to Option 3**
    Option3.) SAP is in process of creating a SAP Note for Delete script, Instead of delivering Delete Script script via OSS message.  Will update you as soon as the Note gets released.
    Please refere to Note # 1416728 to Manage your deletion in RAR 5.3 SP10.
    Hope this helps.
    Best Regards,
    Sirish Gullapalli.

  • How to trigger from analog input channel

    I am using a BNC-2110 into a 6062E card. And I am sure this question has been posted several times but I was unable to find a clear answer. I am trying to use the devices ai0 channel as my trigger source. I tried using a voltage source in the trigger reference, and that almost works but it only works for several loops before coming up with an error. If someone knows what I may be possiblely doing wrong or where to find this information, any assistance would be great.
    - there is always an easy way, but it is always the hardest to find

    Hey Henry,
    The BNC-2110 is just the connector block. What card do you have the is interfacing this block with your computer? (should be a PCI or PCI-express card). Are the GPS receivers outputting digital signals that conform to TTL compatible logic levels (are the signals 5V or 0V with no more than 1.6mA of current)? If they are outputting a digital signal, then you can send these signals into any of the PFI lines to act as a trigger (or to the trigger lines). 
    For example, if you would like to perform an analog acquisition each time the trigger hits and have an X series card, you can open up example finder (help»find examples...) and then open Hardware Input and Output»DAQmx»Analog Measurements»Voltage»Cont Acq&Graph Voltage-Int Clk-Retriggerable.vi. Then make sure your Trigger Source parameter is set to the same PFI line that you are sending your GPS signal to (on the BNC-2110, the trigger connections are really just PFI0 and PFI12, but these are common lines to use for triggers, but any PFI line will work). If you have an M series card, and cannot do retriggerable analog input, you can reference this example for how to use counters to workaround this limitation of our M series cards: https://decibel.ni.com/content/docs/DOC-6801
    If your GPS signal isn't digital, and is some arbitrary analog square wave, you can use an example like this: https://decibel.ni.com/content/docs/DOC-4657 to use the analog value to trigger you're reading (you just need to set the appropriate window for your analog signal in the VI).  I hope this helps!
    -Nathan H
    Software Developer
    National Instruments

  • How to read 2 analog inputs with VISA

    Hello everyone! I want to read two analog inputs using VISA serial communication from the arduino.  I'm currently able to read one of the input but how do I read two analog inputs on labview?

    Hi lamela,
    again I have to ask: HOW does the string look like? Is it so hard to provide an exact example of your received string???
    I think the string is showing one value from the two inputs
    Are you sure or are you guessing? How can we tell what you might "think" when you aren't able to provide examples?
    You wrote you send values from the Arduino using the command "println(value1, value2)", but now you "think" you only receive ""value1" in LabVIEW?
    Get your data communications clear! (And learn to provide meaningful examples!)
    Edit after your edit:
    my code to serial print two inputs: Serial.println(Voltage, Current);
    Even if I print separately: Serial.println(Voltage);
                                                 Serial.println(Current);
    The first command is completely different then the second part! In the first you should receive two values in one line, in the 2nd one you receive one value per line: You need to adapt your string parsing to these strings!
    Again: send both values in one line. Use the LF as termchar. Separate the values by some separator char like comma. Check the received string for validity. Use some error checking in your VI.

  • How do I transfer my playlists to a new computer without transferring all my music from the external hard drive?

    I would like to transfer my itunes to a new computer but only see instructions to transfer all my music over including the playlists.  All my music is currently stored on an external hard drive because it is a very large library of over 30GB so don't really want the music taking space on my laptop but want to have the playlists transferred over and be able to access my music library on the new computer through the external hard drive.  Any idea how to do this?

    As Chris says... but if the media is on an external drive as above then you also need to make sure the external drive has the same drive letter on the system you are moving to or iTunes won't be able to find the files.
    You might also find this topic useful: Make a split library portable.
    tt2

  • TS2755 With the new IOS7 how do i tell which phone number my text messaging is being sent to? on the old system the number used to be highlighted, now nothing is highlighted and i have ended up sending texts to my friends international numbers instead ???

    With IOS7 I am finding it impossible to (a) tell which number I am texting, when my contacts have multiple phone numbers, i dont know wether it si their home , monile/cell or international number... How do i differnetiate or know which number it is, especially when they text me from abrioad and i replying ...its not very clear adn has cost me extra in international charges

    Thanks Michael. Apologies for the slow reply I was away for a bit (holiday blitz at work and visiting family madness etc.etc.) back now, I set both options you requested to "never " and retried the CMS software with no change. 
    I do have progress of a sort though, as a test I took a separate test PC and put a clean install of Win7 on and loaded up the CMS software (it worked perfectly) and then took the version of ole32.dll off that machine and put it onto the computer I had built
    for her (using Linux) and...
    got a new error code. Darn I was so sure I had found a clever solution this time lol.
    Anyway now when the CMS fails it gives me a similar error but the offending module is "ntdll.dll" sooo... I tried taking the "working" version of ntdll.dll from the test box and moving it over (making sure to back up the existing ones
    first so I could put them back if needed) to her new PC and the PC would not boot. 
    It seems to want the original versions of a few Dynamic Link Libraries and if I could somehow give it those while not breaking Win7 it should theoretically work seeing as it no longer errors with ole32.dll. 
    ntdll.dll however seems necessary for Win7 to boot.
    So what I am wondering now is:
    Is there some way to have both versions of the DLL file in the system32 folder (bypassing the "cannot have two files with the exact same name in the same folder" thing) or rename the original DLL's something else and somehow make the CMS look for
    the new named versions so the system has the updated DLL's it needs to boot/run and the CMS has the old ones it wants to run or is there someway to have a self contained install of the CMS, say on a USB flash drive and give it it's own E:/windows/system32/needed
    dll's  path to the files it needs? 
    Willing to try any other options or settings you may have come up with as well.
    Thanks again for your reply and my apologies for not answering sooner.

  • HT1766 How do I download photos from my iphone to my windows computer? Then where are the photos stored on my windows computer?

    How do I download photos from my iphone to my windows computer?

    As with any other digital camera.
    http://support.apple.com/kb/ht4083
    You determine where the import is stored on your computer depending on what you use for the import.

  • How do I acquire multiple signals in the NI cDAQ 9172 using 2 analog input modules?

    Hi everyone,
    Is anyone familiar with using the NI cDAQ 9172?  This is my first time using it and I am not sure what exactly I am doing wrong... Alone with a NI 9233 analog input module, it works great.  I can grab my 4 signals from each channel and go.  However, when I add another analog input module to the mix, it gets an error.  It looks like it is reading only one and not the other.  It bombs at one of the DAQ start task and read task.
    Basically, the block diagram is just a double of the one 9233 working alone.  Is there something needed for input to make the 9172 working?  Any ideas?
    Any help is much appreciated.  Thanks!!

    Hi Jud,
    Both threads are correct.  The cDAQ-9172 has a single analog input timing engine, so both of your analog input modules will need to be in a single task.  The other VI you referenced shows one analog input task (with channels added from two modules) as well as an analog output task.  Analog output has a separate timing engine from analog input, so both of those can run in parallel independent tasks.
    The beginning of this thread is a good example; a single DAQmx Create Task followed by a DAQmx Create Virtual Channel for channels from each module.  Also, Getting Started with NI-DAQmx will give you the fundamentals for data acquisition, though I don't know how many of their examples use CompactDAQ.
    Regards,
    Kyle

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

  • "Out of range" error at analog input

    Hello!
    I use a PCI 1200 card with Nidaq 6.6.0 and Labview 5.1 support files on Windows NT for data aquisition. My programm has one digital channel and three analog input channels. I didn't write the programm myself but bought it in 1999 together with an apparatus which delieveres all these signals. I have only a Labview Executable which runs with LabView Runtime Engine 5.1.1 and the daqdrv, the serpdrv and one .lrm file.
    The programm was running fine till the computer broke down. I had to reinstall the whole system and everything seems to work except the readings of the three analog input channels (one K-thermocouple and 2 times voltage). In the MAX the test panel says "out of range" for the channels. The digital channel (which is for switching valves in the apparatus) works fine!
    What can be wrong?
    - It's not the PCI card, I borrowed another one - it produces the same readings (And I tried all PCI buses in the computer)
    - The Measurement and Automation Explorer MAX recognises the card and the card passes the test.
    - I tried different settings like DIFF, NRSE and RSE, bipolar and unipolar but nothing changes for good.
    - The settings of my four channels were saved in the daqdrv, that's why I think the mistake is not in the channel settings, but somewhere else.
    I have checked the "Checking your board settings" support files from NI but nothing seems to help.
    Any idea from you will be much appreciated!
    Thanks a lot!

    Hello,
    You should update your NI-DAQ driver by downloading and installing the following links:
    http://digital.ni.com/softlib.nsf/websearch/50F49E43A22C0D2186256BF3006B9A96?opendocument&node=13207...  (choose the right one)
    http://digital.ni.com/softlib.nsf/websearch/E470663AFB8A9EDD86256D8800543B4B?opendocument&node=13207...
    I hope it will work after the updates!
    Regards
    Christian Mergl

  • Error -200072 using analog input with 3 PXI 6120 cards on realtime mx system

    I have just upgraded to the mx drivers for the 6120 S series boards.
    I am trying to sample 12 analog inputs at once with a pretrigger. (4 channels per board)
    The error message -200072 comes up.
    One board works fine, when I add the second board's channels the error occurs.
    Each board shows up as A,B,C respectively in MAX and in the Labview browse menu for selecting channels.
    Greg Morningstar
    Takata

    Probably the best way to do this would simply be to use the Route Signal VI to make it to where each of your boards looks at a particular line for the trigger. You can do the same thing for the clock so that they are all sampling at the same time.
    You will also want to make sure that your device is defined in MAX. Once you do that, everything should be pretty easy to implement. You might also want to look at some of the examples that show how to do RTSI. It's almost the same as you would do for a PXI system.
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • 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

  • Is there and easy way for Position control using analog input?

    Hi Everyone,
    I would like to set one of the axis with stepper motor using analog feedback to keep the set position which is coming from the analog input.
    In other words I would like the stepper to move when the analog input changes. I need it as a "background service" so the rest of the motion could be easily controlled from the NI-Motion Assistant.
    Is there any easy way to do this? Even complicated is ok but the control should be done by the NI Motion card not the PC processor.
    Thanks,
    Andras

    Hello Andras,
    please use the link below to get the motion example.
    http://zone.ni.com/devzone/cda/epd/p/id/353
    Kind regards,
    Elmar

  • How to link Documents to CRM

    Hi
    Can anyone please suggest on how to link Documents to CRM CIC0 screen.
    Thanks in Advance

    Hi,
    This is possible thru the following way..
    CONSTANTS: c_fix_url TYPE string VALUE 'http://10.100.18.201:8080/archive?get&pVersion=0045&',
                 c_fixed_val1 TYPE string VALUE 'contRep=',
                 c_fixed_val2 TYPE string VALUE '&docId='.
      CONCATENATE c_fix_url
                  c_fixed_val1
                  archiv_id
                  c_fixed_val2
                  arc_doc_id
                  INTO l_url_doculink.
      CALL METHOD cl_gui_frontend_services=>execute
        EXPORTING
          document = l_url_doculink
        EXCEPTIONS
          OTHERS   = 1.
    Thanks
    Parvathi

Maybe you are looking for

  • Urgent help needed -- how to submit a web page from a PL/SQL api

    Hi, Could anyone tell me how to submit a remote web page through pl/sql Thanks, Rachna

  • Pricing Procedure problem when creating order w/Ref to billing doc

    Hello all. When I create a SO w/ SaType 'A' it picks the correct Pricing procedure. However if I were to create the same Order Type 'A' w/ reference to a billing doc it picks up the Pricing procedure of the billing doc and not the one assigned to it

  • Applworks crashes, but only on one account

    My daughter was typing a report on Appleworks today when it suddenly crashed. Now it won't open at all. When you try to open it, you the message that it's crashed. However, Appleworks has no problems when I open it on any of the other accounts on the

  • Prepared Statement URGENT

    im using PreparedStatements in my java class..... my class has about 4-5 diiferent methods which uses a preparedStatement.. is it better to decalre a new Preparestatement for each class or use one for all.... they will not be all executed at once...

  • Object navigator questions..

    1.Can we create user defined triggers?if yes...how? 2.How can we use the search functionality? 3.What is the use of relations in object navigator of forms? 4.What is the use of graphics which is under canvas node in object navigator? 5.Can we use mor