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

Mi ejecutable llama a un subVI que no se ejecuta


Erroneous input from NI USB 4432 and LabView

$
0
0

Hi everyone,

recently I had some troubles while acquiring vibrometric and acoustic data through LabView. My virtual instruments seem not to work anymore, despite nothing has been changed in the settings. I attach two screenshots which explain what happened before and what happens now. I don't know if this could be a sw or hw problem. Does anyone know why can it happen? Is it because my acquisition card is broken?

Thank you for your help!

 

Riccardo

 

Error with loading 'external assembly', goes away 2nd time I open the file, is there another solution?

$
0
0

I’m having an issue with loading an ‘external assembly’.

I'm using LabVIEW 2018 (32-bit) on a Windows 10 computer (64-bit), and up to date OmniDriver package downloaded from Ocean Optics (version 2.56).

Description of issue:

When I open LabVIEW and click on the simple .vi (just opening and closing the spectrometers) that uses the NETOmnidriver-NET40.dll I get the following error message :

+++

LabVIEW: (Hex 0x494) A .NET exception occurred in an external assembly. For information about correcting this error, copy the following exception (in bold), and search the Microsoft Developer Network (MSDN) Web site or the Web for a possible explanation.

The file ‘NETOmniDriver-NET40.dll’ could not be loaded.

+++

I then click OK and click run in the Front panel of the .vi, then as aspected I get an error in running.

However, when I close the file and open it again, I get no error, and I click run, and the .vi works.

Seems like a delay in loading the DLL?

Can this issue be solved?

 

Perhaps related to this, here another issue:

When I click in the .vi on View -> .NET assemblies in memory, I get the following error message:

+++

Error 1097 occurred at Call Library Function Node in DotNETAssemblyVisualizer.lvlib:GetArrayOfAssemblyInfo.vi->DotNETAssemblyVisualizer.lvlib:AssemblyVisualizationWindow.vi

Possible reason(s):

 

LabVIEW: (Hex 0x449) An exception occurred within the external code called by a Call Library Function Node. The exception might have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW.

=========================

LabVIEW: (Hex 0x449) An exception occurred within the external code called by a Call Library Function Node. The exception might have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW.

+++

(This error doesn’t go away by closing it and doing it again.)

We looked in Windows at Dependency Walker and it seems that might be a delay-load issue of the DLL?

Is there a solution for this? That would be greatly appreciated!

Thank you very much in advance,

Everine

Array issues

$
0
0

Hi, having a bit of trouble setting up an array .

The readings came out as a string which I converted into an array which appears as:

1.0001 101 1.0002 102 1.0001 103 1.0001 104

Instead i would like it to be 

1 101 1.0001

2 102 1.0002

3 103 1.0001

4 104 ...

 

Once I get more scans id like it to be:

              1           2 

1 101 1.0001  1.0001

2 102 1.0002  1.0003

3 103 1.0001  1.0003

4 104 ...

 

Any help appreciated 

Two Edge Separation Timeout

$
0
0

Hey all,

 

I've got a program using the two edge separation as a timer for relatively high speed object (~100ft/s), and it's working well, but sometimes the first sensor gets tripped by the user by accident, which throws off the next measurement, since the system is waiting for the second sensor. Are there any tricks for adding a timeout, where if the program doesn't see the second edge after a certain time, it resets? I'm not seeing anything in the properties, but I'm hoping y'all have a workaround.

 

Thank you!

Grayed out a button in NXG

$
0
0

Hello, I am starting to use labview NXG.

I would like to desactivate/activate some button while the code is running. I knew how to  gray out some button with the normal labview but I can't figure it out with NXG

I tried to use "modify variable propertie" function but I can't understand how does it work. Does someone have some info or an example.

 

Thanks,

Vincent

 

 

LabVIEW built DLLs as a plugin system for a LabVIEW executable

$
0
0

Hello all,

 

I'm working on a project where we are attempting to package stand alone modules of our code base into LabVIEW built DLLs that will be called from a LabVIEW executable when that portion of the code base needs to be shown to the user.  I've run into issues trying to get more than one LabVIEW built DLL (with a user interface) to show on the screen at a time.  I've attached a zip file with an example project that contains two "plugins" and a calling application.  I'm working in LabVIEW 2018 64 bit on Windows 7.  Please take a look and see if you can replicate my issues and provide any help!

 

Steps to reproduce:

1.  Build exe or dll in each project.

2.  Run executable.

3.  Start Test 1 plugin.

4.  Start Test 2 plugin, notice that Test 1 plugin disappears, and Test 2 plugin appears.

5.  Start Test 1 plugin again.  Test 1 plugin and Test 2 plugin should both be running now.

 

Why won't Test 1 plugin stay up when I start the Test 2 plugin?  Why does Test 1 plugin show after I start it the second time (in step 5)?

 

Thanks!

Chris Davis

 

 

 

Need to create a refnum of an multicolumn listbox which its data type in array

$
0
0

I am having an simple issue but for the life of me can't figure out how to create a refnum of an multicolumn listbox where the data type is in array format.  I have created one where the data type is in scalar (defaulted data type), but can't get the array data type version multicolumn listbox to work. 

 

Basically I want to have a refnum in subVI's so I can reuse the VI to adjust the column width, sort columns of the reference, etc.    All of it was working until I decided to change the multicolumn listbox's Selectable mode to be "1 or More Items".  When in that mode, the data type is changed from Scalar to an Array.  Basically it broke my connections and gives me an Class mismatch.

 

I created an example of it as attached.  Thanks for the help.


Is LabView for Linux available with the SSP

$
0
0

Hello everyone!

 

The company where I'm working is considering to transfer our labview test platform from Windows to Linux, we know that there is no demo version, so we are considering to renew our expired SSP, we wonder if the SSP included when buying LabView Professional or full will allow to download the Linux version so we will be able to run some tests but at the same time have the Windows version.

 

If possible we may be able and consider to have a source code compatible with both OS with code selected for compile depending on OS.

 

Thanks and Best Regards.

How do I take a time stamp and get a new time stamp that is a specific time tomorrow?

$
0
0

I want to set an alarm. The set time is held in a time stamp. Say I want an alarm for 5:00 AM local time tomorrow. daily event reminder.png

 

This doesn't work. What will?

 

TIA

IIR filter Nyquist cut off

$
0
0

I am trying to reproduce a simple RC low-pass filter response for audio processing. A first-order Butterworth filter works except at high frequency where, as the Nyquist frequency is approached, there is an additional fall off. This behaviour is reproduced by the Digital IIR Filter VI: filter information output (below) so it appears to be a theoretical limitation.

 Filter fall off.JPG

I have tried other implementations, including the IIR cascade filter, and the response is the same. I haven't tried a wideband FIR filter as it looks over-complicated - even a "Butterworth" seems overkill for such a simple response.

 

Oversampling reduces the error but doesn't eliminate it.

It is crucial that the filter also has the correct phase response (satisfying the Kramers-Kronig relation, as the Butterworth filter does). Is there a solution?

 

Thanks, David

 

LabVIEW 18.0

Need help identifying a LabVIEW symbol

$
0
0

I'm working through Bishop's Modern Control System Design with LabVIEW by reproducing all his samples.  In Ch.1 he shows a Transfer function with a VI "G1(s) + G2(s) Transfer Function".   The picture is attached.G1+G2 Transfer Function.PNG

I cannot find this VI in the pallets.  There is no Help selection when I right-click it but there is a Description:  "<B> Equation</B> draws a picture of the model equation..." 

What is this?  Is it part of the control system or system identification tools?  Is it something that Bishop has created?  And how to I figure this out the next time it happens so I don't have to bother you good folks?

Max

record sound and convert it to a square wave

$
0
0

Hi,

 

I need to record a sound for say 3 seconds and convert it to a square wave so that i can later modulate it. Can you please help me on this?

 

Please find the attached block dig.

"Search Engine" using Real Delimited Spreadsheet.vi

$
0
0

Hi everyone i have a text file which contains the date,time,voltage,current,power,imorted energy ratings of my Modbus Power meters. I used the write to delimited spreadsheet to write all the readings i received from the meters. The energy ratings of the meter is cumulative and i would like to be able to have a "search engine" that allows the users to view their energy consumed between any period of time. They would have to enter the start time and the end time that they want to view. For example if the user wants to view the energy consumed from 9 to 10 am the user has to enter 9am at the "start time" & 10am at the "end time". To get the amount of energy consumed i would  take  the imported energy value at 10am(from the text file) and subtract it with the imported energy value at 9am(also  from the text file). Any help would be appreciated!

 

 

Playing the video in Reverse

$
0
0

Hi Everyone,

      I am trying to play the video in reverse by decrementing the frame number in IMAQ Read Frame function. Its working but the result is very choppy as every frame takes significant time to load, but when I just increment the frame number and play the video forward, its executing without any problem. I have attached the VI and info regarding the video, could you guys please let me know why I am having problem when I am trying to display the video in the reverse order.

 

Thanks

Elancheran


Using existing typedef

$
0
0

Newbie question:  Where can I find how to use a predefined typedef.  I have sample code that uses NI_LinSys_Data Typedefs.lvlib CD Time Info.ctl, so this exists somewhere.  I can see the lvlib file in the program directory.  I can create a cluster with the same info {t0,dt,tf}, and I can create a new Typedef from that cluster.  But how do I use the predefined type?  What tutorial covers this?

Dynamical variable binding

$
0
0

Hi all,

 

I'm struggling several days with a problem: how can I make the binding between a local variable and a control dynamic?

What does I mean:

-I have a 2D matrix of strings. The first column are names of variables in my vi. The second column are values that these variables should have (can be strings, can be numerical values, can be booleans). The order of the variable names in the first column is variable, not all variables in my vi are present and at the next execution the list can be changed (other variables in column 1 and/or other order).

-is there an elegant way to update the variables mentioned in column 1 with the values present in column 2?

 

I should like to avoid to add a search engine that checks every single variable in my vi's presence in that list, linking the result of that search with a local variable to update it. That should make my code much less generic.

 

An example of the 2D matrix could be:

 

Var1     2.03

Var3     5

Var6     yes

Var2     23

 

Thanks a lot for your reactions!

Flip

 

 

Filter Deign

$
0
0

Hello Everyone,

I am generating the Random white Noise and restricting the noise to 5KHZ and after the 5KHZ noise should decay 6db per Octave but I have used many of the filter option but I am unable get the Result. The below attached vi shows the details Noise is generating please help me with this

thanks in Advance

In code I am generating the Noise and adding with the Signal just to verify 

write frame memory leak

$
0
0

Every time I save an avi file, it keeps getting into memory and the computer stops later.
I would appreciate it if you could tell me why this is happening and how to fix it.

Basic DC Motor Questions for a simple project

$
0
0

Hello r/robotics! I have a small project kicking around that I need some help with. While I am not new to the field of hobby electronics, I have never used DC motors before and need some help. Either by pointing me to some educational videos or otherwise, I'll take what I can get! (If this isn't the place to ask, please direct me to a place I can ask! I asked a question like this in DIYElectronics but the responses left me more confused.) SO I have a setup like so. I want it so that when I press a button, both motors go to a set position. I want several button inputs, each coordinating to a different position on the DC motors. The weights would never need to spin constantly, just go to a position and stay there until a button press tells it to go somewhere else. Not picky on speed, but ideally want 14RPM under load but can go down to 3 RPM under load. I know enough that I will most likely need a mircocontroller of some sort (planning on using an Arduino) but how would I relay the motors position back to the microcontroler? I've read about something called an encoder, is that what I would need? Can any encoder work with any DC motor? I had my eye on this DC motor would that do what I need it to? DIYElectronics recommended servo or stepper motors, but in order to get the torque I need, these become a pretty pricey option, but I am open to anything that would get the job done! Advice? Tips? Knowledge? Thanks in advance for your time!

Viewing all 69758 articles
Browse latest View live


Latest Images

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