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

Application Builder: EXE and Installer build always prompts for subVI that is in data support folder

$
0
0

I have a few different program installer builds installed on different computers around the company. 

 

Some programs work just fine and some need to have you point to just one missing subVI (mainy subVI programs in main VI). Often the windows explorer window pops up in the correct directory and the file is right in front of you to select. Sometimes it does not and the user has to hunt to the install directory/data folder to find it. 

 

Can anyone explain why only 1 of 10+ of my subVI does this?


Problem to run Host.exe with run as startup RT

$
0
0

Hello, I have a project completely developed and tested in the labview, using a cRIO 9036, basicly my project consist in FPGA.vi, RT.vi and a Host.vi. Now i'm trying to create a executable to put this software runing in a Widows plataform without labview instaled.

 

I created the Host.exe pretty easy, and tested runing the RT.vi in the labview and worked, but when i build a RT.rtexe and put to run as startup and try to view the data in my controler by the Host.exe nothing happens, the data doesn't appear in my Host.exe

 

I'm using an AMC comunication and network shared variables, to send the data from RT to Host.

Somebody already saw something like that or know a solution for this problem?

i can not find the "CreateWriteCluster.vi" as i upgraded into Labview 2014

$
0
0

for some reason, I can not locate this vi as I upgraded my labview into 2014, "CreateWriteCluster" is this a labview version or another issue and how could I find it or copy it if possible?

 

thanks

Shady

Tektronix MSO5X Scope

$
0
0

Hey,

I have a Tektronix MSO5X Series, that I want to autoscale the vertical axis. Now, I'm using autoset -> read the vartical gain-> undo autoset -> set the vetical gain, but its a long proccess.

thanks, Erez

Building dependent PPLs across multiple targets (Windows, cRIO)

$
0
0

I started with a somewhat rambling post here: Building dependent PPLs on cRIO. That post was in an Actor Framework on cRIO specific subforum because it began with compiling AF, but I think my questions are now more general, so I'm posting here.

 

I'm going to use bullet points to try and break up a set of observations/facts/hopes/opinions that might otherwise be a little difficult to read.

 

  • I'm building a set of PPLs with dependencies in a single direction.
  • Some of these PPLs, in addition to being used on Windows (currently in the development environment, eventually planning to build an exe), must be deployed to cRIO.
  • cRIO PPLs must be built separately from the same library as a PPL on Windows (different OS, different target)
  • cRIO PPLs must depend on their own cRIO PPLs (i.e. if B.lvlib{,p} depends on A.lvlibp, the RT version of B must depend on the RT version of A. The Windows version of B depends on the Windows version of A)
  • As a result, when I need a library on both RT and Windows, all of the nested dependencies must be built for each platform
  • I want to only have a single set of source code for any libraries on both platforms (libraries on both platforms are by definition not platform specific)
  • Some libraries (Actor Framework principally) are in <vi.lib>. I don't want to modify the contents of vi.lib (at least, if I make modifications, they should be reversed immediately after building)
  • Copying the sources out of vi.lib seems to wreak havoc. I'm not sure if the project providers and AF_Debug.lvlib are adding to my misery here with cross-linking/conflicts. It doesn't seem to be a practical solution to that specific problem

Some questions:

  1. In the A, B example above, B.lvlib in B.lvproj on Win depends on A.lvlibp (Win). B-RT.lvproj contains the same B.lvlib, which depends on A.lvlibp (RT version). This essentially leads to two projects containing the same library, and loading from an unexpected path when changing project. Alternatively, I can switch the version of lvlibp at the expected path (but so far, only manually, before loading the project). This seems to quite frequently break my RT project and then cause LabVIEW (2017, 32-bit) to crash when opening the RT projects. The Windows projects appear to be fine. How should this be handled (the dependency on different versions of the same lvlibp, one per platform, not the crashing)
  2. If I instead have a single project with two targets and drag the library (B) from target to target to build it, then the dependency (A) cannot be loaded on the second platform (wrong version). If I recall correctly, switching the file in the specific path then right clicking and choosing load solves this, but isn't ideal (it could I suppose be scripted). Is this a better(?) method?
  3. DerrickB has posted a similar question at this link: Building PPLs for multiple platforms. Could someone answer that? I suspect it would help me lots! Smiley Wink
  4. I had thought I'd seen some recent build tools being promoted at e.g. NIWeek 2018. However, BLT (Studio Bods) and Component Builder (Chris Cilino) both appear to not build/target PPLs (or that much in the way of cross-platform building. Perhaps I'm missing something). Are there other tools I should be looking towards?

Any advice is much appreciated.

Labview starter help

$
0
0

Guys I just started using Labview, I'm working on a tutorial that has 2 parts:

 

part 1: make 2 input controls( variable 1 and 2) and give them 4 operations (addition, subtraction, multiplication, and division) and a stop button

 

par 2: put all these in a while loop so that the execution stops when the stop button is pressed or if the variable 2 is 0, as division by 0 makes no sense. The hint given was to use the "equal to 0?" and "OR" functions

 

So I have worked out part 1 completely, and on part 2 I made a while loop and linked the "stop" button to the loop end function to stop the executions when the stop button is pressed. But I'm not sure how to work out how to stop the loop if variable 2 is 0, I literally started using LabVIEW for the first time, so any help will be greatly appreciated. 

Call Library Function Node get function name

$
0
0

Is there a way to get a selected Function Name as string from Call Library Function Node? Maybe not exactly string.

For exmple, there is a function in .dll file like "My_test_func()", I select it in Call Library Function Node Function Name list. So I want to get this "My_test_func" text from node. Without modifying .dll file.

Standart CLFNode has path out, error out and result argument. But maybe there is a way to make one more like "function name"?

LabVIEW crashes silently when running (part of) my application

$
0
0

My crash dump is available, but not allowed to be attached, any solutions for how to do this? The dump seems to indicate there's a NUL-pointer dereference, which is causing LabVIEW to crash without even showing its error reporting window.

 

No idea where to begin; this happened after adding a single element to a 20-element typedef cluster within another typedef cluster which is the private data for a class. This all seems to be kosher.

 

Thoughts?


Get trigger signal form waveform with multiple channels

$
0
0

Hey to everyone.

 

I´m quite new in using LabVIEW.

I want to get Data from a Ni9205. I want to use 3 different Input Signals. Two Signals will be recorded. The third Signal is to detect a triger Signal. If the thrid value is >5, the Output file shoud be divided and a new file should be created. 

 

At the current state the vi is looking like this:

vi1610.png

My question: How can i define which channel will be used for the trigger-subVi?

 

Thanks!

Write and Read VIs need to work at 2 locations

$
0
0

I have attached a project. There are 3 VIs, 2 VIs under the class Test Class, i.e Write and Read. A numeric control in write and an numeric indicator in read. Then these sub vis are then copied into the main project, which is outside the class where I wired a numeric control to the write vi and numeric indicator from the read vi. Now I run the program continuously using while loop. Now when I enter a value in write I need the read to show the values. But nothing is happen. I am doing this as a test to another project where I enter values in one point and I get the values at another point during a special case. For that to work, I need to make this work first. Also please I donot want to use functional global variables. It has to be object oriented programming and class because I am trying to understand oop. I have done a some reading and I thought i know how oop works and now I know i dont know anything. Kindly do help me. Thanks in advance. 

Questions in labview

$
0
0

I have some questions in labview could you please help me 

1- create new VI and write a loop AAV application which constantly monitors the voltage present on an analogue input channel of a my daq??

 

 Thanks 

 

 

Change font size in control dynamically if length of displayed data causes wrapping or overrun

$
0
0

I was wondering if anyone has come up with a good method to check if a control's value doesn't fit in the control's on-screen space (when displayed).

 

For example, I may have a string control that is sized such that it will just about fit 6 characters at 36pt. Most of the possible values to display will be 6 characters or shorter, but a few may be longer - causing the text to either wrap onto a new line (and not be visible) or run out of the edge of the control (and be illegible). As I have no room to make the control bigger, I need to change the font size whenever this occurs.

 

Lazy me knows I can just check if the string is longer than 6 characters, and set the font size smaller if it is. It'd be better to find a more generic solution (as this situation can occur with any number of characters being the limit). Also, as most fonts have varying widths of character, it'd be better if there were a way to directly check if the string's value overruns or causes wrapping.

 

I can't seem to find any properties that could help me, so I'd appreciate any suggestions!

New at LabVIEW, please help

$
0
0

So I started working with this program but there is a problem.
This program is used for changing the direction of the servo motor. When the signal value doesn't exceed the treshold value then the Case structure value is FALSE. 
Next, when signal exceed treshold, TRUE value of the case structure  negates the initial false value of the memory block and we get true value on the output of the case structure. This value is sent to Select function and we send value 1 to motor direction control. So far so good 

But, when we have second iteration where true value from the output of the case structure is input value of the memory block, that's where the problem begins. For the TRUE case, memory block value, which is true, is being negated so we get false on the output of the case selector even though we have true on the input of the case selector.  
I really hope you can understand me and i would really appreciate your help. 

I will also attach diagram 1 of the servo direction, where you can clearly see that the direction is constantly changing and diagram 2 where is shown what the diagram should look like. 

Thank you for all your help 

How to convert high freq to low freq

$
0
0

Hello

How to convert high freq to low freq example ku band to set of box for television 

CRC-16 Calculator

$
0
0

Hi all,

 

I am working on automating the primary testing of our controllers using Labview, part of the automation requires communicating with the controller using a message with a CRC16 generated checksum as verification. I can monitor the messages being sent and received using an in house designed monitoring tool. Using this tool I can see the messages being sent with the correct checksum as verification.

 

I have created a CRC16 program to calculate the checksum from an array of unsigned 8 bit integers(converted from HEX), the program generates the correct checksum value in most cases, however it can never generate the correct checksum from input arrays containing one or more 0's.

 

I was wondering if anyone could offer any solutions to fix this, or if any would had any ideas as to why the calculator isn't working correctly when a 0 is used in the input array?

 

 


Interface to host PC

$
0
0

Hello.

I have a task to regulate 6 digital outputs using cRIO-9024 and certain c-series module and regulation is defined by some hardcore math...

Since I come from C/C++ and python environments I would like to make it easy on myself and write the code for the real time processor completely in C.

There is a thread that explains how to use C-api generator and vxworks tool-chain which I utilized and it works great. (thread) Now I can use C to program real time processor and control FPGA inputs and outputs using vxworks console.

Now I would like to implement some indicators and controls on the front panel that will run on the host PC.

My question is: is there an API that can be called to read from and write to the front panel that runs on host PC? Basically what I'm asking is: is there something called "host pc C-api generator" like there is FPGA C-api generator?

My goal is to completely avoid labview for programming real time processor.

One axis from ADXL345

$
0
0

Hello, 

I am completely new to using LabVIEW and would like to know how to programme a servomotor to move in the opposite direction that my ADXL345 accelerometer y-direction measures.

I want the servomotor to only do this when the acceleration is over a certain speed.

Can anybody help me with this please?

Searching for a overview of ini file settings

$
0
0

Am looking for a list of all ini file parameter settings for my executable. For example, to set the window size

How to extract specific rows from an array

$
0
0

Hello!

 
I’m trying to make a programme which, given a 2-dimension array, returns a 2- dimension array which contains only the rows having “1” as the first value.
 Schermata 2018-10-16 alle 18.09.13.pngSchermata 2018-10-16 alle 18.09.18.png
The problem is that I can’t tell the case structure to “do nothing” in case he encounters a “0”, so he gives me this output:
 Schermata 2018-10-16 alle 18.09.25.png
How can I write that in order not to have those “0; 0” lines on the A2? 
 
Alternatively, could I write it so that it splits the A1 into two arrays: A2 (only made up of rows starting with “0” ) and A2 (only with rows starting with “1”)?
 
Thank you for your attention
 
Francesco
 

XNET Database Dropdown does nothing in EXE version of VI.

$
0
0

I made a VI to record CAN data.  It ran fine in the full development software.  I wanted to share the software with someone so I created an exe.  It doesn't seem to be running properly when run as an exe.  I first selected the correct COM port, and I've updated the device firmware in MAX.  I made sure that XNET was installed, first run-time, then we tried the full XNET, and also that the database file was transferred to their machine as well.  I also updated MAX.  When I try to change database files, even though it was built with the correct one as default, none of the options take me anywhere.  Nothing happens when I click on them, and when I run the exe, I see no data.  It runs but it's not seeing what it should.  I checked it in bus monitor and that worked fine.

xnet drop down.jpg

Viewing all 67177 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>