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

error 5002 at init vi

$
0
0

Hy everyone...

My computer use windows 7 64 bit and i have started my arduino program in labview 2016, but there are some errors appear:

 

"Error 5002 occurred at Init.vi. Unable to establish connection with Arduino. Please ensure that you have selected the correct COM port and that you have flashed the Arduino with the correct firmware.

This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.

Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (5002) or for its hexadecimal representation (0x0000138A)."

 

What is caused this errors ? Can you help me please?


the delay in producer/consumer structure

$
0
0

Hi everyone, 

I need to trigger an output after an input pulse, I test the input and output signal through the oscilloscope, and found that the output has a delay of around 78ms, is that caused by the analog to the digital signal converting and data transferring? each of the loops won't cause that much delay.

thanks!

Asynchronously called vi slows down both the caller and called

$
0
0

My understanding was that a vi called asynchronously  in "fire and forget" mode is independent of the caller. I have noticed though that the slow down effect is more pronounced (20 fold) on the called. Once you close the caller, the called speeds up tremendously!

 

I have checked everything and cant find any sub-vi or anything that constitutes "data dependency" between the two. The called vi reference is opened from a file path located within an llb. Both the caller and called vis are within the same llb.

Can someone help 

Error/Crash "Resetting for xxxxxxx.vi.ACBRProxycaller.D500013B

$
0
0

I often get this error "Resetting for xxxxxxx.vi.ACBRProxycaller.D500013B and usually happens when I double-click quickly on a control (has a mouse down event (left click) and drop event associated with it plus some user menu events on right click). Virtually started once I moved from 2015 to LV 2017

 

Any explanations?

crash report caught by NIER (Labview 2016)

$
0
0

I'm Getting Error Report as below, May I know how to solve this problem ? I'm using .NET constructor and MySQL in the system.

 

####
#Date: Sun, Jun 23, 2019 6:27:47 AM
#OSName: Windows 10 Home
#OSVers: 10.0
#OSBuild: 18362
#AppName: xxxxx
#Version: 16.0 32-bit
#AppKind: AppLib
#AppModDate: 6/22/2019 22:25 GMT
#LabVIEW Base Address: 0x30000000


InitExecSystem() call to GetCurrProcessNumProcessors() reports: 4 processors
InitExecSystem() call to GetNumProcessors()            reports: 4 processors
InitExecSystem()                                      will use: 4 processors
starting LabVIEW Execution System 306708506 Thread 0 , capacity: 1 at [3644087268.42711690, (06:27:48.427116871 2019:06:23)]
starting LabVIEW Execution System 306708507 Thread 0 , capacity: 1 at [3644087268.43309450, (06:27:48.433094502 2019:06:23)]
starting LabVIEW Execution System 306708508 Thread 0 , capacity: 1 at [3644087268.44007440, (06:27:48.440074444 2019:06:23)]
starting LabVIEW Execution System 306708509 Thread 0 , capacity: 1 at [3644087268.44201610, (06:27:48.442016125 2019:06:23)]
starting LabVIEW Execution System 306708510 Thread 0 , capacity: 1 at [3644087268.45005180, (06:27:48.450051785 2019:06:23)]
starting LabVIEW Execution System 306708511 Thread 0 , capacity: 1 at [3644087268.45228430, (06:27:48.452284337 2019:06:23)]
starting LabVIEW Execution System 306708512 Thread 0 , capacity: 1 at [3644087268.45429470, (06:27:48.454294682 2019:06:23)]
starting LabVIEW Execution System 2 Thread 0 , capacity: 24 at [3644087268.56867690, (06:27:48.568676949 2019:06:23)]
starting LabVIEW Execution System 2 Thread 1 , capacity: 24 at [3644087268.56867690, (06:27:48.568676949 2019:06:23)]
starting LabVIEW Execution System 2 Thread 2 , capacity: 24 at [3644087268.56867690, (06:27:48.568676949 2019:06:23)]
starting LabVIEW Execution System 2 Thread 3 , capacity: 24 at [3644087268.56867690, (06:27:48.568676949 2019:06:23)]

 

<DEBUG_OUTPUT>
6/23/2019 6:37:37.305 AM
Crash 0x00000000: Crash caught by NIER
File Unknown(0) : Crash 0x00000000: Crash caught by NIER
minidump id: 5233a0bc-6245-4410-933c-1ab9a091dcb9
ExceptionCode: 0xC0000005

</DEBUG_OUTPUT>
0x100011AF - nierInterface <unknown> + 0
0x10005F5A - nierInterface <unknown> + 0
0x100062EC - nierInterface <unknown> + 0
0x7C37FDB4 - MSVCR71 <unknown> + 0
0x76BEA550 - KERNELBASE <unknown> + 0
0x778D2881 - ntdll <unknown> + 0
0x77897A64 - ntdll <unknown> + 0
0x00000000 - <unknown> <unknown> + 0

How can I use LabVIEW to communicate with TI DLP using USB RAW?

$
0
0

I need help using LabVIEW to communicate with a TI DLP Lightcrafter 4500 unit using USB.I am not very familiar with USB protocol, however, after reading the DLPC350 Programmer's Guide, I know USB control of the DLP unit is possible using USB. In the past I was successfully able to use I2C protocol to communicate with the DLP using LabVIEW and Arundio. However, now I would like to learn how to use USB instead of I2C.

 

I used the USB Instrument Control Tutorial guide to setup the USB RAW drivers so it can be recognized by NI-VISA. I was able to successfully setup the drivers and get the devices to be recognized as a VISA Resource. Now I am using the example VI, "USB RAW - Control.vi" to communicate with the DLP unit (screenshot below). However, I am really confused on what I have to do with this example VI.

usb-control-example-vi.png

 

I read page 9-10 of the DLPC350 Programmer's Guide which explains the USB read/write transaction sequence. However, I am still not understanding exact what values I have to configure in the USB RAW - Control.vi to successfully control the DLP unit. Below is a screenshot of an exaple command reference to read the current power state of the DLP unit or to write (change) the current power state of the DLP unit. Using this example USB command reference, how can I use LabVIEW to control the DLP using USB?

 

dlpc350-command-ref-power-control.png

Continuous voltage data acquisition with Agilent 34972A

$
0
0

Hello everybody,

 

I want develloped a LabVIEW VI which should log 3 voltages. The programme works fine . But it seems as if LabVIEW records the channels step by step and there are always about 1s between two different voltages for each channel.And the machine will have the sound of switching channels. How can I make these sounds disappear and keep the machine collecting data? I want them to be parallelized and continuous.It might be possible that my LabVIEW VI is the problem because I actually had no idea how to create my VI and I was really surprised when it seemed to work.

I attached my VI and a text data to show you how it looks like.I want new voltages been logged every 100ms.

I use Agilent 34972A and LabVIEW2016.

 

Thank you very much and if anything isn't clear yet, just ask.

Continuous voltage data acquisition with Agilent 34972A


How do I plot data that is larger than 1 among the data I collect with DAQ separately?

$
0
0

How do I plot data that is larger than 1 among the data I collect with DAQ separately?

 

So I try to insert the '>' function into the 'case' function when the data value is greater than 1, but it is impossible.

 

A friendly friend who has just seen my writing a few days ago tried to help me, but there is a limit to my ability to solve.

 

Can you correct my code?? Help....

 

(Problem areas are indicated on pic2.)

Crashes when check FPGA development environment compatibility in MAX

$
0
0

I‘m new to develop FPGA Sbrio-9627 in LabVIEW,and have a crashes when i check the compatibilty of software environment in NI MAX. I tried many ways to fix it,but not succeed including LV 2017,2018,2018 SP1,the module and xilinx compile worker are all corresponding from the guides of NI website.

 

From the software platform bundle of 2019 which i could download only,other versions are locked,it‘s really bad. And the SPD2019 is successful with no crashes happened,but it can‘t be activated by network license of my company,so i have to give it up.

 

Open NI-MAX — set the correct IP— the Sbrio is running — click remote system— check compatibility of remote system— choose model of Sbrio — Next — the attached picture shows crashes

 

Are other any guys have the same prpoblem with me?

 

My installing order as below:

Windows 10 32bit

LabVIEW 2018 SP1 32bit

RT

FPGA

xilinx 17.2 compile worker

NI-RIO driver

NI communication EtherCAT.

 

Labview VI scripting: positionning indicators on the block diagram

$
0
0

I have positioning problems on the block diagram when creating indicators through VI scripting.

Looks like LabVIEW is taking some liberties with positioning  on the Block Diagram. I can't place them outside the Block Diagram viewable area. I made a small example VI (attached) which is supposed do create 8 evenly spaced indicators: 


labview-vi-scription-block-diagram-positionning problem.png

And here is the result:
labview-vi-scription-block-diagram-positionning-problem-result.png

 

 

I found two unsatisfactory workarounds
a/ Making a huge block diagram window, very unpractical.
b/ Moving the BD origin before placing the indicator:


labview-vi-scription-block-diagram-positionning-problem-partial-solution.png

  but here again, LV seems to take some liberties with positioning because resulting indicators are not  evenly spaced:

 

labview-vi-scription-block-diagram-positionning-problem-workaround2.png

Fun facts:
- The "New VI" position parameter affects both Block Diagram and Front Panel.
- I have the problem with controls such as indicators, but I can place nodes, such as invoke nodes, wherever I want on the block diagram.

Long story short, I suspect some kind of misunderstanding about the Front Panel / Block Diagram coordinate system duality. I can change an indicator position on the FP through its position property. But I couldn't find any way to script something  like "I want to move stuff on the Block Diagram only".

 

What am I missing?  

 

Correct way to use same instruments in 2 different VI's

$
0
0

I am trying to make a VI for automating Resistance vs Temperature measurements using LakeShore 336 temperature controller and Keysight B2912a source meter as the instruments.

 

So I want to make 2 separate VI's one to enter setpoint in LS336 in ramping mode (start to end at constant increment a second) and the other VI to take measurement data into a file and to plot the same on that VI (this VI will be in loop as long as user doesn't quit).

 

Now my doubt is that since 2 VI's are controlling LS336, should I use initialise and close blocks in both the VI's or Initialise in the control.vi and close in measure.vi.

 

I'm getting this doubt since If I keep both modules in both vi, then when I  use control.vi first then the instrument goes to the required mode but when I run the measure.vi it stops being in that mode but just goes to normal mode and reads temperature data.

 

Plotting FFT for vibrations

$
0
0

Hello!

 

I am trying to do FFT on the signal from accelerometer. I have an array of 512 that i need to plot repeatable. I tried using a Express VI for Power Spectrum or plotting real part of of FFT or the modulus showing on x-axis the nr. of samples/2.

image.png

First graph is plotting acceleration in g-units, the second is power spectrum on logarithmic scale.

I want to plot the power spectrum by frequency for vibration analysis, knowing that sample rate is 200Hz. 

Can anyone help me with some ideas. Thanks in advance.

串口一条数据优不同奇偶校验

Remove gravity from accelerometer

$
0
0

Hello,

 

I am using a 3axis acceleromter ADXL345 and I want to frequencies between 0.5-25 Hz.  I want to do some filtering first in order to get rid of the gravity factor and the dv offset as well as some noise. I have read multiple articles on the internet but none seems to be very clear. Can someone give me some quick tips to guide me with my task?

 

Thank you in advance


How should I expand this datalogger to multiple channels?

$
0
0

I'm working on a program which will collect data from a USB-6229 DAQ. In its current revision there are a couple of issues, but it does most of what I want it to do. My next goal is to expand the program to allow monitoring of and logging from multiple channels. So, here is my question:

 

1) What is the cleanest way to get this to log from multiple--up to sixteen--channels which could each be measuring different quantities and thus, might require different unit definitions? I know it's possible to select several channels with the "physical channel" control, but as far as I know, all the channels selected that way must have the same units.

 

2) What would be the best way to display up to sixteen channels? I know you can display multiple channels on top of each other in the waveform graph, for example, but any more than three or four data streams and it gets pretty difficult to differentiate them. I thought about making a front panel with sixteen different waveform graphs, but it seems like there should be a more elegant way to do it.

 

Any suggestions are welcome.

image processing

$
0
0

Hello i am trying to do the edge detection without the function IMAQ Edge Detection am asking if its possible just by the fonction IMAQ convolute please help

COMUNICACION LABVIEW-VECTOR CAN INTERFACE

Monitoring critical equipment -- problem sending alerts outside internal network

$
0
0

We have an expensive piece of equipment where cooling is important.  One weekend, the filters in a water cooling line got clogged, cooling failed, and damage resulted.  We are installing flow meters in the coolant lines, I'm designing a monitoring/alerting routine, and am also wondering how to sound an alert (the previous outage occurred on the weekend -- an e-mail or text message alert to various operators could have averted the damage (as the overheating takes about a half day to do real damage, so week-ends are a case of "unfortunate timing").

 

I investigated sending e-mails via LabVIEW, and found two sets of routines, one involving LabVIEW's SMTP routines (found in the current LabVIEW Examples) and another involving .NET routines (developed about a decade ago, but still apparently functioning in certain situations).  I tried using these to send to my Gmail account, but got foiled by two-factor authentication (LabVIEW wasn't recognized as an authorized e-mail sender, or something like that).

 

Inside the organization, we use Outlook.  While typing up this Request for Help/Suggestions, I realized I could try sending the message via Outlook (rather than through an outside e-mail service) to e-mail addresses outside the Institutional Firewall (so the intended Recipients could receive it even if not connected through VPN into the internal Network).  I will try this tomorrow (when at work) and will also welcome suggestions from other Forum users who have encountered and solved similar one-way alerting transmissions, and will report my findings.

 

Bob Schor

如何对LVDS信号进行采集,并还原视频?

Viewing all 66679 articles
Browse latest View live


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