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

Multiple X Axes for set of data

$
0
0

I have a data set that is a function of time in ms, but it is beneficial for the user to be able to see the data point as well as it will let them later choose between which two data points they want to run a curvefit VI. So far, I've used the X-Y Graph VI, but I can't seem to get the second X axis to work, the VI won't accept a 3 element cluster. Thanks for the help


DAQmx error: Buffer size

$
0
0

I have an error with Buffer size. I have an HR100 LVDT with a DAQ 6009. I don't get this error when I take out my loop containing my write to file block. I've already looked at NI's boards on this topic and they were of no help. 

Measuring frequency of a signal on FPG

$
0
0

Hi,

I am trying to measure the frequency of a signal on FPGA. I have a reference frequency (say-63.87 MHZ). I am getting the other signal through a DAC onto the FPGA . The sampling frequency on the FPGA is 250 MS/s . I need to accurately determine the frequency of this incoming signal and check its offset with respect to the reference frequency of 63.87MHz . Could you please help me find out if there is a good way to this using Labview FPGA.

 

Thank You.

 

Regards

Resolution of Power Spectral Density

$
0
0

Hi, 

 

I would like to know whether it is possible to change the frequency resolution of the power spectral density function. 

 

Currently I have a continuous signal with 20kHz sample rate, block size 2000 samples. 

 

Passing this through the "FFT Power Spectrum and PSD" function gives me a frequency array from 0Hz-10kHz as expected.

 

The default frequency resolution seems to be 10Hz, giving me 1000 points

 

I would like to increase the fft size so that I have a frequency resolution of 1Hz. 

 

Is it possible to do this in labview without zero padding the signal?

Option to hard code the path of Installer built in LabVIEW

$
0
0

I have an installer for which I don't want my end user to change it's installation path. Is there is any option to preset the installation path.. so that user wont get the Installation path browser screen at the time of installation.

 

Thanks in advance!!

 

Installer.png

How to use ultrasonic sensor HC-SR04 on arduino uno to labview

$
0
0

Hi...I have a problem to use ultrasonic sensor from arduino uno to labview 2017.Can anyone help how to use it?

how labview handles UDP fragmentation

$
0
0

I am building a 2 simple UDP communication applications. (one for many clients, and one for server)

  • it is 2 way (read/ transmit)
  • many clients - one server
  • data is not critical (i.e both client and server need only  the most-recent value)

Attached is screenshot of client and server applications.

To my understanding the UPD protocol does not guarantee data integrity so packed my be received fragmented or not at all.

My first question is - what does labview do when this happens?
I see three options:

  1. it transfers data in a fragmented manner (for example if original data is "ABCD" it will be received as "CDBAF"
  2. no data will be received by Labview (i.e. data will be discarded and "UDP read" will give Error56 - timeout)
  3. the "UDP Read " will give another error

Which scenario of above is true?

 

My second question is more tricky, and not pure Labview related.

I don't expect a definite answer for it. But will much appreciate your best answers based on your experience.

The network is WAN (via internet and not local network).

What will be the probability for data fragmentation or data loss.

I intend to have about 20 clients each one of them sending ~1K bytes of data every 1 second.

What percentage of data loss should i expect (~1%, ~10%, ~50% ?).

Thanks

 

 

 

Output Integrated Error and Derivative Action from Multi-Channel PID.vi

$
0
0

Hi all,

 

I'm building a program that uses the PID controller VI from the toolkit. I'd like to be able to plot the integrated error and derivative action in real-time while the operator tunes the control loops. I've managed to do this with a DBL instance of the PID.vi by modifying the subvi code slightly and adding output terminals for the integrated error and derivative action within the subvi (see below). The issue is that when I try to use the array instance of the sub VI (I have seven control loops) I can't find the integrated error or derivative action anywhere inside the sub VI. Does anyone know whether it is possible to find these or is it possible to calculate them separately? If there is no way to do it I will just have to use a PID.vi in a for loop.

 

Thanks in advance,

Dan

modifiedPID.png

 

 

 


data loss? - DAQ 6212 getting different amount of data

$
0
0

Hi, I am using a DAQ-6212 with Labview to get three types of simple data and saving with the "Write to Measurement File" function with a time column.

I'm getting the signal of an accelerometer, the electrical current signal and the signal of a simple encoder of a DC motor. I'm having a very simple problem.

 

The problem is: The accelerometer and current data are being saved correctly, but the encoder data (which passes through the "Tone Measurements" block) is being saved in an amount different from the other data. Every 100 values of the accelerometer and the electric current I get only 1 encoder value.

 

How can I get the same data rate for all entries? Is this a Tone Measurements block difference? I'm using it because I need the frequency of the encoder signal to calculate the motor speed.

 

 

I'm using continuous samples with 100 samples to read and 1k in rate (Hz).

Get control information from .ctl

$
0
0

Hello everyone,

 

I am designing an application where it will be helpful to get the information of a control from a .ctl file. I would like to use this information to later typecast some variant information.

 

Any clue on that?

 

Thanks in advance!

OPC UA toolkit can't get value

$
0
0

I have problem with one specific node called ServerStatus, where value is little bit more complex than just one string or numeric value. I always get bad status and value is empty.

 

Some simple values are easy to get. But I need to get these complex values too.

 

OPC_ua_value.png

 

Do anybody have experience with this? Do I need to improve structure more or change node IDs?

 

Thank you in advance for help.

Crash "DAbort 0x37C03D in MemoryManager.cpp" when calling DLL with "Call Library Function Node.

$
0
0

Hello All,

 

Can i call a dll created in LV2015 and trying to call in LabVIEW 2016 , as i am getting crashing of labview, not able to call the dll in other labview version.

 

Error 

Crash "DAbort 0x37C03D in MemoryManager.cpp" when calling DLL with "Call Library Function Node.

start at 100 and subtract 10 filling an array in a for loop?

$
0
0

HI i'm having a brain freeze can someone tell me how to fill an array in a for loop so it has 100, 90, 80,         70 etc - this is so simple but i'm having difficulty initialising the array and building it with shift register etc 

Post-execution action from Installer

$
0
0

 Hi

I use to use a post execution action in my exe compiler, in order to add folders and manage their rights wia CMD functions. everything work very well

 

problem: this function doesn't work when the executable is deployed form an installer

 

Do you have a suggestion to solve this?

thanks in advance

.NET Reference requirements

$
0
0

Some .net calls require a reference to be passed to them, some do not. If a reference is required but there is no constructor available how do I get a valid reference?

 

DotNetReferenceExample.png


Issues Receiving Pictures from O-Scopes.

$
0
0

Hey,

 

I have a program that communicates with an o-scope. At one point in the program it saves an image of the o-scope’s screen and then sends that to the computer through the GPIB, it loops through this area a number of times based on user input.

 

So the first time you run through the process it works fine but after that the very first loop in the process breaks and the image that is sent to the computer is either a blank image or just half the screen.

 

I have tried adding in timing nodes to slow the program down a bit, thinking that the first image takes longer to save, but that didn’t fix the issue. I have also tried letting the program run through the first loop and not record anything then act as if the second loop was the first loop and that didn’t work.

 

I am at a loss for what to do now, so any help would be very appreciated.

 

Thanks,

Dominic

Something about LabVIEW2014-Toolkit download?

$
0
0

Dose there any body know where to download the all LabVIEW 2014 Toolkits download?Or the IMAQ?

Finding coercion dots?

$
0
0

Can I find coercion dots with VI scripting?

 

I have already used the VI Analyzer and know there is one coercion dot in this unfortunately large VI.

 

I have replaced a custom control cluster with a type-def control in order to get the benefit that if the type def changes, the changes will be exported everywhere the control is. I am concerned I have missed some instances. There is certainly a coercion dot on the diagram, but I don't know where. (It may be for another type.)

Webservices error 413

$
0
0

Hello all,

I seem to be having an issue with my web service.  I am trying to add some static files and they are going beyond the current limit acceptable for transfer and I am getting the error 413 when deploying the service.  The web service is on a cRIO and I have tried the fix found in this article, to no avail.  My NIWebAppServer.conf file under /ni-rt/system/webserver looks like

 

# NI Web Application server configuration file.
#
# Global Directives
#
LoadModulePath ".:./..:./modules"

LoadModule niConfModule mod_niconf
NI.Conf.LoadINI NIWebAppServer.ini

LoadModule niSessionManagerModule mod_nisessmgr
LoadModule niAuthModule mod_niauth
LoadModule EspModule mod_niesp
LoadModule WSRuntime mod_niws

<NI.Conf.IfAnyHost SSLEnabled>
  LoadModule niSslInitModule mod_nissl
  LoadModule sslModule mod_ssl</NI.Conf.IfAnyHost>

NI.Conf.Listen

#
# Directives that apply to the default server
#
NI.ServerName "NI Application Web Server"
InactivityTimeout 60
LimitRequestBody 200000000
LimitRequestForm 10000000
LimitUrl 1024
ThreadStack 64K
WorkerLimit 10

DocumentRoot "./../www"
TypesConfig mime.types

#
# Pipeline Definition
#
SetConnector netConnector

AddHandler niAuthHandler
AddHandler WSRuntime
AddHandler fileHandler ""

AddOutputFilter chunkFilter

<NI.Conf.EachVirtualHost><NI.Conf.IfCurrentHost SSLEnabled>
    SSLEngine on
    SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
    SSLProtocol all -SSLv2 -SSLv3
    NI.Conf.ConfigureSSLCerts</NI.Conf.IfCurrentHost>

  NI.WSRuntime.Configuration user
</NI.Conf.EachVirtualHost>

The current LimitRequestBody is set to 200 MB.  I had it set to 2 GB and this didn't work so I thought maybe the limit was too high.  Anyone have any suggestions?  What am I missing?

Receiving UDP Packets from another application.

$
0
0

Hey guys,

 

So I am using Unity to create a virtual environment, where I am moving an object around the space.

Then I am using a script to send OSC UDP messages out which contain the coordinates of that object as it moves. I am trying to receive the message in Labview and this other program called Max MSP for audio routing. When receiving in Labview, I want to take this data and store it for analysis later.

 

The issue I'm having is that when I send this data out, the received message (in string format) is not the number I am sending. Even when I use another program to send a simple floating point number such as 0.5, the Labview string received is something like: "float, f $" (without quotes). 

 

I am using the simple UDP example for now and plan on modifying it, with an extra string display to monitor what is received. I know the message being sent isn't the problem since I can send and receive from Unity to Max.

 

Below, a screenshot showing a trial of this, Max sending a floating point number (with a dial) and Labview receiving on the right (with the string displayed). I know Labview is receiving the signal since as I rotate the dial and therefore change the number being sent, the time graph moves to the right as if writing "0" as it changes and the string displayed changes depending on the number being sent.

 

Any help would be appreciated, further information can be given if need.

 

ThanksTrial.png

Viewing all 66860 articles
Browse latest View live


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