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

Problem on Vision Assistant after the last update

$
0
0

Hello to everyone. 

 

After i had done the last update from the NI Update Service i have problem with the Vision Assistant and the Vision Utility, like Template Editor. I can no more open any types of image in this software; all i had obtain is this:

PB_1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

and this:

PB_2.jpg

 

as you can see no image was open on the interface and even the horizontal and vertical scrollbar are disappeared. Did anyone knows how i can repair this utilities without reinstalling all the software?

 


Error open VI

$
0
0

Hello all ;

When i try to open vi file this error apparent "LabVIEW: Failed to load dynamic library because of missing external symbols or dependencies, or because of an invalid file format. The file could not be loaded"

Relay control via time

$
0
0

Hi everyone,

 

 I am fairly new to Labview. I want to control pump using Arduino UNO circuit, Relay, and Labview. My assignment is running a pump for a certain period of time like 2 min or 5 min. I tried by using "Elapsed Time" option of LabView but can't turn off the relay after elapsed time.

 

I have attached my LabView code here. please suggest me for a solution. Thank you for time and assistance in advance.

 

Executable with shared variables deploy in a PC target

$
0
0

Hello to all.

I have a program which use shared variables to communicate my program with OPC (to communicate with a PLC).

In development machine it works fine.

Now I would like to do a executable to deploy the program in a different PC which has installed OPC and Labview. So this target PC have to work alone.

To do this I follow the next steps:

1- In sorce files, I add loibrary in "Dinamic VI's".

1 - Deploy and undeply variables in library as follow:

 

And I build the application.

Now I copy the application with .aliases and the other file in a USB and paste in the target PC.

All application works fine except communication with OPC... So I do not how communicate with OPC. (OPC communicates fine with PLC in target PC).

I read somethin about .aliases file here: http://www.ni.com/tutorial/9900/en/ in step 3.

i think that the problem is how to deply variables in executable, because in immage attached the path is development PC's path and the target PC is can not get acces or something like that...

 

So in brief I would like to do the next:

A have a PLC and a library in Labview which has variables and addreses of PLC that I want to get acces.

I want to create an application with the same library and run in a target PC.

 

Thanks a lot

Dynamically outputting Counter output property

$
0
0

Hi all,

 

I'm developing an application where I would like to update the duty cycle of a Counter Output channel dynamically. This change of property should happen at 1kHz. I used the method given in Case 3 (Figure 3) of this link to achieve the same, it's successful in updating the duty cycle of the counter, however, the while loop with the DAQmx write sub VI takes almost 15-16ms to run. Hence, I am assuming that the update takes 15-16ms, which is slow and almost 60-70Hz.

 

Can you guys suggest a faster way to do this? Any help would be appreciated.

Advanced Encryption Standard ECB mode 128 bits

$
0
0

Hello

 

I want to encrypt / decrypt a message with Advanced Encryption Standard ( AES-128)  Electronic codeBool ( ECB) mode . Is there any Labview library for this encryption ? 

 

Thanks.

Error -1074396006 video compression problem

$
0
0

Hi,

I am facing problem in saving the video in a compressed format.

I am getting the following problem (image attached).

Please help me in saving the video in any compressed format.

Different data type to plot with XY graph, help needed

$
0
0

Capture.PNG

Hi, I want to build a XY graph using those two data types. But I got an error saying its imcompatible and I dont know how to solve it. Need some help, thank you


generating sine wave using array of values

$
0
0

I am using the VISA pallete to acquire array of amplitude values (100 values) from CCS C compiler. Using this array, how would I generate a sine wave? I have attached what I have so far. Help would be much appreciated! 

Working on a running VI w/o connected item

$
0
0

Hi there,

does someone has a good idea to overcome the permanent LabView fault window which comes up, while using a running VI, but with a not connected device?

I would like to get a one time info window like "device not connected".

Does it looks like a loop issue?

Thanks for some good hints.

Ralph

Why computer crashes when communicating through GPIB and also through the network?

$
0
0

Hi fellows,

I am a bit annoyed about this issue, and pretty sure is a simple thing, but I just cannot see the answer. The set up is the following:

The labview program I used is iterative: I am communicating through GPIB with a power supply, stepping up the current in each iteration and at the same time, I retrieve data from a Vector Network Analyzer connected to the network for each step. Firstly, I initialize the VNA, and then I run the program but in the middle of the reading process, it crashes and I get the windows blue screen...

I upload a version for you to have a look if you please.

Checking thru the web, I have found that it may be due to the GPIB card of my computer so I performed the following:

 

As a test, I have divided the program in half, erasing the part of talking to the vna from the block diagram (so it only step sup the current), to see if it has to do with the GPIB comm with the power supply. 3 times out of three it doesn't crash so.... Could it be the VNA network communication, through VISA? I downloaded the last driver of NI-VISA but It seems to still not work...

I am a bit lost, to be honest, and you cannot even imagine I much I would thank you for your help. 

Many thanks in advance.

Move a file from cRIO to host pc

$
0
0

Hi,

 

I want to transfer a file from my cRIO 9004 to Host PC. I have copied the example and running the below snippet in RT. I am getting an error of 550 .

Pls help me.

 

Rgs,

X.Ignatius

automatic measurement

$
0
0

Hello All 

 

I am a first year PhD student and just recently started using LabVIEW in order to do some impedance measurements, however  I have to wait an hour in between each measurement, so the experiment tends to be long because I have to be in the lab to take each result manually.

 

What I was hoping for is to know if there is a way to make LabVIEW take a measurement automatically every hour, any help would be appreciated since I am a complete beginner to using LabVIEW.

 

Thanks  

 

Multiple screens - getting current screen position

$
0
0

Hi,

 

I was trying to do this:

Untitled.png

 

Upon starting the VI 'Monitor' shows 0 no metter which monitor I run the VI on.

 

Any way LabView can know which monitor the VI is currently on?

 

Thanks

writing to parallel port not working

$
0
0

Hello guys,

I'm trying update a software which controls some valves and a pump via parallel port on my touchpanel. It's running Windows xp embedded. VISA 5.0.3 & VISA Runtime 5.3 (for xp embedded is installed). The problem I'm facing is that the old exe works perfectly fine and parallel port communication also works. Unfortunately I can't see which drivers were included.

 

Now if I try to write to parallel port via:

- InPort.vi/OutPort.vi ,nothing happens.

- VISA , I get a timeout error

 

I've also read this tutorial but still no success

 http://digital.ni.com/public.nsf/allkb/B937AC4D8664E37886257206000551CB

 

Any suggestions?

 


Data Acquisition for a set time interval

$
0
0

Hey! I'm a Labview student, new to this software.

 

I've made a program that continously acquires data from a waveform generator for a set time interval (which can be adjusted as required) and then writes the data to a spreadsheet if needed (new data in new columns).

 

I was somehow able to run the program and achieve the desired outcome, but I'm sure that there are a lot of silly things that I did Smiley Very Happy

 

Would someone please help me optimize the program, it would be very helpful for me to learn more Smiley Happy

 

(I'm attaching the VI here)

 

Thanks in advance,

Akash Smiley Happy

LabVIEW with Tiva C Series TM4C1294

$
0
0

Hello,

 

I'm trying to interface Tiva C Series TI Launchpad TM4c1294 board with LabVIEW.

I setup the interface using USB, COM6. I also setup the VISA open, close, read and write. 

But, when I run the VI, my read buffer and count displays 0. I'm wondering if there is any communication between LabVIEW and the TI board.

I know the board and the interface is working. I'm able to communicate through C++ IDE. But I'm not sure how to go about doing it from LabVIEW.

I'm able to turn the LED on/off from C++, I'd like to be able to do the same task from LabVIEW. Can anyone give me some directions? Or references?

I came across a similar article:

http://e2e.ti.com/group/launchyourdesign/m/tivaarmmicrocontrollerprojects/665977

But I'm not able to figure out how to do it. Any help would be greatly appreciated.

I have attached my VI. 

Here's the link to the code I'm using:

https://github.com/energia/Energia/tree/master/examples/01.Basics/DualBlink_430

 

Thank you,

Labview with Arduino stepper motor control problem

$
0
0

I am learning how to control a stepper motor with labview and an arduino. I have the EasyDriver that the example VI is made for. I am not able to reverse the motor. The motor will only turn one way. I have programmed the motor with just the arduino and am able to reverse the motor easily. Anyone know how to fix this?

Problem running more than two analog intputs

$
0
0

Hello all,

 

I ran into a problem today with DAQmx tasks. I am getting error 20022 "Resource requested by this task has already been reserved by a different task". I got this error when I tried to add a thermocouple DAQMX task in another loop. I am currently reading strain from a NI9219 and volts from a NI9205.

 

Is there a limit to the amount of analog input tasks you can start on a single chassis?

 

 

I've included a screenshot of my devices below. Thanks!!

Sorting 1D Array Discussion - How to Sort the following? Fun "Puzzle"

$
0
0

Hello LabVIEW community.  We all love puzzles, yes?  Well here's one for you as I was working on a sorting function cuz this one required me to do some serious thinking because of all the different scenarios that could take place.  So I'd be curious how everyone else would do this.  I'm always impressed by some of the much simpler ways some of y'all come up with.  I'll post a picture of the issue and the VI (in LV2015).  The goal is to get the data on the left sorted to look like the data on the right.  Good Luck.  Smiley Happy (not terribly hard, but still fun I thought)

Sorting Puzzle.JPG

Viewing all 66961 articles
Browse latest View live


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