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

PROBLEMAS CON SOFTMOTION


case structure

$
0
0

is there any way to end the case structure if the true or false changed when the wait timer in the case structure is still running?

Why won't my peer-to-peer stream work?

$
0
0

I am attempting to enable a continuous peer-to-peer stream between The PXIe-5122 Oscilloscope and the PXIe-7846R R Series Reconfigurable I/O Module. The PXIe-5122 is currently reading measurements from a PXI-5412 arbitrary waveform generator. At the moment I am just trying to send the read values from the waveform to the PXIe-7846R where I can see just to make sure the peer-to-peer stream is working before I move onto something more advanced. No error is returned but when I view the "element" output from the FIFO read in the 7846R VI no values appear. I have attached the LabVIEW Project below and a screenshot of the host VI (wires leading off screen are for the waveform generator).

labview的access violation 报错

Verify all values of hex array have occured.

$
0
0

I am reading hex values from a controller I want to match when certain messages occur and when all have occured I want it to stop the loop. Below I have a base of what I want but I can't figure out how to notify when all values of the array have been met.  I took the VISA serial commands out an I am just using this little setup first. 

 

The "Match First String" funtion is being used, it would be nice if it would output when a match has been met and then I could build and array and compare it to the input array but, I can't seem to solve this. 

 

I also tried to use the index output and alert when an addition of the elements have been met, but I want to avoid duplicates that would affect the total sum. Any insight on this would be helpful. Thank you !

Controlling case structure with daq assistant (digital input)

$
0
0

Hello, 

I am relatively new to LabView and I try to control case structure with digital signal. I use LabView 2020 and NI USB 6009. I try to control case structure with digital input signal, same as I can control it using the Boolean 2. I use the case structure to pause the program. So when the value is true the program runs, when it is false is paused. I test the NI USB 6009 and it read the signal correct. I really don't know what I am doing wrong. I think something must be wrong in this part of the Block Diagram: 

jofu_0-1597653423752.png
And for controling stop button it works. I can stop program using digital signal connected to Dev 1/Port1/Line3 on NI USB 6009.

Hope you understand what I try to do. Thanks.

 

 

jofu_2-1597653536356.png

 

 

 

Loading STL file into 3D Picture control

$
0
0

Hi All,

 

I'm trying to load a .STL file onto the 3D picture control. The entire model is not getting displayed. It is like there is a screen inside the 3D Picture control and everything behind that screen seems to be hidden. I have attached a screen recording so that you can understand better.

 

I have tried the camera position, target position and up direction properties, nothing seems to be helping. I have attached a vi that simply loads the model and also the STL file that I was trying load. Please help me understand the working.

 

Thanks in advance,

Dhinesh

The BOM (byte-order mark) in header file not understood by the DLL importer

$
0
0

Hello,
It seems that the BOM (byte-order mark) in header file is not understood by the DLL importer.
When having a BOM (for example \0xEF \0xBB \0xBF) at the beginning of the header file:

The DLL importer cannot complete the DLL import.

It is stuck in the step "Parse Header file", with the message "This might take a few minutes. Please wait."

The only option is to kill Labview with the Windows task manager.

Version: Labview 2016

Is this bug corrected in future versions?

Is there any work-around for Labview 2016 (other than changing the text files encoding) ?

Best regards


question

$
0
0

Good morning all,
Does anyone know why a program made on labview 2019 does not work when put on labview 2020

thank you

TCP IP latency calculation between two computers

$
0
0

Hi everyone,

 

I need to perform the TCP/IP Data streaming for the duration of 30 min at 2000 packets per second. each packet consist of 500 bytes of data. I made the simple TCP connection and the data via TCP write function. but, i need to check the latency (< 2 ms) of each packets the problem is both the system is having different clock time. im not having any source to perform the time sync between PC's. and suggest the minimum latency level of TCP in windows (LabVIEW).

Display seconds on X-axis of the graphs

$
0
0

Hello,

on a graph, I want to display the seconds in a relative time like 0 1 2 3 4 etc secondes from the start

 

It works fine.... if I use that code in the parameters : %<%S>t

 

where %< >t is the "relative time" box

 

Problem is : it start from 3680505071

 

So I have 3680505071 3680505072 3680505073 3680505074 3680505075

 

Anyone knows how to solve that ? thanks a lot

Building array of clusters of 1D array slows down after each call

$
0
0

Hi all,

 

I had a problem for which I found a workaround, but I would like to understand why this is happening.

Consider the code snippet below.

 

Capture.PNG

I am binning a 2D array into a 1D array by transforming the 2D coordinates in order to get the average value and standard deviation of each bin. Because the number of elements is not the same for each bin I used a Build Array and stored this in an array of clusters.

 

This might not be elegant from a memory management pov but it performs well enough on the first run, a few hundred milliseconds. However each call takes significantly longer than the previous. The 2D array size is typically around 600 x 300 elements and the binned array size around a few thousand elements. After a few calls it can take over 10 seconds to execute, both in developer mode as in runtime environment. There does not appear to be a memory leak.

 

By using Request Deallocation the execution time stays more or less constant. It seems the initialization of the 1D array of clusters does not result in the same state as during the first call.

 

Is this a case of the LabVIEW compiler failing to outsmart the user? Am I making things worse by using the In Place Element Structure?

LabVIEW Student Edition

$
0
0

I am teaching at a University. We have LabVIEW installed on our labo pc's, but there used to be a free LabVIEW student edition for 6 months. Many students installed the software on there own laptop enabling them to work from home as well. Certainly with Covid-19 this option becomes important.

However, since a few months the website (https://www.ni.com/nl-be/shop/labview/select-edition/labview-student-edition.html) with the download link changed and it looks like this is not free anymore. Is this correct? Even not a temporarily, limited edition for students?

 

Thank you in advance for any (regrettable) confirmation or (hopefully) alternative!

Fit Airy (Stokes) function to data

$
0
0

Hi, I've got results in the form of an image from some optical interference experiments that I strongly suspect follows an Airy-function. Has anybody got a VI that finds the best fit coefficients using something like a least square fit for an Airy function?

 

The signal has (as usual) a saturated centre peak with weaker sidelobes, so if it is an Airy function, it is of type Bi.

 

Cheers,

 

Mattias

Math background behind Averaged DC-RMS VI

$
0
0

Hello, 

I would like to ask a question about theory behind Averaged DC-RMS VI. I think that the lack of education is holding me back with understanding of Help page and it is kind of a pain. Google didnt help. Is there some open resource where I can educate myself?

 

Averaging type / time, what is "DC Value", exp. time constant and so on...

 

Thank you 🙂 


How can I set the numbers of scans to average with Ocean Optics spectrometer?

$
0
0

Hi, I've got an Ocean Optics HR4000 that I'm using with Labview, using the labview drivers. The signal I'm getting is quite low so I need to be able to change the number of scans to average but there doesn't seem to be an option to do this. There is an option to set the integration time but this doesn't seem to work, as I can set it to 20 secs and it still takes a lot less than a second. Has anyone else had any similar problems? I did have a go with omnidriver but couldn't get any of the vis to run without error and I don't have a password for it so was just using the part that isn't password protected.

Bug discovered when typedef contains array of unlabeled objects

$
0
0

Hi all,

I was grinding away on my current project last week when I realized I had started getting the dreaded "VI failed to compile" errors. After extensive hunting and tweaking etc (you've all been there), I tracked down the problem to this: I had a typedef block diagram constant that contained an array of unlabeled Objects.

 

It's just a quirk of mine, but I am compulsive about removing labels from my array elements to reduce context help clutter. Since the array is labeled, I don't want or need the element to also have its own label (until, apparently, now).

 

I discovered the issue in LV 2019 SP1, and had a colleague reproduce it in 2020. If you'd like to see for yourself:
-In a ctl file, create an array of LabVIEW Objects.
-Save the ctl, place it as a constant in a VI, and save. Everything's fine, right?
-Now, go back to the ctl and remove the object's label. Save the ctl, then save the VI; it will fail to compile.

 

The workaround here is simple enough (just keep the object labeled), but a bug is a bug. If LabVIEW can't handle this and must give a "typedef contains an array of unlabeled objects" error, that's fine, but the generic compile fail error isn't helping anyone.

 

Can y'all out there reproduce this, and if so, what is the best method of reporting bugs to NI these days?

Labview NXG Application Build Error

$
0
0

Hello,

 

I am in the process of building a data acquisition and control application for our lab within Labview NXG, and I have an initial program working on my personal laptop. However as soon as I attempted to build the program into an application I get the following error:

 

"The back-end compiler for this deploy target failed with with an exception while processing this file. The file may be corrupt or there may be a bug in the back-end compiler. Consider undoing recent edits, closing and reloading the current project, or restarting the application. Control-clicking the run or compile buttons will force another compile attempt. For help with this issue, please contact National Instruments or the third-party vendor responsible for this target compiler. Target kind: NationalInstruments. Target.NativeDesktop, File name: ::DevSystem::Interactive:Actors.gcomp: Exception NationalInstruments.InvalidStateException"

 

I have also attached a snapshot of the build status.

 

A few things I have tried:

 

  • Closing and opening the project and Labview NXG
  • Repairing and uninstalling, reinstalling Labview NXG
  • Going through each file in the .gcomp and making sure there are no broken VIs or dependency errors
  • Restarting my computer

I am programming in labview NXG 5.0.

 

I don't have any issue with sharing my project, however there are ~400 VIs in the project so it will be a bit of a challenge to share it.

 

Any help or recommendations are appreciated.

 

Thanks

-63040 Error, FPGA fails to run the code - sbRIO 9637

$
0
0

Hi,

 

I have this trial single board rio from RIO (9637) and I have been trying to test it. But when ever I try to run a code on it's FPGA, it gives an error:

Xonmyth743_0-1597686447558.png

I do not get this error when I need run any code on the Linux real time system, RT side. Device is visible in the MAX. Required software/ firmware are up to date & are installed on the device. I tried most of the solutions posted online on NI.

 

Commonly addressed: https://forums.ni.com/t5/LabVIEW/LabVIEW-Error-Code-63040-on-sbRIO-9632/td-p/3109878?profile.language=en

 

 

Strangest part is, it sometime randomly works normal but only a couple of times and then starts giving out the same error. Codes are tested as I have been running them on myRIO and have reconfigured and compiled them for sbRIO 9637.

 

Can anyone help me with this? I have to test it and return it.

Tdms write - how to buffer digital waveform data?

$
0
0

Hello,

 

I have a vi that writes to a data file point by point, and to reduce file size and fragmentation, I am attempting to buffer my tdms writes with the "NI_MinimumBufferSize" property.  

 

My vi works properly when I do not include buffering, but when I do, I get "Error -2507: Invalid group name and/or channel name" when attempting to write digital waveform data.  The error does not occur when attempting to write analog data.  When I do not set the "NI_MinimumBufferSize" property, the "tdms write" vi uses the daqmx virtual channel names, as expected.

 

The error only occurs once the buffer fills, and the vi attempts to write to the disk; the prior "tdms write" function calls do not cause any errors.

 

Attached are the working (no buffering) and not working (with buffering) vis. 

 

Does anyone know how to solve this error?  Thank you in advance.

Viewing all 69274 articles
Browse latest View live


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