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

Keysight E4980A plot multiple frequencies

$
0
0

Hi, I'm new to LabView and am trying to plot Cp and D from Keysight E4980AL for three frequencies of factor of 10 difference on one graph at the same time and write the data of each frequency on a text document. I've tried for hours and don't seem to be any closer, so any help would be appreciated.  


Optris IR Camera and LabVIEW

$
0
0

Hi,

 

I've been browsing the forum, trying to find some VI libraries I could use to interface my Optris PI 160 Infrared camera with LabVIEW. I came across this thread, which provided the most useful information as of yet... However, after following all the instructions and importing the libraries, I'm just a baby step away from actually getting it to work. 

 

My problem is that only a couple of the most basic VIs encounter an error and are unable to run ("SubVI is not executable", "Library not found or failed to load") even though I was sure to import all the necessary libraries to LabVIEW. When I try to open the SubVI and view what's going on behind the scenes, I'm requested to use a password, so that doesn't work. The library package comes with example executable applications, and while those work just fine, they're not actually running LabVIEW itself...

 

If anyone has used this VI package before, please let me know how you got it to work. Otherwise, I'd greatly appreciate any advice to try and make sure I'm not accidentally overlooking any important libraries (find a way to scan the necessary folder?).

 

Thanks for any help.

Issues translating PowerShell to LabVIEW (finding Assembly & Error 3008)

$
0
0

I'm having trouble translating two PowerShell scripts into LabVIEW.

 

The first worked fine in Windows 7, but is broken in Windows 10.

] $driveEject = New-Object -comObject Shell.Application
] $driveEject.Namespace(17).ParseName("X:").InvokeVerb("Eject")

 

For Windows 7, I used ActiveX "Automation Open", passing a static reference to "Microsoft Shell Controls And Automation Version 1.0/Shell (Shell.Application.1)" (aka Shell32.IShellDispatch6?).  Then I invoke NameSpace(17) on it, then "ParseName('C:'), and finally InvokeVerb('Eject'), all using LabVIEW Invoke nodes.  That worked great, as long as the drive was ready to eject (and popped up a dialog if it wasn't).

 

Now, in Windows 10, it started as a broken VI.  I had to re-select the exact same object for the static reference, and it was able to compile.  But it doesn't run.  Invoke:NameSpace(17) returns error 3008, "Automation Interface for the specified class cannot be obtained..."  It seems that isn't an unusual error when calling less standard .dll files, but shell32.dll???  (or is that what I'm really invoking?).  And the solution seems different each time.  For grins, I called every NameSpace(i) from 0...100; all are the same.  The Invoke Node does offer 'NameSpace' as a method I can call, so I know it is reading the .dll & getting the interface, even though the error says it can't.

 

 

I'm also hoping to translate:

] $o = new-object -com shell.application
] $o.Namespace('c:\My Folder').Self.InvokeVerb("pintohome")

 

I get the same error message (Windows 10 only this time).

 

 

I'd be happy to switch to .NET, and use a Constructor Node, but I can't find "shell.application" anywhere.  Which Assembly should I be looking inside?  (I tried browsing directly to System32/shell32.dll and SysWOW64/shell32.dll, but they wouldn't read).

 

[I've hit this issue, trying to find Assembly/Object, before.  Is there a searchable list anywhere?]

 

I tried LabVIEW 2017 for the first program, and 2015 for the second (both SP1).  I'm on Windows 10 Pro.

 

Thanks.

Does anyone know how to compare 2 tables of codes?

$
0
0

Hi i would like to know if anyone is able to help me solve the problem i have on hand.

The idea is compare the values on the table to stimulate the robot being in an environment. I have added 2 files that are robot and environment binary codes. When running the code, please select the delimited text file first before the excel file. 

Pls i am in dire need of help

Re: Export to Excel

$
0
0

Hello

i want to write data in Excel file but always i have error that i show it here.

i put program and result here.

i will be thank full if somebody help me.

 

dll show c++ runtime library error

$
0
0

I am calling a dll to acquire spectrum analyzer data, but I ahve been getting this error recently as shown in figure below.

c++ error.jpg

If i click on retry the vi runs smoothly but if the click on abort or ignore then labview crahes. 

 

Issue with using Extract contour VI with a predefined ROI

$
0
0

Hey!

This might be a very trivial issue since I'm new to LabVIEW. 

 

I'm trying to extract the contour from an image. I am trying to use a predefined ROI (Rectangular) instead of the regular user-defined Region ROI. It works fine with the user-defined ROI and I was able to do the further required analysis.

I'm doing this to eliminate the need to specify some region for analyzing an image. 

I have reproduced the same error by writing a small VI (Screenshot) since the original file had lots of other things. I'm just trying to get the size of the image and specify the whole rectangle that bounds the image as the ROI which seems pretty straightforward. But as I connect the ROI descriptor to the Extract Contour, it shows a red coercion dot. And the error pops up. 

Can anyone provide the reason for this error and how this can be resolved? 

 

Error -1074395720 occurred at IMAQ Extract Contour

Possible reason(s):

IMAQ Vision: (Hex 0xBFF605B8) Invalid ROI.

 

I've attached both the input files and the VI. 

 

Thanks for any help,

Prathamesh Kulkarni.

Error.JPG

copy a class from dependencies to project

$
0
0

I used some progress bar VIs that I found via VIPM.  I want to open and debug my source code on other PCs that don't have the same VIPM components installed.  I want to achieve this by having a copy of the required VIs inside my project folder structure.  However, because the progress bar VIs are inside a class, I don't know how to "save as" to break the link with dependencies.

My goal is to retain the progress bars, but not have them as a project dependency.

class.jpg

Under dependencies I can see ProgressBar_WireFlow.lvclass & ProgressBar_Win_WireFlow.lvclass.

In hierarchy view I see this:

hierarchy.jpg

How do I edit my project such that when I move to another PC, it doesn't fall over asking for the progress bar VIs ?


Append Image to Report VI keeps old file

$
0
0

Hello friends.

I try to build an HTML report in LV2011 with a jpg-image, specified by path.

I did it once, then changed the image but report anyway keeps old picture.

Neither LV restart nor PC restart do not help, image stays the same all the time.

What can be the reason of this issue?

Thanks.

issue with deployment utility

$
0
0

hello,

i tried to convert our project into deployment installer so that it can run on test system which has on Labview RTE and TS but it fails and shows an error on test sytem that missing sub vis. how can we include library vis (vi.lib, user.lib) to into installer as our vi use those as subvis. 

 

Actually we have a very big project with so many sequences all used vis witch used shared vis from(vi.lib) for that project i have tried to covert deployment utility but it fails with error that its cant find files from div.lvproj, also throw the error that subvis are missing.

we have one system vi LV and TS development env. and want to run this project on deployment env. which have LV RTE and TS. 

 

so can u please answer what is probleam with that?

 

can we include labview project(.lvproj) in teststand deployment utility?

 

can we include those vi.lib file in so that it can run on test system.

 

thank you.

Scripting - Reference all objects (traverse)

$
0
0

Before I go ahead and create a VI that does this, are there any publically available VIs that traverse through all objects in one hit without filtering by class type and add them to an array. I would like to obtain a reference to every single item in the block diagram or front panel.

 

LabVIEW_2018-06-29_12-05-03.png

Using a slider to automatically sweep through a bunch of values

$
0
0

Hi there,

 

I've never used LabVIEW before in my life so I'm completely stuck on what to do.

I have a camera and a filter. I've created an interface where you use a slider to select a wavelength between 400nm and 720nm on the filter and hence it changes the image seen through the camera's display. I've managed to get the slider working so that you can vary the wavelength by sliding the slider arrow.

 

I firstly want to have an input box where you can manually type in the wavelength that you want which will automatically set that slider arrow to your input wavelength value. I've hazard a guess that you'd need to use a numeric control input box where you can type or select the wavelength, but I have no idea how to get it to talk to the slider to automatically change the slider arrow position.

 

Additionally, I want a button that on clicking will slide the slider up in 1nm increments, i.e 400nm, 401, 402 etc up to 720nm over a time period that can be chosen using another input box.

Can someone please point me in the right direction?

Thanks in advance.

Resolve conflicts - Missing file problem

$
0
0

Any ideas on how to resolve the conflicts below?

2018-06-29_12-52-42.gif

 

I've tried:

Unloading the broken VI and reloading it with the correct path.

Finding callers, but that just shows a single top-level VI with no indication of which part is linking to the missing file. This was while the missing file was "loaded" so I assume that it must be a problem in that VI.

Save All.

 

Frequency Modulation using RFSG NI PXIe 5654

$
0
0

Hi,

I'm trying to use RFSG NI PXIe 5654 to generate a pulsed frequency modulated signal at 1.2GHz center frequency. Following is my test setup:-

1. FM Modulating Signal (A DC Voltage in my case) from a function generator which generates a pulsed DC Voltage.

1 a. The RFSG settings are as follows :

a. Pulse on  b. Modulation : FM, Wideband, Sensitivity : 100 % , DC Voltage : 870mV

2. The pulse signal and the FM Modulating Signal (mentioned in point 1) are fed to RFSG 'Pulse in' & 'FM in' port.

3. RF out signal is connected to RFSA NI PXIe 5665 VSA. The spectrum is monitored on a RFSA soft Panel.

4. For test purpose, when I feed in a pulsed DC voltage (FM Modulating Signal) to RFSG, it generates a bandwidth as shown in the picture below. whereas I expected a " tone shifted from the center frequency " as shown in picture below.

5. I have tried the same on Agilent E4428C ESG Analog Signal Generator  and found the results as expected.

 

FM Modulating Signal.jpgModulating SignalRFSG Actual Response.jpgRFSG Actual ResponseRFSG Expected Response.jpgRFSG Expected REsponseRFSG Settings.jpgRFSG Configuration

         Kindly guide if I'm configuring the device in correctly or is there any issue / limitation.

FlexRIO 7972R with NI 5783 Transciever Compilation problem with AI IO

$
0
0

Helo everyone,

We recently purchased FlexRIO 7972R with NI5783 transceiver and I have been trying to program it for analog input and get an error about the data clock when I try compiling. I have tried the whole day several options but failed. I have attached the errors I get as below. Could someone please let me know how I can overcome this. 

 

Any suggestion will be highly appreciated.

 

Kind Regards,

Ben


How to reach at next cell location while I am using dual Galavao mirrors to scan the detected cells ?

$
0
0

Hello,

I need to find a way to reach at the cells locations while scanning the detected cells.

 

 My project aim is to detect the cells into the sample and scan them one by one.

 

So I am using 2D galvano mirrors for scanning and I made VI which can detect the cells.

 

I am using DAQ for data acquisition. 

 

Example:  let say I have 3 cells in sample

 

      VI Detects the cells        

  1. Take the pixel values of Rect (top, left, bottom, right and width) of detected cells
  2. Draw the bounding box onto the detected cells using the pixel values Rect (top, left, bottom, right)
  3. Convert them into the ROI
  4. Make group of ROI of detected cells into the one ROI
  5. Use Rect width value and find the voltage coordinate for the X and Y mirrors to scan that particular area of the detected cell inside the bounding box.
  6. Take Rect Top pixel value of first detected cell and scan the area according to the applied voltage, from the Rect top pixel value of first pixel.

        (Ex. Take Rect top pixel value 100 of the cells and scan the area according to the applied voltage,

        We use Rect top pixel value of cell just to call the VI that start scanning of cells from this particular pixel                 value)

 

  1. Take Rect Width pixel value of the second cells find corresponding voltage values for X and Y mirrors and scan the area according the applied voltage.
  2. Take Rect top pixel valued of second detected cell (just to call VI that start scanning of second cells from this pixel value)
  3. Repeat the step 5 and 6 for third cell.

 

So now my problem is I do not know how to reach to the location of the cells for scanning?

 

Example :  I can know the how many cells are present into the sample and area of cells so I can give corresponding voltage values to the 2 mirrors to scan the area of cells one by one , but I do not know how to reach to the cell position.

 

How to call VI to reach at the first cell location scan it reach to the second cells location scan it and to reach last cell location and scan it.

 

I know scanning thing pixel to voltage conversion detection of cells into sample.

I have attached one picture for better understanding .

 

Controllable DC voltage

$
0
0

Hi,

 

I'd like to create a DC voltage with a ripple on it. I used on of the examples shipped with LV as a basis for the sine wave generation, but that only generates a sine wave. I'm not sure how to add the DC component so I have just added it to all the elements of the sine wave array in the waveform. Is there a more elegant way to do it?

 

What I have also noticed is that after clearing the task the analog board keeps the last value on its output instead of setting the output to 0V. Is there any explanation for this? is there any way to make the task to reset itself to 0V before closing or should I just write 0V to the output after I have cleared and closed the task?

 

Thanks!

 

Sine_with_dc.png

XNET : Custom baud Rate Vector CAN to XNET CAN

$
0
0

Hello,

 

I have CAN settings from the customer which he has given me from Vector CAN.

 

Arbitrationphase: Sample Point 80% BTL: 160 TSEG1: 127 TSEG2: 32 JumpW: 32
Dataphase: SamplePoint 70%  BTL: 40 TSEG1: 27 TSEG2: 12 JumpW: 12

 

I have to do this setting in the XNET monitor, I know I should (-1) from each of the settings above to put it in the XNET CAN settings.

 

In database setting > BaudRate > Custom, i could able to achieve the exact values and don't find where is BTL(bit timing cycle).

 

If you could help me that would be great Smiley Happy

 

Thanks in advance!!

MyRIO Beschleunigungssensor integrieren um Strecke zu ermitteln

$
0
0

Hallo zusammen,
ich versuche aktuell die Daten vom Beschleunigungssensor des MyRIOs 2x zu integrieren um die zurückgelegte Strecke zu ermitteln.
Dafür würde ich alle Daten in ein Array schreiben und jeweils über das komplette Array integrieren bzw. wäre es wahrscheinlich schlauer die Zwischenergebnisse in Variablen zu packen und dann nur über einen Abschnitt zu integrieren zwecks CPU Auslastung.
Mein eigentliches Problem ist das integrieren.
Wie integriere ich ein Array (so wie ich es in der Schule gelernt habe)?
Kann ich es auch mit einer Funktion 2x integrieren?
Für weitere Tipps für mein Vorhaben bin ich sehr dankbar Smiley Happy

Galdabini 2.5 Quasar (Ethernet connection) to Labview

$
0
0

Hello!

 

I have a Galdabini 2.5 Quasar (force machine) connected by Ethernet cable and I would like to input data (live force in Newton) to the Labview.

 

Anyone know how can I do it?

 

Thank you!

Viewing all 66968 articles
Browse latest View live