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

How to read second last and last row of csv file

$
0
0

Hello

 

my data is stored in csv file daily in row as i attached file.

i want to read its second last and last row of data.

how can i do that.

 

need any suggest and guide.

 

Thanks

asif 

 


DAQ data into array

$
0
0

Hello! I've seen a lot of examples regarding inserting the data acquired with a DAQ board into an array. However none of them seems to be exactly what I need.

 

I'm working with a NI USB-6008 and my goal is to acquire 1000samples/sec and to write the data acquired in each second in the same row.

 

When I finish collecting 30 seconds worth of data I would have 30 rows and 1000 columns. But I can't find a way to make this work.

 

I basically want to do a moving average so my final goal is to sum every voltage in each column, divide it by 30 and get a vector with the average of the 30 columns, resulting in a single row and 1000 columns.

 

After this, in order to have a moving average, the 1st row needs to be eliminated and the 31st second needs to be recorded in the 30th row so I can average it again.

 

I've already tried the meanptbypt but that only gives me 1 value, and as I've said, I need the average of each column in order to get a vector, so I don't think that's the solution to my problem.

 

I've read all the info about arrays because that is the main thing I need to figure out, how to organize the DAQ data in the array, after that I think I can figure out the rest. 

 

Thank you in advance, please keep in mind that I've only started working with labVIEW so I'm sorry this is trivial for some of you. My VI is attached.

Using a camera in LabVIEW / Utilisation d'une caméra dans LabVIEW

$
0
0

Bonjour,

 

J'essaye de réaliser une interface numérique avec LabVIEW, j'aimerai avoir deux écrans dans la surface avancée avec des rôles différents mais avec la même caméra. Tout d'abord, je souhaite avoir un enregistrement des images acquises avec une période de temps (exemple: toutes les dix secondes, je garde une image). Pour le premier écran (que j'ai réussi) est de filmer en continu un objet sans sauvegarder les images. Pour le deuxième écran, je souhaite utiliser les images sauvegardées pour toujours affichée la dernière image acquise.

Merci beaucoup d'avance. Je ne pense pas que mon programme soit très difficile mais comme je suis un débutant, je suis vraiment perdu.

 

Hello,

I am trying to make a digital interface with LabVIEW, I would like to have two screens in the "advanced surface" with different roles but with the same camera.First of all, I want to have a record of the acquired images with a period of time (example: every ten seconds I keep an image).For the first screen (which I managed) is to continuously shoot an object without saving the footage.For the second screen, I want to use the saved images to always display the last acquired image.Thank you very much in advance.I don't think my program is very difficult though as I am a beginner, I am really lost.

Silent Install of Labview 2020 and Multisim 14.2 Suite

$
0
0

I have created a software suite of Labview and Multisim using this information.

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000fyxySAA&l=en-US

 

Then our system admins run it through the VLM to create a VLI installer using this information.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000001DlTBCA0&l=en-US

 

Then when I get it back it has these 4 files.

_Src

Client

Install.exe

vli.id

Then I run start /wait install.exe --quiet --accept-eulas --prevent-reboot

But get an error stating 

One or more errors occurred while parsing command line arguments:

Unknown flag: /-quiet.

 

I also tried --passive with the same results.

 

 

I also read this 

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000g2lSSAQ&l=en-US

 

So I created an installer as followed.

 

start /wait _Src\Install.exe --quiet --accept-eulas --prevent-reboot

start /wait Client\vlmclient.exe /q

start /wait Install.exe --quiet --accept-eulas --prevent-reboot

 

 

 

Which gives the same error I mentioned earlier.

 

When I do an install.exe -h it lists the right commands and the commands I am using are correct.

 

How do I get silent install of this?

 

Very frustrating that a person has to jump through all these hoops just to get a silent installer.

 

 

Stepping at runtime

$
0
0

I have a program that I would like to pause at each loop iteration and restart at the next iteration using a button.. My test involves relocating a test probe for each iteration. All I see is debugging options which I'm not interested in.

Linked Network Actor is working on localhost but not on RT

$
0
0

Hi,

 

I have encountered unusual problem. I have created application based on example from this post:
https://forums.ni.com/t5/Actor-Framework-Documents/Actor-Framework-on-CompactRIO-and-Other-RT-Targets/ta-p/3514804
This application is working perfect when run on localhost.(URL adress: //localhost/Target_Management)

 

Problem appeared when I have changed localhost. So instead of running both Host and Target program on PC I have run Target program on cRIO (URL adress was changed to: //localhost/Target_Management where Target_Management is component name on Target) - it's not working. With build-in Linked Network Actor library method I have checked connection status and result was that writer is connected, while reader is not responding.

 

Thing is that exactly same code is working on localhost, while it's broken on cRIO.

 

M_S__0-1628093504158.png

 

I am attaching my application. i would be grateful for help

Converting Voltage to Sound

$
0
0

Hello, I am completely new to LabVIEW, and would like to convert the voltage from an STM into a sound wave that the operator can hear and respond accordingly. Any input on how to go about this is appreciated! Thanks for your time!

Graphique 3D

$
0
0

i am trying to plot the spectrum which is a curve (X, Y) versus current so for each current value i have a curve (X, Y).
I would like to plot the curve on a 3D curve. f (I) = (x, y).
Could someone give me an idea knowing that I used the 3D graphics from labview and it didn't work.
attached a idea of the problem


Write then read the same CAN signals

$
0
0

Hello NI community members,

 

I want to create a vi that does the following 2 tasks:

1) write CAN signals to a CAN bus (interface CAN1)

2) read all frames on that same CAN bus - including the ones that it wrote

 

(Note that all the signals I am reading/writing in the vi are listed as both Rx (recieve) and Tx (transmit) on the dbc file for them. You can find more information about the database in the block diagram for the vi.)

 

This seems pretty straightforward and creating 2 XNET sessions - one to write signals and one to read in stream frames - both with CAN1 as their interface should work. 

 

So far I am able to write the signal data successfully. I am attaching a snippet of the CAN bus trace I captured on CANalyzer and you will see that the messages from "LabVIEW_node" are present on it. These are the messages that I created on LabVIEW (vi attached below) through an XNET write signal single-point session.

can bus trace.PNG

 

The CAN bus has additional frames (from nodes such as vcu) that you will also see on this trace.

I am able to read these messages on LabVIEW - through an XNET read frame CAN in stream session. Here is a snippet of the front panel of the vi after I ran it for a few seconds. You will notice that the input frames display the x61x messages from nodes such as vcu, ipcimVie and becmA123.

vi front panel.PNG

The issue is that I cannot read the frames that I created on LabVIEW. If I disconnect other CAN enabled devices, and only have the LabVIEW vi running, the input frame array is completely blank. 

 

Would anyone happen to know why I can read frames from external nodes, but not the ones that I wrote through LabVIEW even though they are being transmitted to the CAN bus? 


I would extremely appreciate any insight on this issue. 

 

Also, I went through other NI community posts regarding similar issues, but was unable to find a solution that works for me. The vi that I created is, in fact, very close to one that I found as solution to a similar problem. Here is the link to that post - https://forums.ni.com/t5/Automotive-and-Embedded-Networks/Reading-and-Writing-to-the-same-Signal/td-p/3621530

 

Looking forward to hearing from you all.

 

Thank you!




 

 

Perform operation based in DBL input value

$
0
0

Hello,

 

I am trying to perform specific operations based on a DBL input.  In my case, if the input is between 701.0125 and 710.0675, I would do Test A.  If Test is between 710.0625 and 720.9875, I would perform Test B.  If however, the input is either 701.0125, 710.0675 or 720.9875, I would do a test based on those specific values.

 

I was attempting this, but it is getting convoluted:

hiNI_0-1628107007515.png

 

Is there an easier method to accomplish this task as the Array ranges grow?

.NET Component License Not Recognized by LabVIEW

$
0
0

Hello:

 

I am upgrading from a  third party ActiveX control to a .NET version of same control. After purchasing the license for the .NET control LabVIEW 2014 is stuck with a nagging dialog of the trial version. This trial version later expired this week and forthwith the .NET control no longer loads in the LabVIEW .NET container.

 

The control name is vsFlexgrid.NETClassic by ComponentOne also known as GrapeCity

 

I called support from the component vendor and unfortunately the vendor support staff are unfamiliar with LabVIEW and, hence, ran out of ideas on how to resolve this.

 

The vendor support staff later determined that LabVIEW may have a problem with recognizing the .licx file for .NET controls probably because this is a new approach of licensing .NET controls that is yet to be covered by LabVIEW.

 

Question:

=======

Does anyone know of such a problem with getting licenses .NET controls recognized by LabVIEW after the same License has been activated?

 

I searched for this on google but only encountered ways to register licx entries for Measurement Studio no LabVIEW hits.

 

Any advice is greatly appreciated

 

Anthony L.

How do I save amplitude vs time graph from my project continuously at certain freqency?

$
0
0

I need to capture and save data continuously at certain frequency during ultrasound wave monitoring.  I have reached where I can view the data from my vi program in a graph.  My next step is to enable it to save my graph data (amplitude vs time) automatically while the program is running in csv or Excel format.

Thresholding

$
0
0

Hello, 

 

I have an image like the attached file. 

I would like to convert this image to the binary values (1, 0). I will use this to compare some similar images.

Can any one help with the availability to apply the thresholding fir this image!

How can I connect two and more Arduinos in one project?

$
0
0

Hi, I have some problems with connecting Arduinos in one project. They send information via com-port and labview processing it, now it's two potentiometers. When I connect one it works propertly, but when I connect second it crashes or works on of them... Maybe somebody know how to fix it? 

labview.jpg

File Permissions

$
0
0

Hello,

 

Shall we edit the file permission (deny - delete) access to the user account programmatically?


How to pass a SubPanel Control as Reference and how to pass Variables in and out of a SubPanel Loaded Vi

$
0
0

Hey,

I have a simple task, but I’m Surprised on how tedious it seems to accomplish.

 

In a XControl i call some Vis that require User interaction.

I pass some Variables in and out and up to now I displayed the SubVis as Popup

 

In a next step I wanted to display these SubVIs in a SubPanel and came across some strange habits

 

  1. For me it seems I need to use Global Variables?! to pass Information in and out of a VI within a Sub Panel?!

 

  1. I can't use SubPanels as Reference?! (I wanted to pass a SubPanel reference to my Xcontrol and my Xcontrol should insert / remove the Vis to the SubPanel but I wanted the SubPanel not to be a Part of The Xcontrol, only using it by Reference)

 

I can’t believe any of these Points to be True so how is the Correct way to achieve this in clean Code?

Signal noise for cDAQ 9137 with C series module 9201

$
0
0

Hi there,

 

I have connected an NI 9201 module to my cDAQ 9137 and am receiving an analogue input voltage signal from each of the seven possible empty channels. The signal however has noise to it as seen below from my NI MAX 'test panels' window.

 

ANichs123_1-1628166495807.png

 

I have a few questions due to my lack of understanding of this signal. Am I expecting to receive noise like this with amplitudes sometimes over 0.1V? Is this just noise that is inherent in the module? If yes then what is it about the connection with the module to the cDAQ that causes this noise? If no then is there ways of attenuating this noise, through software or hardware. I have tried things like changing the module to different ports, replacing the module itself and the noise is also seen in my simple daqmx LabVIEW VI which just reads the channel signal and plots it.

 

I am happy to provide more information, just ask away. My aim for the module is to take the signal from a pressure gauge and log the pressure in a program. However the range of output voltages of this gauge is (without amplification) 1.9V to 2.1V for a 0-50 psi pressure range. Is it instead worth trying to increase this output range?

 

Thanks

 

 

FPGA VIs Launch Parallel Loops

$
0
0

Hey,

 

I am trying to figure out a method to nicely organize my FPGA VI's parallel loops, while still having access to all of the controls and indicators. Ideally each loop would be completely contained in a subVI, but this results in not having access to the C&Is.

 

On Windows, you can pass in a reference to the controls and indicators and have everything work out.

 

Has anyone come up with a solution to this problem?

 

Thanks,

Tom

Building an executable hangs Labview

$
0
0

I'm trying to build an executable within LV2017 / 2018 32bit.

 

When i use a simple vi with just a switch and indicator, it works.

But i'm using the AD2 toolkit from Digilent, and i think this causes it.

 

It starts to initialize and build, but almost at the end it stops forever.

No error message.

I need to close Labview with Task Manager.

 

What can i do ....

 

 

DAQ input data

$
0
0

Hello,

 

I'm very new with Labview. I'm trying to create a code in which a square signal (from a Simulate signal) goes into a DAQ assistant data.

 

However, I don't manage to obtain an input on the data of the DAQ. In fact, I open functions palette and select Express>Input>DAQ assist.

 

When it opens the window and I select Generate signals>Analog Output and double-click on Voltage, it says no supported device found even though my DAQ device is connected to my computer. I go through the Acquire Signals>Analog Input>Voltage, the channels show up and it makes me select the ones I need.

 

But why doesn't it work for the Analog output? Can someone please help?

 

Thank you all very much.

Carolina

Viewing all 69166 articles
Browse latest View live


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