How to convert voltage form analog input of daq to True and false (0=fasle 0.1-10 = true)

i want to use for on LED or Picture
Ex reciece 10 V from ai0 for show LED or Picture on front panel
Help me please
Solved!
Go to Solution.

Hi
Is it  what you want to do:
show True value on the boolean when you receive any data in the range 0.1 to 10V?
show False value on the boolean when you receive 0V?
What is the device you are reading from? what is the data type you are reading? is it a single integer value/array of data or waveform data?
what is the rate at which you are sampling the data? how many samples are you reading at a time and how often are you reading it?
post a code if you have started with one.
did you try the comparison function 'equal to 0' or 'not equal to 0'?

Similar Messages

  • How to make a form for input in web interface builder

    Hi expert:
        How to make a form for input in web interface builder?I have already used it to do PS planning, but I don't know how to  draw lines and checkboxes . Thanks in advance.
    Allen

    WAD:
    Open the WAD and create a new template. On the left hand navigation you will have several Web Items available. Under 'Standard' you have 'Analysis' item. Pull that into your template to the right. Under the Properties tab you need to pick the query [form/layout] that you have built in Query Designer.
    You will also find other items such as Button group, Checkbox, drop down, list box etc available. Pick and drag into the template whatever it is you require. Lets say you want a button. Under the Properties tab select the 'Command' that you require. You could use standard commands that are available there. You could also define functions and commands that you require.
    Query Designer:
    Open the QD and drag the characteristics and key figures that you require into the rows and columns of the QD. You would need to specify restrictions under the Filter tab of the QD based on the granularity of data that you require. You would need to remember that the key figures need to be made Input Ready [do this by clicking on KF and on the planning tab select "change by user and planning functions"].
    This shouldgive you a start. After you've explored it yourself a bit we can discuss further and I can certainly provide you additional details/material on these areas.
    Srikant

  • How to convert oracle form fmb file to java swing file using Jdeveloper

    how to convert oracle form fmb file to java swing file using Jdeveloper.Please explain with detailes steps if possible or please give a link where it is available
    thanks
    Message was edited by:
    user591884

    There is no automatic way to do this in JDeveloper. I know there are some Oracle Partners offering forms to java conversion, I don't know how much of their tools are automated and done with JDeveloper. With JDeveloper+ADF you basically rewriting the Forms application from scratch (and using ADF is helpful during this process).

  • How can I syncronize the analog input?

    The signal coming from the microphone input of the DSP module, displayed on Waveform Graph, is "slipping".
    How can I syncronize the analog input?
    Thank you!

    Ahh!  You are doing this on the DSP itself.  That would explain the Express VI problem, since you probably do not have floating point available.  A simple level trigger is not hard to code using integer math.  You can use the VIs I mentioned above as a guide (the algorithms should work well with integers as well as floating point) or just do it yourself.  A possible algorithm for a positive going edge trigger is the following:
    Search array until first point is less than level and second is greater than or equal to level (use In Range and Coerce to search).
    Extract array subset from your data starting at the point you just found.
    If you need a particular length of data and are continously acquiring, append data from the next scan onto your data until required length is met.
    If you run into issues, let us know.  Remember that shift registers are your friend.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to convert 6i forms to 10g

    hello,
    please tell me how to convert 6i forms into 10g forms
    i cant find ne way to do that.

    If your forms are not all integrated with each other, in other words some are for Payrole and others are for Inventory, you could maintain an AS 1.0.2 environment for one function and an AS 10.1.2 environment for another. You can access the same database assuming you are running the latest Forms 6i version (unless you are not interested or concerned about using an Oracle Certified configuration). The latest (and last) Forms 6i release supported for non-Oracle Applications customers is 6.0.8.26 (Patch 17) and can be downloaded from Metalink.
    Of course, the above configuration would mean that the URL to each application would differ because they would likely be on different machines and/or use different port numbers. For example:
    http://system1.com:7777/servlet/f60servlet?form=payrole.fmx
    http://system2.com:7780/forms/frmservlet?form=inventory.fmx
    Bottom line is that all forms modules running in a particular AS environment must be of the same version. So, forms running in AS 10.1.2 must be compiled against Forms 10.1.2. Forms running in AS 1.0.2 must all be compiled against Forms 6.0.8

  • How do I use the analog input (ADC) to drive a motion profile in MAX

    We are trying to use an anolog input signal from a DAQ card to control the motion contol axis.  For now, we want the motor speed to follow a sinusoidal voltage waveform, and later on, we will be using a more complex velocity profile. 
    In order to accomplish this task, we have searched the user forum, and found information suggesting to operate the servo motor in 'slave' mode under the 'gearing' option.  Therefore, we have set the Gear Master to 'ADC Channel-1', Mode set to 'absolute', Gear ratio 1:1, and provided the sinusoidal voltage (+/- 5V, 3 Hz) to the AIN1 connector on the MID-7654 controller.  When using the 1-D Interacitve 'single axis' control panel, the motor runs at constant speed in one direction only.  It does not react to the sinusoidal speed profile request as we expected. 
    How do we 'turn on' the 'slave' mode in MAX?  Please talk us through the necessary steps and settings?  Thanks.
    Staffan

    Staffan,
    you can configure and enablethe Gearing mode in MAX and it should be activated after saving the settings and initializing the board. In 1D-Interactive you can't use Gearing. For better flexibility I recommend not using MAX for configuring and enbling Gearing. You better should do this in your application.
    In fact there is a perfect LabVIEW-example that ships with the NI-Motion driver (Master Analog Input - Slave Axis Gearing.vi)
    I hope this helps,
    Jochen Klier
    National Instruments
    Message Edited by Jochen on 10-02-2007 08:37 AM
    Attachments:
    gearing.jpg ‏162 KB

  • How to making smooth the analog input.

    I am trying to get an analog input from a device (torque meter). sending trough compactRIO and using NI 9025 analog module.
    can get the signal, but too noisy. so how to make it smooth.
    any suggestion what to use and what to do. please

    actually I am trying to get analog input from a torque meter, the input is voltage,
    and I am used the NI 9073 compact RIO with the NI 9025 analog module.
    I am able to get the signal, but too much noise.
    so, how to reduce that noise, just get torque signal,
    what should I used,
    any filter such band pass filter or what,
    any suggestion.
    I am still new with the compact RIO and labview, so hope any one expert can help me
    thank you
    regard
    MSyafiq
    Attachments:
    measuring torque.pdf ‏165 KB

  • How to convert a Form to a Text file and XML file?

    Hi:
    I want to convert a Form to a Text file and XML file,but I don't know how convert?
    Please help!
    Oracle Form Builder V10.1.2.0.2
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    Thanks in advance!

    ..or follow the steps in Mtalink note; Doc ID: Note:196924.1
    Forms XML Conversion Feature ( Converting Forms To XML)

  • How to convert oracle forms in j2ee platform

    hi,
    i want to know how can i convert oracle forms into j2ee platforms. if is it possible then please tell me the steps that i need to follow .
    thxs

    What you are asking is a bit like "how can I convert a dishwasher into a washing machine".
    If you want to know the the steps I would say.
    1) Work out what kind of washing machine you want to convert to
    2) Learn the technical details of that washing machine
    3) Rearchitect your diswasher plans so it fits into the "model" of a dishwasher
    4) Now spend lots of time money and effort doing it.
    Now, I don't know if thats going to help you. But if you tell us the WHY it might help formulate a response

  • How to read data from analog input and export it to a file using Components Works

    I've made a simple application (Delphi 5 using the activeX) that read data from analog input channel 0. After I read the data, I want to export it to a file using the Components Works on a 6035E NIDAQ. (I'm not using labview and don't want to use it)
    How can I do that???
    Regards,
    Francis

    Here's a sample code to do this...
    P.S.: If you read only one channel this code won't work.
    function MyFunction: Integer;
    var
    Low, High, i, j, ChannelCount, RowCount: Integer;
    Po: P;
    begin
    //you are reading multiple channel
    ChannelCount := VarArrayHighBound(Buffer, 1);
    RowCount := VarArrayHighBound(Buffer, 2);
    for i := 0 to ChannelCount do begin
    for j := 0 to RowCount do begin
    WriteToDisk(Buffer[i, j]));
    end;
    end;
    end;

  • How to get signal from analog input and send it to analog output (real-time​)

    Hi everyone,
    I am doing simple task in Visual C++ and I am using PCI-6221(37 pin).
    Basically, I want to send same signal from 'analog input' to 'analog output'
    at the same time (almost), to make it real-time application.
    Can someone please provide me sample program. 
    I would appreciate if you could provide me with the good tutorial which explains
    step by step everything about programing NI-DAQmx for C/C++.
    Best Regards,
    Khassan
    Solved!
    Go to Solution.

    This is my code in C++, you can optimize it if it looks too messy. This code reads signal from analog input and outputs it through analog output. 
    To make this code work additional  include directories and library directories must be added from NI.
    I hope it helps someone.
    #include <stdio.h>
    #include <conio.h>
    #include "NIDAQmx.h"
    #include <math.h>
    #define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
    int main(int argc, char *argv[])
    int32 error=0;
    TaskHandle taskHandleRead=0,taskHandleWrite=0;
    int32 read=0;
    float64 dataRead[1000];
    char errBuffRead[2048]={'\0'};
    char errBuffWrite[2048]={'\0'};
    bool32 done=0;
    int32 written;
    DAQmxErrChk (DAQmxCreateTask("",&taskHandleRead));
    DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandleRead,"Dev1/ai0​","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Vo​lts,NULL));
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandleRead,"",100.0,DAQ​mx_Val_Rising,DAQmx_Val_ContSamps,0));
    DAQmxErrChk (DAQmxCreateTask("",&taskHandleWrite));
    DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandleWrite,"Dev1/ao​0","",-10.0,10.0,DAQmx_Val_Volts,NULL));
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandleWrite,"ai/SampleC​lock",100.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1​000));
    DAQmxErrChk (DAQmxStartTask(taskHandleRead));
    DAQmxErrChk (DAQmxStartTask(taskHandleWrite));
    while( !done && !_kbhit() )
    DAQmxErrChk (DAQmxReadAnalogF64(taskHandleRead,1,10,DAQmx_Val_​GroupByScanNumber,dataRead,1000,&read,NULL));
    DAQmxErrChk (DAQmxWriteAnalogF64(taskHandleWrite,read,0,10.0,D​AQmx_Val_GroupByChannel,dataRead,&written,NULL));
    _getch();
    Error:
    if( DAQmxFailed(error) )
    DAQmxGetExtendedErrorInfo(errBuffRead,2048);
    DAQmxGetExtendedErrorInfo(errBuffWrite,2048);
    if( taskHandleRead!=0 )
    DAQmxStopTask(taskHandleRead);
    DAQmxClearTask(taskHandleRead);
    if( taskHandleWrite!=0 )
    DAQmxStopTask(taskHandleWrite);
    DAQmxClearTask(taskHandleWrite);
    if( DAQmxFailed(error) ){
    printf("DAQmx Error: %s\n",errBuffRead);
    printf("DAQmx Error: %s\n",errBuffWrite);
    printf("End of program, press Enter key to quit\n");
    getchar();
    return 0;

  • How to convert oracle forms to adf

    I want to convert oracle forms to adf
    Edited by: user4435615 on 2013-3-22 下午8:23

    ADF Equivalents of Common Oracle Forms Triggers
    http://www.oracle.com/technetwork/developer-tools/jdev/index-092937.html
    Case Study: Redeveloping an Oracle Forms application using Oracle JDeveloper 11g and Oracle ADF 11g
    http://www.oracle.com/technetwork/developer-tools/jdev/redeveloping-forms-in-adf-11g-1-133095.pdf
    Migrating Forms to Java or ADF, the truth and no FUD
    https://blogs.oracle.com/grantronald/category/Oracle/Oracle+Forms+to+ADF
    Timo

  • How to convert an XML file (input data) into a SOAP message?

    Hi there,
    I recently wrote a dummy program to retrieve data from a web service. The program simply read from an input file (the xml content) and send it to the web service, the return result is store in a file (xml). I wish to 'upgrade' this approach of reading and writing from/to a file and have it done by SOAP. For some reason, I'm unable to do so.
    The data on the xml input file that I sent is this:
    <?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>
    <Upgrade xmlns="http://tempuri.org/">
    <upgrade>
    <User>John</User>
    <Password>javalava</Password>
    <EmployeeId>77384</EmployeeId>
    <Rank>Q6</Rank>
    </upgrade>
    </Upgrade>
    </soap12:Body>
    </soap12:Envelope>
    When trying to upgrade to SOAPEnvelope it fails.
    Thanks for any pointers!!!

    I was trying (unsuccessfully) g to write something like this
    * sorry I don't know what are the tags for <code></code>
    <code>
    public static SOAPMessage prepareMessage(String username, String password, String emplID) throws SOAPException
         SOAPMessage soapMsg = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL).createMessage();
    // SOAP body
    String prefix = "tns";
    String uri = "http://tempuri.org/Upgrade";
    SOAPEnvelope envelope = soapMsg.getSOAPPart().getEnvelope();
    SOAPBody body = envelope.getBody();
    SOAPBodyElement service = body.addBodyElement(envelope.createName("Upgrade", prefix, uri)); //there are 2 Upgrade in the XML (Upgrade and another upgrade, but I couldn't figure out how to that here)
    SOAPElement symbol = service.addChildElement(envelope.createName("User", prefix, uri));
    symbol.addTextNode(username);
    symbol = service.addChildElement(envelope.createName("Password", prefix, uri));
    symbol.addTextNode(password);
    symbol = service.addChildElement(envelope.createName("EmployeeId", prefix, uri));
    symbol.addTextNode(emplID);
    return soapMsg;
    </code>

  • How do I acquire two analog inputs simultaneo​usly using a PCI-6052 E series DAQ?

    I am using the data to develope transfer functions.

    The simple answer is to put the 2 channels of interest in the Channel Control of your VI. Separated them with a comma.
    To be honest your question is not very specific. There must be hundereds or thousands of ways to simultaneously acquire 2 analog inputs.
    Try looking at the example VIs that ship with the software. Use the Find Examples function of the startup page for LV. Familiarize yourself with the information there and try some likely ones out. At this point you may have some more specific questions to ask.
    The descriptions of the VI's are sometimes hard to read, but are usually enough to operate the VI.
    Mike

  • How to convert SOAPEnvelope or SOAPBody to org.w3c.dom.Node and vice versa?

    How to convert javax.xml.soap.SOAPEnvelope or javax.xml.soapSOAPBody to org.w3c.dom.Node and vice versa?If this convertion is very diffcult , how to convert String to org.w3c.dom.Node?
    Thanks a lot

    vj008 wrote:
    while parsing a DOM i want to convert
    org.w3c.dom.Element to xml string and after certain processing on that xml string i want to convert back it to
    org.w3c.dom.Element.[This might help. xml transformations in java. |http://tejaspurohit.blogspot.com/2009/08/xml-transformations-in-java.html]

Maybe you are looking for