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

How to use DAQ Assistant to display two analog channels in a XY Graph

$
0
0

Hi,

I am new to LabVIEW. I have been assigned a project in which i have to display two analog signals from an analog potentiostat i.e. voltage and current (also a voltage signal) on a graph using labview. I am using a myDAQ device to acquire these analog signals and I am using labview 2013 to display these signals on a graph. I am using DAQ assistant to configure these signals. Rightnow I have separate graphs for each channel. However, I want a single XY graph to display one voltage as a function of the other i.e. I want to have voltage on the X-axis and current output on the Y axis. Any kind of help is greatly appreciated.

 

I have attached a screenshot of the VI. that I have made.

Regards,

Max


Sum in a 3D array

$
0
0

Hello,

 

 

I have a 3 dimension array. On the 10 rows i have 10 coefficients. On the collums i have an index representig the data for whitch the coefficients were built. On the third dimension, the page, i have, basically, the time evolution of the index-coefficient structure. What  i need to do is make a simple sum like this: for each row-collum combination i have to sum the corresponding elements on the pages. I do not know hot to do this...

 

 

Can anyone help me please?

Unflatten From XML to Cluster?

$
0
0

Hello All,

     I don't know if i'm just having an off day or what but I'm Working on someone else's code (3-subVI layers Deep) and it keeps giving me this Data Type Error. This VI is supposed to read/unflatten from the XML document. I've tried setting the type differently on the unflatten from XML function, i also tried adding just an indicator to see what file type it should be expecting out, and a few other things. can someone show me where i should go next with this?

 

Thank you

 

simple counter between 1-11

$
0
0

hey guys,

 

 I just need a quick review on simple counter app. The main idea is that when user clicks on the button (+)  the counter increments +1 and when user clicks button (-) it decrements. In any case the value should remain between 1-11 and should be in sequence, that means 1-2-3-4.....-11 or in reverse oder 11-10-9....-2-1 ... soo I came up with this solution that I am attaching but I want to know if there is a much simpler way of doing this.

 

Best Regards

Measurement & Automation fails to open and throws the error MAXKnownException with an unknown exception.

$
0
0

Measurement & Automation fails to open and throws the error MAXKnownException with an unknown exception. 

Heres the log 

Context where exception was caught:
(No context - unhandled exception)

Module Base Size Version
-------------------- -------- -------- ------------------
NIMax.exe 00400000 0006A000 4.6.0.49152
ntdll.dll 770E0000 00180000 6.1.7601.18247
kernel32.dll 76060000 00110000 6.1.7601.18409
KERNELBASE.dll 74E00000 00047000 6.1.7601.18409
SYSFER.DLL 74830000 00072000 12.1.1101.401
nimaximp.dll 1BFB0000 0001B000 4.6.0.49152
SHELL32.dll 74E50000 00C4A000 6.1.7601.18429
msvcrt.dll 76830000 000AC000 7.0.7601.17744
SHLWAPI.dll 74D00000 00057000 6.1.7601.17514
GDI32.dll 76740000 00090000 6.1.7601.18275
USER32.dll 76480000 00100000 6.1.7601.17514
ADVAPI32.dll 75DD0000 000A0000 6.1.7601.18247
sechost.dll 76CC0000 00019000 6.1.7600.16385
RPCRT4.dll 76980000 000F0000 6.1.7601.18205
SspiCli.dll 74AE0000 00060000 6.1.7601.18443
CRYPTBASE.dll 74AD0000 0000C000 6.1.7600.16385
LPK.dll 76470000 0000A000 6.1.7601.18177
USP10.dll 768E0000 0009D000 1.626.7601.18454
ole32.dll 75F00000 0015C000 6.1.7601.17514
MSVCP90.dll 739F0000 0008E000 9.0.30729.6161
MSVCR90.dll 73DB0000 000A3000 9.0.30729.6161
VERSION.dll 74470000 00009000 6.1.7600.16385
IMM32.DLL 74D60000 00060000 6.1.7601.17514
MSCTF.dll 76BB0000 000CC000 6.1.7600.16385
ntmarta.dll 74320000 00021000 6.1.7600.16385
WLDAP32.dll 763E0000 00045000 6.1.7601.17514
uxtheme.dll 6EB20000 00080000 6.1.7600.16385
NiMaxUI.dll 1C2D0000 00269000 4.6.0.49153
MSVFW32.dll 6BE30000 00021000 6.1.7601.17514
WINMM.dll 73970000 00032000 6.1.7601.17514
COMCTL32.dll 73E80000 0019E000 6.10.7601.17514
WSOCK32.dll 73DA0000 00007000 6.1.7600.16385
WS2_32.dll 74DC0000 00035000 6.1.7601.17514
NSI.dll 75AA0000 00006000 6.1.7600.16385
OLEAUT32.dll 76580000 0008F000 6.1.7601.17676
mfc90u.dll 6D8E0000 003A1000 9.0.30729.6161
MSIMG32.dll 6EBA0000 00005000 6.1.7600.16385
dwmapi.dll 6EB00000 00013000 6.1.7600.16385
MFC90ENU.DLL 6EAF0000 0000D000 9.0.30729.6161
NiMaxRes.dll 1BFD0000 0007A000 4.6.0.49153
BtMmHook.dll 10000000 00038000 6.4.0.2900
PSAPI.DLL 76440000 00005000 6.1.7600.16385
DCIMAN32.DLL 6E1F0000 00006000 6.1.7601.18177
mxs.dll 1B240000 0000F000 4.6.0.49152
mxsutils.dll 1B4D0000 00041000 4.6.0.49152
MSVCP71.dll 7C3C0000 0007C000 7.10.6030.0
MSVCR71.dll 7C360000 00056000 7.10.6030.0
mxsout.dll 1B400000 00075000 4.6.0.49152
nirpc.dll 64600000 00014000 4.257.3.0
mswsock.dll 73A90000 0003C000 6.1.7601.18254
profapi.dll 76460000 0000B000 6.1.7600.16385
mxMax.dll 1BF20000 00086000 4.6.0.49152
AsstntUI.mxx 58000000 00240000 6.5.0.3005
MFC80U.DLL 71210000 0010F000 8.0.50727.6195
MSVCR80.dll 72E50000 0009B000 8.0.50727.6195
COMDLG32.dll 75D20000 0007B000 6.1.7601.17514
MSVCP80.dll 71180000 00087000 8.0.50727.6195
ATL80.DLL 6BD70000 0001B000 8.0.50727.6195
MFC80ENU.DLL 730F0000 0000E000 8.0.50727.6195
mxwTask.dll 59000000 00582000 6.5.0.3005
NETAPI32.dll 74180000 00011000 6.1.7601.17887
netutils.dll 74170000 00009000 6.1.7601.17514
srvcli.dll 74150000 00019000 6.1.7601.17514
wkscli.dll 74140000 0000F000 6.1.7601.17514
mxwRCEng.dll 56000000 00148000 6.5.0.3005
mxcal.mxx 1A110000 00056000 4.6.0.49152
mxcat.mxx 1BE20000 000AB000 4.6.0.49152
nidmfuiu.mxx 04360000 0010D000 1.11.0.49152
NIPALU.dll 64000000 00057000 2.1025.3.0
nipalut.dll 64500000 00006000 2.1025.3.0
NIPAL32.dll 1F700000 00007000 2.1025.3.0
SETUPAPI.dll 76240000 0019D000 6.1.7601.17514
CFGMGR32.dll 75DA0000 00027000 6.1.7601.17621
DEVOBJ.dll 76220000 00012000 6.1.7601.17621
nimdbgu.dll 6D280000 00031000 1.9.0.49152
niorbu.dll 6D000000 00017000 1.9.3.49152
nimstsu.dll 6E180000 0001A000 1.11.0.49152
nimhwcfu.dll 6DFD0000 000B6000 1.11.0.49152
nidimu.dll 6D050000 0001E000 1.9.0.49152
nimxdfu.dll 6D0F0000 0003E000 1.10.0.49152
nimxpu.dll 6E1B0000 0000B000 1.11.0.49152
iphlpapi.dll 74280000 0001C000 6.1.7601.17514
WINNSI.DLL 74270000 00007000 6.1.7600.16385
WININET.dll 74B40000 001BD000 11.0.9600.17126
api-ms-win-downlevel-user32-l1-1-0.dll 76A70000 00004000 6.2.9200.16492
api-ms-win-downlevel-shlwapi-l1-1-0.dll 770B0000 00004000 6.2.9200.16492
api-ms-win-downlevel-version-l1-1-0.dll 75AB0000 00004000 6.2.9200.16492
api-ms-win-downlevel-normaliz-l1-1-0.dll 76430000 00003000 6.2.9200.16492
normaliz.DLL 76450000 00003000 6.1.7600.16385
iertutil.dll 75AC0000 00219000 11.0.9600.17126
api-ms-win-downlevel-advapi32-l1-1-0.dll 76610000 00005000 6.2.9200.16492
USERENV.dll 76200000 00017000 6.1.7601.17514
nidmxfu.dll 04470000 0049F000 1.12.0.49152
nimru2u.dll 6EC70000 00044000 2.10.1.49152
nimmgluu.dll 69830000 0001E000 1.11.0.49152
nimercu.dll 6DFB0000 00019000 1.11.0.49152
MFC71.DLL 7C140000 00106000 7.10.6101.0
MFC71ENU.DLL 5D360000 0000E000 7.10.3077.0
niGPIBui.mxx 6B000000 0008E000 2.7.0.49152
niIVIui.mxx 02CE0000 000D0000 4.2.0.49152
niPXIui.mxx 671A0000 000BC000 2.1280.1.49152
niRemPXI.mxx 1A270000 00057000 4.6.0.49152
mxRmCfg.dll 1A000000 00090000 4.6.0.49152
niRMui.mxx 1AD70000 000FD000 4.6.0.49152
NISRLUI.mxx 6B500000 00061000 3.4.0.49154
NiSpyLog.dll 63800000 00010000 2.7.0.49152
niSWui.mxx 1A3B0000 00072000 4.6.0.49152
niVISAui.mxx 63360000 0017D000 4.1280.0.49152
niVISAres2.dll 62C30000 0002E000 4.1280.0.49152
RICHED32.DLL 6FC40000 00006000 6.1.7601.17514
RICHED20.dll 61F70000 00076000 5.31.23.1230
wshtcpip.dll 73A80000 00005000 6.1.7600.16385
nisysapi.dll 68A00000 000B2000 5.5.2.49152
dbghelp.dll 70F20000 000EB000 6.1.7601.17514
-------------------- -------- -------- ------------------

Application : C:\Program Files (x86)\National Instruments\MAX\NIMax.exe
User Name : Administrator
OS Version : 6.1.7601 (Service Pack 1)
Exception Code: C06D007E
Exception Addr: 74E0C42D

Return Address: 74E0C42D
Function Name : RaiseException
Module Name : KERNELBASE
Parameters : C06D007E 00000000 00000001 0518FD84
Source File : (not available)

Return Address: 68A3C6F7
Function Name : DllUnregisterServer
Module Name : nisysapi
Parameters : 00000000 0518FD50 005F59B8 0000001E
Source File : (not available)

Return Address: 68A53D87
Function Name : DllUnregisterServer
Module Name : nisysapi
Parameters : 00000350 68A791B8 005F59B8 00000000
Source File : (not available)

Return Address: 68A0DC65
Function Name : nisysInitDiagnosticsByValue
Module Name : nisysapi
Parameters : 68A01680 00000001 68A93BB8 FFFFFF01
Source File : (not available)

Return Address: 68A0DFC4
Function Name : nisysInitDiagnosticsByValue
Module Name : nisysapi
Parameters : 005E2C40 00000000 00000001 00000001
Source File : (not available)

Return Address: 68A01698
Function Name : nisysInitDiagnosticsByValue
Module Name : nisysapi
Parameters : 005E2C40 00000000 00000001 00000001
Source File : (not available)

Return Address: 1BE27A73
Function Name : mxGetProvider
Module Name : mxcat
Parameters : 02047084 020469F0 0518FED0 1BE76CBA
Source File : (not available)

Return Address: 1BE30D2E
Function Name : mxGetProvider
Module Name : mxcat
Parameters : 02047748 02029FA8 0518FF34 1BE21D4C
Source File : (not available)

Return Address: 1BE35780
Function Name : mxGetProvider
Module Name : mxcat
Parameters : 020469F0 00000000 00000000 02047818
Source File : (not available)

Return Address: 1BE21D4C
Function Name : (not available)
Module Name : mxcat
Parameters : 02029FA8 1BE6264D 0518FF7C 73DD3433
Source File : (not available)

Return Address: 1BE21CDC
Function Name : (not available)
Module Name : mxcat
Parameters : 02030018 9192C45C 00000000 00000000
Source File : (not available)

Return Address: 73DD3433
Function Name : endthreadex
Module Name : MSVCR90
Parameters : 00000000 0518FF94 7607338A 02047818
Source File : (not available)

Return Address: 73DD34C7
Function Name : endthreadex
Module Name : MSVCR90
Parameters : 02047818 0518FFD4 77119F72 02047818
Source File : (not available)

Return Address: 7607338A
Function Name : BaseThreadInitThunk
Module Name : kernel32
Parameters : 02047818 775D5D69 00000000 00000000
Source File : (not available)

Return Address: 77119F72
Function Name : RtlInitializeExceptionChain
Module Name : ntdll
Parameters : 73DD345E 02047818 00000000 00000000
Source File : (not available)

Return Address: 77119F45
Function Name : RtlInitializeExceptionChain
Module Name : ntdll
Parameters : 73DD345E 02047818 00000000 00000000
Source File : (not available)

VI running very slow in a new PC

$
0
0

Hello,

 

I recently changed my development PC, and one of my VIs is running much slower in my new PC. This is strange since the new PC is a bit better. In this PC I have an Intel i5 4210M 2.5GHz CPU, 8Gb of RAM and a disk with 7200RPM and 16MB of cache. The PC I was using before had an older intel i5 3210M CPU, 4GB of RAM and a 5400RPM disk.

 

In the current project I'm working I'm monitoring some production lines. I'm using Labview 2013 and the DSC module's OPC server to connect to the PLCs on the production line.

 

In the VI that is slower in the new PC I'm reading about 50 shared variables from the OPC server, I'm registering some data in a MySQL database, datalogging data on the Citadel database and registering alarms. On my older PC each iteration on this VI was taking about 1 second and now is taking more than 10 seconds.

 

I've noticed that when I run that VI the disk usage gets very high (constantly over 90%), but it's strange if the disk is causing this problem since it is better than the one I had on the older PC. The CPU usage is low (arround 5%) and the memory usage stays arround 30-35%.

 

Does anyone have any idea what could be happening? I'm getting very frustrated with this problem since the PC is brand new and I wasn't expecting to have a problem like this.

Waiting for timeouts in parallel for loop

$
0
0

Hello,

I'm currently working on a project where I communicate with a set number of devices over TCP. This happens in parallel, which is no problem as long as the number of devices doesn't change. I now want to open up my project to support cases with different numbers of hardware devices, which I would like to do in a for loop (i.e. read device information from DB into an array and iterate over all the elements).

I have read up on parallel execution of a single for loop, but it seems like logical cores is a limiting factor for number of parallel processes. Unfortunately I also have to consider substantial delays in the communication which results in significant wait times for each loop iteration.

As you can see I this creates a lot of idle time which quickly adds up (running with 10 devices on 4 logical cores takes three times the delay to complete whereas without the loop it would only take the delay time as all connections are waiting at the same time.

 

Hopefully someone can point me towards a solution.

Thanks

Accessing element properties on array of clusters

$
0
0

Hi,

 

I have an array of clusters (pic in attachment) and i would like to know if its possible to change the background color (for example) of a single element without.

 

Regards,

Pedro


Can not recover from loss of serial communication

$
0
0

Hello all,

 

I currently have a very frustrating situation in an application I am developing.  Since it is in development, everything is kind of in flux, so if something crashes and LV has to rebooted, this is not a problem (just a little annoying).  However, what is happening is that when I go to perform an operation on a serial port, my system crashes mid-connection - LabVIEW and all.  When I attempt to restart LV and the application, the ports are found and valid but I get the error that VISA is not able to access them.  This is the same error that is thrown when another system (or application) has control of the port.  In this case, ALL programs have been shut down prior to restart so I am not sure what could be hanging on to the port.  Here are some more observations:

 

  • If I close LV completely and attempt to open a connection to the port in MAX, I get the same error. 
  • If I power off the device that is connect via USB232 and disconnect it from the computer and then turn it back on and reconnect the device, same result. 
  • Oddly, this device is reported as still present in MAX even when the device has been disconnected or powered off and I can not unistall the resource via Windows Device manager (image attached). Ultimately, the attempt to uninstall the device hangs and the system will have to be rebooted.
  • Looking in Process Explorer (not the Windows Task Manager), I can see a running process LabVIEW.exe with the child nimxsoffline.exe running (image attached) even though there is no obvious instance of LabVIEW running on the machine.  the process appears to be an unkillable zombie... the deadliest.

Currently, my only recourse is to reboot the computer.  While rebooting works, this is an incredibly frustrating way of attempting to debug a program.  I am running NI-Serial 4.1 which I uninstalled and reinstalled yesterday.  ANY ideas will be much appreciated.

 

Cheers, Matt

error code on target machine.

$
0
0

I created a custom error code file on my development machine and included in my build.  Is there a way to access this custom error code file on my target??

I know the directory struct is different on the target and made the mistake of hard coding in the path on my devellopment machine.  What I'm trying to do is print out the custom error if and when the test encounters one.  I could create a custom error code.txt then look for the right error code then send it to the print...which is what I do on the development machine but how is it done on a target??

to interface my laptop webcam with LAB VIEW software 2013

$
0
0

hello guyz 

i have just satarted working on the Lab VIEW 2013 and i want to interface my laptop wecam with it help me in this problem :smileysad:

and i have download the separate driver kit that contains 391 folder so plz tell me  which one should i install 

FPGA Sampling problem

$
0
0

hi everybody,

 

i have a problem with timing on my FPGA,  i would like to acquire a signal at 400khz, and the  analogique/digital converter( NI5731) is working at 40MS/s, so one period of my sinewave should be described by 100 points, but what i see ( picture attached) is that one periode is described  with 23 points. So it seems like the analogic signal  is not sampled at 40MS/s as it should be. Any help ?

Thank you !

 

Regards

 

Jean

 

 

Simultaneous generation/acquisition

$
0
0

Hello!

 

I am trying to write a program to generate and acquire signals simultaneoulsy and then write the generated and acquired signals to two separate files. The way I have my code setup right now, I tried to feed one Output task and two Input tasks to synchronized Start Task vi's. Is this the best way to achieve synchronization? The reason I have two Inputs is because I want to verify on an additional set of pins my generated signal. However, when I try to run my program (with the following parameters - see attached), I receive the following error: "Error 50103 - NI Platform Services:  The specified resource is reserved. The operation could not be completed as specified." I'm not sure what is causing this error. Also, I have read in another post that the timing may also be achieved through the use of a common clock pulse train (ai/ao). Can someone explain how to do this in my program? Thanks! Any other constructive criticism is much appreciated!

 

-UARK

add folders to build

$
0
0

I have a fairly substantial program that requires info in a tree of sub folders. I'm trying to get these automatically copied to the build folder when I build but can't seem to do it. If under source files I move the required folders to the always included box, it tries to dump all the files and subfolders into the build folder destroying the file structure. If I go to source file settings, I can assign the folders to destinations I created earlier, but I can't change the "Include if referenced" condition so that they don't get moved as they aren't explicitly referenced. If I try to do both, the files end up in the designated folders but the directory structure is scrambled with some of the files put n data# subdirectories. This should be a trivial task!

GPIB can't be configured in MAX

$
0
0

Hi everyone I am having a trouble with interfering the GPIB in Max.

All the options for GPIB are grayed (shown in the picture below) so i am not able to scan for instruments.

Any solutions? Thanks

 

Capture.PNG


calculating phase difference of two signal from signal generator

$
0
0

I used two sinusoidal signals from signal generator. I want to calculate the phase difference between them. I apply the "fft" and the "complex to Arg" block in GNURadio.  the center frequency is 600 MHz and the sample rate is 8MHz. 
but when I run the flowgraph a window is opened for just 1sec and then it is closed and nothing else happens! I would be thankful if you tell me if there is somthing wrong. 

 

Thank you

myRIO i2c probelm

$
0
0
Hi I've just started using the myRIO. I'm using the I2C to connect a remote device (motor controller). I figured out how to send data (speed), but Im having problems reading some values with the I2C function of myRIO. I want to read the register at 0x11 of my device. How can I specify which register I want to read? Thanks.

cRIO FPGA CPU 100%

$
0
0

My system consists of a host PXI host running a VI front panel and communicating with three NI-9112 cRIOs using shared libraries.   Two of the cRIO's utilize an FPGA and it is these two that consume 100% CPU according to the Distributed System Manager.   I have no idea why these two cRIOs are consuming 100% CPU.  Looking for any suggestions that may help.

Why would you create a property node

$
0
0

Hi,

 

I have been working with an instrument driver that deals extensively with property nodes. I have never worked with them before and their purpose is a bit unclear to me. What is the programming reasoning behind property nodes and what kind of applications are they useful for?

 

Thanks

Pictoral Controls/Constants for Plot Line Style/Width, Point Style, and Plot Interpolation

$
0
0

Hey Guys!

 

I am just wondering if there is anyone out there who has generated pictoral controls/constants for some plot properties similar to the LabVIEW built-in "Listbox Symbol Ring Constant" found in the "Dialog and User Interface" palette.

 

The plot properties that I am interested in obtaining pictoral controls/constants for are the following:

 

1. Plot Line Style

2. Plot LIne Width

3. Plot Point Style

4. Plot Interpolation

 

Plot Properties via UI:

Plot Properties (UI).PNG

 

Plot Properties via Block Diagram:

Plot Properties (Block Diagram).PNG

Viewing all 69605 articles
Browse latest View live


Latest Images

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