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

LabVIEW crashes while building PPL

$
0
0

Hi Everyone,

 

Each time I try to build packed project library with VI which contains 3D graph LabVIEW crashes.

 

Does anybody know the reason, or possible solution to successfully build the library.

 

Thanks in advance.

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

     

 

 

 


VLC Player with 64-bit LabVIEW

$
0
0

Hi Everyone,

 

I had an application developed with 32-bit LabVIEW which was playing a video using VLC player. The application was controlling the video playback from LabVIEW.

As there was a need to build the same application with 64-bit LabVIEW I have found 64-bit supporting VLC player, which is running as a stand-alone application just fine. But when I try to access it with the corresponding DLL from LabVIEW (exactly the same way is in case of 32-bit), it throw an error 1097 on call library function node.

 

"LabVIEW: (Hex 0x449) An exception occurred within the external code called by a Call Library Function Node. The exception might have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW."

 

Does anybody have an experience with controlling a video playback with VLC from LabVIEW, and specifically with 64-bit version?

 

Thanks in advance.

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

     

 

I'd like to import the Excel file and extract the data that I want to use in the new Excel file

$
0
0

I'd like to import the Excel file and extract the data that I want to use in the new Excel file

ActiveX on myRIO

$
0
0

Hi

 

I have a vi for motor control with smart motor interface and using "Automation Refnum in" and "Automation Open" in activeX.

It runs well in labview, but while I try to put it into myRIO project, it occurs some errors.

The errors say "Wire: Type not supported in current target."

It seems that myRIO doesn't support ActiveX.

 

Can anyone give me a hand with this problem? 

Alternative nodes for "Automation Refnum in" and "Automation Open"?

Make myRIO support ActiveX?

Or other solutions?

error occurred during controlling PLC using Modbus

$
0
0

Hi

 

I'd like to control a motor via PLC using Labview modbus, i can control the motor to rotate while given a certain parameters (angle), but when i want to read the angle of motor during the motor rotation, there will be an error. i also tried reading the angle motor separately, and it works.  could any guys help me?

thanks.

 

Property node for many items

$
0
0

Hi,

I am working on a function that after entering the password, some items will change from "Disable and gray out" to "Enable".

image.png

The problem is, when there are many items, I'll have to create property nodes for each of them. As picture below.

It takes a lot of time and also make the block diagram a mess.

image.png

Is there any more efficient way to do this work? 

Using RTI DDS for LabVIEW with a PLC

$
0
0

Greetings,

I'm currently working on changing the data communication method between a PC (running a LabVIEW application) and a PLC (SEIEMENS S7-1500) from OPC SERVER to RTI DDS.

I still don't know if it's possible to use RTI DDS between LabVIEW and SIEMENS PLC as there are no indications of the existance of a certain functional block that assures communication via that protocol.

 

My question is it possible to exchange data between a PC and PLC via RTI DDS ?

If YES how can i use it ? 

 

Data Filter and computing

$
0
0

Hi all!

Let's say I have 100 files and each file contains 20 data. Can you suggest how to compute the mean of all the 100 files and filter them ( e.g. filter the files with a mean > 0.02) and finally obtain two set of files (one is with a mean >0.02, and the other one is the remaining)?

 

Thanks a lot for your help!


How to get data from executable

$
0
0

Hello everyone,

 

I'm a beginner of LabVIEW, and recently have some problem about "get data from .exe". Now I have an .exe of random number generator, and is it possible to get the number by .vi ? (The attachment is  rng.exe). Hope someone can help me, and don't be hesitated to ask more detail.

 

Thanks a lot

 

Albert

 

Passing array to Python Node

$
0
0

I need to pass an array to the Python Node in LabVIEW 2018. However it always gives the following error

error.png

How can I use arrays in the python script? I also found this forum post about a similar problem, but it was not solved.

Phidgets - LabVIEW crashing

$
0
0

Hi, 

 

Has anyone experienced LabVIEW crashing when interfacing with Phidgets? I am using the Spatial module - sometimes data are read and displayed, sometimes LabVIEW freezes, and other times LabVIEW immediately shuts down without any warning. 

 

I experienced this a few years ago but can't remember what the solution was I had found!

 

Thanks

Graham 

How to execute two nodes exactly at the same time

$
0
0

I have to call two functions from dll using call library function node. The functions must be executed at the same time. How can I realize this in Labview?

 

Untitled.png

Environment variables for execution

$
0
0

Hi, I have a basic .vi project. I need to gather RTE environment variables in a folder. Not to install RTE is important point. 

.vi project was prepared on LV 2017 version. That means to using 2017 version executable files to execute succesfully.

What to do ?

Min Logging Rate too fast

$
0
0

Hi.

Hoping that someone can advise on a logging rate issue that we have.

 

We use NI Max (bundled with Labview 2016) to capture data from a NI Chassis with (typically) a NI9207 card fitted. The connected instruments vary but can include Linear Displacement Transducers, String Pots and Inclinometers. 

 

As far as I know the NI software has a minimum logging rate of 783Hz which is way too fast for what we need. Is there any way to log at 1 to 0.2Hz?

 

Thanks

 

Richard Norton

How to introduce values of one sensor into one array

$
0
0

Hi , I need to get the average of one set of values that I got from one sensor, so I have thought of taking them into one array in order to calculate the average later... but I have been able to do that. My first problem I am not sure of the length of the final array so I have been trying to find a way of increasing that length and I presume I could take the values inside by using a "building an array" block. does anyone know any way of doing this , thanks 

 


Plot data from a concatenated string /Continuous Serial COM input

$
0
0

Dear LabVIEW members, 

 

I'm trying to plot a force graph by reading real time data from the sensor. I use an Almemo device for measurement. According to that, in order to obtain the current value, you need to query with the command 'p'. Hence first I do VISA Write with p and then VISA READ. 

 

Problem: 

As shown below, I concatenate the strings with the previous(similar to shift register) with a feedback loop. Then it works fine and I can take one single long string with values. 1.JPG2.JPG

 

What I want is finally to plot these values Real time on a XY Graph. For that i need to get only the value not the whole string of values. When I get rid of this and if I try "match string" it sometimes, matches and sometimes don't. (figure as follows)

4.PNG3.JPG

 

Could the forum members please help me..  I'm really stuck from this point.

 

Thank you . I have also attached the vi if needed (2015)

Best, 
Shane

Will creating a large array of strings ever cause problems?

$
0
0

I have a test that can run continuously for a week or more. It displays data as strings about once a minute in a table indicator. So up to a max size of maybe a 20x10,000. As this array grows large, are there any potential memory issues (or other problems) that I need to worry about? The rest of my application is not very memory or processor intensive.

 

Also as a more general programming practice question, should I be preallocating and using in place structures to add data, or will Labview be smart enough under the hood that concatenating elements to the array won't cause problems?

Loading VI Dialog from EXE

$
0
0

I have a project which I duplicated the .lvproj file and all dependencies from LabVIEW. I confirmed that all the files are being loaded from the proper locations via the files view and making sure there are no conflicts in the project. The issue is that after I build an executable and launch it, I get the LabVIEW dialog popup which loads a number of VIs from the EXE.

EXE VI Loading.png

Then the EXE starts and runs normally but then when I exit the EXE I get a prompt to save various VIs:

After EXE Close.png

I have opened each of these VIs and their callers to make sure everything loads correctly in the dev environment and I have also done a mass compile on both my project directory and even user.lib and vi.lib but to no avail. I have also tried creating a new build spec. Any suggestions?

Shift Registers and Property Nodes

$
0
0

I am working on an application using LabVIEW.  I got my CLD a few years ago, but for the last 6 years I have mostly made small VIs and compiled test sequences in TestStand.  I am a little rusty with writing a complete application in LabVIEW.  As I am creating this code, I have a ton of shift registers to pass data through the state machine.  I am trying to keep my application to fit on one monitor, I am trying to maintain readability, and follow other style standards to the code.  If I need to pass more data between states, which of the following do you recommend:

  • Squeeze the new shift registers in the space I have available, even if it makes the code more difficult to read.
  • Ignore the limit to a single screen, expand my outer while loop, and keep adding shift registers so it is readable.
  • Replace some shift registers with property nodes --> only the cases where it is just a single read in one other state.

I am also open to any other suggestions you may have.

Here is a screenshot of my current application. I have created the property nodes for the three new items, just to test it out - this is option 3. 

Loopy LabVIEW QMH issue

$
0
0

So this is a bit of a long explanation so bear with me. Attached images for reference.

I am writing a small program for reading TDMS data and displaying on a large graph.

Decided to go with QMH because it's what I know(ish).

I have a path that user defines on the UI to input the path to the tdms file, then I have them press the run button. That fires off a second loop which I have inside of another VI. As seen below the MHL on the main block diagram (TDMSreadermainvi.png).

In that vi I have the open and read tdms. Then this is where the issue begins.

If I run it as shown in the images, the graph does not load until I exit the program.

So I placed a true constant to end the loop once the data was read and displayed, works great as long as you don't want to use that TDMS reader loop again. Which I do with the export function (eventually) or read in another file without having to close the whole program and start over.

So my thought was even if I stopped the tdms reader loop which essentially ends and closes the sub vi, wouldn't hitting the run or export button again restart the sub vi because it's being called inside the MHL?

 

Viewing all 69018 articles
Browse latest View live