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

Problem installing LabVIEW Control Design Toolkit

$
0
0

Hi!

I found an interesting example: "Simulating a wind turbine"

But when I tried to open it I can´t because I dont have LabVIEW Control Design Toolkit

I downloaded the evaluate version and installed it following the instructions but after that procces, when I try to open the program it doesnt find Sim halt.vi

 

How can I solve this? Shall I dowload another toolkit for this example or what is wrong in my computer? 

 

Thanks for your help


Help extracting values from outports

$
0
0

All, I have a very simple model where I am loading a Simulink dll into LabView to extract the values of the parameters used in the dll and the output value. The output in the Simulink model is connected through NiVeriStand Out1. I am not able to figure out the blocks I need to use to extract the values and display them in LabView. Any help is appreciated. I am uploading the VI and the dll

(myRIO) Saving Data to Excel - Measurement Vi makes excel file but does not write any data just time.

$
0
0

Afternoon, 

 

I'm having issues saving data.

 

I'm not sure why but the Measurement VI is only printing the time stamp. The VI file output says the path is not valid (though the files is made) and that nothing is being written to it. Which i can agree with. All that is in the file is a list of time stamps.

 

What am i doing wrong/missing? I assume the path is somehow wrong but it makes the file so im not sure why? I'm rather new to labview and myrio so I'm not really sure how there path structure works.

 

Kindest Regards,

Aaron 

 

P.S.

Regarding the VI ignore the top half that was just for testing expected outputs of signal the second half "Sensor System" is where the data saving is.

ID Query fail

$
0
0

I'm currently trying to use the Rigol DP821 instrument and I have the DP821 instrument pack downloaded. However, it won't let me run the program because the ID Query failed in the initialize section of the code. Any ideas? I tried replacing the constant with DP821 as well.

FFT scaling frequency axis

$
0
0

Hi, any help would be much appreciated, so my program reads in data values from an excel file, builds a waveform, takes the FFT of the waveform data, filters the FFT data, then takes the inverse FFT. My question is if the scaling of my graph for my frequency axis after taking the FFT is correct? I am expecting a high frequency around 0 Hz, then a slight spike around/ near 0.1 Hz, which seems to be about what i am getting.  I am unsure if i am using the correct method to scale my axis of the FFT plot  though because i am just using the build waveform VI. My dt value is .142, as i got that from the hardware i am using to obtain these values. Can someone verify if i am doing it correctly or if i am way off and need to do something to correctly scale it? I am newer to labview and have tried everything i can think of.

 

Also, I am using a bandpass filter with a low cut-off frequency of 0.01 Hz and a high cut-off frequency at 0.5 Hz. After applying the filter and taking the inverse FFT i get a sinusoidal wave as displayed on the graph labeled "Resistance FIR Filtered Inv FFT" which is exactly the end results that i want. Because of this result, it makes me think that possibly my FFT graph is scaled correctly since the peaks i am getting on the FFT graph happen between 0.01 and 0.5 Hz. 

State machine program for multichannel multi sample input

$
0
0

Hi to all,

            I have created a simple state machine program to acquire the data from DAQ 6211 device 16 channel input and used tare function to initialise a voltage to zero and now what i want it is?

i need to display a XY graph for all the 16 channels, and i have attached a model vi too for this vi and also at the same time i need to create a analog output channel also, how can i to do this all easily together, i will attach a vi together for better analysis.

Thanks in advance,

regards,

Dinesh

4D Viewer in LabVIEW

$
0
0

Hi,

 

Is someone knowing a nice viewer to display clouds of points in LabVIEW and easily change the viewing angle in real-time by moving the mouse over the control?

I will like displaying an array of points (X,Y,Z Intensity) and see the clouds of point from different angles and also have a customizable color scale based on the point intensity. My array size is about 100 000 points

 

Regards,

 

Patrick

How to plot multiple curves onto one graph in Labview

$
0
0

Hello! So I am collecting some sampled data on a DAQ and plotting it on a plot in Labview using the "Build XY Graph". My issue is that I am looping through (using a while loop) to do multiple iterations of the test and I can't seem to figure out how to plot the multiple sets of data onto the same plot. Essentially this is what I have at the moment:

Capture.PNG


Engine Cycle, P-V Graph (OTTO Cycle)

$
0
0

I am new with LabVIEW it is somebody who has an example how to display P-V Engine Cycle (OTTO Cycle) ?

Waveform chart format(X-axis)

$
0
0

Hi, this might be a stupid question but I can't seem to figure it out. I want my x-axis to start at 0 and count in milliseconds up to 50(maybe like 5 ms intervals) with just a relative time.

Thank you

Error code 2 when trying to Abort VI

$
0
0

Hello,

I have a VI, lets call it events.vi, which has an event structure inside of a while loop. I have another VI that calls events.vi as a screen to display and under certain conditions will abort it using Abort VI from an invoke node that is referencing events.vi. When none of the events are met in the event structure, I get Error code 2 from the invoke node and I'm not sure why. I'm not using System Exec in events.vi. Does anyone know why I would be getting this error? I am unable to attach the VIs since they are part of a larger project and I cannot isolate this. 

Telnet with Labview

$
0
0

Hey Everyone, 

Thanks in advance. 

 

I am trying to connect to a CAN-Ethernet gateway using Labview through Telnet. Basically, I want to change some settings on it while my main VI is running the tests. 

My main program gets the data from the gateway without any problems. I am using TCP/IP to get the data from the gateway in my program. Thats why I prefer to use Telnet to make changes to settings  on the gateway. 

I am Telnet support has been discontinued in Labview, but was wondering if there is a work around, Any sample snippet or example would be helpful. 

 

Thanks

DLL / Callback basics

$
0
0

Hi All,

 

I am importing a dll functionality in LV using import shared lib tool. I am getting a following problem in exporting dll which are related to callback fucntion or if  I am wrong please correct me.

  

 Import dll.JPG

  About this problem I can see following callacks in my .h file

 

callbacks.JPG

 

I am well famillier with LV development and importing of dll (which are independent of these callback things) but not familer with C++ and I need your help for implementing these callbacks and using them in LV, I am queries about,

  1. Do I need to manually configue ‘call libray function’ for these callback dependent functions ?

 

  1. What is role of callback tab in this configuration window ?

 

Call Lib config.JPG

 

  1. How can I make C wrapper for this callbacks ? I mean I read about this a lot on internet to be more clear, is it the another .dll do I need to create and call it in LV ?

 

Thanks in advacne !

Need assistance in making a Cursor or Marker in a Waveform Chart

$
0
0

I cannot find a solution on how to make a Marker or Cursor in a waveform chart. I am recording 12 channels of data and would like to mark certain trigger times I would like to set up a control where the user can set it and another when something has been triggered. I cannot make a graph I know XY graphs have  cursors, I have tried several solutions on trying to plot my data on a chart but it doesn't work in real time, I need to mark my charts in real time. An example would be great. Please if anyone could help I would appreciate this.

Write to Measurement File writes samples out of order.

$
0
0

Hello Everyone,

 

I'm having a strange problem with either the DAQmx read or the Write to Measurement File express Vi where the data being written to the excel file is out of order as if it's throwing every 1/10th in first instead of the actual timed order. I've highlighted the excel file to give a better idea.

 

The PCI card is a 6040E if that matters.

 

Can't seem to wrap my head around this so I'd appreciate any help. 


Noise in LabView using NI BNC-2120

$
0
0

Hi!

I do have a problem with the NI BNC-2120. I am performing two-electrode voltage-clamp experiments with oocytes and record the membrane potential as well as the transmembrane current.

I record these signals both on a chart recorder (which works very well) and with LabView using the BNC-2120. Now, the membrane potential is recorded without any problems, however, the channel which records the current (output is also voltage) shows quite a strong sinus noise. This does not come from the amplifyer and seems to be routed in either the BNC-2120 or the PC. Does anyone have some advice on how I could get rid of that?

 

This would be greatly apprecitated!

Thanks, Mike

NI 9234 digital filter

$
0
0

Hello Smiley Happy

 

I'm using NI 9234 to acquire a vibration signal. I read the datasheet of this module and on page 5, it says that "The NI 9234 uses a combination of analog and digital filtering to provide an accurate representation of in-band signals and reject out-of-band signals."

 

However I didn't find a mention anywhere of the details of the filter (for example the type, order, etc.). Does anyone have an idea about this?

 

Thanks Smiley Happy

Are There Performance Drawbacks Between Using Named Queues vs Wired Queues?

$
0
0

I have an application with 12 separate state machines  running in (Asynchronous) loops. Eleven of the loops each has a data input queue, data output queue, and a message output queue. One of the 12 loops is specifically designed as the Queued Data Handler.  Meaning that all data transferred between loops passes through the Data Handler Loop and it is stored and re-packaged, and re-sent via the appropriate queue to meet the data requirements of each loop.  Thus there are 22 Data Queues attached to the Data Handler loop. Each loop also shares a single Message Queue that sends messages to the 1st loop (not the data handler loop) ... thus it is a multiple producer / single consumer queue.  In all there are a total of 33 queues used in the application.  Each queue transfers data clusters ranging in size from 30 - 500 Bytes with an average of about 300 Bytes. Loop rates vary from 10 mSec to 50 mSec.

 

As you can imagine using wires to connect all of the queues has become a wiring nightmare both alongside the queues and inside the already crowded state machines.  An alternative to wiring queues together is to name each queue and then use an [Obtain Queue/ Enqueue or Dequeue Element/ Release Queue] combination inside each loop where ever it is needed. This results in a much neater block diagram but I am worried that it might be causing a performance hit to the overall application due to the fact that everytime the combination is called a reference is both generated and then destroyed.

 

I have searched for information about drawbacks to using named queues but I have not found anything that addresses my concern.  Does anyone have any information or links to information  they can share regarding this matter?  Also is there a better way to use wired queues?  I tried putting all of the queue references into a bundle in order to pass around a single cluster wire (of queue references) but I have not figured out how to give each reference a unique name so using them is very tedious and prone to mistakes because they all share the same name (queue out).  Is there a way to rename a reference wire to a queue?

Tab control

$
0
0

hi,
i have 2 vi's. In first vi i need to type login and password and after i press tab key button "Continue" will be enabled. In second vi i know how to programmable type login and password via vi server but i dont know how to press Tab Key. Someone have an idea? i am using LabView 2011.

Control Desing and Simulation Module

$
0
0

I need this toolkit to open and probe and example called: Simulating a Wind Turbine

 

I installed the evaluation version and it appears activated at NI license manager, but when I try to open the Final Simulation.VI Labview shows that there are some errors and warnings.

 

Do you have any idea about what is wrong?

 

I have attached Ni license manager and an error list

Viewing all 69018 articles
Browse latest View live


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