Equivalent function of DAQ_VScale in Daqmx

Hi
I would like to know the equivqlent function of DAQ_VScale of traditional Daq
in Daqmx.
My application is to measure DC volatge.
My DAQmxReadAnalogF64() function is acquiring but,
i am getting the data in the raw format.
In the Daqmx  series, how is the scaling or transform data to voltage
is taken care.
or
do i get the voltage directly from the DAQmxReadAnalogF64() function.
do let me know
regards
rags

Hello Rags,
The value returned by your analog input (AI) function (such as AI_Read) is an array of integers that represents the analog to digital (A/D) conversion of your data. The DAQ_VScale and AI_VScale functions convert the integer values to an actual voltage reading (LabVIEW does the conversion automatically).
If you look at page B-8 of the NI-DAQ Function Reference Manual, you will see that the formula is listed there. What you could do is read the raw data using DAQmx and then just apply that formula to your readings. In DAQmx the scaling is automatically taken care of for you. Are you sure you are using the DAQmxReadAnalogF64 function and not the DAQmxReadAnalogScalarF64 function?
Also refer to What Does the DAQ_VScale Function Do?
Best Regards,
Raajit L
Raajit L
National Instruments

Similar Messages

  • What is the equivalent function of NIDAQYield in NI-DAQmx?

    I have to migrate from traditional NI-DAQ to NI-DAQmx for Window 7 64bits system.  I like to find the equivalent function of NIDAQYield in NI-DAQmx?

    As far as I can see here, NIDAQYield is simply a way to process system events, so I suppose calling ProcessSystemEvents () will be equivalent to calling it.I do not know of a native DAQmx function that does the same. It is to be said, though, that DAQmx way of handling acquisition process is different from Traditional DAQ one and direct translation is not always possible, so depending on how you migrate your code, calling those functions may be unnecessary.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • DAQ Monitor Equivalent function in NIDAQmx

    Hello,
    What is the equivalent function of DAQ_Monitor() in the NIDAQmx.
    I want to read the ADCs into a buffer and perform DAQ_Monitor operation upon the buffer at regular interval.
    Any suggestions??
    regards,
    Dwivedi

    There isn't really a one-to-one mapping between Traditional Legacy VIs
    and NI-DAQmx VIs. So can you explain a little more what you are trying
    to accomplish? By "perform DAQ_Monitor()" do you mean reading (grabbing
    samples from) the buffer at regular interval or just seeing what is in
    the buffer? In the latter case, are you interested in just the number
    of samples or the actual samples?

  • @RELATIVE() equivalent function in Financial Reporting Studio?

    All,
    Is there an FR equivalent function to the @RELATIVE() function in Essbase?
    Specifically, I'm trying to select Level 0 descendants of a particular member.
    e.g. @RELATIVE(MEMBER,0) would be the equivalent function in Essbase.
    I've tried to use the RelativeMember function, but that does not appear to do the same thing.
    I also tried to union two selections, but that just returns an MDX error.
    e.g. assume I want to return child 2 and 3
    Dimension
    Parent A
    Child 1
    Parent B
    Child 2
    Child 3
    Lev0,Dimension NOT Descendant Parent A (this is not the actual syntax, but an explanation of what I tried). This returns an MDX error to do with "NOT".
    Any help is appreciated...

    That was extremely helpful. I was able to get it working with the following syntax
    Descendants of <Member> AND System-defined member list Lev0,<Dimension>
    Thanks again for your help.

  • Equivalent function for box3d which available in Postgis

    I have a road_network data I am trying to
    obtain all the values within a bounding box formed by lat long values,
    i tried below example but it compiled and produces some error 
    declare @exmp varchar;
    set @exmp = 'POLYGON(81.959545899804 25.243612186501,81.985879306176 25.2726072490010)'
    DECLARE @box geography = geography::STLineFromText(@exmp, 4326)
    SELECT source,target,geog4326.STAsText()
    FROM road_network
    WHERE geog4326.STIntersects(@box) = 1;
    in PostGIS theres a box3d, i like to know is there any equivalent function available in MS SQL Server ?

    a few problems here:
    1.
    run this- what do you see?
    declare @exmp varchar;
    set @exmp
    = 'POLYGON(81.959545899804 25.243612186501,81.985879306176 25.2726072490010)'
    print @exmp
    a varchar initialised without a size defaults to varchar(1)
    so set varchar to the required value or set it to varchar(max)
    2. A polygon requires at least 3 distinct points and the start and end points need to be the same. I'm assuming you just want to draw a line between the 1st & 3rd points of your bounding box and have the db engine draw the box around them. So you should
    be declaring it as a LINESTRING, not a polygon. Unfortunately geography doesn't have a .STEnvelope() function, so you'll need to convert the line to geometry, get the envelope, then convert back
    declare @exmp varchar(max);
    set @exmp = 'LINESTRING(81.959545899804 25.243612186501, 81.985879306176 25.2726072490010)'
    DECLARE @box geography = geography::STLineFromText(@exmp, 4326)
    -- Work out bounding box by converting to geometry via WKB, then using STEnvelope()
    DECLARE @boundingbox geometry = geometry::STGeomFromWKB(@box.STAsBinary(), @box.STSrid).STEnvelope();
    -- Convert result back to geography via WKB
    SET @box = geography::STGeomFromWKB(@boundingbox.STAsBinary(), @boundingbox.STSrid);
    (from
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/453d2fe8-bbe6-4047-90ce-556015c17e64/how-to-get-the-bounding-rectangle-of-a-geography)
    now you can intersect your @box.
    If this were geometry you could've just used .STFilter() on your linestring directly.. I'm not sure how .Filter() works with geography but investigate it as it'll be faster if your road_network table has correct spatial indexes.
    Jakub @ Adelaide, Australia

  • "Extract" filter or equivalent function

    Where do I find the "Extract" filter or equivalent function found on earlier versions of Photoshop?

    Norm, you'll have noticed the video is one of those super easy images they used to demo Refine Edge when it was first available?  I struggled with the tool for ages back then, finding a far from intuitive tool to use in real world situations, which is why I often use the Martin Evening tutorial on this forum, because he demos a difficult image, plus he shows how best you use it in the target image.  But I decided to make it look easy in my post above

  • Java Equivalent Function to Obfuscation DES3 Procedures

    I've read all of the notes and reports that I could find on both OTN and MetaLink, but I can't find a solution anywhere. Just hints, particularly in Note 232000.1 and Note 225214.1. I've been trying all of the variations that I can think of in test code with no success. I've also searched the net extensively.
    What I need is a code sample IN JAVA that provides equivalent functionality to the des3encrypt and des3decrypt procedures using raw values in the obfuscation toolkit.
    We have a number of huge databases in which we would like to use the obfuscation toolkit with DES3 3-key (192-bit) keys to manage encrypting
    confidential data. We need to be able to read this data from Java applications. Those applications must be able to decrypt the values encrypted using the toolkit. We must also be able to do the reverse, encrypt data in Java, store the encrypted values, the decrypt and access the data in PL/SQL using the toolkit.
    I've searched high and low, but I cannot find sample code anywhere for performing this functionality in an equivalent fashion.
    Thanks!
    Mark Scarton
    [email protected]

    Hi Mark,
    I encountered a similar challenge, were you able to figure out the solution for this problem?
    Thanks,
    Srikanth

  • NiSwitch_ConfigureScanTrigger equivalent function in DAQmx

    Which function in NI-DAQmx library corresponds to the function niSwitch_ConfigureScanTrigger from NI-SWITCH?
    Solved!
    Go to Solution.

    HI MirKoz!
    As you can read in help, the niSwitch_ConfigureScanTrigger VI is used to configure the scan triggers for the scan list established with  the  niSwitch_ConfigureScanScanList VI. Not all of the switch modules supports scanning.
    The niSwitch_ConfigureScanTrigger sets the location that the switch expects to receive an input trigger to advance through the scan list. This function also sets the location where it outputs a scan advanced signal after it completes an entry in the scan list.
    Detalide help: http://zone.ni.com/reference/en-XX/help/375472F-01/switchviref/niswitch_configure_scan_trigger/
    The Scan Delay input of the niSwitch_ConfigureScanTrigger VI Specifies the minimum amount of time the switch module waits before it asserts the scan advanced output trigger after opening or closing the switch.
    The switch module always waits for debounce before asserting the trigger. 
    I searched for similar behaivour, and I found the DAQmx Switch Create Scan List VI in the following palette:
    This VI creates a new switch scanning task with the sequence you specify in the scan list input. This scan list uses a special syntax to specify the sequence of connections and disconnections for the task. 
    If you use the ; caracter  in the list, thedevice will wait for debounce, send scan advance output signal, then wait for trigger input.
    You can use SW or HW based triggering, in exmaple finder you can find the Switch Scanning-SW Trigger.vi, which uses sw trigger.
    The detailed help of the VI is avaliable here: http://zone.ni.com/reference/en-XX/help/370469AA-01/lvdaqmx/mxswitchcreatescanlist/
    The syntax of the scan list is here: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/scansyntax/
    Could you tell me more from your application? It would help me to make better suggestions, but I hope this post will be useful for you.
    Please let me know if it works.
    Best regards,
    Balazs Nagy

  • How to unrigister the call back function,in vb6 with DAQmx 8.5

    I use daqmx api which named DAQmxRegisterEveryNSamplesEvent to register my call back function,When I invoke the function  DAQmxErrChk (DAQmxStopTask(taskHandleAnalog)) to stop my Task.then i call the procedure AD_OPEN  again,it raise an error ,tell me that i need to unregister the event,the data has transfer into the buffer.how can i unregister the event,please look at the following code.
    Spoiler (Highlight to read)
    Private Sub create()
       Dim channel As String
        Dim minVoltage, maxVoltage As Double
        Dim samplesPerChannelPerRead As Double
        Dim sampleMode As Long
        Dim boolVal As Boolean
        On Error GoTo AdErrorHandler:
        ' Get values from UI controls
        channel = "Dev2/ai1:2"
        minVoltage = -10
        maxVoltage = 10
        samplesPerChannelPerRead = 100
         If (taskHandleAnalog <> 0) Then
             DAQmxErrChk (DAQmxStopTask(taskHandleAnalog))
            DAQmxErrChk (DAQmxClearTask(taskHandleAnalog))
            taskhandle = 0
        End If
        ' Configure the task
        DAQmxErrChk (DAQmxCreateTask("", taskHandleAnalog))
         DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandleAnalog, "Dev2/ai0", "", DAQmx_Val_InputTermCfg_RSE, minVoltage, maxVoltage, DAQmx_Val_VoltageUnits2_Volts, vbNullString))
        DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandleAnalog, channel, "", DAQmx_Val_InputTermCfg_Diff, minVoltage, maxVoltage, DAQmx_Val_VoltageUnits2_Volts, vbNullString))
    End Sub
    Private Sub AD_Open()
        DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandleAnalog, "", 200, DAQmx_Val_Rising, DAQmx_Val_AcquisitionType_ContSamps, samplesPerChannelPerRead))
        'Find number of samples specified
        DAQmxErrChk (DAQmxGetTaskNumChans(taskHandleAnalog, numChannels))
        'Configure Event Callbacks
        DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandleAnalog, 1, 4, 0, AddressOf EveryNSamplesEventHandler1, Nothing))
     ReDim dataBuffer(numChannels * samplesPerChannelPerRead - 1)
        ' Start the DAQmx Task
    '    DAQmxErrChk (DAQmxCfgDigEdgeStartTrig(taskHandleAnalog, "/Dev1/PFI2", DAQmx_Val_Edge1_Falling))
        DAQmxErrChk (DAQmxStartTask(taskHandleAnalog))
        ' Update UI
        Exit Sub
    AdErrorHandler:
        MsgBox Err.Description
    End Sub

    This may be a bit late, so hopefully you found this on your own. But in order to unregister the event pass a null value for the callback function parameter in the DAQmxRegisterEveryNSamplesEvent function (Nothing in VB).
    National Instruments
    Product Support Engineer

  • What is the equivalent function or combination of functions for the following ASYST code

    I'm translating a program from AYSYT (very old out-of-date language)to LABVIEW. Thanks to the help from you guys. I have done 99% of my work. But I still have a small question to ask for help. Dose any body know what function or combination of functions in LABVIEW is equivalent to the folowing ASYST code: 0.5 set cut off frequency MOB(array used in the program) smooth.
    After reading the ASYST MANUAL, I know "smooth" is to apply some kind window(e.g. BALCKMAN).but LABVIEW doesn't have the "smooth"function

    I got strange result after using balckman window.
    the xy-graphs of my data before and after using blackman
    window are posted here. the magnitude and the peaks all changed after using blackman window.the peaks magnitude decreased more than ten times. The original ASYST code gives only a little bit lower peak after smoothing(4.2e-6 is the highest peak before smoothing, while 3.6e-6 is the smoothed highest peak).
    Attachments:
    before_blackman_windowed.bmp ‏1747 KB
    blackman_windowed.bmp ‏1747 KB

  • What is the equivalent function of this...

    the following codes are in awt form, what are the equivalent swt form of the following function? thank you for your help
    ActionListener listener = new MenuItemActionListener(panel);
    *MenuItemActionListener(panel); is the awt
    Component parent; (Component is the awt)
    and using Color.<what_color>
    Again thank you!

    if you're planning on coming here getting the forum to re-write all your awt code in swt bit by bit, forget it. as far as I know, there's only 2 or 3 people who post here that know swt, and nobody's in the business of rewriting code on other people's behalf anyway. the swt documentation that comes with eclipse, plus the javadocs for swt, are more than good enough for you to manage this

  • Looking for struts bean:write   Equivalent function/ tag in jsf??

    Hi to all,
    I am quite new to jsf. Soi might be asking a stupid question.
    I just wanna to know is there an equivalent tag or simple scriplet that can provide the same function as strut <bean:write>?
    Thanks and regards,
    Chin Tat

    ok i am not a struts programmer but from a quick search i am assuming <bean:write> outputs in html the value of a property in your java bean?
    if this is the case then you simply use
    #{beanName.propertyName}
    i.e
    <h:outputText value="#{beanName.propertyName}"/>
    note your bean will have to be registered in you facesContext as a managed bean to do this (where beanName is the name of your managedBean)
    if bean:write doesn't do this sorry :) forget my answer

  • Char Input and kbhit() equivalent function injava

    May be its very simple question.
    But can anyone please suggest me how to get char as input from keyboard and store it into char primitive type.
    and also suggest equivalent kbhit() function in java.
    please be more elabotative so that noviece can easily get.

    j_adroit wrote:
    Please tell how to do it.This is where it gets complicated. You will have to create a JNI wrapper for kbhit() .
    I would suggest you find a different way of getting input to your program.

  • How do I "save as" or equivalent function so that I can save an altered version of a template .pdf seperate of the master copy?

    Hello, my company has recently purchased several tablets for our employees out in the field so they can fill out forms on the go without using paper.  For example:  We have a timesheet .pdf that would need to be filled out, then saved separately from the original once a week.  Is this a function that can be achieved?

    Hi,
    You can do this by following steps:
    1. Save the timesheet.pdf in the device.
    2. Long press it and select Overflow icon on top bar and select “Duplicate”.
    3. New copy of the pdf will be made “Timesheet(1).pdf”. You can edit this and original “timesheet.pdf” will be retained.
    You can follow these steps again and keep a track for different weeks.
    Hope this will helps. Please write back to us in case of any queries.
    Thanks,
    Adobe Reader Team

  • Help: Left Equivalent function in Oracle?

    Hey can anybody throw somelight on the function which is equal to LEFT in Oracle.
    Left$(patientmemberid, Len(patientmemberid) - 2)
    Thanks

    Maybe:
    with
    names(EName) as
    (select 'sana' from dual union all
    select 'saleem' from dual union all
    select 'aijaz' from dual union all
    select 'mohbat' from dual union all
    select 'aasia' from dual union all
    select 'asad ali' from dual union all
    select 'asif' from dual union all
    select 'aftab' from dual union all
    select 'sagar' from dual union all
    select 'hanif' from dual
    select ename
      from names
    where length(ename) - length(replace(ename,:ch)) = 1Regards
    Etbin
    Edited by: Etbin on 26.7.2012 9:13
    select ename
      from names
    where regexp_count(ename,:ch) = 1

Maybe you are looking for

  • How do I change my network settings to active to update for my IPhone 4??

    I am trying to update my IPhone 4, after it downloads the file and when it goes to update it says "Network connection timed Out" Make sure your network conditions are active and try again later. My network connections are active and my internet conne

  • Perl cgi upload stopped working with Flash 10

    First let me just say that PHP is not an option in my environment. Its just not allowed to be used. I have some really basic Perl upload scripts that work find with flash 9 and below. However since flash 10 these no longer work. I tried using FileRef

  • Prompt for username and password when executing servlet

    In Weblogic 5.1 when I set the username and password in weblogic.properties file, it prompts for the usertname and password when I execute the gatewayServlet weblogic.allow.execute.weblogic.servlet.servlets/gateway.administration=vijay weblogic.passw

  • I can't view videos since loading FIREFOX. WHY?

    After converting from IE to Mozilla Firefox I have lost the ability to view videos. I frequently receive url to access You Tube videos or other on line videos. Since migrating to Firefox they will not load. Just today I downloaded Adobe Flash Player

  • HT4623 Why does our ipad 3 keep shutting down

    Our Ipad 3 shuts down while using it, sometimes it resets and other times it does nothing. It is at the point to where you cannot even use it because it shuts down so much...less than two years old.