Custom scale for counter input?

Hello everyone,
Is it possible to create a custom scale for a counter input? I saw there is a feature to allow input Custom Scale Name to the Channel Property Node. However, when I tried to create a custom scale to input to the channel, I got this error
Error -200212 occurred at DAQmx Read (Counter DBL 1Chan 1Samp).vi:1
Property: CI.MeasType
Corresponding Value: Count Edges
Property: CI.AngEncoder.Units
Corresponding Value: From Custom Scale
Channel Name: CountEdges
Task Name: MyCountEdgesTask
Do you know what is the problem with it? Thank you

How do you have the channel set up? Can you attache the VI's that you are using? Is this a global virtual channel?
Tim
Johnson Controls
Holland Michigan

Similar Messages

  • Highpass filtering for counter input signal

    Hello,
    I need to use high pass filter for my counter input pulsewidth measurement.
    I can do offline filtering on stored pulsewidth signal.
    I want to do same thing online.
    Is there any way to do it?
    I am using pci 6220 for counter input for pulsewidth measurement.
    Thanks
    Nisarg Shah

    Hi Nisarg, 
    This response is pretty late but have you seen any of the Filter VIs in LabVIEW? Can you apply a filter to your signal with these? 
    If this does not address your question, please provide some more information regarding your application, what you want to achieve and what you've tried. 
    -Cindy

  • Creating a custom scale for current

    Hi guys,
    I need some help with creating a custom scale. I am reading motor current (analog I/P) and would like to display that on a graph and write it to a file. I need to use a linear scaling for custom scale. The slope is 2 and the intercept is 0. I've attache the code to make it clear what I am trying to acomplish. The way I've set it up right now is no scaling. There are 2 tasks in the code. I would like to create a custom scaling for the first task as seen in the attached code. I have done custom scaling using DAQ Assistant Express VI. But I dont see such options when I try to do the same with the DAQmx task. Please let me know how this can be done. Any help is greatly appreciated.
    Thanks,
    Raj 
    Solved!
    Go to Solution.
    Attachments:
    Current_Voltage_RPM-_sub_VI-1.vi ‏18 KB

    You both had me going nuts trying to figure how to get to that property. Basically just right click the DAQmx property node and "Select filter..." . This brings up the "Configure Filter Settings" where I chose 'show all attributes'. I could then get to the AI Custom Scale Name property.
     Interestingly when you use the Property Browser and select the magnifying glass you can get to that property...but you just can't select it if you have the filter set incorrectly. Lesson Learned.
    I also found this community example and that one.  
    Using LabVIEW 2010SP1 and TestStand 4.5

  • Custom scale for load cell

    Hi
    I am using a load cell to monitor an impact force. The load cell has a fixture attached to it which results in a non zero output. I am using a custom scale to convert the output from the load cell in volts to force to Newtons.
    I am creating a custom scale and applying it to the task. I then want to be able to programmitically tare (zero) the load cell output before testing. However, my code does not work. There are no errors, but the gradient and intercept controls within the while loop do not function. Can anyone tell me why? I am aware that this could be done mathematically but I do not understand why the property node method does not work.
    I am using labview 2010 with the latest version of daqmx (9.17 I think). My hardware is the USB-6211 card.
    Many thanks.
    John
    Attachments:
    custom_scale.png ‏53 KB

    Hi John,
    Thank you for a good description of the problem you are facing, as I understand it you have set up a custom scale but it doesn't seem to be functioning as you expected.
    I have looked into this for you and have found a few examples which may help with the development of your application, I have also linked some articles for you.
    The custom scale will need to be created entirely before the task is created, so any modifications can only be done before acquisition begins.
    I hope this information is useful, and if you have any further queries please go ahead and post them and I will look into it for you.
    Thanks
    Stephanie L
    Applications Engineer
    National Instruments UK and Ireland

  • SSRS custom code for count in Report Footer

    Hi All,
    Please help me with the custom code used for below requirement
    Debtor Name     current    30+days   60+days    90+days
    aaa                       7000        0.00          0.00          10.00
    bbb                       5000        0.00         20.99         3.00
    ccc                        1000       0.00          0.00           0.00
    Expected result in report footer :                  
                                              0                1            
       2
    if  the value of  30+ , 60+ and 90+ columns  >=1 then i have to display the count in Report footer,for that i have tried using a custom code like below :
    Shared Dim OD As Integer=0
    Public Shared Function Test(ByVal OP As Decimal) As Integer
            If OP >= 1 Then
                OD = OD + 1
            Else
                OD = OD
            End If
            Return OD
       End Function
    and using below code to display
    Code.Test(Overdue)  
    but when i use this code in report footer is not displaying correct value.Please guide me where i am going wrong.
    Please let me know if you need any other details.
    Thanks in advance,
    Samhith.

    Hi Samhith,
    Per my understanding you what to count the rows which values >=1 and display them at the bottom of the table, you are trying to use the custom code to do this but failed, right?
    I have tested in my local environment and find the custom code is not correctly, and I have an alternative method which is more easy and can work in both table  and matrix.
    As Vaibhav Chaudhari also mentioned that we can use the CountDistinct function, but more correctly, we can use the count() function and the RunningValue() function, because CountDistict will not count the duplicated values if they >=1.
    Please find the expression as below:
    =Count(IIf(Fields!Yourfield.Value>=1 , Fields!Yourfield.Value, Nothing))
    OR:
    =RunningValue(IIf(Fields!Yourfield.Value>=1 , 1, Nothing),Sum,"DataSetName")
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Please help! error -61399, how to create custom vi for every input in project explorer

    Please help! I have been trying whole night but couldn't get through it.
    I am creating custom vi to simulate cRIO inputs on development computer. ( FPGA target>>execute vi on>> development computer>>custom vi) I then follow tutorial creating test benches:
    Tutorial: Creating Test Benches (FPGA Module)
    but when I run fpga vi I get error -61399, input item/node is not supported (input item/node is my input which I've added from project explorer).
    The closest I got in my research on why this error is occuring- I have not connected all inputs/outputs in project explorer to custom vi. I followed tutorial exactly step by step but still I couldn't get through it.
    Please help! Please help!
    In order to do further investigation, I converted custom vi to a state machine , please find attachment. Having highlight execution on, it clearly demonstrates that input in cRIO are not being selected as a result default cases execute.
    Please find attached modified custom vi with state machine, fpga vi, and original custom vi.
    Best regards 
    Ta
    Attachments:
    custom vi.vi ‏32 KB
    inverter.vi ‏16 KB
    original custom vi.vi ‏22 KB

    Solution:
    You will see this error if no Custom VI has been selected or the Custom VI has not been configured for every I/O item that you are using in your FPGA code???
    I think that's exactly where I'm stuck!
    How do I configure it for inputs??? My attachement show that I have done everything being asked in tutorial!
    Thanks!

  • Custom scale with Create Channel CI Position Angular Encoder

    Hi!
    In my application I use angular encoders for position measurement. I programatically create channel (task) using DAQmx Create Virtual Channel, CI Angular Encoder instance. Prior to that I use DAQmx Create Scale to create custom scale for the measurement, to convert from degrees directly to meters. The problem is that when I use the task (Start Task for instance) I get the following error message:
    Error -200378 occurred at DAQmx Start Task.vi:4
    Possible reason(s):
    Measurements: Custom scale specified does not exist.
    Custom Scale: RowCounter
    Task Name: _unnamedTask<66>
    Maybe somebody can help me out with this one.
    I use the same principle to create custom scales for AI measurements, and everything works without any problems. I know the scale is created properly, as I tried saving the custom scale to max after I create it. I then used the scale without a problem when I wired it as a constant to the custom scale input of the DAQmx Create Virtual Channel vi. It only gives me problems when I create it dynamically, using Create Scale vi.
    Some technical info: I use USB-6210 Daq card for signal acquisition.
    I will appreaciate any help!
    Jernej

    Hey!
    The error message I get is as follows:
    Error -200378 occurred at DAQmx Start Task.vi:4
    Possible reason(s):
    Measurements: Custom scale specified does not exist.
    Custom Scale: RowCounter
    Task Name: _unnamedTask<66>
    I use USB-6210 Daq card for signal acquisition. The error occurs right after the DAQmx Start Task.vi on the counter task.
    As I said, the code runs sometimes without problems and then sometimes it returns an error. I noticed that if I run the CustomScaleProblem.vi on its own it runs ok. When I open the project with mine application, from where I extracted CustomScaleProblem.vi part, and then try to run the CustomScaleProblem.vi, it stops working. It looks like when I open the project it allocates some space which is in conflict with the scale part of the code. Then if I close the Labview environment and open CustomScaleProblem.vi and run it, it runs again without any problem. Well, for now I did a work around the problem by saving the scale in the program and then using it. This approach works fine.
    About the arm start trigger. I use it because I dont want the counter to start counting before the AI task starts. I noticed that if I use the AI as a start trigger, and I move the encoder before AI starts, the counter will not start with 0, but will start with a number indicating the encoder movement before the AI start. Is that the right approach if I want the encoder to start
    counting from 0 when AI starts?
    Thanks and kind regards
    Jernej

  • Adding customized fields for Travel Expenses

    Hi,
    I would like to add some customized fields for user input during the creation of travel expense form.  Is this possible?  If yes, any advise on the steps to create customized fields for data entry of travel expense form?
    Thanks.

    Hi Yvonne ,
    Thank you for the tip , it was helpfull.
    We are using field BUS_REASON "Business Partners", We changed label for data element but is not showed in TRIP transaction we can see it in PR05 transaction.
    How can I change labels for TRIP transacction?
    We did the change in CMOD transaction
    Thanks.

  • Custom Scale behavior with DAQ Task running

    Hi to everyone, I am implementing a Polynomial Custom Scale for a sensor, but I have doubt about what happens if I change a Custom Scale and my DAQ Task is running, I suppose that the Custom scale does not change on the fly but my questions is if I have to clear the Task to apply the new custom scale or is enough with Stop the Task and Start the Task again.
    I am using the DAQmx functions for the code. Thanks for your help.

    Hi AYanez!! 
    Thank you very much for using NI Discussion Forums!!  I found a post that deals with the same issue you are trying to solve for your application.  It seems that you have to stop the task for the new scaling properties to be applied.  Take a look into this thread:
    Programmatically applying a custom scale in an active VI
    Hope this helps!
    Regards,
    Anuar R.
    National Instruments México y Latinoamérica
    Ingeniería de Aplicaciones
    www.ni.com/soporte

  • Custom Exit to count No: of Employee based on User Input Date

    Hi There,
    I have a requirement to Count the no: of Employees for each Position Id. This count value changes with time (Time-dependent).
    So, when the user Keys-in a date at the Query Execution-Prompt, it should take the date value and then count the no: of employees for each Position Id.
    Next, it should display text  like If Count = 1    "Single"
                                                      If Count =2     "Double"
                                                      If Count >=3   "Triple"
    I was informed that we should create a Calculated Key Figure and then introduce a variable in it with Replacement path as Customer Exit.
    My Question is: Could any one provide me the logic to implement the Customer Exit for above requirement. I kow that I need to implement this is BI ABAP editor as Include file.
    Further, I referred following Forums links. However, I need more information.
    counting the number of rows.
    Customer Exit Variable Code
    Any Suggestions!
    - Anil

    Hi,
    As I understood, first thing you may not have text for a key figure (will not be able to display "Single", "Doüble" etc..)
    Are you doing reporting on master data or cube?.
    If it is a master data the it will be better to include count at staging level. You just need to include one key figure count as an attribute and assign 1 over there. You may usee this key figure directly in report.
    If it is one cube/DSO then just create one CKF assign value as 1 in report in that. Use Exception aggrigation for this CKF reffering Position id in report. Dipslay this key figure.
    I hope it will help.
    Thanks,
    S

  • Benchmarks for Buffered Counter Input with X-Series Devices

    Hi,
    Does anyone know the maximum transfer rate (using dma) for the x-series cards? 
    I'm looking for data simillar to the one in this link:
    http://digital.ni.com/public.nsf/allkb/72A7E41EE5A8756A862571DA0076F1D7?OpenDocument
    More specifically I want to know the transfer rate for the PCIe 6343.
    Thank you,
    Eyal
    Solved!
    Go to Solution.

    I benchmarked 8MS/s on a single channel on a USB-6353 (should have similar performance to the USB-6356/66) with a buffered counter input task. This was only a 10 minute test on my Dell E6400 laptop ( Windows 7 32 bit, Dual core P8600, 4GB memory) so a sustained 24/7 rate is likely less. Also, I wasn't doing much with the data, just displaying it in an array. This is pretty much topping out USB streaming on this system (32MB/s) so I wouldn't expect to get higher. I wasn't running much else in the back ground (Explorer, Powerpoint, Lotus Notes) and CPU was at ~20%.
    Hope this helps,   
    Andrew S
    Getting Started with NI-DAQmx
    Measurement Fundamentals

  • Elements 13 will not custom scale a photo for print.

    When I try to custom scale a photo, the sizes have no effect on the finished photo and leaves a vertical bar on either side in Elements 13.  Elements 12 worked much better.

    Alec
    AdobeTV
    Products | Premiere Elements | Adobe TV
    Premiere Elements 13 Guided Section
    Do not overlook the program itself. It has Expert Guided and Quick Guided for special topics such as
    Getting Started with Premiere Elements
    Trimming Unwanted Frames
    Adding transitions between Video Clips
    Adding Scores to your movie
    Adding Brightness + Contrast & Color
    Adding title to your Movie
    Adding Narration to your Movie
    Creating a Picture in Picture
    Animate graphics easily
    Adding Video In Title
    Apply an Effect Mask to your Video
    Premiere Elements 13 Help PDF
    https://helpx.adobe.com/pdf/premiere-elements_reference.pdf
    Elements Organizer 13 Help PDF
    https://helpx.adobe.com/pdf/elements-organizer_reference.pdf
    And, please never hesitate to ask questions and ask for clarification here in the Adobe Premiere Elements Forum.
    Lots free support to explore.
    I would start going through the Guided lessons in the Premiere Elements 13 Editor.
    Please update us on your progress as your schedule permits.
    Best wishes
    ATR

  • Container element for Count in Parallel Approval Workflow

    Hi Gurus,
    We are using ECC 6.0 and I have this below requirement. Please share your thoughts on how we can achieve this.
    We are using a User decision step in parallel workflow to generate and send individual work items to multiple approvers. that is, we generate multiple work items and send to individual approvers for the same step in the workflow and get the combined result (Approve or Reject) to proceed further. I understand that individual result for each work item is stored in container element '_RESULT' (0001 for Approve, 0002 for Reject) and combined result of all the sub-work items is stored in '_WI_RESULT' (0001 for Approve, 0002 for Reject). Also, we can see the index # of work items generated for the same step (node) from container element ''_WF_PARFOREACH_INDEX'.
    My requirement is to set work item to COMPLETED status after we obtain a certain # of APPROVE (_RESULT = 0001) decision. Let's say, after 2 of the approvers say Ápproved', then I'd like to close all the other relevant work items and set the Combined result '_WI_RESULT'to APPROVE and Complete the relevant work item. I was wondering if there is a container element that holds the (count) # of work items generated in individual work item container so that I can keep reading this value to see how many decisions have been made. That is, for example, If there are 3 parallel work items generated and 1st user said Äpproved',  is there a way to know out of a total of 3 approvals (to get the combined result '_WI_RESULT'), one is completed and 2 approval decisions are still pending. I'm trying to use step-level Pgm Exit (After_execution Method) to read this container element for # of approvals done and if the combined result '_WI_RESULT'is '0001'(Approve), i'll try to end other work items. One way of doing is to have a custom table to capture this and keep reading this table after each decision. But, I don't want to have all this customization and I believe there should be a way the SAP is storing somewhere this # of completed or Pending approval work items that got originated from a single step/node. One way of doing could be, after each decision, read the dependent work items (having same node # and Parent Work item etc.,) and get the other relevant work items and read their status etc., But I think this is a lengthy process and may be there is an easier way, perhaps some container element that holds this information.
    Please let me know if you need any clarification on my requirement and share your thoughts on how I can achieve easily.
    Appreciate and thank you in advance for your help.
    Regards,
    Venu

    Hi Karri,
    Thank you for your reply. I was actually doing the same with having an APR_COUNT and passing that for each of individual work items and bind it back to task--> wflow container. And keep checking this counter in wf container.
    Once, we obtain certain # of approvals, then I guess I'll have to complete or cancel the other work items.
    I was thinking may be there is some container element already exists that keep track of this, I guess not .
    Thanks for your input
    Regards,
    Venu

  • How to Import Custom Scale using Field Piont I/O

    I need to READ   a 0 to 100 Newton strain gauge on graph chart. 
    It is a full bridge with an excitation Voltage of 10V.   The field point Input module FP-SG-140 is configured for a range of -3.9... to +3.9 mV/V
    I know how to create a custom scale using DAQ assist but the option does not appear using Field Point.

    Hello belangem,
    Have you considered using the Scaling and Mapping Express VI or programming your own scaling algorithm in LabVIEW to manually convert the strain readings to force?  The Scaling and Mapping Express VI allows you to apply similar types of scales to the DAQ Assistant, such as linear, logarithmic, interpolated from a table of points, etc.
    If you really need the Fieldpoint driver to perform the scaling for you, some Fieldpoint modules support scaling.  You can configure a scale on a channel in Measurement & Automation Explorer (MAX) by going to your Fieldpoint Items under Data Neighborhood, selecting a channel in your module, and click on the Scaling tab on the bottom of the screen.  Unfortunately, I don't have a FP-SG-140 module around to try out, but I know the scaling feature is available for my FP-AI-110.  I'm using Fieldpoint 5.0 with MAX 4.0.
    I hope this helps,
    Travis G.
    Applications Engineering
    National Instruments
    www.ni.com/support
    Message Edited by Travis G. on 06-22-2006 10:21 PM
    Attachments:
    FieldpointScales.Jpg ‏46 KB

  • Encoder position WITHOUT counter input

    Question:
    I have three incremental encoders connected to my M-Series DAQ board (PCI-6229) that has TWO Counter input channels.  I am measuring the position of each encoder.  How do I measure the position of the third encoder if I have used-up both counter inputs?  Is there a manual way to accomplish this using my older version of Labview (version 7 express)?  Any help is appreciated.
    -Clarkam1 

    clarkam1 wrote:
    Ben,
    I'm on an extremely small budget and can only use the items available to me at present time.  That being said, is there no way to use one counter for multiple encoders?  Or could an external device be used to count which the DAQ board would read?  I appreciate your timely responses.  I'm trying to explore all other options.
    So do you work for free?
    If you are determined to get all three counters going with that device, you have a big challenge ahead of you. I'll try to explain. At teh input of your counters you have signal conditioning that feeds the counter itself. To do the same thing using analog input channels (since all of the counters are already used) you will have to develop code that simulates the signal conditioning, converts the analog to digital (this may sound easy but if you need to implement over-sampling its not) and then do the work of the counter, again in software.
    If my customer was forcing this on me I would first review the behavour of the hardware and use it to establish the requirements of my code. So if you do not have an EE background, you will first have to learn the hardware so you can write software that does the same thing.
    So if you work for free then you may want to chase down the examples that NI ships for their FPGA targets that implement serial protocols and the like. You may be able to harvest some code and examples from there. If you don't work for free, then you really have to decide if you want to re-invent in software what you can purchase.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • Error while doing F-22 entry

    Hi, I am getting the below error while doing F-22. Kindly help me how to over come this Bug.. Error Message : Express Document "Update was terminated" received from author RWRGV1 Please help me why this is coming and how to fix this to post the docum

  • I have a white intel i mac and when i boot up a file with a question mark shows up

    i installed wnow leopard and then attempted to use boot camp to install windows (thats a whole other story though) after i got windows on it and then got it back to the mac side i found i could not get back to the windows side so i attemted to delete

  • Mirror iMac via ethernet questions

    I want to play iTunes [ very few iTunes store songs], and movie/tv shows, [none purchased from iTunes] I added the origin of media because I heard it made difference [?] I have an ethernet connection availabe for the Apple TV. What problems can anyon

  • Create webservice endpoint from wsdl

    Hi, I have WSDL file. Using Jdeveloper, what are steps to create Web service provider endpoint from this WSDL file ?? thx pp

  • JavaFX with LibGDX, or Xith3D?

    Just curious if FX is compatible with any of these?  I thought I saw something on FXExperience about Xith3D and a new port for JavaFX8, but I don't think so. I heard you can add a LibGDX object to a Scene though. Not too sure which is better, both se