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

how to use acs712 ac current sensor with lifa?

$
0
0

Hi,

I am using labview interface for arduino and I have tried to programm asc712 sensor but i couldn't. here is the link of the sensor code: circuits4you.com/2016/05/13/ac-current-measurement-acs712/  .

i researched a lot and i found that i can modify lifa function ,but i don't know how to do so.  if i modify function,is it necessary to  make the same code in labview? .

can any one guide me or making labview code for this sensor.

thanks.


Darren's Occasional Nugget 02/23/2018

$
0
0

There is a little-known feature in LabVIEW 2016 and later called Data-agnostic Smart Probes. These are probes you can place on wires in LabVIEW that don't actually care about the value being passed through the wire, so much as they care that data has passed through the wire.

 

LabVIEW does not currently ship with any Data-agnostic Smart Probes, but you can create one relatively easily. Follow the procedure for creating a new smart probe, then simply delete the control that was created within the probe VI matching the wire data type. You now have a Data-agnostic Smart Probe!

 

I've attached an example 'Timing Probe' to this post (saved in LabVIEW 2016) that illustrates the power of Data-agnostic Smart Probes. See the following diagram:

timing_probe_1.png

I have created a Timing probe on each of those wires with different data types (normally, you can only probe a wire with a probe that matches the wire data type). But in this case, each wire has a timing probe, and in the Probe Watch Window, you can see the time difference between when data flowed through each wire. Note that each instance of the Timing probe allows you to specify a unique 't start' to calculate the delta t between execution of any other Timing probe and the current probe.

 

A few caveats about using Data-agnostic Smart Probes:

1. You have no access to the data that flowed through the wire being probed. You only know that when the probe executes, it's because data has flowed through the wire being probed.

2. If your Data-agnostic Smart Probe panel has an XControl on it (as the Timing Probe does), your probe will not work on LabVIEW RT.

 

To try out the Timing Probe attached to this post, unzip the contents of the attached zip file to your [LabVIEW Data]\Probes folder or your [LabVIEW 20xx]\vi.lib\_probes folder.

 

I look forward to seeing more scenarios for which the LabVIEW community can utilize Data-agnostic Smart Probes.

Data Acquisition delay after a certain amount of time

$
0
0

I have been learning Labview in the past months and all my knowledge have came from this site, thank you all, well this is my problem: 


I did this VI to log a and plot a lot of signals (14) in  real time, the acquisition in the start of the program runs very well, I verified it changing one of the granite heights sensor using my hands and instantly watching the change in the chart but after a certain time(i could not tell, it could be an hour or even half an hour) if I do the same experiment with the sensor that I mentioned before the chart takes several seconds to reflects the actual change so I figured out that after a certain time the data acquisition is suffering a delay. I have tried to reduce the Chart History Length and  turning on/off  the  Synchronous Display option. 

Thanks in advance for your help It will be very appreciated 

 

more info:

Labview 2015 (15.0 32 bits)

I am using a NI cDAQ-9184 to get the data

The sampling frequency is 1hz (1 second)

 

 

here is my VI and the  configuration file also you need to create(or cahnge in the code) this path D:\SHARE\DAQ to log the data there:

help! what standard Labview folder should I including in the project build? Thanks.

$
0
0

Hi:

 I know what customer vi is relate to my project vi.

 but Is there any standard(common)  labview folder should I including in the project file?

so some below vi will be including in the build?

logSummary.vi

productiontestSuites.vi

Linear Scale.vi

I though the above files will auto to add into project.

 

Thanks

 

LabVIEW 2017 Home Bundle for $49 = REALITY

$
0
0

Do you want the latest and greatest for $49? You can! At least I'm activated. Check out these screenshots:

 

License Manager

LabVIEW 2017 Home License Manager.png

 

About

LabVIEW 2017 About.png

 

VI with watermark:

LabVIEW 2017 Home Watermark.png

 

Here's what happened with me:

  1. Installed LabVIEW 2017
  2. Stayed in evaluation for the 45 days
  3. Bought the LabVIEW 2014 Home Bundle from Digilent
  4. Installed LabVIEW 2014 Home Bundle from NI (http://www.ni.com/gate/gb/GB_EVALLVHOMEBUNDLE/US)
  5. On installation, entered the serial number from Digilent and activated
  6. Went to work
  7. Got an email from NI saying that the serial number "also entitles use of LabVIEW 2017 and LabVIEW 2017 Application Builder".
  8. Got off work
  9. Fired up LabVIEW 2017 out of evaluation!

For now, this looks like a nice Friday surprise.

 

Anyone else seeing this?! 

 

-Pang

 

Get array of data from while loop after each iteration

$
0
0

I am trying to make a simple VI that instantly fills a 2D array with random numbers -999 to 999 every second (mimicking data acquisition). I used two for loops to create the random arrays and a while loop for the process. That part works perfectly. My problem is that I want to get the array from the while loop each second and put it through a subvi that will analyse the array line by line and then spit out a new 2D array with the refined data. From there I want to plot each refined array line by line. This all should be simultaneous. My problem is that I can't get the data from each while loop after each iteration so the random numbers are being generated every second in the array but of course I can't get them out until the while loop stops. Can someone provide an example of how I might accomplish this?

Some background:

This is a test for a larger application where data will need to be acquired in one subvi, either analysed in another subvi (if the user wants to do so, if not, raw data will just be plotted), and plotted after analysis in another subvi for up to 6 inputs simultaneously, so I don't think I can simply but everything in the while loop. In addition, the user will be able to apply calibration, and control different acquisition settings so data will need to be passed between multiple subvis simultaneously.

 

I attempted to use Notifiers (I've never used them and don't completely understand them but I saw an example where they were used for a similar purpose). I kind of threw it together into a vi for you to get a basic idea of what I'm trying to do. But like I said, I can't get the array every second from the while loop. I took a screenshot because unfortunately I can't post the subvis that go with it.

Failure to initialize lvanlys DLL

$
0
0

On a new HP computer running Windows 10, I've installed LabVIEW 2017, and am encountering the following error.

 

When I try to load any code that contains subVIs which initialize the lvanlys library, or I try to place such a subVI (for example, the "Mean" subVI) into a code, I get the following error message:

Error loading "C:\Program Files\National Instruments\LabVIEW 2017\resource\lvanlys.dll" A dynamic link library (DLL) initialization routine failed.

 

For the "Mean" example (code example attached), this error occurs twice, and then the subVI will place in the code. However, the code will still return an error (see attached PNG file).

 

Digging into the subVI, I see that it's trying to call the path:

e:\builds\penguin\labview\branches\2017\dev\dist64\resource\lvanlys.*

I assume this is a part of the build environment, but don't really understand it. 

 

Looking at other forum posts, I've checked:

  • that the lvanlys dll is present where it should be
  • that I have the needed runtime engines installed and running
  • that the MKL (math kernel library) is where it should be
  • that everything is up-to-date with LabView

I've tried uninstalling/installing three different ways (through my campus software library link, through the National Instruments website, and through the National Instruments website using the online installer), including deleting all National Instruments folders when I uninstall, and get the same error each time, and my department IT has been unable to solve it. 

 

Thank you for any help!

please help! How to add FTDI 2xx in labview project. Thanks Re: Labview with FTDI D2XX drivers

$
0
0

I try add DLL in Labview project.

but it seem still have problem

can anyone let me know if DLL install correct?

 How to fix the project build problem?

Thanks

 see 3 attached files.

 


how to plot 3d graph with points with fill point to base plane..?

$
0
0

Hello,

I would like to plot 3d graph with points from 0 plane to -10 ot 10 range. Putting the plane in the middle and plot the points with conical points projected to 0 plane.

 

I am measearing the flatness of sheet metal. I am using total station to measure it. I got the coordinates  in 3 axis and I would like to plot the deviation and show in green if it is inside of tolerance or outside of it (ploting the points in green if it is ok and red is it is outside of tolerance).

cones2.png

I would like to get anything similar to this picture attached.

I tried to do with scatter 3d, but with projection to plane i only see the point at plane not the 'fill to base line' or similar. and the plane is not in the centre, for example between 10 and -10 in z axis put the base plane in the middle in 0 value.

 

Any way to make it?.

Best Regards and thanks.

Fred

 

 

 

GUI for win10 tablet

$
0
0

I am making GUI for win 10 tablet but I am working on win 7 PC. I need this GUI to have buttons with mechanical action switch until release. Problem is that tablet touchscreen does not detect touch until I move my finger on it or until I release touch. For this reason I can't use events like mouse down or mouse enter.

I'd like to avoid buying Touchscreen Toolkit because I need only one simple function.

I have found solution (attachement) with user32.dll and Windows Message Queue.llb  which I build and tested on win 7 PC (works fine) and win 10 tablet.  When I run it on win 10 although there aren't any errors it doesn't get any windows messeges (it doesn't work).

Do you have any idea why I can't transfer it to windows 10 and how to solve this problem?

 

Thanks in advance for help.

 

Problem with exposure time with Basler acA2440-35uc

$
0
0

We are using LabVIEW 2011 to connect to a Basler acA2440-35uc camera.

 

Using vision assistant it just lists the camera as Basler GenICam, and only 3 properties to change: brightness, exposure and gain. 

 

Brightness and gain are integers, but exposure is a double (in seconds). In Basler pylon interface software however, it is an integer (microseconds). The problem is that the exposure cannot be finely controlled. For example, exposure of 0.004 - 0.011 are the same, but then there is a jump at 0.012. Having a look in MAX, the slider for exposure "jumps" between specific values, 0.00195312500, 0.00390625000, 0.0156250000, .. etc. 

 

I'm guessing the problem is some internal thing converting the double, any ideas?

 

Also, is there a way to get ALL the settings from the camera? e.g. white balance etc?

create a simulation scene (robotic module)

$
0
0

hello

i'm asked to deal with a project which aims to realize a robotic arm.but before i'm asked to create a simulation scene in labview in which i'm gonna simulate the performance of this arm.so i ask u if u know how can i realize this scene, can i upload a scene that i create using solidworks?? 

also, if someone can help me and tell me how the scene in the picture below was created (it's taken from the help in labview) (if there's someone who can send for me the labview code which permits the creation of this scene)

thank you

Phase shift due to multiplexing/interchannel delay

$
0
0

 

 

 

 

I have spent many hours trying to fix this, and none of the solution that I have tried have worked. I have done the math to determine the constant phase shift that occurs due to the single A/D multiplexing 8 different channels using this guide:

 

http://www.ti.com/lit/ug/tidu427b/tidu427b.pdf

 

 

I am not using an NI DAQ. I am using the USB-231 from Measurement Computing. Here are the specs for the card:

 

Resolution: 16-bit

Sample Speed: 50kS/s

AI channels: 8 RSE, 4 DIFF

Analog Input Range: +/- 10V

Code Width: 305uV/LSB

 

According to the above guide, The phase shift due to multiplexing is:

 

phi_mux = (f_in/f_ADC)*360 = (60Hz/50kHz)*360 = 0.432 degrees

 

and so the maximum phase shift I should see from channel 0 to channel 7 is 7 times this value:

 

phi_mux_MAX = 7*phi_mux = 7*0.432 = 3.024 degrees.

 

Since I will be sampling 8 channels “simultaneously”, each channel must be sampled at 6.250kS/s (50k/8) . And if I want to view up to 2.5 periods of a 60Hz waveform, then I will need to sample 260 samples (6250k*41m). I have these parameters entered on the front panel.

 

I wanted to test and see if I could observe the phase shift values that I calculated above, so I measured the exact same waveform on all 8 channels and calculated the frequency, amplitude and phase of all 8 channels to observe the phase shift due to multiplexing(front panel.png). The measured values were almost spot on the the calculated values. Because of this, I was able to correct the phase shift NUMBER, but I don’t know how to correct it GRAPHICALLY.

 

I have seen so many solutions that state to fix this by determining what the fixed phase shift is and correcting for it. But I do not know how create a new graph with the corrected phase shift (mux phase.png). 

 

Ultimately, I want to have a waveform graph that will display all 8 waveforms with the inter channel phase shift compensated. I need this to be very accurate so I can measure the phase shift of voltage and current waveforms within 1% accuracy.

 

How do I correct this graphically?

 

Attached is the VI im using (MultipleChannel.vi) It may not be much help since im not using an NI daq card. 

 

Thanks,

JM

Plot test data present in multiple excel worksheets

$
0
0

I have an xls file(attached) having date, time, test status, & test execution time present on multiple worksheets.

How can I plot XY graph of datetime vs test status  , datetime vs test execution time?

 

 

Error 20023 "The following conditions must be met: 0 < f_low

$
0
0

Could someone help me fix this error 20023 that appears when i run the attached VI. ifve tried everything but i cant get rid of it. Thanks


Plot IV Curve for diode using LabVIEW 8.5 connected instruments HP 34401A multimeter and HP 6611C

$
0
0

Hello everyone,

 

I am new to LabVIEW, and I am finding it difficult to write a program in LabVIEW. I wish to study the characterization of a diode using LabVIEW. I have LabVIEW 8.5 connected to instruments using PCI-GPIB. I can detect the instruments using MAX.

 

 Can somebody please help me with the program???. I want to remotely access HP 34401A( Multimeter) HP 6611C ( DC power Supply) using LabVIEW and plot IV curve for a diode with the help of these instruments. This is my first attempt after which I wish to do on transistors and other devices.  Can I do this program with out the help of instrument drivers??  Also can somebody provide me where I can find  SCPI commands for these instruments ???

Please any help and advice  is appreciated.

 

Crio RT error

$
0
0

we have a kernel error log,and we also have RT crash problem,does the kernel error cause the RT crash?

2018-02-25T09:26:43.525+00:00 NI-cRIO-9039-01B76F69 kernel: [ 1.819642] Warning: unable to open an initial console.
2018-02-25T09:26:43.527+00:00 NI-cRIO-9039-01B76F69 kernel: [ 3.265560] i801_smbus 0000:00:1f.3: Failed to allocate irq -2147483648: -107

 

How to multiply very small numbers withot round it to zero ?

$
0
0

Hi  everyone

When I multiply  tow values one of them have very small numbers (import from Excel) labview round  them to zero . How would i stop it from happenning?

 

Thank you.

Accessing a Teststand expression in LabVIEW

$
0
0

Hi,

I am super new to Teststand 

I have a numeric limit test step wherein the limits are a multiplication of 2 floats. I would like to access the limits in VI for simulation purposes. I know that I can access the numeric value with GetValNumber property but I am unable to find the property for an expression like this 0.151*0.9NumericLimitTest.PNG

Customized messages for SMTP

$
0
0

Hi colleagues,

Anyone have an idea aboult how send customize messages through SMTP?? I tryed with some examples and the SEND EMAIL on the palett. Works fine, but, without color and styles.... I need to customize the message with colors...
Thanks,
Marcos M.

Viewing all 66781 articles
Browse latest View live


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