-
Posts
6,217 -
Joined
-
Last visited
-
Days Won
120
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Michael Aivaliotis
-
-
The File Dialog function is used to display a dialog. It does not Create, Open or Write a file. The only purpose of the File Dialog function is to give you a "nice" user friendly way of navigating to a file or directory on your computer. It is doing exactly what it's suppose to do.
If you wire in a filepath. You are just telling the function what the start directory is, that's all. LabVIEW (by default) prompts you to Save As. This text can be changed by wiring the "prompt" input with your own text.
-
:question: Each boolean control has 3 visible parts. The square and round LED also have decal.
Correct!
And why is this significant? It is nice because the decal is a clickable object which toggles the logic on the boolean. This is great because you can replace it with a custom graphic and use it as an additional part of the control which can be clicked.
-
To start off, just to clarify. The LAVA Forums are not OpenG. I realize that some OpenG contributors hang-out here but if you want to give praise to OpenG, the best way to do this is to go to the OpenG forums and tell them how much you love them in person. While you're there you can also donate some money
:
---
OK... About custom controls. Do you know about the control editor? That's the first place to start. There are many ways to access it but the best is to right-click on a front-panel control and select Advanced>>Customize. This will pop-up a window called the control editor. Once your in there you can manipulate all the objects to your hearts content.
One thing you have to realize is that each control is composed of many parts. You can manipulate these parts and even replace them with pictures of your own. To see these parts you must click on the icon on the button bar that looks like a wrench. This will cause labview to break apart the control into several components. You will see each element highlited with a white box. If you use your mouse pointer you can click and drag each part of the control and spread it about.
So now how do many people create cool controls. Simple, you just hack away at the control using the control editor and replace the parts you want with pictures of your own. The radio button control you mention is actually a slider. Yes! The black dot of the radio button is the slider pointer that has been replced by a black dot. The circles are pictures of circles copied from a dialog button radio control of windows.
I hope I gave you an idea of how this is all done. Cheers! :beer:
:arrow: Here's a challenge question for you control editor experts out there: Each boolean control has 3 visible parts. The label, caption and boolean text. There is one exception to this, what is it?
-
Here is an example VI (LV7.0) that shows how to manipulate text in a text box. The focus of this example is the Selection Start + Selection End property. This can be very powerful in performing custom live formatting of front panel text.
The trick here is to perform formatting on the text after you highlite the section of interest. The Font property is then used within the same property node.
text_hi_lite.vi - Image:
-
I'm attaching an image that shows a 1000ms (1sec) delay used.
Actually, using a sequence structure in this configuration is considered bad form. It is better to use a state machine architecture. If you want more information on state machines then read the FAQ:
-
How about putting the file saving code inside of a loop with a timed delay? If you give a little more description of what you are using already then I can respond with more information.
-
I tried creating another frame that re-sent false values back to them, but that appeared to do nothing.
Are you using locals to achieve this? I don't see any reason that this doesn't work.
-
i have another question
I split this post into a seperate thread. For the future please start a new topic thread if you are asking unrelated questions.
-
For the record, I think this is bad policy on NI's part.
I'm not sure I follow you. What is bad policy?
-
regarding the textbox, i would like the messages to store in it, so i could use the scrollbar to look at the previous messages
I thought Alex explained it quite nicely but just to clarify I've attached a dead simple method. I think the main idea is to read the previous data and concatinate the new data to the previous data using a end-of-line between the new and old data. Of course there are other logistics issues you have to take care of yourself but the framework should work as shown.
-
Ok, being the picky bastard that I am, I decided to post a slightly modified version of your example. It is functionally the same however it's slightly improved on code clarity. Feel free to attack my design...
The major change is that I stop the top loop by destroying the notifier Refnum. I check for errors on the wait on notification . Any error (such as a bad Refnum) stops the loop. Another change is that I use the timeout output of the same function to determine if there is a new message. This adds a bit of flexibility since you can easily expand this configuration to decode a number of datatypes (not just a Boolean out). So if there is no timeout that means there is something there... decode it.
I'm not saying that your version does not work, it works well. I always like to program-in inherent flexibility (no matter how small) to accommodate system expansion.
-
A late response here but I would recommend that you create a VI that counts a fixed number of transitions (low to high crossing a given threshold). Do this for a certain sample set. Let's say 1000 samples. Then I would compare the count of transitions to the total number of samples collected. If you have fewer transitions for the given samples, you have a problem.
-
After reading Conway-Watts I've started putting all 'constants' in INI files. There just seemed to be a desire from some to have a 'cleaner' compile-time constant, so I made a suggestion. I can think of other things I would like to see in LabVIEW first.
Yes the Conway-Watts book you refer to has some great examples of this.
As far as the value of posted suggestions\wishes, we have quite a bit of influence in the direction of future versions of LabVIEW as long as the wishes get posted to the right location:
My opinion is just that, an opinion and does not indicate right or wrong. Keep those opinions and suggestions comming, they are all welcome! :thumbup:
-
When Dynamic Events were introduced in LV7 I tried so hard to figure out a place for them in my design architectures. I am attaching an implementation where a user defined dynamic event is used to pass data from a dynamically called VI to a main VI caller. I actually used this implementation in a real project.
Any comments or suggested improvements are welcome. The code is LV7.0.
-
Is the length of the array going to be limited?
How big can it actually get.
There are some creative solutions that you can implement, but most can not be used on an array that has a large and/or indefinite length.
What is the interface trying to accomplish?
This question may also bring about other solutions.
Yes, for example, if only 10 elements are visible at a time then you can overlay 10 transparent booleans overtop each element of the array. Using logic you can enable\disable each boolean for the coresponding element of the array that needs handling.
-
Has anyone figured out a way to disable the LabVIEW splash screen that pops up upon launching an .exe file?
Are you talking about the splash screen for the run-time engine INSTALLER? As far as I know there is no way to avoid this. The only other option would be to create your own install routine using other installers such as Installshield etc.
-
There are some examples and documentation here:
I've used OpenGOOP in some of my projects and it works well. I suggest you post your question or concern here:
Do you have a specific question or problem? If you post here I can try and give you a an answer.
-
I guess there is a place for a new type of constant however I don't feel that it is really such a big issue.
Personally I prefer to use a sub-VI for placing constants. I don't understand why you need to have one VI per constant. Most of the time constants belong in groups. For example you would have DAQ settings or Instrument settings. You would then place all constants on the diagram of a subVI. Of course you would put them inside of a cluster then output that cluster to a terminal of the VI. A simple unbundle will give you what you need. If you don't like clusters and unbundle then use multiple output terminals instead. Why is this so hard?
There is also a hidden potential here that is not evident at first but I will explain. If you created a VI for each functional group of constants you could easily convert them (down the road) from static hard coded data objects into flexible variables that can be abstracted and manipulated externally, even as a built executable. Each constant VI can be edited and replaced with a read\write from ini file. This allows you to implement code
-
Can you include a screencapture of the graph? That would help a lot in figuring this out.
-
Well, you could use Brian Renken's VIs to do this. You can download the VIs from his website (sroll down to 'Draw Sideways String' section)
Actually, this was impressive at the time and an excellent solution to the problem, however this is now built-in to LabVIEW. This is using a picture control.
-
Sorry, what kind of instrument are you trying to communicate with?
-
Here is a good link to an NI article on serial communications:
-
What kind of lure do you use when you 'Webcast'?
We use a brand new copy of LabVIEW 7.1 Professional development suite
-
I've wanted to become a LabVIEW certified programmer for at least 3 years now, but I'm tentative to pay the money to become certified because I'm not sure if I have enough knowledge to pass the test.
Here's the link to the National Instruments Certification Program Tasks and Objectives:
If you can handle the above material you should be ok. By the way, most or all of the material is covered in NI Basics 1 and 2 courses. Perhaps the advanced course as well. All of this is specified on the NI website. NI does a good job of clarifying what material is covered.
On another note, being self-taught is nothing to be worried about. Most of us learn more on the job and by diving into real projects than the NI support engineers themselves. We're the ones that push LabVIEW to the max and use it in ways that it was not even designed for. The problem with the test may be that you may not know the proper terminology that's used or required by NI in their questioning.
Custom controls
in User Interface
Posted
Well, you can create the semi-circles in a drawing package and import them into the center button. To avoid the overlap issue why not send the center button to the all-back layer? They would then be covered by the surrounding buttons.