I want to control the front panel of a lab View program with C code??
I want to be able to run lab View via Corba. So I need some way to control my lab Vew programs with C code. I really hope this is enough INFO.
Hi Mikey,
As mentioned by the guru more details would help us help you.
Do you just want to start the LV app from Corba?
Do you need to specify start-up value for the LV app?
Do you want want Corba to Fiddle with buttons and controls on the FP of the LV app?
Please outline your "dream" and we will let you know what is possible.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Similar Messages
-
I want to send the front panel to background in linux
Hello:
I am working with the Application Builder for Linux and I want leave run
an application in background.
The ask is How I can send the front panel to background? If this is
posibble, please, send me any information.
Thanks for all contact
Ricardo Leal Pacheco.
e-mail: [email protected]/[email protected]
FONO: (09)7111100, 654622.
INGENIERIA CIVIL ELECTRONICA U.T.F.S.MRicardo,
The simplest - set Vi setting->Edit Build Settings->"Remove FP" to YES in
App. Builder.
On Linux you can send FP to any host X server or to any local X display
number, which you want to have as a background, from the command prompt
like: -display:xxx You even don't need X running (but should
have X installed!). Read Xserver mans for details.
Also, there is a way of using virtual frame buffer X server, but I didn't
tried it yet.
Hope this helps a little.
Regards,
Sergey Krasnishov,
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
[email protected]
http://acs.levsha.ru
>>>>>>>>>>>>>>>>>> AE>4=>5 A>>1I5=85 <<<<<<<<<<<<<<<<<<
24.11.00, 19:40:02, ?8A0; Ricardo Leal
=0 B5
I want to send the front panel to background in linux:
> Hello:
> I am working with the Application Builder for Linux and I want leave run
> an application in background.
> The ask is How I can send the front panel to background? If this is
> posibble, please, send me any information.
> Thanks for all contact
> --
> *********************************************************
> Ricardo Leal Pacheco.
> e-mail: [email protected]/[email protected]
> FONO: (09)7111100, 654622.
> INGENIERIA CIVIL ELECTRONICA U.T.F.S.M-- -
Manually controlling the front panel without a keyboard
Hi all,
In my application I constantly switch the keyboard and the mouse between two computers (using a KVM switch), but would like to continuously be able to control a numeric control on the front panel of one of the computers (running LabView 6.1). Even if I wasn't switching, the use of the keyboard is awkward, since the control needs to be fairly effortless, quick and smooth. After searching a bit for a knob/wheel/dial type of controller, I was only able to find the new PowerMate (Griffin Technology) as a reasonable candidate, and have yet to purchase and try to integrate it. I'm also not sure how it will work with LabView.
Am I overlooking a simple solution?
Anyone have some experience with the Pow
erMate?
many thanks, ShyAnother option: Create a simple TCP/IP application in VB or LabVIEW to
control the control.
That is,
Monitor for incoming TCP/IP data in the VI with the control.
If on your other computer you wish to make a change, just use your
little application to do it, and send the value to the main app.
Very cheap to do =)
Another option 2:
Grab the available Parallel Port digital interface design specifics for
labview. Create yourself a simple binary switch interface. Assign 4
bits for up and 4 bits for down.
That is,
sw1 = -10
sw2 = -1
sw3 = +1
sw4 = +10
Read in the digital input from the parallel port and increment your
control accordingly. You can obviously assign any values you want to
the digital inputs.
Hope this helps guide you a little bit!
Sincerel
y,
Jason G Richmond
Project Engineer II and LVAAD Instructor
VI Engineering
[email protected] (domain should be vieng.com (no A's))
sshoham wrote:
> Hi all,
>
> In my application I constantly switch the keyboard and the mouse
> between two computers (using a KVM switch), but would like to
> continuously be able to control a numeric control on the front panel
> of one of the computers (running LabView 6.1). Even if I wasn't
> switching, the use of the keyboard is awkward, since the control needs
> to be fairly effortless, quick and smooth. After searching a bit for a
> knob/wheel/dial type of controller, I was only able to find the new
> PowerMate (Griffin Technology) as a reasonable candidate, and have yet
> to purchase and try to integrate it. I'm also not sure how it will
> work with LabView.
> Am I overlooking a simple solution?
> Anyone have some experience with the PowerMate?
>
> many thanks, Shy -
I am trying to get user color inputs from front panel and use it in IMAQ Draw. I need to draw an oval of a certain color in a background of another color. Both these color values are user input. The problem is IMAQ Draw requires SGL color value and the color controls of front panel give U32. I have tried conversion VI's which hasn't worked. HELP !!!
Jake,
I think the color control can be wired directly to the input, but I am not positive. I don't know of any color conversions that would help.
Make sure your image is a color image. You can't draw colors on a grayscale image.
You might want to consider using overlays, which appear on top of the image but are not part of the image.
Bruce
Bruce Ammons
Ammons Engineering -
I want to print the front panel without all the header stuff while the vi is running
I want to print the vi front panel without all the header information that Labview puts at the top. I want to do all this while the vi is running by pushing a button.
One option is to use the the 'Print VI to Printer' method. Beware that invoking this method repeatedly with complex front panels has caused me graphics problems in my VI's display that persist until the development environment or the built .exe app is exited and re-entered.
See: http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000005F5A0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=spaz+print&USEARCHCONTEXT_QUESTION_S=0
NI has confirmed this to be a bug in 6.0x and 6.1 and has indicated that it will be fixed in the next version.
I was forced to fall back on the Append Front Panel Image to Report.vi in the report toolkit. Which does not produce printed graphs of as high as quality as the Print VI to
printer method. -
Put the front panel of a vi to an ftp server
I have made a vi and i want to put the front panel of it to an ftp server.
I tried to do this with FTP Put File VI but I didn't manage to do that.
I think that the wrong part is at the remote path, because i don't know what to write.
Attachments:
D2_v18c.vi 322 KBI don't quite understand what you're doing. Where is D2_v18b.html being generated?
Your code is a mess. You have way too many local variables (in several spots I see you write to the indicator AND to a local variable of that same indicator!). I also see numerous race conditions, which means your code is unlikely to work as you think it will. I also see lots of code duplication, which means you should be creating subVIs. I would guess you have a background in text-based programming. I'm certainly not going to rewrite your code, but I would suggest you do, and you should look into an application design patterns like a state machine.
Message Edited by smercurio_fc on 06-15-2009 09:17 AM -
I can successfully view and control a VI remotly. However, the remote VI dinamically loads another VI, this VI loaded dinamically is a VI that allows open others VIs, I want to see the files that contains the server machine, in the client machine, but the front panel of the dinamic VI appears only on the server and not on the client, How can I display the fron panel with the files of the server machine of the dinamically loaded VI on the client computer?
Attachments:
micliente.llb 183 KB
miservidor.llb 186 KB
rdsubvis.llb 214 KBI down loaded your files but could use some instructions on what needs run.
It seems that you are so close yet so far. You need to get the data on the server machine over to the client. I generally do this by doing a call by reference (on the client machine) of a VI that is served by the server. THe VI that executes on the server should pass the data you want to diplay via one of its output terminals. You can simply wire from this terminal (back on the client again) to an indicator of your choosing.
Now theorectically, I do not think that there is anything that prevents use from getting the control refnum of the actual indicator (on the server) of the indicator that has the data, and read its "Value" using a property node. I have never tried this idea but it seems t
hat all of the parts are there. You will need to know the name of the VI that holds the data as well as the indicator's name. You will also have to serve all VI's. This is not a good idea.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Having several windows appear ...
Hi,
You can't create several windows for one VI. But you can use the "Tab Control" and change tab's in the program. Or you can use sub VI's and show ther front panels.
To show the front panel of a sub VI you have to open the VI you want to show and select "File->VI Properties". In the VI Properties window select Category "Window Appearance" and click Customize...
In the Customize Window Appearence window, here you can set a number of attributes for how the window will appear, select "Show front panel when called" and "Close afterwards if originally closed" click OK and OK and save the VI, done.
Now the VI front panel will appear then you use it as a sub VI.
/Thomas -
I am controlling a stepper motor that is coupled with a valve with four outlets (using an Arduino). I've got a general understanding of how to control the motor, but I want LED lights on the front panel to light up that indicate which outlet the valve is currently at after the steps are taken. The method I'm thinking about involves a lot of repetitive code. I'm not that experienced with LabVIEW, I'm assuming I need some sort of loop structure but I don't know how to set it up in order to control the sequence of the LEDs. I've attached my current block diagram for a visual aid if needed.
Attachments:
Capture.JPG 33 KBI was thinking about using the Stepper To Go and Stepper Write functions four separate times, using the same constants for the steps each time since the distance between each outlet is equivalent. The only difference would be what's connected to the "steps remaining" node, which would be the function that activates one of the four LEDs (if that makes sense). I was thinking that doing it this way would be a little counterintuitive since the only thing that needs to be changed is the LED indicator.
-
How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel? On the Front Panel I am making a complex control that consists of a Slider and a Numerical Input box. Both Controls display the same information and either can be used for Input. When one changs, the other is made to display the same value.
But I only want the Slider to display the Label on the Front Panel, to avoid confusion. On the Block Diagram however, I want both controls to display their Labels so that I know what they are. How do I display the Label for a Control on the Block diagram, but not display its Label on the Front Panel?No. The Label Visible property is separate for the front panel control label and the block diagram terminal label.
How did you start out with the block diagram's label not being visible? Whenever I drop a control or indicator, the label is always visible on both the FP and BD by default. Maybe there is a LabVIEW option that causes new controls/indicators not to have their labels visible by default, but I have yet to find it. I don't think an item should ever be dropped without the label visible, good LabVIEW coding practice demands that the labels for control terminals on the block diagram be visible so that you know what control or indicator a wire is going to.
That being said, I have seen a lot of VI's posted where the label for the terminal on the BD is not shown (against good programming practice.) I've gone to the BD and right clicked to show the label. Sometimes, the people have an empty label (which will turn off the visibility for both the FP and BD) and I'm forced to add some text of my own into the label so I can figure out what their code is doing. When I add some text to the label, at that time, I find both the BD and FP labels become visible.
Are you dealing with controls that have empty labels to start?
Good programming practices:
1. Always have a name for all of your controls, never use and empty label by deleting the text in the label.
2. Make the labels unique. For example, don't have two controls both called Stop. How do you know quickly know which terminal relates to which control?
3. Always show the labels on the block diagram, so you know the function of a control's terminal. If you want to hide the label on the FP, that's okay.
4. If you want a different label to appear on the FP than whatever you actually called the control, then use the caption. You can hide the label and show the caption. This is useful if you need to programmatically change what the "label" is on the front panel such if you are making an application that needs to change its user interface such as for a foreign language. -
I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
Attachments:
try2.txt 2 KB
read_array.vi 21 KBThe problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
Here are some of your choices to fix your problem.
1. Change the source file to a tab delimited file. Your VI will then run as is.
2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does. -
How to get the position of the stem in control valve using slider control in the front panel
I have created a calibration program for a control valve. Signal (4-20mA) is generated from labview using slider contorl which is given to the valve via DAQ(module 9265) and again the feedback signal from the valve is acquired using DAQ(module 9203).. . There is an input ISO/ISC(Increasing signal to open/ Increasing signal to close) in the front panel.
ISO would set the output to increase from (4-20)mA further opening the valve
ISC would set the output to increase from (4-20)mA further closing the valve
I have doubt, how can i get the position of a stemRavens Fan wrote:
If the position of the stem is being sent to the PC through a 4-20 mA signal into your DAQ 9203 module, then you just need to do an analog input read in order to get the signal.
When reading this post, that is what came to mind... So let's see if both RavensFan & I are trying to understand the same thing... Are you saying that the position of the stem is linear (or scaled) to the amount of current sent to it? Meaning a 4mA signal would move it a certain distance, and 10mA would move another given / known distance? Or are you saying that it is calibrated so that a 20mA signal for a certain duration (ms) would move it a given distance? So the scale would be time and not current unless a lookup table is used to adjust the time duration based on the current being drawn...
It's just that I am not familiar with solenoid / drive devices that related to current.. To voltage, yes. To time, yes.. To current, I'm simply saying that I am not familiar with that. Can you tell us more about this stem (mfg / model designation)? -
Missing controls on the front panel
Hello,
I am improving a GUI and I am having some problem with the Front Panel, I 've seen to be missing some controls:
see attachments, please.
LabVIEW Intermediate I level!
Solved!
Go to Solution.
Attachments:
MissDistancefrontpanel.jpg 751 KB
MissDistancefrontpanelnew.jpg 751 KBHello,
Excuse me they are actually indicators, however, they are already selected as shown, the problems is that if you take a look at the first pic, it shows all of them and in the second one not.
There are no errors on the VI that is why I think it should be something simple that I am not seeing, I am attaching a pic of the terminal that is supposed to be the one for all of them
LabVIEW Intermediate I level!
Attachments:
Spectrogram for MissDistance.JPG 73 KB -
I want to save an image of the front panel, (with data), after every VI run
When I try to copy the front panel (using a select all), and paist to paint, all the data in the graphs show up as they did after the last run, but the data in the charts dissapear. The chart itself is copied but the data is not. Any ideas on how to solve this?
Thanks,
Brian
Attachments:
Brians_graph_compilation2.vi 1363 KBThis Knowledgebase also has some information on programatically saving VI images
http://digital.ni.com/public.nsf/websearch/942DAA35C7B35616862565FE005F713F?OpenDocument
(KB 197BB7VJ if the link doesn't work).
Note that you don't have to put the code in the VI you are running in order to save it to a file, so you don't actually have to modify your VI. You can just run a seperate VI that uses the VI name from the first one (I've attached a VI which could either be run standalone or used as a SubVI, as well as an example of using it as a SubVI).
If you don't want to do it programatically you could just hit the print screen button on your keyboard and then paste it into paint and crop off the extra windows stuff.
Attachments:
CreateVIJPEG.vi 34 KB
ImageExample.vi 24 KB -
Analog output to the DAQ that changes when controls on the front panel change
I'm using the PCI-6024E, and trying to output an analog waveform that can change when one of the two controls on the front panel change. It outputs fine setting it to continuous output and using a simple while loop around the "Is Task Done" VI, but if I put the "Write" VI in the while loop, it doesn't output steadily. I then tried to use an event structure, so that I'd only have to write every time something on the front panel changes, but for some reason it was writing finite samples, even though I set the Timing VI to continuous. I looked around the NI site, and found an article about this with an example. I tried to change it around to use my waveform, but whenever I run it, I get a memory underflow error. Has anyone needed to do this before? Thanks in advance.
-- Josh MatloffHi Josh-
It looks like you forgot to post the code still, but I'll take a stab at the problem anyway. It sounds like you're looking for a way to update a continuous waveform at runtime.
You will need to stop the task in order to replace the write buffer information, but this will only be a small gap in operation. I have attached a modified LabVIEW shipping example that shows how to use value change events for any of the pertinent waveform parameters to either programmatically stop the task, replace the buffer, set timing and restart or to just pass the task information straight through. This will lead to continuous operation with no breaks at the output.
Please let us know if this clears up your questions.
Thanks-
Tom W
National Instruments
Attachments:
Cont Gen Voltage Wfm-Int Clk with Runtime Update.vi 134 KB
Maybe you are looking for
-
I probably know the answer (no sound) but humor me
I purchased a HP Pavillion a4316f (Windows 7) about 3 weeks ago. My sound worked fine for about a week. I bought a set of cheap speakers because, although I want sound, it doesn't have to be more than basic sound and I wanted to replace the 5 or so y
-
For the captioned issue, is it possible? We have successfully created linked server between 2 MS SQL server 2008 standard edition, but failed for the standard and express edition. Is there any trick to setup? Thanks.
-
Recomendations for third party paging software
We have tried to come up with a reliable way to send pages out from Lookout 6.0 without total success. Our application is an un-manned monitoring point. We want to do things like wait 10 or 20 minutes before paging on some alarms. Send other immediat
-
I installed Prokit 7 upgrade today and now I can't see any of my type 1 fonts when in Indesign or Photoshop. Not sure if the upgrade did it, but it seemed to coincide with the problem. I am a graphic artist spend all day everyday using these programs
-
Is there any hands on lab manual for system center 2010 sp1?
I want to learn CSMS. I just finished setting up the CSMS 2010 sp1 lab at home. I am looking for a lab manual to preform some common tasks. The reason I didn't setup 2012 lab was that I only had 3 server(64bit) and some 32 bit PC. Please tell me wha