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

Frontpanel element design

$
0
0

Hey guys,

 

I use LabVIEW 2017 and I wanted to pimp up my frontpanel. I dont want to use the "silver", "classic" or "system" designs. I mainly use vertical slider elements and a few other standard input elements for numbers.

 

I remember once, that I downloaded some fancy element layouts from VIPM. But I cant remember the name and "google" was not my friend so far.

 

Does someone of you know some "libraries", or whatever the design packages are called, I could try?

 

Thank you guys.


How to get the option of create Labview VI in NI vision assistance

$
0
0

Hi ,

 

 I am using lab view Ni vision assistance I made one algorithm for the detection of the particle, but now I wanted to create Lab view VI from the Ni Vision assistance , but I am not getting option of create labview VI, so if any one knows the solution or alternative way to create the same then just let me know.

 

According to the manual it should be in tools (option)

 

 

Error 1003 in Actor.vi inside EXE

$
0
0

I'm developing a project that uses the Actor Framework. I have already made it to build an EXE for it, but I've been working for the last month without building new executables.

 

Recently, after building a new version of the executable and trying to run it, I'm receiving the error 1003 (VI not executable) from the Actor.vi in before calling it asynchronously in the Launch Root Actor mehod. I tried to build it with debugging enabled and with "Wait for debugger on lauch" set to true. As I tried to debug the Actor.vi, I noticed that several overrides of the Actor Core.vi (in case, the actors I developed) were broken.

 

In their block diagrams, I could see that these broken Actor Cores couldn't find some Send <Message>.vi. I tried several ways of forcing the App Builder to include these VIs, such as

  • Inserting the message classes in the "Always included" list of source files;
  • Explicitly defining the destination of the respective message classes and VIs;
  • Disabling the options to remove unused members of project libraries.

None of these helped. I have even tried to look up the contents of the <ExecName>.exe folder that the AppBuilder creates before zipping it and packing to the .exe file, and these message classes were actually there!

I also found this strange since the Application Builder should include these classes implicitly, once they're called statically in my block diagrams.

 

Any clue on what can cause this problem?

 

Thanks!

Communication série : optimiser la lecture

Applied Matlab Filter

$
0
0

Good afternoon everyone.
I do not have much experience with Labview and I'm having trouble converting a code I developed into Matlab in Labview. The Matlab code lines are the following:

 

order = 1;
filtCutOff = 0.6;
[b, a] = butter(order, (2*filtCutOff)/(1/samplePeriod), 'high');
FiltSignal = filtfilt(b, a, Signal);

 

I don't know the type of filters that I must apply.
Can somebody help me

Thanks since now.

Greetings.

MSSQL table valued expressions & custom types

Sending Command to Machine

$
0
0

Hi,

So I am awfully new to the programming world and I need some help.

I am trying to write a LabVIEW VI to send commands to a machine via USB to Serial (SR232)  port.

After researching my machine and LabVIEW, I found information on using VISA

 

Right now I have Visa configure serial port to Visa Write connected to Visa Read and then the VIsa close.

My commands are in ASCII.

Any recommendations or spots to get more information on beginning coding, please let me know!

Thanks!

Continuously display data but only save discretely

$
0
0

I've been struggling to cleanly and correctly accomplish displaying continuous data from a DAQmx read but only saving based on a trigger event (discrete).  Instead of spending a bunch of time building a program that will likely be wrong, i thought i'd start with asking for example code to at least help me with the planning and setup of the code.


Hardware is (8) channel AI and (2) channels of DIO, meaning there are (2) discrete trigger events.  For the first event i want to log AI channels 0-3, for the second event i want to save AI channel 4-7.


What is the right approach for this problem?


Append Array Box to be hidden and show all array elements in one box

$
0
0

As the title says, I would like to remove the small box that shows each element in my array and instead just be shown in my indicator box

for ease of use. It should read each input "measurement" string and push the next line of text up while showing the new input string.

 

image.png

 

As seen in the picture, I am currently showing the the "1" box in my array in which I would like to show all elements as a list.

 image.png

Above is my current design for this log window. I believe it may be a very simple option I am not seeing that will hide the small box and just

push everything in my indicator box as a list.

Listen for IP address from wago plc

$
0
0

First off I am new to the forms, so hello.

Also, I am new to coding in Labview and Wago plcs.

 

What I am trying to do is listen when the plc is connected and receive its IP address so that i can start transmitting data via modbus.

 

I am able to communicate with the plc if I have the IP address.

 But, I am not sure what the Listen function are looking for as so that is could program the Wago to send the appropriate signal.

 

Thanks 

Smooth voltage output jumps

$
0
0

As illustrated in the attached image, my program outputs a set of voltage values over and over. The issue is when starting a next loop, it has to do a large jump from last value to a first value, which causes mechanical vibrations from an instrument.  Is there any way to avoid/smooth that?

 

IMG_0842.JPG

Fail value using indicators

$
0
0

HI,

I am using several indicators binding to shared variables from differents sites and i need to know how to show a fail value (like "-5" for example) in case the variable is not available. 

 

For my application (monitoring system) is a problem to show the last value or zero value because it is a valid value.

 

It is clear I can do the programming to change the value but I think LV has a configuration option in somewhere.

Thansks !

DAQmx multiple reads of force sensor in same case structure

$
0
0

Hi, i am currently trying to retrieve data from 4 force cells from a DAQmx. I have the code set up, and when i run the first case all works right, but when I go to the next, and sometimes on startup it tosses an error. "DAQmx Start Task.vi:7220007<append> <B>Task Name: </B>_unnamedTask<DC>" and -50103 is the code. what settings will i kneed to change in order to get the reading to work? attached is a simplified version of what i am trying to do. The vi is written in 2017, I can convert if requested.

Silent Install of Patch asks for permission to extract archive

$
0
0

I am trying to install the 2017 patch silently.

 

I use the command:

LV2017_f2Patch-64.exe /q /r /AcceptLicenses yes

 

Is there any way inhibit this message? I want a silent install.

bad pop up.PNG

 

 

cRIO not loading a usb3 camera properly

$
0
0

I am trying to connect an IDS USB 3 uEye camera to a cRIO 9035's usb port, but it is not loading correctly. I am using LabVIEW 2018 (32-bit), I've recently updated as you can see in the picture below I have been installing a lot of things. Here is what the software looks like, and how the camera loads as a NI-IMAQ device when plugged into the host computer:Ni max camera plugged into the computer.png

 

And here is what it looks like when the camera is plugged directly into the cRIO:

Ni max camera plugged into the cRIO.png

As you can see it isn't loading correctly. I've been troubleshooting this for a day and a half and I still don't know what's causing the problem.

 

 

Some more information about the camera:Camera information.png

 

 

 

I'm more than happy to give information if needed, but I think that might be enough for someone to notice what I am doing wrong


[FPGA] Bitfile must be recompiled every time VI front panel is opened

$
0
0

We have developed a project that runs unique top level VIs in interactive mode on 3 different FPGA targets (two 7852 and one 7813). Once compiled, the VIs run smoothly, however closing the front panels then requires that the bitfiles be recompiled before the VIs can be run again in interactive mode. A variety of subVIs are used by all three top level VIs and they seem to be the root of the issue as the VIs break when opened together and the errosr are of the "VI edited in other application instance" type and are corrected by doing a synchronization, which then allows the bitfiles to be compiled.

 

In the project there are two PXI crates, PegFPGA1 & PegFPGA2. The crate relevant to this issue is PegFPGA1, PegFPGA2 should be ignored as it was only included in the project recently to verify its setup. The PegFPGA1 crate holds 3 FPGAs that each run their own version of a main, top-level VI called "Splitter_Combiner_Main_FPGA#.vi", found by expanding PegFPGA1, expanding an FPGA target and then the Splitter-Combiner System folder. The 3 Main VIs are to be deployed and run simultaneously in "interactive mode" to report current states to the user and allow users to re-configure certain settings. All other VIs are either subVIs called by the Main VIs or are VIs used for other testing/debugging/simulation purposes. The VI with the compile issue referenced in the post subject field is the top-level "Splitter_Combiner_Main_FPGA#.vi".
 
Yesterday I tried compiling and running the FPGA1 Main VI alone. I was able to open and close not only the front panel, but also the project without needing to recompile. I then compiled and ran FPGA2s Main VI with that of FPGA1 and again I'm able to open and close the project and LV without the need to recompile these two VIs. The problems begin when I open FPGA3s VI, which breaks the FPGA1 and FPGA2 VIs.
 
Opening FPGA1 first, shows the VI in a ready to run state (good run arrow, regardless of compile state). Opening FPGA2 does not change the state of FPGA1 and both VIs can be opened together in a ready to run state. Now opening FPGA3 results in both FPGA1 and FPGA2 VIs breaking, run arrows now broken with errors of the "VI edited in other application instance" type, while FPGA3 shows a ready to run state. It appears something about the way FPGA3 is implemented is causing the subVIs to come into conflict and require a re-synchronization before compiling. If you then compile all three together, they can be run, but require recompile if you close the VIs.
 
Some guidance I have received regarding this issue is that the subVIs break when FPGA3 is opened because it is a different target type and to create unique subVIs for that target. Doing so would require a non-trivial amount of work because of the extensive use of subVIs and would eliminate the whole benefit of subVIs. Before embarking on that path I thought it wise to seek input from the collective experience of the forums in the hopes of finding an alternative solution.
 
If you've gotten this far thanks for reading my somewhat verbose post and thanks in advance for any assistance offered.
 
-- Chris

Passing .Net reference through different VIs

$
0
0

Hi,

I am trying to build a project that communicates with a device, so I have a vi setting the port, another connecting, other getting the data and etc. And they are all based on a dll. But I thought that passing .net references between these vis was enough to make it work, so in the "invoke node" I wanted, I created an indicator (.net), set as an output and just dragged this reference to others vis. But that doesnt seem to work. How can I make it?

 

I tried this: https://forums.ni.com/t5/LabVIEW/Passing-net-reference-between-different-vi-or-sub-vi-files/td-p/3149285

 

But it didnt work too.

 

Thank you in advance!

How to use EncloseSelection2? How to programmatically enclose selected objects with case structure?

$
0
0

Hi,

I am trying to create a quick drop for enclosing selected block diagram objects with error case structure. I was trying to use Move Selected Objects Method at first without any success (the method was returning error code 1 no natter I tried). Then I found Enclose Selection 2 Method which is exactly what I need (based on the help). But it doesn't work... In the attachment you can find my test VIs. 

EncloseSelection2.png

Can anyone help me with this?

Moving Project from daq to myrio

$
0
0

Hello everyone, I have a project to control a robot arm, I have already done a labview program to control it using daq 6221, the project has many VIs as shown in the screenshot.
Now i am changing the controll to myrio to work on fpga

My question is can i do that whole program on the Fpga ?.. I tried to do that but there was a problem that the fpga can't run more than one VI at once, I had to stop one to run the other

Hint: the robot needs to run all VIs Together parallel ,can't run one without the other

Executable C++ doesn't work (fr and English)

$
0
0

hi i created a vi that execute a C++ code. the problem is that my c++ create a txt and it works when execute it on xcode, but when i call it from labview it doesn't create my txt

do u have any solution ?

 

salut j'ai créé un vi qui exécute du C++. le probleme c que celui ci marche quand je l'execute seul et cree le txt que je lui demande de creer mais lorsque je l'appelle sur labview il ne crée pas de txt.

avez vous une solution svp c urgent?

Viewing all 66885 articles
Browse latest View live