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

Cambio de Path, new path.

$
0
0

Buenas amigos

 

En el VI que les mando tengo una programa para tomar datos y guardarlos en una hoja de datos. El problema es el siguiente, quiero que el usuario escoja un path, y se cree un archivo con un encabezado y el conjunto de datos. Eso ya está resuelto. Ahora me gustaría que si el usuario cambia el path, se repitiera el proceso igual pero en el archivo nuevo. Como pueden ver lo que hice en mi program fue que primero se crea el encabezado (una única vez) y luego se van añadiendo los datos (dentro de un while) siempre que el botón guardar esté activo. Lo que no se me ocurre es cómo una vez que el usario cambió el path se ejecute el código del encabezado y continue con la toma y guradado de datos. Muchas gracias por la ayuda.


graph of intensity

$
0
0

Hello dear community,

 

I want to plot an intensity graph for the study of a transistor saturation like what you can see in the picture attached .

I writed a program but it doesn"t work, can someone please help?

 

You can find the program attached to this post

 

Thanks in advance for your help!

update/replace PPL in project, PPL versioning

$
0
0

I can't find a consistent easy way to replace a packed project library in a project. If I update/rename/reconfigure a packed library, how can I get VIs in a project file to reference the new library?

 

As a wider discussion, how does one go about versioning PPLs such that the latest version is ensured to be in use by executables and other libraries?

 

LV2014

Scripting: Find wire class type

$
0
0

I am trying to create a Right-Click Shortcut that will distinguish between a wire of class A and a wire of class B when deciding which option(s) to add to the menu. Actually, more specifically what I really want to know is whether the wire is of a class that inherits from class A.

 

I got the reference of the Wire, then got the Data Type from an associated Terminal. so I know it's a Class.

The question is... how do I know WHICH class?

I have learned that you can't cast the Data Type wire (didn't figure), and I don't see a Value property on either Wire or Terminal.

And oddly enough, neither Wire nor Terminal seem to have nay Dependencies, despite the fact that the wire is of a type that must have an associated *.lvclass file.

 

Any Idea how to do this? Stumped so far...

Output arrays keep appending when running the vi multiple times

$
0
0

Hello everyone,

 

I'm not sure what a problem is and how to name it so please excuse my confusing subject. Basically, I had a subVI which converts a 2D string array into a 1D string array and also eliminate unwanted elements in the 1D array. So I called that subvi in another vi where the input is a 2D string array which has different column sizes:

a b c

d e

so LV automatically fills in the blank with either empty string or "0" if the array is a double array.

Since I have two different arrays, I want the subvi to be executed simultaneously, but every time I run this vi, the array outputs from my convert2Dto1Darray keep appending on the results from the previous run rather than update the output arrays even though in that subvi I created an invoke node for both input and output arrays to programmatically reinitialize the arrays to their default values which are an empty array.

 

It did some research on simultaneous run on subvi and has set shared clone reentrant execution on the subvi, but it didn't fix the problem. 

 

Any help would be greatly appreciated!

MV

 

ADC conversion attempted before the prior conversion was complete.

$
0
0

Hi,

 

I am using a NI 9219 module in a cDAQ 9171. I've been running my code for some time and all of a sudden I am now receiving the error "ADC conversion attempted before the prior conversion was complete.". Why is this? How do I fix this? I've read a bunch of forums on it, including the NI help for the error and all attempts to remedy the issue don't seem to work.

 

I am using continuous sample acquisition with a rate of 1Hz. My samples to read is 5. So sampling rate is 5 S/s?

 

Any help is appreciated,

 

Cheers,

Duncan

How to assign Decoration name or number to each decoration on Front panel?

$
0
0

Hi Everyone,

 

How to assign Decoration name or number to each decoration on Control panel?

 

Decoration.PNG

 

Best Regards,

Nirut

How to expand Tab Control to show full size when change to run with difference computer monitor difference resolution?

$
0
0

Hi Everyone,

 

How to expand Tab Control to show full size when change to run with difference computer monitor difference resolution?

 

UI.HowToExpandToDifferenceMonitorSize.PNG

 

Best Regards,

Nirut


LabVIEW have free library to interface with SIEMENS PLC S7-1200?

$
0
0

LabVIEW have free library to interface with SIEMENS PLC S7-1200?

 

Best Regards,

Nirut

Please tell me some ideas how to save to excel file

$
0
0

I tried to save velocity data to excel file.

However, I have no ideas what connector should i put it.

 

This velocity data is displayed as decimal number using indicator.

 

I will explain this program.

Get the value from the hall effect sensor, and then, convert to velocity through some program.

 

Could you tell me some ideas what connector I should put it ? 

Transfer data between FlexRIO 7962R(NI 5781) and PXI-7853R

$
0
0

Hello,

I am trying to find clues on how i can communicate between two FPGA cards (FlexRIO 7962R and PXI-7853R. I don't seem to find any relevant information regarding the same. I have seen that it is possible to do so for same cards but not different fpga cards. 

Also I was looking at the possibility of using P2P streaming, but the PXI-7853R does not have the peer to peer writer or reader.

Could some one just give me a clue on how I can go about this. I would like to send synchronized data from one to the other during the operation.

Any suggestion will be highly appreciated.

Thanks.

 

Best Regards

There is a negative number in the square of the real number. please help me

$
0
0

the file is picture

 

this program's purpose is showing the flight time money and flight distance

 

i want to operate the distance by scaling the picture length to real length so i multiple 37.7

 

the problem is in root[(a-b)^2+(c-d)^2] when operating (a-b)^2, the number is not exactly operate x^2   for example, 240^2=7364...

 

please help what's wrong this program... 

計測器からの情報をエクセルに保存する方法

$
0
0

ホールセンサ―で読み取ったデータを速度に変換しています。

この速度のデータを、データを読むごとにExcelに保存しようとしたのですが

どのコネクターを接続すればよいのかわかりません。

 

配線エラーで表示されている箇所に、なんらかのデータを変換するものが必要だと思われます。

速度は表示器で10進数として表示されいます。

 

教えてください。code.jpg

MIMO-OFDM LABVIEW ON NI-USRP 2920

$
0
0

Is there any mimo-ofdm coding in labview?

SCC_Provider_Startup.vi Error 1025 with Tortoise SVN + Viewpoint Tortoise Toolkit in LabVIEW &/ TestStand

$
0
0

 

Hello all,

 

I know that Tortoise SVN is not officially supported by NI but I also know that some of you are using it nevertheless to handle your source code control. I'm facing a problem for which I couldn't find any solution searching all over for a few hours and I thought that I'll give a try here:
I've started using it ~6 month ago without prior experience in using SCC software. I managed to set everything up to use the diff/merge utilities for both TestStand and LabVIEW, using the Tortoise SVN from their website + the Viewpoint SVN Toolkit from the VIPM, the settings were made according to these resources:
Our software versions are:
LabVIEW 2015 SP1 - 15.0.1f1 (32-bit)
TestStand 2014 SP1 - 14.0.1.110 (32-bit)
Tortoise SVN 1.10.0
 
Problem:
The error from the attached picture happens regularly (not always) when a TestStand sequence is opened and the first LabVIEW module is loaded. Then if the OK is pressed the error will be shown for every LabVIEW modules called in TestStand (as there are a lot of modules used in our sequence files, we need to close LabVIEW + TestStand from Task Manager). After closing it and re-trying the error usually goes away.
As can be seen on the 2nd picture, I can't do anything in the Tools\Option\Source control window (probably because Tortoise SVN isn't supported by NI).
I checked the LabVIEW.ini file also, searching for "SCC" or anything that could be related to this with no success.
 
Any help or ideas are highly appreciated! :-)
Thank you,
Zsolt
 

DAQ

$
0
0

Hi,

I am trying to save the 100 samples worth of data after each trigger event in a pulse train. I am using a VI inside another VI to control the data being saved. I am able to save the first pulse of of data by writing it to a measurement file (excel) but the data points after the first pulse reads zeros. Can anyone suggest how to solve this problem? 

The 100 samples are created every 200ms.

Could this be a problem due to the data being unable to be saved at the speed?

Is there any method of solving this using a buffer?

 

How to read a set of 100000+ bmp file images

$
0
0

Hi,
Greetings Smiley Happy
I have to read a folder that consists of BMP  image file which is monochromatic , do a preprossing depending upon a condition .
If the condition is fulfilled , only that image is saved in a new folder.

I have uploaded my vi and a sample image in the post.
I am facing error in reading the bmp file from the location. 
Kindly let me know where am I wrong? and suitable solution to fix this bug Smiley Sad

I am using vision Acquision and Labview version 15Capture 1.PNGI was unable to upload bmp file hence took a screenshot .properties.PNGAttached is the properties detail of the bmp file

Thanks and  Best,
Lipika

How to filter only one string from GPS

$
0
0

I have a GPS, I connected it with MyRIO using the UART port. 

The GPS tell me many datas (File attached), but I want only the $GPGLL string (With the correspondent values). How I can extract only that string from all the strings?

Also I have another problem, the GPS before finding satellites sand me this string: $GPGLL,,,,,,,,,102059.00,V,N*2C

While when it finds satellites it tell me this $GPGLL,3714.60345,N,01513.47139,E,102059.00,A,A*6D

So I want filter a string only when it is complete.

Switch port based on over threshold

$
0
0

Hello,

 

does anyone know how to do:

-threshold with setting the value in the graph,

-if the value is larger than the threshold, then it sends the command

 

I have this program with wave generator and osciloscope and I need to switch the port in the optical switch when the value is higher than the threshold.

 

Thanks for help and answer. Smiley Happy

Problem Using Value(Signaling) with Latching Boolean ver 2017(sp1)

$
0
0

I searched and couldn't find an answer to my problem. What I am trying to do is to exit a subVI by allowing the user to click either the "exit button" or the "Panel Close".

 

I have some housekeeping code in the Exit case that needs to be done regardless which button the user clicks. So when the user clicks the Panel Close, I wire a True to the Discard? event filter and use Val(Sgnl) to generate an event to execute the Exit case. This worked just fine in LabVIEW versions 2016 and prior. I tried to do this in ver 2017 (sp1) and it doesn't seem to work.

 

BlkDiag.png

 

In 2017(sp1), the Val(Sgnl) Data Type is now Variant Data. When I try to write to the property, nothing happens. The property throws an error and NO event is generated. The help file says that you cannot READ from a latched Boolean. Doesn't mention anything about writing to a latched Boolean. What do I need to do different to get this to work in ver 2017. I guess I could create a dynamic event, but the old way was a lot easier.

 

error.PNG

 

ValSigTitle.PNG

Latch.PNG

Viewing all 66878 articles
Browse latest View live


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