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

How to send a different types of data using serial port

$
0
0

i need to send an array of angles with some litters as a group to the serial port which function that can do this ? as considerd that the visa wrrite accepts only string input  .


compile worker 2015 doesn't identify Xilinx ISE 10.1

$
0
0

Before: LabVIEW FPGA with 2010SP1+FPGA Module
- Xilinx ISE 10.1 to kompulieren PCI 7833
- Xilinx ISE 11.5 to compile PCIe 7842
Now: additional installed LabVIEW 2015SP1+FPGA Module with Xilinx ISE 14.7 and Vivado 2014.4 to compile PXIe 782x.
Situation: Compile Worker 2010 has been updated to 2015 and identifies ISE 11.5 (still installed with 2010), ISE 14.4 and Vivado 2014.4 but not ISE 10.1.
Then I uninstalled the old ISE 10.1 and reinstalled for FPGA 2015 SP1. This is also not recognized by the Compile Worker.
Now you can compile with 2010 FPGA only the PCIe 7842 because this also uses the Compile Worker 2015.
What am I supposed to try?
A further question is whether the from 2015 FPGA compiled bitfiles are identical to those of 2010 FPGA?

How to use OpenCV GPU (!!!) libraries in LabVIEW?

$
0
0

Hello!


I am doing some research about using Nvidia GPUs in pattern detection algorithms. In OpenCV there are two versions of Hough Circle Detection algorithm - one for CPU and one for GPU. I want to compare execution times for them.
My basic application is in LabVIEW but to run OpenCV code and custom CUDA code I am using DLL libraries and Call Library Function Node block. I have not any problems with call standard OpenCV function. I also can call my own CUDA function using available LabVIEW block to initialize/deinitialize GPU, allocate/deallocate memory and upload/download data. The main part of code is run as CLFN function. In general I am doing everything like there is described in LabVIEW GPU Analysis Toolkit - Calling Custom GPU Functions.


I have problem when I am trying to use OpenCV functions for GPU from LabVIEW. My application always crash due to some memory access fault. It happens on main OpenCV function line. I suppose it is related to handling data which is already in GPU memory, allocated and uploaded by LabVIEW functions, but which i must convert to OpenCV type GpuMat.
Maybe someone was already doing something like that. If not I can describe whole process but it is quite complicated and it take a lot of time me and this person which will be trying help me... But of course I can do this Smiley Wink.

 

Regards,
ksiadz13

as introducing a subVI in a subpanel to work at the same time?

$
0
0

I'm trying to introduce a subVI in a subpanel but always gives me an error method. Can somebody help me?
I include photos.
Thank you

Creating a Path for your Mouse Pointer

$
0
0

Hi all,

I'm currently working on a project where the main goal is to send the mouse through a pre-made path or maze. This program will test your ability to quickly navigate through the maze, so it will calculate your error for going outside of the set path and also the elapsed time through it. I have designed a simple state machine to track the mouse and graph the position. The problem I am having is figuring out how to create this path. I want it to have set coordinates that I will be able to compare to the mouse coordinates, but I'm struggling to figure out how to do this. Currently I'm just using decorative blocks to map my path. 

 

Another issue I was trying to figure out was that I wanted to either put up "barriers" or "walls" for the mouse so it couldn't move too far outside the path, or possibly just not allow the mouse to progress around the path/grid area without physically being inside the path. I have some idea what I want to do for this, but I wasn't going to tackle this until I first solved the above problem. 

 

The end product would look something similar to the one below if that helps. Graph 2

 

If anyone had suggestions or resources to use to help this, I would appreciate it greatly. 

Thanks!

Switch until released function changed?

$
0
0

So, I changed laptop and needed to reinstall LabVIEW and everything else to keep working, didn't have physical media on hand, so I download lv from site and didn't realize NI now shoehorns lv 2016 as the de-facto download, whether you want to upgrade or not; I tend to wait a few months to switch software precisely because of problems like this.

 

Either way, I am doing a simple save to xml basic VI to check feasibility, and add a boolean button to trigger the adding of single element to an array that will later be stored as xml, nothing fancy. I change mechanical action to "switch until released" because I was expecting the old funcionality which, unless I'm mistaken, used to be:

-User (me) presses button, probably holds it

-Button lights up, depresses, but still sends a false

-User releases button

-A single, 1-time true impulse is sent to whatever

 

Now however, I find it that tapping the button lightly sends roughly 1,4k items to the array, so it seems functionality was changed to "send true till user releases button". After my rant, could anyone please tell me if this is a bug or intended behaviour? Where can I find the old "switch until released" boolean?

[LabVIEW Bug Report] Scroll the mouse in string array will cause LabVIEW to crash

$
0
0

Hi,all

 

I found a bug when I use LabVIEW 2015.

 

First create an array of string constant in block diagram, and then put the cursor in one of the string:

sting array

 

And then when you try to scroll the mouse wheel, the LabVIEW will crash.

 

No vertical scroll bar in my strict type def?

$
0
0

No sure why, but my vertical scroll bar in my array seemed to disappear.  I have it enabled too.  Anyone know what gives?

 

Thanks!

 

noscroll.png


D2.2 help

$
0
0

okay so i almost have it put together. i am super new to the class (only 2 weeks in) but i am trying to figure out how i can make a numeric indicator only show numbers greater than 0. since i can only use  mathmatic functions as inputys to numeric indicators this is really stumping me. 

thanks

Unable to edit a typedef (locked library)

$
0
0

Hi,

I've a project with a lot of typedefs which is used as a shared variable.

Most of the time (all of the time?) when i change one of those typedefs and save it, I am not able to change it again. LabVIEW reports:

"This VI cannot be changed to edit mode. This VI is locked because it defines the data type of a shared variable that is in a locked library. To determine why the library is locked, right-click the library and select "Why is this Library Locked?"

Locked Library.png

 

But as far as I can see, the library in the project explorer is not locked. The only solution I have found is to close the project, an re-open it (!!!).

 

Anyone got a suggestion to what to do?

integration and differential on labview fpga

$
0
0

Hello! Now I want to achieve integration and differential on labview fpga .but I don't know how 

So someone really good at it ,Please help me!

Better with the block diagram

Problem loading Labview

$
0
0

I'm using Labview 2012 running on Windows 7. A few days back, the program started crashing within minutes of running it, and the error report shows: in page error (0xC0000006) at EIP=0x0000000072FCE2E0.

Since this is a shared computer, I'm not too sure if someone changed anything that caused this error. Unfortuately, I don't have a restore point before this happened. I've tried restarting the computer and even reinstalling the Labview 2012. But the problem still persist. 

Please advise.


Retriggerable analog input

$
0
0

Hello!

I'm a new Labview user.

 

Now I'm trying to write a VI which can do retriggerable analog input on a single channel. I think this VI runs well, since I just follow one of the examples. But, I want to modify this VI to add 'zero' to the data during high or low level. For example, if the triger signal is kind of TTL, the VI reads the input when the TTL is high. When the TTL is low, the VI can read zeros.

Do you have an idea?

Thank you in advance.

 

How to do this on/off program?

$
0
0

Hello,

 

I need to turn on a ventilator when the temperature gets to 65°C, and then only turn it off when the temperature gets to 55°C. Basically I need to turn it on with a higher value, and turn it off when it gets to a smaller value. I tried everything that I could, and none made this happen. 

The image shows what I have right now. I have a PT100 that convert the temperature to voltage, and then I have to multiply the voltage to a specific number (60,1403.. in this case - linear coefficient) to know the temperature in Labview (minus the offset of each PT100). Then I put two exits in the module c-daq 9178. If the temperature is greater than 65°C, it turns one port of the module on, and if its smaller than 55°C it turns another port on. But i don't want it like this, because between 55°C and 65°C both ports are off, and i can't do anything with that. So, everything is wrong. I hope you can help me.

out port.vi Missing

$
0
0

I am upgrade in older application from Labview 2010 to Labview 2016

 

Also moving from Windows Xp to Windows 7

 

Everything loaded but the out port.vi and in port.vi can not be found

 

I download and installed most of the drivers I could locate

 

Where are these drivers located ??

 

My development environment is a new windows 10 64 bit machine

 

Thanks

BrianD

 


LabVIEW 2016 Run time error 127

$
0
0

Have built an executable in LabVIEW 2016 64 bit on Windows 10 targeting WIndows 7 service pack 1 and up. DAQ is not used, and a few vis from the Sound and Vibration toolkit are used.

 

After installing on a Windows 7 machine I get the following errors when opening the program.

"The Procedure entry point nier_setApplicationCallback2 could not belocated in the dynamic link library nierInterface.dll"

 followed by

 

"System error 127 while loading the LabVIEW Run-Time Engine ....(path to 2016 run time engine)  .... <my program name> requires a version 2016 (or compatabile) LabVIEW Run-Time Engine.

 

After that the program crashes.

 

The program installs and runs fine on the Windows 10 machine.

 

Have verified that my target machine has the 2016 run time Engine.   Also verified that my program is installed in the Program folder (64bit). Get the same error on two different Windows 7 machines.

 

Have searched Google and NI support forums and found nothing.

 

Carsten

 

LabVIEW 5.0 (yes, 5.0!) VI Properties?

$
0
0

I am tasked with bringing up an ancient test rig that is running off LabVIEW 5.0.  I must stick with 5.0.  I cannot update the software to a more modern version.

 

Whoever wrote the original code went to great lengths to make it very hard to modify the code.  For instance, all of the debugging functions (highlight execution and single stepping) are hidden.  When I hit "cntrl i," I get a non-helpful "VI Information" screen.  I cannot post screen shots because this is all secret stuff, sorry.

 

Does anyone know how to unhide debugging functions and otherwise access vi properties in 5.0?  Keep in mind that every step to hide these functions has, in all likelihood, been taken.


Thanks.

Statistical analysis not returning correct values

$
0
0

I am performing some statistical analysis on two 1D arrays. I am sending these arrays as input for each of the statistical analysis VIs. The thing is that when I check with another stat software, I obtain different values, so I must be doing something wrong.

Can someone please help?

Thanks.

Remove Shadow from Silver Control

$
0
0

Every Silver control has a slight shadow on the bottom and right hand sides. It seems so simple, but I cannot figure out how to remove JUST the shadow from any silver control. When I go to customize the control, the shadow is part of the frame. I like the frame - this is why i am trying to use the silver controls and not just the older options - but I need to get rid of the shadow. Any ideas?

 

And, just for the record, I appologize if this is a duplicate but i couldn't find anything similar that wasn't talking about the black shadow you get from a floating control.

Help creating an 2D-histogram using LabVIEW

$
0
0

LabVIEW has the functionality to create a 1D Histogram, I am trying to figure out how to create a histogram for a 2D array. My idea to plot the information is using a 3D Mesh Graph.

 

Having a 2D array it's necessary to work on the correct mathematics to get the bin numbers and the frequency of them. I think this is what I'd need help with. You'll find attached a VI I made in order to do this but I am not sure how to work the "maths" to make the bin and frequency reliable.

 

Inside of the VI I wrote what I am doing, the bigger problem I am facing is that I am not sure how mathematically work the 2 arrays to get the bin numbers that accurately represent the values of both arrays and the frequency.

 

I am using 3D mesh graph because I find fitting that it creates planes with certain "high" that could represent the frequency of a plane formed by the Y and X array (similar to extrude when using CAD software) but I am up for a different approach as well.

 

I found some text-based information on how to create a 2D histogram, I am not very good at text-based programming but if someone wants to take a look and let me know how to adapt it to LabVIEW will be great. The link is here https://root.cern.ch/

 

Both VIs are the same but one of them is for previous LabVIEW version (from 2013)

Viewing all 67263 articles
Browse latest View live


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