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

Displaying message to user when an error occurs

$
0
0

I have multimeter HP 34401A and i need display message to user when wrong port will be choosen. I have 2 simple examples how do this, but i dont know is this correct to handle error like that. Anyone can confirm or give me better solution?


User event - data as simple cluster (no clusters within) arrives unbundled...

$
0
0

Hi, Everyone:

When I generate a user event with a simple cluster as an input (with no clusters inside), the event data node unbundles it for me.  I would like it to be bundled so I don't have to re-bundle it just to send it into a subVI.  The only way I know of to do this is to send it as a variant, and use Variant to Data to change it back.  It seems to me to be a waste of CPU cycles to do this just to have an unbundled wire, and re-bundling is just a waste of space.  (Imagine, let's say, a bundle of 32 booleans representing some flags.  Thankfully, my data is just an error cluster.)

 

LV 2014 SP1.  Any thoughts on this?

 

Thanks!

User Event Generate gives error 1 (reference passed by global variable)

$
0
0

Good day everybody

 

I had following issue with User Event passed by global variable or FGV.

 

1. In main application User Events are obtained and send to external app to appropriate control. References are stored in global variable

User Event obtain and send to external app.png

2. Start external app in which User Events are register: 

User Events registered in external app.PNG

 

3. In Main application Event User named "Control Mode" is generated based on reference read from global variable:

User Event Genarate.PNG

 

Unfortunatelly I am getting the error number 1

"Possible reason(s):

LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
NI-488:  Command requires GPIB Controller to be Controller-In-Charge"

 

I checked synchornization run of main code versus external application.

The flow is as described above.

I have tried global FGV with no differences.

 

Remark

I noticed also when casting User Event reference to variant (for FGV purpose) then it was not possible to cast it back to reference (error 91).

It looks like the reference passed by any means is then not recognized when received.

 

When reference is connected directly from Obtain to Generate Event the it is OK !!

 

Has anybody experienced similar issue?

Do I miss something?

I appreciate any suggestion

 

MM

Labview 2016 won't install

$
0
0

I have two HP laptops; a small one that is currently running Windows 7 64 bit and a larger new laptop running Windows 10 64 bit, and both are having problems installing/running Labview.

 

Small Laptop:

Will install and run Labview 2015 just fine, but when Labview 2016 is installed, it will not run, giving the error (in a crash report) "Exception: Unknown (0xC06D007E) at EIP=0x753CB727." All my drivers are up to date as far as I know, and I have tried a clean install to no avail.

 

Large Laptop:

Will not install Labview. It had a working 2015 version of labview, but after multiple failed attempts updating drivers and (trying to) install Labview 2016, I tried a clean install and now both Labview 2015 & 2016 will not install, shooting me an error message "An internal Windows error has occured" or that something in setup.exe has tried to terminate in an unusual way.

 

Please help! My robotics team relies on Labview--we only have one monster computer that can run the current version--and build season has just begun!

High CPU Use, cDAQ with Axis IP Camera

$
0
0

Hi,

 

I am using an Axis IP camera at 1024x768 resolution on a cDAQ 9132 (Linux with a GUI driven from the cDAQs display port).  The code I use is attached as an example test application.  When running at 20 frames per second, it uses around 80% on each CPU.  Consequently when combined with the rest of my code starts resulting in performance issues.

 

This camera is supposed to give a real time high resolution display so reducing resolution or frame rate is not ideal for this application.

 

Any ideas if it is possible to reduce CPU load?  I only want streaming video display, not doing any image processing.

 

Saving waveform with 2 components

$
0
0

Hi,

 

I am a student and am new to labview. I have written a data aquisition program to log data from a COM port (device sends 2 types of data, data1 and data2). I figured out how to save a .csv with time in the first column and data1 in the second column. I am trying to save a thrid column in the csv file with data2. I have attached my vi.Program.JPG

Any help is greatly appreciated Smiley Happy

Excute vi only one time after device power on

$
0
0

Hello everyone,

 

I try to control flow rate by manipulating a pump speed. Before I can send command to the pump I have to initialize it, such as numbering the pump. I think this step is after the pump is on and before my main program excute. Unless the pump is off and powers on again, the vi for initialzing the pump has not to been excuted.

I considered to use the local variable as a case selector to make it. However, I cannot.

There are two vi. files. I try to combine them into one vi. And the code can detect the situation (the pump is on and pump has no number) and excute the first vi. automatically.

The manual of the pump is 

https://pim-resources.coleparmer.com/instruction-manual/mf-lns-manual-enga-1299-1127b.pdf

The communication part is in page 44-52. (section 3-30---3-38).

I find that the command \05\r is for checking the pump status once the power on, and after the pump is numbered, the command \02P01I\r is for checking the status (let's set the pump number 01). If I still send the command \05\r to the numbered pump, there will be a time out error.

In one word, how to send \05\r to the pump only one time after the pump powers on.

Please help.

 

 

Qun

 

 

 

Energy monitoring VI

$
0
0

New to labview and need help creating a Power consumption Monitoring VI that reads the data from microsoft excel


Importing matlab data into labview for display

$
0
0

Hi there folks,

 

Is there any method to import my data from MatLab to LABVIEW for data presentation? I have been trying matlab script & would like to seek for any assistance. Thanks in advance.

 

Attached file is .jpg format from my MATLAB figure type. 

fast fourier transform from sampled values of a wave

$
0
0

Hi,

im new to labview .I'm trying to plot frequency spectrum of a FFT. here fft should be constructed using sampled values of a wave stored in spreadsheet. can any one help

LabVIEW Programming

$
0
0
  • LabVIEW executes block diagram code based on what programming layout?
  1. Dataflow model, block diagram executes dependent on flow of data.
  2. Top to bottom, program executed starting at the top of the block diagram and moving downward.
  3. Control flow, the sequential order of program elements determines the execution order of a program.
  4. Left to right, program executed starting on the left and moving right on the block diagram.

"VISA Lock Async.vi" returns error as connection is invalid?

$
0
0

Hello,

i have a program where two loops are accessing the same instrument (tcp-ip).

One is a measure-loop and the other is a configure-loop.

Both instrument subvis are surounded with "Visa Lock Async.vi" (timeout 2000ms) and "Visa Unlock" at the end.

But i still get errors at the configure-subvi:

 

VISA: Sperren in VISA Lock Async.vi -> MyInstrumentConfigure.vi:7170002->

TheCallingFile.vi:19000005->

TheCallingFile.vi.ACBRProxyCaller.93B0000E

BFFF00A6

 

Is the bold text anything what is helpful?

The hex errormessage means "the connection for a given session has been lost".

 

Is there any way to recreate a lost session?

The error appears when trying to lock the instrument. Is this the same error when the instrument is still locked by the other loop?

Can i check somehow if the session is currently locked?

 

The program runs several hours and suddenly this error appears.

 

Thanks for help

 

Is there any way to get block diagram from EXEcutable?

$
0
0

Hello.

 

I would like to know if there is any possibility to get block diagram from .EXE created with application builder.

 

Thanks a lot!

FTP file transfer from one PC using filezila client to Host pc as labview coding FTP server

$
0
0

Hi Everyone...

 

I am using labview 2011.I want to transfer file from one pc which has filezila client to Host PC which uses FTP coding which act filezila server, to transfer the text file.these are linked through an ethernet cable.But im stucking out inthis error.

 

TCP Write in NI_InternetTK_FTP_VIs.lvlib:FTP Command.vi:1->NI_InternetTK_FTP_VIs.lvlib:FTP [QUIT].vi->NI_InternetTK_FTP_VIs.lvlib:FTP Close Session.vi:7->NI_InternetTK_FTP_VIs.lvlib:FTP Put Multiple Files and Buffers.vi:4->NI_InternetTK_FTP_VIs.lvlib:FTP Put Multiple Files.vi:1->FTP_20_10_2016_16_am.vi

 

I have checked my firewall and switched off and disabled my anti virus protection aswell but the result is the same.

 

Im attaching screenshot of the pc which uses filezila client and vi used in host pc which act as filezila server.

 

Thanking you

Sudhin sudh

Draw coordinates from csv to picture

$
0
0

Hi there,

I'm quite new to Labview and done my first steps with tutorials.

Now I try to get coordinates from csv drawn to a picture. My Project runs without any error message but doesn't draw any points.

I assume I made a simple error but I'm not able to determine it.

Can someone have a look on it an may point me in the right direction or have a tutorial about this task?

 

Best regards,

Sebastian

 


Converting to USB Code from GPIB Code.. Help....

$
0
0

I want to convert to USB Code from GPIB Code....

But, I don't have any idea... Help me..

Thank you..

MenuStrip font size

$
0
0

Does anyone knows how to change font size in the MenuStrip?

 

I want to replace standard LabVIEW runtime menu with .NET MenuStrip to have a posibility to make it bigger and more suitable for touchscreens. MSDN said that MenuStrip has a font property which "Gets or sets the font used to display text in the control" but it looks like read only property (I'm unable to change it to write)...

Question about VI Icons and transparencies

$
0
0

I have a question on a non-critical curiosity.

I made some packed libraries of commonly used VI's and threw them in my user.lib folder.

 

Why is it that when I originally made the VI's, I was able to set transparecy backgrounds. That way, my VI's wouldn't hide traces behind them. But, when I compiled the VI's into a packed library, the transparencies are replaced with white.

 

Is their a particular reason for this? And is there a fix?

Vertical Line on a Waveform Graph

$
0
0

I would like to generate vertical lines on my waveform graph based on a retuned index value from each of the plots.

I created the ones currently shown here using an array constant and replace array element, but this seems to be an ugly way of going about it.

Is there an easier way to display a vertical line at a location based on an index value that is returned from a plot?

 

Thanks

 

index.png

Executable won't shut down when VI Front Panel is hidden

$
0
0

When my code finishes running, I close the user interface by using the "FP.Open" method with state "Hidden" and then stop the VI by sending a stop command on a queue. This works fine in development mode, but when I build an exe, the icon remains on the task bar.

 

If I don't hide the FP before stopping the VI, then it stops normally, you just have to click on the window again to close it after it stops running. I tried using the "FP.Close" method, but that caused problems elsewhere in the code. I hope to gain insight on why this is happening. Thank you

Viewing all 67066 articles
Browse latest View live


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