Quantcast
Channel: LabVIEW topics
Viewing all 67303 articles
Browse latest View live

missing LabVIEW MathScript commands for control systems

$
0
0

I'm watching these:

They are about control system engineering with LabVIEW. 

 

I have LabVIEW 2015 with the MathScript RT and a test license for Control and Simulation library.  I also have a licensed MatLab installed, but it does not have the control system toolboxes.

 

They both use the "ss" command in MathScript.  I can't find it.  I get errors.  I search in help and it is not there.  It is not in the examples.  When I look at the Block diagram VI's from the scond video I have substantially fewer controls on mine.  I get PID, Fuzzy, and System Identification.  I don't have "SISO".

 

I have several guesses as to what is wrong:

  • it was removed from the MathScript RT module. 
  • I need a different toolkit or demo.
  • it has a new name that is non-intuitive.

Can you help me find the "ss" command so I can duplicate what they are doing?

 


Stop button during program wait in a state machine

$
0
0

Hi,

 

I am trying to create a state machine in order to control a conveyor, mixer, pump, and linear actuator. Each component runs in a sequential order all the time, so I figured that using a state machine would probably be the best program architecture.

 

The problem I am experiencing is that there are some states that require extra time before the next state begins. For instance, I need to be able to run the pump or the mixer for a different period of time. I understand that simply using the wait VI is not a good idea since it removes the ability to stop the program in the chance that something goes wrong (at least until the wait function completes execution). I tried using clock timing in order to force the program to wait for a specified time between states, but I ended up with nested while loops for each state that require separate stop buttons which ends up making the program convoluted (this is what is seen in the attached VI).

 

I looked on other threads that mentioned using notifiers or event structures, but since I am using a state machine, I am not sure how to use them with mutliple states.

 

If there is any way to force timing between states while maintaining stop button control and possibly the ability to run other code during the wait, please let me know. I have attached the VI I am working on, and the main focus is on the "Wait for hatch to open" state.

 

Thanks.

VIs disappear from windows taskbar when executing

$
0
0

Hi!

This is an odd one that is happening everywhere when running LabVIEW 2014 or 2015 on Windows 7.  When the VI Property -> Window Appearance -> Custom -> Customize  -> "Allow User to Minimize Window" box is unchecked the VI disappears from the taskbar when executing.  This is moderately annoying, does anyone know if there is a good reason for this undocumented behavior?  Other than keeping the box checked, is there another way to keep this from happening? I don't really feel like permuting through all possible combinations. :-)

Thanks!

 C

Array processing

$
0
0

How can I process some elements of an array in the first frame of sequential structure then process the rest of the elements in the next frame?

Labview Image Processing

$
0
0

I need to develope a program for extracting ROI of an image? How to do that?

Steps: Capture image from a system, Extract the region of interest,Select a row approximately in the middle of the membrane area of the image,Determine the intensities at all the points across the membrane, Plot a graph of the intensities across the row (the line profile). Please help me to do this. I am new in image processing. I am attaching front panel view of this.. I am not sure about whether this is correct or not. What is the block diagram for this system?

High score ranking system

$
0
0

Hi all,

I am currently working on a project in LabVIEW, we are developing a game and the project needs us to create a top ten high-score ranking system for the game. The questions I want to ask are:

1. How do I program such that when a new high score is achieved, it will replace an existing high score correctly (out of the top ten values) For example, if the highscores in the top ten are 10 to 1, a player plays the game and achieved a score of 7.5, the '7.5' will be saved into the top ten and '1' will be eliminated from the top ten 

2. Is there a way to show this 'high score system' on NI Dashboard?

Build installer problem - locate System Driver Set - May 2016

$
0
0

Hi guys,

I'm using LabVIEW 2016 (64-bit) and am trying to make an installer. During the setup, under Additional Installers, LabVIEW suggests only:

  • NI LabVIEW Runtime 2016 (64-bit)
  • NI-488.2 Runtime 15.5
  • NI-VISA Runtime 15.5

When I begin the build, I get a request to locate a number of other installers, which (so far as I know) I've located, but the one that I am being asked for now, I cannot find: "National Instruments System Driver Set - May 2016".

 

Installer problem.png

 

The only driver sets that I can find on ni.com end at April 2015 and that file is massive (over 4GB), which seems like overkill for what I'm trying to do.

 

Also, my software only makes use of the RS-232 port and no other hardware.

 

My questions are:

Where can I find this driver set?

Is there a way to more accurately see what driver the build is looking for?

 

Thanks,

Adrian

Problem with instrument drivers

$
0
0

Hi,

 

I'm having a problem with installing a driver, which was downloaded directly from manufacturers website. As suggested,  once the file was downloaded I extracted the folder toProgram Files\National Instruments\LabVIEW\instr.lib\ .After closing and restarting LabVIEW I should  be able to use the VI's from LabVIEW function palette from the following location: Instrument I/O» Instrument Drivers. It looks like the driver is not completely installed though and I can't use it. I am really sorry if this sounds a bit confusing, I'm just a beginner. Attached it the VI and drivers. Any help would be greatly appreciated. 


Sampling multiple digital channels, each channel with different clock

$
0
0

Hi,

I'm using NI PCIe-6536B to sample digital data, the data is a single bit (sigma-delta). I'm trying to sample multiple devices, all the devices has almost the same clock, but I can't synchronize the clocks. Is it possible to sample few channels, each channel with it's own clock? I've tried with change detection, but I can't creat two tasks with one device.

any help will be appriciated, 

Thnks,

Leo.

DAQ Troubles

$
0
0

Hello all. I've been given a labview program written by someone else, and I'm trying to edit it so that it can measure and display 7 temperature values using a DAQ and Instacal. I am new to Labview, but I have been following along with the program enough to have an idea of how it works. I'm attaching a picture of the code that isn't performing as I thought it would. Previously, the index array only used indexes 0,1, and 2. I figured that adding more indexes for the additional sensors would be a good first step. How do you configure a DAQ reading vi to read more channels? I can provide pictures of the block diagrams for all the vis if necessary. Thanks a ton in advance, I'm pretty overwhelmed by this all haha. 

finding idle time of computer using labview

$
0
0

Hello...

         My process is based on Labview. It is testing process based on vision. I dont want to ON the machine continouesly,  I planned to shut down the machine when my PC is idle condition. To acheive this, I want to know how to identify the system idle time using labview. So that, I can shut down the machine when process is not running.

Thank you.

Constant folding on FPGA targets (LVOOP-related)

$
0
0

I have adopted a lot of LVOOP code on my FPGA designs.  The ability to swap out communication channels for inter-loop communication this way is a great feature of LabVIEW FPGA.

 

I have some questions though.

 

I am currently assessing the ability to autobalance hetergenous parameter paths with different latencies in my code.  All LVOOP code which can return a value is derived from a class which exposes a "Read Latency" dynamic dispatch VI, the content of which is simply a constant wired to the output in the appropriate VI.  As the process of FPGA compiling actually removes the "dynamic dispatch" part and essentially inlines the VI call, this code can then be constant folded.  If I am careful, I can generate a matrix of delays required for my code to autoadapt to the latencies of the incoming parameter channels.  This seems to be working, but i have questions regarding the extent of constant folding going on.

 

The IDE doesn't seem to want to show me any constant folding at all.  But even if it did, I presume it wouldn't have the possibility to display the Dynamic Dispatch calls as beinginlined since this depends on the specific code being injected ar compile time (I could by accident introduce code which can't be folded).

 

If I were to go about traing to track down what has been optimised away, how would I go about it?  I have looked through the Xilinx log for hints regarding the code (by searching for the sub-VI ID string) but don't know what to do with the information.

 

How much of this constant folding is done by LabVIEW and how much is done by the Xilinx compiler?  Even knowing which area to focus my attention on would help a lot.

 

If the NI Compiler already does constant folding based on the parsing of dynamic dispatch code, should I expect any such code with only static inputs to then not appear in the Xilinx log at all?  Would the entire sub-VI be constant folded and never sent to the Xilinx compiler or is it up to the Xilinx compiler to detect and remove static computations?  Any help is appreciated.

USRP 2953R DC offset

$
0
0

HI Friends, 

I am working on USRP 2953r, Whenever I am using rx and tx the DC offset is getting in centre frequency as well as If signal provide other than centre frequency, image of input signal is creating on opposite side of spectrum. How to resolve this issue.

 

Thanks,

Lean way to execute shutdown code when the top level VI ends

$
0
0

Hi folks-

 

I'm a LV newbie with 30 years of embedded SW engineering experience.  I've been researching how to execute shutdown code when a top level VI ends.  I've found numerous examples but all of them are horrendously complicated.  My gut tells me that such a simple design pattern shouldn't be so compilicated.

 

My app is a high voltage control app that needs to disable all HV control points when the SW ends.  My VI code is running in a while loop with a stop button that causes loop exit.  I can easily accomplish my requirement programmatically with a flat sequence that executes after the main loop ends.  The flat sequence technique doesn't work when the user clicks on the abort button from the Front Panel tool bar nor does it work when the user clicks the application shutdown button (the X button) when running the app as an exe.

 

Can somebody please point me to a simple technique and example code that can show me a lean and elegant way to accomplish my task?  It doesn't have to be an obvious solution (for example a watchdog induced shutdown seems simple enough).

 

Thanks - John Speth

Labview 2012 update on W7 Professional vs W7 Enterprise having problems

$
0
0

Hi all

 

I've recently had to reinstall W7 Pro on a work laptop and am going through the reinstall process for LV2012 and up.  This has worked perfectly fine on some desktops that have W7 Enterprise x64 but when I try and apply the updates for LV2012 patch f3 or SP1 patch f5, or go straight to LV2016 it keeps failing on the validation of the download.  

 

Is LV expecting some other Windows software/updates to be there before it will install?  It had previously updated to LV2015 quite happily

 

Showing as W7 Pro Version 6.1.7601.17514 SP1

 

Any insight appreciated.

 

Andy


Triggering a running event log

$
0
0

I am undergoing an initiation-by-fire trying to get some new programing up before I can get through all the training, so this may be an easy answer.  I want a text log of the events triggered, as this VI will run for many hours and not have someone constantly observing it.  An example would be:

 

10:00:00 Power On

10:05:00 Valve A to Position 2

10:10:00 TCD voltage over 0.5 V, triggered fill routine

 

The big difference I see between the examples I've found and my code is that I want to call from many different points along what will be a very large bit of code, and most of these shift-register loops are all able to be contained inside the loop.  I am trying to use a value change trigger, but can't figure out how to get the While loop to trigger.  The portion of the code I'm working on is attatched- am I close?  Going about it totally wrong?  Thanks in advance for any guidance!

Case structure with string selector "N\A"

$
0
0

I have a case structure which is configured with a String selector.  When I try to add the case "N\A" LabVIEW changes it to "N\n".  I tried adding "N\a" and LabVIEW replaces it with "Na".

 

If I use selector "N\\A" it catches N\A, so it seems like it requires an escape character.  It seems like the display style of the case structure isn't what I'm expecting, but I don't see a way to explicitly set it, like I can with an integer selector.

 

Assuming I'm on the right track with the display style, I still am not reconciling why "N\A" gets replaced with "N\n"    A regular string control set to \ Display will also convert "\A" to "\n".  Can someone explain this to me or point me to the documentation?

Add characters to string control without complete update of control

$
0
0

Hi

 

I want to have a string control where text has different colors (like DockLight fx).

What I CAN do now, is writing a string with multipe lines to a string control.

Then format every line in a different color.

 

But then it fails, when I want to add a new text, with a new color.

When I update the string control, all former formatting is overwritten, and all lines has the same color.

 

 

I want to be able to:

Add string1 with blue color.

Add string2 with green color

Add string3 with red color

etc.

 

Is this possible?

 

Thanks in advance!

Labview Image processing

$
0
0

Hi,.

I need to extract region of interest and intensity plot from an image. I am attaching my algorithm and labview program below. Please help me to do that...

Terminating an active Debug Application connection?

$
0
0

Hi all,

 

I am testing the Debug Application feature with a cRIO 9065 over a slightly flaky 4G link. When attempting to connect a remote debug session, the Debug Applcation of Shared Library window became unresponsive (everything was greyed out) and I could not close it. After several minutes of waiting, I terminated the LabVIEW.exe process and then tried to establish another debug connection. This time I keep getting the error message:

 

Debug connection refused by specified server: Only one debug connection is allowed per application or shared library

 

So presumably the initial debug attempt connected and left a connection active, though I could not use it. How can I remotely terminate an existing debug connection / session without rebooting the cRIO?

 

Edit: After waiting a period of time I managed to establish a new debug connection. After closing the session (right-click -> Remote Debugging -> Quit Debug Session), then starting a new session I get the same error message above. Any ideas?

Viewing all 67303 articles
Browse latest View live