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

Post-install Batch File return error when installing NI Package

$
0
0

I've built a package which calls a batch file after package installation. No error occurs when building the package. However, when I tried to install the package using NIPM, an error shows up.

My batch file does nothing but only print "Hello World" on the command line, and the batch file can run properly if I double click it to run. Thus I think the error may occur because the VIPM can't locate cmd.exe correctly?

Package Issue.png

 

P.S. I've also tried to run EXE using Post-Install, and it works fine.


Find and Replace Extension for SuiteCRM

$
0
0

#SuiteCRM #extension #plugin #addon #Find #Replace

Ever needed to change a term or name across one or more records? It is a painful process that requires going into each record, editing, finding each field that may have that value, replacing, saving, going to the next record, etc.
With Find and Replace it can be done in seconds all from the list view. Select which records to edit then run the Find and Replace tool.

Benefits :

1. Find and Replace extension helps users to find specific word or value of particular field and replace it module wise.
2. Find and Replace extension also helps users to find and replace to multiple records in list module listing screen.

Explore more at https://lnkd.in/fyqsxiz 

Watch demo at https://lnkd.in/f9GQskB

You can buy from SuiteCRM Store: https://bit.ly/2x1GUB3

See you in my next post with an another amazing SuiteCRM extension !!

Extract thin curve from a gross curve

$
0
0

Hello there, I am using Vision Acquisition Software to get images from a camera. The images have a gross curve and I wanto to extract the thin curve (in the middle of the gross curve) and then save the pixels of this thin curve in a file. What algorith could I use to get the thin curve?

Continuous graphing of two (or more) signals from the same DAQ

$
0
0

Hi, 

I am trying to set up a universal data acquisition for multiple sensors: resistance, voltage, currents, etc. 

My plan was to select the amount and type of sensor from the front panel. 

But my problem is that it only read from one of the sensors.

I attach my program where it is set up to two different sensors. 

Does anyone know what I am doing wrong?

 

Is there a template/example of a similair program such as Flexlogger for LabVIEW?

Controlling a servo by a switch

$
0
0

Hello

I'm new on labview,  I want to control servo by a switch ( if it's 1 it turns 90 ° , else it stays 0°), I'm using arduino with linx,  please can anyone help me , 

resizing an image to a graph

$
0
0

Hello

 

I'm reading a jpeg image, converting it to an unflatten pixmap and plotting it to an intensity graph. Is there a way to resize the image to size of the intensity graph? I have seen similar options of resizing to a container on the front panel by using the 'zoom factor' in property node. Wondering if there is an easier way to do the same for intensity graph? 

Displaying a Message without pausing the program

$
0
0

Hi,

 

I'm currently trying to display a message whenever a certain parameter is reached in my code, i.e the current gets to a certain point. I tried to use "Display Message to User" but it pauses the code until I click OK. Is there any other way to go about this?

 

Thanks in advance.

How to obtain which element changed in a clusters using events?

$
0
0

Hi, I have a program where I need to check which element in a cluster has changed. The main cluster contains sub-clusters with multiple different data types. Right now I have a value change event for each element in the cluster, but this is very messy and prone to error with many elements. 

 

Since I have sub-clusters, I cannot compare Old and New values as arrays since the array will contain the sub-clusters.

 

I have attached a minimum example of my issue. Based on which element has happened, a different case should be executed. How can I better do this if the amount of elements are too much?


Xnode is not executable error

$
0
0

hello

i have attached a file and screenshot,i am facing some error regarding "Xnode is not executable".please help me out to solve this problem.

LV 2019 - Choose implementation dialog hangs on recursive click-through

$
0
0

Hi all,

 

Just came across something that looks lie a bug in the "Choose implementation" dialog with block diagram preview.

The figure below describes the steps.

Double clicking a VI that isn't equal to the dynamic dispatch VI will open it's front panel.

Double clicking a VI that is equal - in this case "parse data" - the dialog hangs, the OK and cancel buttons don't work anymore. It seems it's trying to open another "Choose implementation" dialog.

 

This might also occur choose a different dynamic dispatch VI that requires the "Choose implementation" dialog.

 

Another interesting observation was that I was able to change code in the preview and it was preserved after clicking OK.

 

Choose implementation hangs on recursive click-through.png

DAQ assistant in State Machine wont cycle digital voltage generation

$
0
0

Hi all,

 

Been working on this for a couple of days and i am kind of pulling my hair out at this stage. I am trying to generate a 24v digital voltage pulse to open and close a 3/2 solenoid valve. My hardware is a NI 9472 module in a single compact daq 9171 chasis and i am using labview 2016.

 

I have no problem using case structure, as expected the boolean sends true/false to a local variant of the data input on the DAQ assistant and i read 24v on my multi meter. This is all good until i try using a state machine to cycle through on and off with a set time delay it just seems to stick on or off depending on if i start with True or False. The annoying thing is the data indicator flashes as it should and when i probe the wire to the daq assistant it shows it changing from True to False.

 

I have tried a flat sequence but has the same results. Hoping its something simple that someone will be able to spot.

 

Thanks in advance!

 

 

 

 

Knowing the pixel size of a graph

$
0
0

Hi everyone,

I have made a graph (file named Capture) on which the green circle and rectangle are moving together horizontally.

The position of everything are defined with the scale except the position of the rectangle which is defined with the pixel position (0,0 is the upper left corner).

 

So when I make the graph bigger (file named Capture2), everything moves correctly with it expect the rectangle as it is defined with the pixels.

So I would like to know if it is possible to know the size of the graph in pixels. This way I can make the rectangle move and change his size correctly.

 

Thank you for your help,

Lea

 

Labview no reconoce la camara usb del ps3

$
0
0

Hola, estoy tratando de elaborar un proyecto con el reconocimiento de colores y patrones en lbview y me funciona de maravilla con la camara integrada de mi laptop, pero para mayor comodidad quise utilizar una camara por USB, yo tengo la camara de mi PS3 (Que es USB) mi laptop lo reconoce, el NI MAX tambien lo hace, sin embargo al momento de utilizarla en labview me da un error. adjuntare imagenes para que tengan una idea y espero me puedan ayudar.

 En la imagen 1 se ve que reconoce la camara del ps3

en la imagen 2 el modulo en el cual me da problema y el codigo del error

en la imagen 3 se muestra que solo reconoce la "cam0" que es la integrada de la laptop y no reconoce la "cam1" que es la de usb

agradezco su ayuda de antemano.

Labview no reconoce la camara usb del ps3

How can I simultaneously put out two different signals (waveforms: audio left and audio right) with myDAQ ?

$
0
0

Hey,

 

I am generating two different signals. One for AudioOutput left and the other one for AudioOutput right. How can I simultaneously do that on myDAQ? I tried to create two different tasks, but you can only have one task running, while the other one got cleared out already. The signals got generated by basic_function_generator.vi

My error description is basically case 3 here: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8kmSAC&l=de-AT

 

I posted my .vi in attachment, but it's mot finished. I just wanted to try, if I can put out two signals at the same time.

 

Can someone give me a tip on this please, how I can release that?

 


Labview no reconoce la camara usb del ps3

Unable to Open a Remote Panel of an Asynchronously Running Clone VI residing in a Packed-Project-Library in a built Executable

$
0
0

The title suggests I am really up against some edge-case usage but anyway...

When making use of LabVIEW 2018 (64-bit) built in functionality to open Remote Panels (not remote-debugging) I appear to be unable to open a VI's front panel of a built-executable if that VI resides in a packed project library. The VI in question is an asynchronously running clone VI and I have not tested a typical top-level VI. I also have not tested if this also occurs when the application is running in the LabVIEW Development Environment. I have tested if this still works if the packed libary is debuggable or not - it happens in both cases.

 

I have attached my example code which consists of two projects: Main which is the "main" project and Clone-Library-Builder which is purely used to produce a packed-project-library.

 

The Main project can be used to build the Test-App.exe executable. When the executable is run it does the following:

  1. Opens a dialog to allow the application's webserver port to be set so it doesn't conflict with the port used by the LabVIEW Development Environment.
  2. Generates a webserver configuration file which it loads using a LV Application invoke node.
  3. Launches two clone VIs - one from the packed project library and one from a normal project library. Each VI indicates its clone name which is required when connecting to it.

With the Test-App executable running I use my LabVIEW Development Environment to do the following:

  1. Open the "Connect to Remote Panel" using Operate>>Connect to Remote Panel...
  2. Set the Server Address to "localhost"
  3. Set the port to that which I specified (also displayed on each clone VI)
  4. Set the VI Name to that specified on the clone VI
  5. Click on Connect

Error.png

This functions as expected for the non-packed-project VI but if I attempt to connect to the packed-project version of the VI I encounter the following error and the LabVIEW Development Environment crashes!

Error 2.png

 

I would be interested to know if anyone else has tried something similar and do they also encounter any issues?

 

I was considering developing an application where remote systems are running a remote-app-server which launches plugin-apps and allows for clients to easily list remote panels on a range of hosts and open them. Use of packed project libraries would just be a nice-to-have of a fictional application.

 

Cheers

 

John

Connecting Mensor CPC6000 to PC - Problem with VISA Write VI

$
0
0

Hello,

 

I am trying to connect a pressure device to my PC and the way I am doing it is by using the serial VI's (I am using serial - RS232- port to connect). I have based the code (see attached) on a few pre-made VI's that came with the device, but I am trying to modify it for our specific purposes. 
The problem that I am having is that the VI doesn't always work. Sometimes it will perform the desired action (i.e. change the units), and sometimes it will not. In other instances, it will execute only the third "VISA write" VI (change set point), and sometimes it doesn't do anything (I am wondering if I cannot put multiple VISA Write VI's sequentially like I have, or if I need a "VISA read" VI or something like that. Anyways, would anyone know the reason why this may be happening? I know the question is a little bit vague but the problem is as well haha, but basically the code that you see attached does not work (sometime it even crashes). Let me know if there is anything else I can further clarify!

Thank you!

Error 1448 on "To More Specific Class"

$
0
0

Hi All,

LVOOP newbie here, so please be patient with me.

I have set up test code with a parent class, named "Parent" and two child classes, named "Child1" and Child2." See attached images. When I try to use the "To More Specific Class" function, I get LV Error 1448, "Bad type cast. LabVIEW cannot treat the run-time value of this LabVIEW class as an instance of the given LabVIEW class."

Child1 and Child2 both inherit from Parent.

Any help figuring out how to fix my code would be much appreciated.  Thanks in advance.

I know my sample code is not optimized.  I just threw something together to test functionality.

DAQmx with digital output waveform

$
0
0

Hi all,

 

I am sending a digital waveform to a digital output with DAQmx. See my example VI.

 

Using this VI, first I send a waveform made from two values: T, F. This works and I can see the LED blink on and off in an even pattern. Then I send a waveform with four values: T, F, T, T. This also works. I see the LED blinking with more time spent on than off. Then I try to send a waveform with only two values: T,F again. It doesn't work now and I get an error "Onboard device memory underflow." I assume it's because now that I've sent it 4 values, it is expecting 4 again, not 2. But why? It was ok when I sent if 4 values after sending 2 but not the other way around? Is there any way I can make this work? I would prefer to not have to clear the task and create a new one every time I send a new waveform.

 

I have never used digital waveforms before, so sorry if I am missing something obvious.

Viewing all 66899 articles
Browse latest View live