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

What to do with the crash reports?

$
0
0

Hello,

my compiled labview program (LV 2013) is  shutting down sometimes and a popup says that a crash report was created.

What can i do now with these reports?

Is there any helpful information for me what can be the bug in my program?

I have saved all crash reports.

Can i send them somehow to NI for analyze?

 

Thanks


Fit objects in tab control in a lower screen resolution

$
0
0

Hello to all.

Thanks for helping me.

 

I have developed an application in a laptop of 15.6 inches.

Now I am creating a .EXE to deploy in a PLC of 15 inches.

All my front panel is a tab control which has controls and indicators inside.

 

The problem is that when I deploy de application I can not see a part of tab control (15 inches vs 15.6 inches).

How can I fit tab control to 15 inches easyly?

 

Thanks a lot.

 

Dequeue element fails

$
0
0

Hi All,

 

I was working as normal and suddenly deqeue element stopped working and I cannot discover the root of the error.  

 

I am trying to do something very simple, namely react to a mouse down on a cluster of three booleans.

 

snip.png

In the above screenshot the first enqueued case executes fine on the consumer loop, there are no errors and the queue is just refereneced for the dequeue, when the program attempts to dequeue [2] I get the following reponse:

 

Error 1 occurred at Dequeue Element in xxx.vi

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 @.

 

The error comes out of the dequeue vi.  I can run state [2] no problem separately but when I run state [1] first even though the queue is not operated on except to dequeue, I get the above error.  This was actually working but now it is not, (I'm baffled).

 

Does anyone know what is going on?

 

Error -123009 compilation error

$
0
0

LabVIEW compilation error while compiling latest code

How does one call “AccessibleObjectFromWindow” in Oleacc.dll using a call library function?

TCP/IP with KEYENCE DL-EP1 EtherNet/IP network unit

$
0
0

I am trying to use Labview to read a KEYENCE sensor P value through Keyence DL-EP1 Ethernet IP unit.

-Keyence sensor:

 IG-1000:   http://www.keyence.com/products/sensor/positioning/ig/models/ig-1000/index.jsp

 DL-EP1:  http://www.keyence.com/products/sensor/positioning/ig/models/dl-ep1/index.jsp

 

For the communication, I am wondering there are two ways:

first:  in MAX- VISA TCP/IP resource,  the 3rd one, manual entry of raw socket: enter the IP address and port number( how can I find the port number of  DL-EP1???)

 

Second: use the TCP subVi, otherwise I  cannot get it works,

 

Would someone share me some ideas? huge appreciation in advance

Packed librairies Dynamic call, Database connection not transfered to Vi

$
0
0

I have an application which dynamic call vi in a packed librairies.

The VIs called have all the same connector with 10 clusters and an a DataBase connection.

The data from the cluster are well transfer to the VIs, but not de DataBase connection.

I received the error: NI_Database_API.lvlib:Conn getData.vi"<ERR>Object 0x9D00000 is not valid.

 

(I'm using Labview 2010)

Localized TDMS file errors

$
0
0
I've go a TDMS file from an unknown source I'm trying to work with. DIAdem opens the file and allows me to work with its data. In DIAdem I can see that the group and channel names are in Chinese. If I open this same file in LabVIEW 2015 and read the group/channel names I get a bunch of question marks returned. If I try reading data using "TDMS Read" leaving 'group name' in and 'channel name(s) in' unwired I get error -2532 (LabVIEW: Invalid group name and/or channel name.). What do I need to do to work with this file in LabVIEW? Thanks Denis

sine graph error

$
0
0

Hello everyone!

 

i want to make sine signal and read it through daq system.

but as you can see at the picture, the result is strange.

who can help me please ㅜ,ㅜ

Modbus code for Power meter not working

$
0
0

I have some 5 Power Quality Meters which has been configured with Modbus RS-485 connection with Slave addresses (2, 3, 3, 5,6) and these are daisy chained using RS-485 connection and finally hooked up to the RS-485 port of a Modbus gateway which also has an Ethernet port connection for running Modbus TCP/IP. The Modbus Gateway is configured with an IP address and plugged into the network through the RJ-45 Ethernet connection. However, my LabVIEW code (which is attached) is run, it sees the IP address with no error (error status 2 which is green) but error status 2 gives error as shown in the attachment. I believe that the Gateway is trying to pull data from these slaves but with no success. The errors are Code 6010 and Modbus Exception Code:10. Can someone help towards correcting these errors? Attached is the connection setup and the codes with errors. Your efforts are well appreciated.

Saving values from VISA Serial Read to an array

$
0
0

I want to save the values for the voltages that I read from a microcontroller to an array in labview. I have attached the VI. My VI basically keeps updating the values at index 0. It does not store the values in different indices. For ex: I want to store values in this order:

 

a[0] = 3.4

a[1] = 3.2

a[2] = 2.8

a[99] = 4.3

 

Those are just random values I selected but hopefully I was clear enough.

how to create a noisy signal in Labview with a given average amplitude and visualize it?

$
0
0

My question is very basic. I want to create an artificial noisy signal that for example looks like this link

This signal should simulate noise due to temperature and due to the environment such as a light source etc. 

Now let's say I want the average of this signal to be 20 uV (or 200 nA). I want to give the maximum random amplitude to be no more than 200 uV ( or 2000 nA). 

For the time (or sampling) I do not know but I like it to look like the link above and preferably I can change it as a user. 

Would you please give me some suggestions how to do this? (or if this is super easy to do, do it for me in Labview)

I have 2015 version.

 

 

Flat sequence doesn't execute sequentially

$
0
0

Dear all, I have a flat sequence, the first sequence is to use a button to controll start/cancel of daq and processing, the last sequence is to change the button to default status. 

However, when user cancel the daq and processing (including while loop and wait etc), the last sequence of button change happens before the cancellation finished (before the subvi finished).

 

Anyone can give me ideas why? The simple block diagram is attached.

Thank you very much!

 

VISA read timeout error at uneven intervals

$
0
0

I am trying to write a vi to check the stir speed of a Scilogex stir plate at set time intervals (for example every 10 minutes) over about a two week time frame. The program will run for a while and give the current stir speed of the stir plate.  I've had it run for up to 180 times, but eventually it gives an error of "VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed."

 

There's no set number of iterations before the program times out.  It can be after 40 times or 140 times just as often. I'm not sure if this is caused by a communication problem in the stir plate or in Labview. After Labview gives the error, it quits running and I have to turn the stir plate off and back on again before the program will rerun. How do I avoid getting this error? Does Labview send a message to the stir plate after the error that I could somehow change to keep the stir plate from stopping communication?  Is there a way to get Labview to keep running after the error? I've attached the files for the program.  The main vi is Continuous Serial Write and Read Hexadecimal Alici and the other three files are subvis.

Set Location of VI on Web Page

$
0
0

Hi,

 

I am using remote web server to view my main VI from a real time target (cDAQ 9132).  The project is set up to correctly display the VI when deployed to the cDAQ on its LCD display with no borders and always sets it locatio correctly.

 

However, when I create a web page of my main VI it ends up in the wrong place on the screen.  It seems to correspond to where the VI was displayed when I last saved it!

 

Any ideas how to set the display location of a VI on a web page?  In the HTML maybe? 


saving outputs of multiple tabs within the same run into csv file

$
0
0

hello everyone,

 

I have multiple tabs for a VI that acquires data from daq assistane, in which each tab performs different measurement and plotting functions with some output indicator. So i done this working with stacked sequence structureinside a while loop. Now I want to save all tab outputs with one save report button. However I tried but it is not possible.

Any ideas, thanks in advance.

Dynamic Property Node - Development Engine

$
0
0

Hi all,

 

In my application, I need to change the property of a control(The control might be present in other VI) often. But the property that has to be changed will be varying depending on soome other conditions. The inputs will be a control reference and an array of properties. How can I use a property node to modify itself depending on the property that we need to change?

 

I have attached a snippet of how I am using now. That has a case structure with lots of cases. Will I be able to use the same kind of functionality without Case Structures? A kind of Property node which will modify depending on the input.

NI_forum.png

Note: I will be using this in LabVIEW Development Engine. So solutions using scripting nodes are also acceptable. Smiley Happy 

FFT output

$
0
0
Hi, I used fft.vi to get the fft of a sine wave. A shot of my simple code is attached. My question is what does the y axis represent?Values in y axis change when values of amplitude,sampling rate and number of samples are changed. Thankyou

FPGA compiling error 424

$
0
0

Here is an FPGA project with 7833-FPGAs, which after the configuration step leads to compilation error 424.
The same project with 7842 is successfully compiled.
This problem solution from NI unfortunately does not work with 400MB, 500MB or 4GB....

http://digital.ni.com/public.nsf/allkb/93142B590BB3B60786257893006F4AE3
LabVIEW 2010SP1 and Labview FPGA modules are used in evaluation mode in a Virtual Machine with Windows XP 32bit on a Windows 7 64bit PC.

Error-Log:

### CoreGenerator ###
WARNING:sim:89 - A core named
   <ipram_lut_sine_wave_generator_nifpgaag_ni_munge_4gs_afe_fpga_vi_fpgacompilec
   opy00000001_vi_colon_2> already exists in the output directory. Output
   products for this core may be overwritten.
ERROR:coreutil - Exception caught when running XST synthesis!
ERROR:coreutil - Failure to generate output products
ERROR:coreutil:424 - An error occurred while running Java. Please examine the
   console or coregen log file for a specific IP related error.
    For more information please search the Xilinx Answers Database for this
   error: http://www.xilinx.com/supportERROR:sim:57 - Error found during generation

MTw Xsens LabVIEW Data Streaming

$
0
0

Hello there, 

 

I am new to this. I have a project regarding tremor and joint angle analysis. In this project, I am using Xsens's MTw sensors and USB Dongle. The goal is to have the measurement data streaming in real time into LabVIEW.

 

The flow should be as this:
MTw Sensors  -->  USB Dongle  -->  LabVIEW

 

There is a friendly instrument driver ready for MTi-G series but not for MTw.

If that's the case, what are my options? 

 

There was a forum about the same issue but I am unsure if the goal has achieved. 

 

Regards.

Viewing all 66935 articles
Browse latest View live


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