-
Posts
171 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Minh Pham
-
-
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.
-
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:
-
-
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" as shown:
-
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.
-
QUOTE (cpalha @ Feb 12 2009, 04:21 AM)
Dear allI 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
-
-
-
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...
-
-
Thanks Norm ! and Vugie!
Both approaches are working just fine! I do like the Dynamic event because of its potential
Awesome, that's make my GUI much better interactive
Thank you for all your inputs, Im really appreciated
-
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,
-
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,
-
QUOTE (Ton @ Dec 21 2008, 06:24 AM)
I did look at Easydaq, seems a bit more expensive than roboteclectronics.
Thank you guys for clear things up in my mind. Hope that I will not stuff up the electricity of the whole building
-
QUOTE (LV_FPGA_SE @ Dec 20 2008, 05:16 PM)
I've just figured out as well, just about to ask this:
can I use this device instead of NI ER8/16? http://www.robot-electronics.co.uk/acatalo...ay_Modules.html
Cheers mate,
-
Just wondering if I can use USB6008 to turn on/off light in my room through LabVIEW?
Should I use a transformer to convert the 5V output to my desired voltage of 240 (Australia) ??
Any help appreciated,
Cheers,
-
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
-
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
-
-
-
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.
-
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
-
LabVIEW has many examples on writing data to file in different formats. Please goto Menu: Help>>Find Example>>Fundamentals>>File Input and Output.
Also do a quick search with a few keywords you should also find many examples online.
Have fun.
-
QUOTE (Anders Björk @ Nov 25 2008, 03:49 AM)
Hi allAnyone 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
how do i interface a dc motor with labview ?
in Hardware
Posted
QUOTE (labviewnoob @ Jun 3 2009, 05:17 PM)
the manual should tell you how to communicate with the HW. Should be RS232 or GPIB