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

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

Way to change Open behavior in Windows to open VI in new project?

$
0
0

Presently, in Windows Explorer, you  can double-click (or right-click and Open) a vi and opens in the current version of LabVIEW.  What I would like to do is have it optionally open the vi in a new project if there is already a project open.  I have looked at the command line interface (CLI) but don't see a switch or argument to force it to open in a new project. Any thoughts on how to accomplish this?

Swipe along I-V curve

$
0
0

Hello, my code consists of changing the gate-source voltage of a mosfet from 0 to 10 V and this should swipe along the I-V curve of PV module. Whatever be my sampling time, i should have an I-V curve at the end. My Vgs should increase in steps of 0.001V every 0.01s. The problem i am facing is that I am not able to swipe along the curve. My current and voltage sensors are callibrated correctly. I am using the NI 9184 chassis with submodules NI 9205 and 9923 to acquire and generate the voltages respectively. I am attaching my code. Please help me out if someone got a solution.

Problem from perform FFT on a square pulse

$
0
0

Hello, 

I have some projects about performing Fourier Transform from time domain to frequency domain, and I have learn a lot from the topic "How to perform FT on XY Graph data?"

https://forums.ni.com/t5/LabVIEW/How-to-perform-FT-on-XY-Graph-data/td-p/2206506?lang=en

After referred to above discussion I have successfully performed the transformation on cosine function by using the FFT.vi. 
However, an unexpected problem was occurred when I tried square pulse function. 
It should be a sinc function after transformation...
未命名.png
未命名.png
I can not figure out where the problem it. Any help will be greatly appreciated!!!


Two MHL overwritting a Table

$
0
0

Not sure why this happens but when I run my program it overwrites what the first message handler loop writes with the messages that the second message handler loop writes. This project follows the same guidelines of the sample project in LabView for the message handler queue. Also I am not sure why the table starts to fill in at the fourth row if someone could answer that too. ThanksBlock Diagram.PNGFirst Table (Front Panel).PNGSecond Table (Front Panel).PNG 

Use text file as input for a NI-USB

$
0
0

Hi i want to read a file to give as an input voltage for a ni-usb.i got a code where i choose between a constant value and a text.The constant value is ok but the text doesnt work when i try to measure with the multimeter.

measure voltage with multi-channel

$
0
0

0525_1 (1).jpg

Hi, I'm a new user of LabVIEW. I'm planning to measure voltages of 8 different channels at the same time. The picture above is my program. Just wondering if this program can work? It seems weird. 

Could anyone help me please?

 

Thanks in advance.

Sincerely,

Dong

Python Node in LV2018

$
0
0

I am trying to use the new native support for Python in LV2018.  I have Python 3.6 installed and have added the corresponding DLL to the path as indicated in the LV documentation.  I am able to open a Python session using the "Open Python Session Function" node and close that same session using the "Close Python Session Function" node, all without errors, which feels like a big enough accomplishment at the moment.

 

When I try and actually use the session with a Python Node to run a function that is built-in to Python (print) I get an error:

 

Error 1667 occurred at Python Node in pythonTest.vi

Possible reason(s):

LabVIEW: (Hex 0x683) The specified Python module could not be imported.


Module Path: C:\Python36\python36.dll
Function Name: print
Python returned the following error: <class 'ModuleNotFoundError'>
No module named 'python36'

 

In the example above I set the module to the Python DLL.  In the end, I'm not really sure what to set the module so that I can print "hello world!"

 

I'm effectively trying to run:

print("Hello World!") 

Just to so that I know I have a decent starting point.

 

Does anyone have any advice?

 

Thanks,

 

Steve

NIPM Post Install actions with variables

$
0
0

I want to create a package to install my LabVIEW 2017 application using NIPM. I'm using the "Package" build spec type from my LabVIEW project

 

The application's exe will be placed in [Program Files]\My Application

During the install process I need to run some post install actions. These post install actions need the path to the install directory though.

 

Using Windows Installers, you could use variables like [InstallDir] in your post-install arguments. Is there anything like this available to NIPM Package post install actions?

Viewing all 68924 articles
Browse latest View live


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