Jump to content

Minh Pham

Members
  • Posts

    171
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Minh Pham

  1. A more interesting version of this would be if you use a LV2 style global to remember the time of the last probe and then subtract to show the difference. Just note that this will only work if you have two such probes. If you have more, you might run into race conditions. Also, using the Tick Count primitive for this is generally better because it has a higher resolution.

    Ofcourse Yair, but i just want to demontrate the idea rather than do the whole thing for the questioner.

  2. QUOTE (psychomanu @ May 27 2009, 09:27 PM)

    Hello,

    I would like to see a probe with a timestamp to see WHEN data passes instead of the data itsself, for easy evaluation of the time spent between two points in the code. Or does anyone know an easier way than adding a tick count before and after and calculate the difference?

    Manu

    Back to the original question. It is a probe with data and time stamp is what you are after, right?

    I would create my own probe for this purpose. To do this you just 'right click' on the wire you want to place a probe then select 'custom probe>>new'

    give it a filename and location then Labview will create an 'probe' vi for you with the data type of the wire you right-clicked on.

    In this 'probe' vi, you need to add a get current time function and an indicator for that. Create an indicator for the data as you need to see the data on the probe as well. resize the front panel to make it look nice & clean, add color of you want.

    Do the same with other type of data wire for their custom probe with timestamp. then jusp drop the probes in ur vi and run :) good luck

    Then you will have something like this:

  3. QUOTE (crelf @ May 28 2009, 06:38 AM)

    I'm okay with scrolling, as long as there's a reason for it, and it's in only one direction. I don't think diagram size is a strong enough reason on it's own for modularization.

    True but some people like their diagram in horizontal direction instead of vertical. I find that it is easier for me to read through code horizontally (however there is only a few vis that bigger than 1 screen). Bottom line: it's just an option for user so NI should considering it. It does not harm anyone and does bring in some convenient for many people outthere.

    For those who dont bother to wait for NI, i recommend to upgrade your mouse to "Mighty Mouse" :yes: as shown:

  4. can you have this check and/or set the latency timer at the begining of your application?

    I would use the FT_GetLatencyTimer API to see what is the current value of the timer then based on the returned result I will

    continue running my application or set a new value (of 2) for it using FT_SetLatencyTimer API. Include this state somewhere in the begining of the statemachine, and let the application taking care of the customize settings rather than force the driver or user do it.

    Just a thought.

  5. QUOTE (cpalha @ Feb 12 2009, 04:21 AM)

    Dear all

    I have a board connected to a encoder to measure the distance and it save into a file.

    I want to add into this file some voice commands thar are recognised and saved in the same file as text.

    I explain, i go with a car measuring and saving the distance but if i find some signal i speeak into a microphone like "stopt" it recognises and save the word in the same file and at correponding distance.

    Best regards.

    CPalha

    I have trouble understanding your question. Have you done the voice recognition module in your code or you havent done it and need some inputs from the forum?

    Or you are just trying to saving some customized data into a text file?

    Please clarify your question.

    Cheers

  6. QUOTE (mic_k86 @ Feb 7 2009, 02:17 PM)

    hi all, the default background colour for labview is grey. is it possible to change it to another colour? (i.e. yellow, blue...) or is it possible to at an image picture to the background?

    Select Menu: Tools>>>Options>>>Colors to customize your environment.

  7. QUOTE (PaulG. @ Jan 14 2009, 07:59 AM)

    We should come up with our own "Most Dangerous LabVIEW Programming Mistakes". I would add: Failing to properly close references, using stacked sequences, using globals, messing with a fellow team member's code without permission ...

    Programming without a proper structure/architect --> consequences: can not add new functionalities, hard to maintain, messy code...

  8. QUOTE (SaNoSuke @ Dec 22 2008, 03:15 AM)

    Hi everybody......am new in this great forum and in the same time in the labview 8.0(student edition)

    acutally am looking for help in controlling the stepping motor.....the idea is am trying to follow the sun by using a solar panel by calculating the azmuith angle so depending on the result it will control the stepper motor how many steps it has to move....am stuck now with the part how to move and i dont have that much time to submit my senior 1 graduation project(it must be dont by 11/Jan) and i have the final exams in 5 days.....so if somebody can help me with the basic design so i will be greatfull.......

    plz guys my life depends on you!!!

    sorry for my bad english.....

    This is agreat resource to search for what you might need in your project, NI discussion forum also a nice place to visit to look for the

    answer to many problems users worldwide are facing. If you require some help, you need to show what you've done (example code), which part

    you consider as confusing or stuck in term of coding. And studying isnt something like: "plz guys my life depends on you" I guess, it is something you need to spend your time to do research and practise so the knowledge/skills become yours by the end of the day.

    Good luck,

  9. Hi guys,

    I just wondering that is anyone in here success capturing the event (eg. mouse down or double click) from an element within an array. (index returned prefered)

    As LabVIEW doesnt have this option, it does have the Mouse Co-ordinate values returned which can be used but it is not the optimal way of

    doing this i guess, you still have to figure out which item within the array is clicked/double-clicked and return the index so you can process a certain task

    for that item (eg. change the value, or pop-up msg).

    Any help is appreciated,

    Regards,

  10. How is it possibly decrease the productivity , I think 2 monitors is the minimum for programmer nowadays.

    my life would be much harder if i have to develop projects using a single monitor now i guess.

    2 is enough, 3 sounds abit luxury :)

  11. QUOTE (DanielChile @ Nov 28 2008, 01:54 AM)

    Hello, everyone. I need help from the UI masters.

    Please see the attached VI (LV 8.5.1). You may notice an ugly "xxxxxxE-15" on the Y scale of the graph where it should be a simple zero. Note that this scale has scaling factors.

    I suppose this is a bug and we wanted to workaround it. We figured out that we could read all markers text and then just write a "0" to the ugly one, but we still can't get the right method.

    Any suggestions?

    Daniel R.

    Programatically you can use the YScale>>Format and Precision property nodes to set these settings. File Attached

  12. QUOTE (harika @ Nov 25 2008, 04:26 PM)

    Hi,

    I tried as per your instructions the file is attached but i didnt get the output. Please help me out.

    With Best Regards,

    Harika,

    Cyber Motion Tehch.

    Hyderabad.

    I recommend you to go through some LabVIEW fundamental topics, there are many available in the web that you can go through and learn all the basics in LV especially Data types in LV. Array is one of the most important data type so hope you will master it soon.

    below is a quick fix of the problem you have. You are still writing only 1 data element to the X and Y array, that's why u have 1 point.

    Try not to use local variables if you can wire data directly.

    Check LabVIEW help for example on XY graph, array to have a better understanding before tackle the problem.

  13. You have already done the 1st part is:

    selected the ROI by using the 'IMAQ Select Rectangle' vi

    I would think you can finish the task off by changing the rectangle output generated by the 1st step

    into a ROI using 'IMAQ Convert Rectangle to ROI' vi

    Hope this helps

  14. QUOTE (Anders Björk @ Nov 25 2008, 03:49 AM)

    Hi all

    Anyone of you that has any ideas how set all (or selected ones) graphs (in frontpanel) X-axis minimum and maximumvalues at the same time? For instance I want to set the time span to 5 days, 24h or 8h. I have looked at getting all control reference from a VI, but getting from there an further seems hard.

    Pretty much you have to get all objects refs then narrow them down to Graph type, then modify the properties that you want to change.

    Have a look at my quick example:

    Hope this helps

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.