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

The Quick Drop Podcast - New LabVIEW Community Podcast!

$
0
0

Hi All

 

Apologies if this isn't the correct forum to post this on but I wanted to let the community know about a new LabVIEW podcast series I am running - The Quick Drop Podcast

Podcast Artwork.jpgQDP LogoQDP is a community driven podcast that I want to use to talk about LabVIEW and engineering/Science in general via a medium that I don't think we currently make the most of.

 

So far we have 2 episodes which are available on most podcast platforms (i'll link some below too):

 

Ep 0.1 -  Intro:

A brief intro to me & rasons behind the podcast

 

Ep 1.0 -  NI Linux Real-Time Controllers with Neil Crossan:

I am Joined by Neil Crossan, a Certified LabVIEW Architect, TestStand Developer & Certified Professional Instructor who works in ATE development.

Neil shares his experiences with the cRIO platform & some headwinds he's had using the current platform as well as addressing some of the ways he's customised and optimised the NI Linux Real-Time OS.

I am actively looking for more people to do episodes on, so if you have an idea please contact me:

 

E-mail: info@tthequickdroppodcast.com

Twitter: @quickdroppod

 

Links:

 

Apple Podcasts

Spotify

Anchor

Stitcher

 

Thanks!

 

Jono

 


Extract FORMULADT, MUXDT type information from CDD file

$
0
0

I have tried to extract FORMULADT, MUX data types from CDD file.

But I could not find the formula information. I could read FORMULADT, MUXDT type by accessing through ( DATATYPES child node -> Attributes->ArrayofNodes->Node name and Value). I only can check "Node name: usage & Node value : coded2Phys." but no formula information.

 

Could anyone inform me how to extract formula and MUX information?

And How could figure out XML structure to extract data from LabVIEW?

 

Many thanks,

ShawnKim

relation between sampling rate ad the signal freq

$
0
0

Hello;

I have some confusion on the relation between sampling rate ad the signal freq that when generating sine wave with sampling rate (1000) and freq(10) there is no problem but when increasing the freq to (100)Hz the sine wave shape changes (some information lost) , although it achieve the  Nyquist Theorem ,there is an attachment for this problemsine.pngsine1.png

DVR Problem still continues

$
0
0

I have been constantly trying to figure out how to access the same data used at one VI, at multiple different VIs. I was told to use DVRs and from then the problem began. I learnt how to use DVRs, but couldnt find how to use in Class as everyone told me to keep the DVR inside the labview object. I tried that and finally I was told that put the DVR in a sub VI and access the Data from that subVI by using the connector pane. Any change to the DVR will be automatically updated, that is what I understood. I did this simple program within a class which has a DVR of the numeric value in its cluster of private data. Then I created the DVR using Create DVR VI which I programmed. Then I created the write DVR function, which writes to the DVR: Then in the main VI i connected the create DVR to write DVR and also wired a numeric value to the write. Then I used my DVR sub VI and connected the output connector pane of that to a numeric Indicator VI using the inplace element structure and now the error showing is the reference is invalid. So I have not understood DVR still not correctly. Can anyone help me what is the problem. I have attached the project as well as pics of the error and the DVR sub VI. Kindly do help me. DVR Problem Contd.pngMain VI with the errorDVR SubVI.pngFront panel of the DVR subVI

Icon Editor Default Tab

$
0
0

Member MGould at 04-06-201705:55 PM states (see: "https://forums.ni.com/t5/LabVIEW/Icon-Editor-Default-Tab/td-p/3609331"):

"This is probably a super stupid question, but it is driving me up the wall and I can't figure out the solution.  When I double click on a VI's icon in the upper right corner of the IDE, it pops up the Icon Editor.  Normally I don't spend any time on drawing an icon, I just type in some descriptive text for the VI in the "Icon Text" tab, hit ok and move on with life.  Up until today, every time I open the icon editor it pops up with the "Icon Text" tab selected and I just start typing my text.  However, maybe I did something, or LabVIEW did something, or some rogue electrons did something but the Icon Editor now defaults to the "Glyph" tab on opening. Every time I have to select the "Icon Text" tab manually.  Does anyone know how to reset the default selected tab on the Icon editor? Please, my sanity is at stake!  I've checked all the options tabs, and the options in the Icon Editor and didn't find anything."

 

Problem still exits in LabView V18.0.

LabView-Ini-Value: "IconEditor.MostRecentTab=00000001" Changes while after (icon edit) use; but reopen icon edit still displays tab no 2.

Any Suggestions?

Install LabVIEW NXG on cDAQ-9132 embedded controller

$
0
0

Is it possible to upgrade my cDAQ 9132 embedded Windows 7 controller to Windows 10 and install LabVIEW NXG?

Interface variables in a Labview code with CAN signals in a dbc file

$
0
0

I have an existing LabVIEW code to control a coolant loop. It has multiple variables like Coolant out temp, PID gains etc. I want to send these signals via CAN to an engine testing software called PUMA. I created the .dbc file with signals I want to send over CAN. My question is how do I interface/connect the variables in my Labview code with the corresponding signal in the database (.dbc) file? I am using the NI 9862 CAN module which requires me to use NI-XNET. I have attached the LabVIEW code for the coolant loop below.

 

Thank you.

Kinect image out not compatible with other VIs image input

$
0
0

Hello!

I'm using an ASUS camera and get the images using the kinect VIs. I'm trying to identify the location of a green circle with Color Threshold but it won't show an image onlz a black screen. I thought maybe the Kinect Display Image vis output is not compatible with the input's 8bit image so i tried to use an IMAQ array to colorimage converter (bc I read that the kinect vi output image is a 2D array) but it displayed a blank screen and an error saying 'The image is not large enough for the operation'. What do you think is the problem and how could i solve it?

 

 


Adding multiple cursors to waveform graph automatically

$
0
0

Im doing bearing fault analysis and I want to add multiple cursors automatically without having to do it manually every time to check for my predicted values. please see the iv below. also is there a way to check the tone of the harmonics?

Linking to Property Node changes when Tab Order Changed

$
0
0

Hello Forum. 

 

I ran into an issue, and I'm not sure if there is a switch I need to flip or if there is something I'm doing wrong. 

I'm using LabVIEW 2015 SP1

Version 15.0.1f10 (32-bit)

 

I have a type def I'm using that is rather large, and I use property nodes to update/read as needed. I went in to change the tabbing order in the cluster, and it changed the linkage of the nodes. I've never seen anything like this before. Can anyone tell me why this happens? I will not be able to share the VI due to business reasons.

 

Here is the tabbing order pre-change:

TypeDefPreTab.png

Here are the nodes pre change:

NodesDefPreTab.png

Here is the tabbing order post change (I only did a couple since the changes would be catastrophic for me):

TypeDefPostTab.png
And the nodes post change:

NodesDefPostTab.png

help me fix this timer program

$
0
0

hello there,

i have attached my VI

can anyone help me fix this program to run the timer?

 

thanks in advance

Call-and-response between EXE through Functional Global Variable Events and VI Server

$
0
0

Hello,

 

I'm attempting to communicate between two running executables on the same local machine using VI Server and a Functional Global Variable.

 

Communication must occur via events, due to the design of my main application. 

My idea was this:

Create a FGV that holds two event registrations, one for the Client to listen to (Response Event), and one for the Main (server) to listen to (Endpoint Event).

The Functional Global Variable allows creation of these events and their registrations, and allows the sending of messages by creating either event. 

The FGV is available from VI Server, and the client uses VI Server to establish a connection to the application, and send an Endpoint Event to the Main VI of the application. This all works great, both in Development and as an executable.

 

Here is the problem: 

Although I can send a message from the client in both the development environment and the executable, I can only receive a response back from the main vi when in development mode. Why is this?

I initialize both the Endpoint Event and Response Event within the main application, so that the lifetime of both is the same as the main application. 

 

To recreate what I did in the development environment: 

1. Open Message Call and Response Main Example.vi, (Main)  and run.

2. Make sure that Message Call and Response FGV.vi is listed as an enabled vi in the string array on the Main vi's front panel.

3. Take note of the port output to the front panel (It should match the port set within tools->options-> vi server from your labview instance)

4. Open 'Send Message and Wait for Response from Event VI Server.vi" (Client). Fill in the port number input with the port output from the main vi. Add a string message to the Message input. Click run.

 

Expected behavior: The main vi should show a popup dialog with your sent message. The client vi should display the response message from the Main vi in the Client output 'Response Message'. The 'Timed out' boolean should be false. This works just fine when in the development environment.

 

To recreate what I did in runtime:

1. Build FGVListener. (The startup vi of this build is Message Call and Response Main Example.vi). Make sure that under advanced, the exe is using the custom config file included in the project (FGVListener.ini)

2. Start FGVListener.exe

3. Take note of the port number on the executable's front panel. It is a port number set by the .ini file (Make sure it is not the same port in the Labview instance!)

4. With the executable still running, open the client vi (Send Message and Wait for Response) in the DEVELOPMENT environment. Repeat step 4 from the development environment section above.

 

The exe is expected to behave the same as it did in development. However, in my environment, the popup dialog still occurs, but the client shows no response message, and instead experiences a timeout.

 

Things I've tried:

1. I've attempted to initialize the Response Event within the Client, instead of on the server. This failed to provide any change in behavior.

2. I created a Response Event Queue output on the FGV, and registered to it within the Client. Again, no difference in results.

 

Message_Call_and_Response_Main_Exampled.pngMessage_Call_and_Response_Main_Examplep.pngSend_Message_and_Wait_for_Response_from_Event_VI_Serverd.pngSend_Message_and_Wait_for_Response_from_Event_VI_Serverp.png

pulse compression of LFM signal

$
0
0

Hello every one:

I have a task to make a pulse compression to a linear frequency modulated signal using labview, I already generate LFM signal but I cant know how to make pulse compression, any one can help me

Controlling digital ports individually

$
0
0

Hi all,

I am sure this should be a trivial question but I am not finding the answer. I am using a PCI 6221 card. This card has the capability to individually configure digital lines as inputs or outputs, it works fine in NIMAX. I am not seeing how to configure this programatically. Below a screenshot of what I tried, I do not understand why both options do not work. An error occurs on the first iteration of the second for loop. (operation could not be performed because the lines are reserved). This error happens only for the lines in port 0 which makes me think all the lines in a port should be either an input or output.  In the examples I found a vi that configures a channel as a digital output and then proceeds to write to AND read from that channel. Should I just configure them all as outputs and then write to the lines that I want to be outputs and use a read block for the lines I want to read from (even though the line is configured as an output?)? Is the problem that I want to have digital inputs and outputs within a port? Ideally I would want all these lines in a task and then select each line individually to write to or read from. Can someone point me in the right direction to make this work? Any suggestions are appreciated. Let me know if I need to clarify anything. In the below screenshot, I of course run either option 1 or option 2, not both at the same time.

 

channels1.JPGchannels2.JPG

filtering array elements between two indices value of an 1-d array

$
0
0

hello,

can anyone please help in filtering out all the elements and taking only those elements of an 1-d array between the specified two indices value?

Thanks in advance 


Problemas Access 2016

Arinc429

$
0
0

Hi,

Has anyone done something with LV for the A429(Ballard) board? Specifically to send and receive messages?

Thank´s.

Generating custom analogical signal synchronize with an external trigger

$
0
0

Hi,

I'm trying to generate an oscillating voltage of custom shape. Furthermore, I would like that signal to be synchronize with a 100kHz square wave signal. I want my custom signal to repeat itself each time I receive, let's say, 500 triggers from my square signal.

 

I'm kinda new with labview. I did that small demonstration and generated a custom sinus signal but it only generates predetermined signal shapes.

http://www.ni.com/academic/students/learn-daq/generate/

 

Obviously they are many ways to do this but what would be the most efficient way to do it? Which functions should I look into to achieve that?

 

Thank you.

Get image from FTP server and display it in Labview

$
0
0

Greetings, I'm looking for help

 

     What I'm trying to do is to access a ftp server with folders and images and retrieve one of them to display it in labview.

 

Is it possibly? 

Please help!!

What is NTSC and PAL

$
0
0

Hello

NTSC predominant video system and National Television System Committee

Viewing all 69758 articles
Browse latest View live


Latest Images

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