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

LabVIEW 2016 crash when writting TDMS files

$
0
0

Environment: Win10 professional X64, LabVIEW 2016

Description: I use TDMS to record my acquisition data, the file size could be more than 50GB. There's about a third of the probability will cause a crash while running my diagram.

Windbg dump analyze:

(3d8.2798): Access violation - code c0000005 (first/second chance not available)
eax=00000000 ebx=00000000 ecx=00000000 edx=0a3809a8 esi=00000003 edi=00000003
eip=77c30a5c esp=0b48f070 ebp=0b48f200 iopl=0 nv up ei pl nz ac po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000212
ntdll!NtWaitForMultipleObjects+0xc:
77c30a5c c21400 ret 14h
0:011> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************

*** ERROR: Symbol file could not be found. Defaulted to export symbols for LabVIEW.exe -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for mgcore_SH_16_0.dll -
*** WARNING: Unable to verify checksum for nilmClient.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for nilmClient.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ni_traceengine.dll -
*** The OS name list needs to be updated! Unknown Windows version: 10.0 ***
GetUrlPageData2 (WinHttp) failed: 12002.

FAULTING_IP:
tdms!TdsFileBufListChannelNamesU_NT+399f
3501daaf 8b4614 mov eax,dword ptr [esi+14h]

EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 3501daaf (tdms!TdsFileBufListChannelNamesU_NT+0x0000399f)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 00000014
Attempt to read from address 00000014

CONTEXT: 00000000 -- (.cxr 0x0;r)
eax=00000000 ebx=00000000 ecx=00000000 edx=0a3809a8 esi=00000003 edi=00000003
eip=77c30a5c esp=0b48f070 ebp=0b48f200 iopl=0 nv up ei pl nz ac po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000212
ntdll!NtWaitForMultipleObjects+0xc:
77c30a5c c21400 ret 14h

DEFAULT_BUCKET_ID: NULL_CLASS_PTR_READ

PROCESS_NAME: LabVIEW.exe

ERROR_CODE: (NTSTATUS) 0xc0000005 - 0x%p

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - 0x%p

EXCEPTION_PARAMETER1: 00000000

EXCEPTION_PARAMETER2: 00000014

READ_ADDRESS: 00000014

FOLLOWUP_IP:
tdms!TdsFileBufListChannelNamesU_NT+399f
3501daaf 8b4614 mov eax,dword ptr [esi+14h]

NTGLOBALFLAG: 0

APPLICATION_VERIFIER_FLAGS: 0

APP: labview.exe

ANALYSIS_VERSION: 6.3.9600.17237 (debuggers(dbg).140716-0327) x86fre

FAULTING_THREAD: 00002798

PRIMARY_PROBLEM_CLASS: NULL_CLASS_PTR_READ

BUGCHECK_STR: APPLICATION_FAULT_NULL_CLASS_PTR_READ

LAST_CONTROL_TRANSFER: from 35025ff5 to 3501daaf

STACK_TEXT:
WARNING: Stack unwind information not available. Following frames may be wrong.
0b48fa30 35025ff5 00000004 0a38d608 0a385e48 tdms!TdsFileBufListChannelNamesU_NT+0x399f
0b48fa44 3504e741 0a38d608 0a385e64 0b48fe3c tdms!TdsFileBufListChannelNamesU_NT+0xbee5
0b48fb3c 3504e878 0a38be00 0a38be00 00000000 tdms!TdsFileBufListChannelNamesU_NT+0x34631
0b48fb7c 3500a596 0a38be00 0b48fe3c 0b48fe3c tdms!TdsFileBufListChannelNamesU_NT+0x34768
0b48fbb4 018b73fe 0ad68ad0 00000002 00000000 tdms!TdsObjCreateOrGetExA+0x66
0b48fbcc 00cd10e3 0ad68ad0 00000002 00000000 LabVIEW!SaveRunTimeDialogVIs+0x18e6e
0b48fd34 00cd41a2 0b48fdd0 00000001 0ad60140 LabVIEW!REdLoadResFile+0x36e3
0b48fde0 00cd5283 0589b344 00000000 00000000 LabVIEW!TDSRefNumToPath+0x322
0b48fea0 01fc3a84 0c95a800 0c95c140 00000000 LabVIEW!TDSFileWrite+0x463
0b48ff2c 01fc41fe ffffffff 00000001 052d2a60 LabVIEW!OnOccurrenceAndOccurAtTimeForExec+0x3d4
0b48ff5c 04e6d339 00000000 04e6d310 04e6d310 LabVIEW!EnqPrRunQ+0x45e
0b48ff70 766e0179 070a8b78 766e0160 0b48ffdc mgcore_SH_16_0!ThLocalStorageFreeKey+0x39
0b48ff80 77c2662d 070a8b78 93d971f4 00000000 kernel32!BaseThreadInitThunk+0x19
0b48ffdc 77c265fd ffffffff 77c4518e 00000000 ntdll!__RtlUserThreadStart+0x2f
0b48ffec 00000000 04e6d310 070a8b78 00000000 ntdll!_RtlUserThreadStart+0x1b


SYMBOL_STACK_INDEX: 0

SYMBOL_NAME: tdms!TdsFileBufListChannelNamesU_NT+399f

FOLLOWUP_NAME: MachineOwner

MODULE_NAME: tdms

IMAGE_NAME: tdms.dll

DEBUG_FLR_IMAGE_TIMESTAMP: 574274cb

STACK_COMMAND: ~11s; .ecxr ; kb

FAILURE_BUCKET_ID: NULL_CLASS_PTR_READ_c0000005_tdms.dll!TdsFileBufListChannelNamesU_NT

BUCKET_ID: APPLICATION_FAULT_NULL_CLASS_PTR_READ_tdms!TdsFileBufListChannelNamesU_NT+399f

ANALYSIS_SOURCE: UM

FAILURE_ID_HASH_STRING: um:null_class_ptr_read_c0000005_tdms.dll!tdsfilebuflistchannelnamesu_nt

FAILURE_ID_HASH: {a77f2193-f3b1-0bd5-ad7b-93ae9167e935}


Interfacing labVIEW with raspberry pi

$
0
0

Hello Friends,

I tried to interface LabVIEW 2018 with Raspberry Pi using Digilent LINX package, but it can be used only with LabVIEW 2014 where I also tried to download LabView 2014 version but it is not available So that I am unable to interface my device If there is any remedy for this, please guide me to rectify it.

 

How to read HMC 5883 Magnetometer

$
0
0

im using hmc 5883l sensor to read the magnetic field in 3 axes x,y,z.

i used arduino to get the output and i got the output. now im trying to interface arduino r3 with labview and get the output but im not getting any output. i have attached the vi which i used . i don't get any error but there is no output at all. please help me with this. 

Problem of example code 1D Kalman Filter Encoder and Accelerometer.vi

$
0
0

Hi,

The equation of y(t) in the example code 1D Kalman Filter Encoder and Accelerometer.vi is different with the one in the metric C of CD Construct Stochastic Model (Numeric).vi. Can you let me know why the difference?

屏幕快照 2019-03-30 下午4.32.10.png屏幕快照 2019-03-30 下午4.31.59.png

NI-DAQmx 18.1 installation in RHEL7

$
0
0

Greetings,

I am running LabVIEW 2018 in my RHEL 7.6 linux machine. I want to install DAQmx 18.1 in this machine. I have been using these two on Windows machine. But I am having trouble installing daqmx in RHEL 7 machine. I have checked the compatibility here  http://www.ni.com/product-documentation/52786/en/ and it shows DAQmx 18.1 is compatible with RHEL7. Following this page http://www.ni.com/download/ni-linux-device-drivers-2018/7664/en/ I am trying to install. It keeps living me the error that "no ni-daqmx package available". Can someone please guide me where I am doing wrong?

Using XY graph in a "conditional for loop" with double Y axis.

$
0
0

HI,

I have two Y inputs (current in log and linear scale) with same x axis (voltage). This is placed in a conditional for loop. So each time it takes one x value and gives a corresponding y value. I am able to plot the graph (during run time) with only one Y (left) axis. I would like to add a right Y axis which plot the y data in log scale or any other y value during runtime.

inverse kinematics

$
0
0

i have a problem with inverse kinematics of a 3 DOF robotic arm. How can i take feed back from actuators?

Reading Temp and RH using Arduino Uno and Labview 2018

$
0
0

Dear All,

I want to make a project, and the first step is to get right measurements from Arduino Uno using Labview. 

By using code from Arduino IDE Suite my  breadboard setup is working perfectly. But when i upload custom firmware to Arduino so i can read measurements through Labview i get correct data, but there is a delay between every measurement by approx. 25 sec.

Can some give me an advice how can i correct this, because it is driving me crazy.

prtscr.jpgprtscree.jpg


evs 1464

$
0
0

Hello,
I'm currently working on a graduation project with EVS-1464RT,
I have not yet the idea on which I am going to tread. I tried to connect EVS-1464 with the PC with an ethernet cable but I could not find anything in the MAX software,

thank you in advance for your help

 

Regards,

Select - Possibility to do NOTHING on alternative option ?

$
0
0

I have a SELECT function. It gets controlled by a 0/1 bool.

 

If it's 'true', i want to forward a 2D-String Array (i connected that, and it works well).

 

If it's false, i basically want it to not forward anything at all - but im forced to connect the 'false' terminal with something.

I don't want to forward an completely empty 2D-String-Array in that case (my sloppy makeshift solution so far), i really want it to just forward nothing or in other words "have no activity" (e.g. it should only react if it gets a true signal).

 

Special difficulty: Case Structure as alternative is no option here either. 

myrio exaple programs

$
0
0

does anyone where can i find myrio eaxmple programs

i trying to connect BMP 180 to myrio to measure pressure

i connected BMP 180 to myrio 1900 pins 30,32,33,34

are my connections correct?

and where can i learn to program myrio in labview

thanks in advance..

 

VISA resource name not found in LabVIEW

$
0
0

I am working with both [Keithley Source Meter 2614B with National Instrument GPIB USB] and [Lake Shore 325 Temperature Controller with Agilent 82357B GPIB USB] for temperature dependent resistivity measurement. Both two devices are shown in NI MAX and Agilent Connection Expert as shown in Figures. But GPIB of Lake Shore Cryotronics is not seen in the VISA Resource control in LabVIEW even after Refresh. VISA Resource control only show the  GPIB of Keithley source meter. Therefore, I am unable to control Lake shore 325 temperature controller. Another point is, if I put the GPIB of Lake Shore 325 manually in the VISA Resource, it shows error[VISA: (Hex 0xBFFF005F) No listeners condition is detected (both NRFD and NDAC are deasserted).]. Please someone help me.

DAQ Acquisition

$
0
0

Hi,

I need some help. 

I have cDAQ9189 along with 9201 AI and 9401 DI-DO setup. The AI module receives voltage signals(0-10V) and triggers a DO above a threshold voltage and records the data in a .lvm file.

I have a few queries regarding this setup:-

1. The Analog Input Voltage (0-10V) needs to be scaled as Pressure signal(0-700)bar. I am doing this at "Volt-Pressure Conversion" in Block Diagram. Please convey if this is the correct way to do it.

2. The AI has some glitches, I have grounded the signals but still too many glitches. For this, I am using filters before and after scaling. Is it OK?

3. When the pressure is above a threshold value, the analog signal is converted to a digital signal which I am writing to a DO. Due to a lot of glitches, the DO flickers a lot. How can we smoothen this so that the DO doesn't flicker?

4. I am writing all this data to a .lvm file. The issue is I am getting relative time instead of absolute time. I need the measurement file in the following format:-

Time(Absolute)Time(Relative)Pressure(bar)Pressure(Volt)DO

 

I have attached the VI and the .lvm file.

Please HELP.

How to fix Error1172 and Error1

$
0
0
I am working on AutoLab SDK(1.11.2) provided by Metrohm-Autolab to control my instrument(PGSTAT302) by Labview 2018, and there are some parts that I can’t make it working correctly.
 
Start from Autolab (Labview Project)
I have successfully  connected the instrument(PGSTAT302) to my computer and controlled  the cell on/off by Labview well.(connect.vi)
But every-time I try  to load a procedure ,the SubVI(Load Procedure.vi) part shows Error1172 first and then Error1.

Data communication using nanomsg library


Labview-DAQ

$
0
0

1.jpgMy analoge and digital Input

I have two signals as shown, the Analog input signal is pulse Gaussian. I want to measure the value of Analog input signal amplitude (1 sample) with 4 Analog input channels AI0 to AI3 on ​​NI ELVIS II device when the input digital signal changes from high to low as shown in the picture above. Each Analog signal will have a Digital pulse input and a Gauss pulse peak corresponding to Digital input from high to low.

I wrote an VI like the following figure

2.PNG I use triggers to start the task when the edge is down. But I think it only works once and then it goes into the while loop, the program in the while loop will repeat until I stop. Thus it will not be possible to check the condition of a falling edge if there is a 2nd or 3rd pulse to measure the Analog signal amplitude. Someone help me solve it. Thanks everyone.

 

 

 

 

 

Build sorted array, min/max

$
0
0

Hello everyone,

 

I have a task with Labview that I learn in university, but I am lost a bit.

I attached the final front panel.

Teacher helped with the following informations:

- adds a new value to a one-dimensional array if the new number is not already in the array

- when you press the stop button or access the 10 scanned items, enter the collected data

- use loop iterations and shift registers

- use build array to add new element

- use "array" functions palette

- use „Search 1D array” 

- use a logical OR connection to stop the cycle.

 

Could You help me?

3dr telemetry arduino mega

$
0
0

Hi. I am trying to use a pair of 3dr telemetry radio with a mega arduino in labview. I have already tried it in a normal arduino code and it works. But when it comes to ¨labview¨ , it does not work.
Could anyone help me

Problem with Dynamically built 2D array

$
0
0

I am trying to dynamically build a 2D array of MxN dimension. In doing so, I know exactly the number of Rows and Columns required to build a 2D array. However, I find extra set of rows added to the array as shown in figure below. I am unable to find the error, the VI as a minimal working example is attached here. Also how can I conduct statistics on just some column values. For example in the table below with 20 columns I would like to calculate the statistics on just the final 3 values of Columns 4, 8, 12, and so on. Do I have to use Array Subset VI for each column? How could I implement this dynamically?

 

LabVIEW_2019-03-31_15-35-13.png

ROI and color analysis

$
0
0

I'm trying to make a VI that can look at four plants and to determine if any one of them is brown. The top left plant in the image is plant 1, the top right is plant 2, the bottom left is plant 3, the bottom right is plant 4. I need to activate a boolean LED on the front panel for the designated plant in the case that it is brown, i.e. there should be four LED's one for each plant and if any are brown the LED should be on. I am trying to approach this by creating four rectangular regions of interests (one for each plant), and determining if any of the ROI's contain a brown plant. I am thinking of extracting the rgb values from the ROI's and analyzing them to determine if they are brown and turning on the LED if so. Although I'm not familiar with image analysis and I am relatively new to labview generally, I'm not sure if RGB values can be obtained for an entire ROI or if it is limited only for pixels. I will have a screenshot of my VI as well as the VI itself attached. The top right plant in the screen shot is an example of my brown plant. I would appreciate any help ASAP please. 

 

Thanks

Block diagram.PNGfront panel.PNG

 

 

Viewing all 69264 articles
Browse latest View live


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