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

LabView C# DLL Wrapper

$
0
0

Hello,

Using LabVIEW 2017 (64-bit).  Wanting to use the DLL import wizard to wrap the attached DLL and header file for use in communicating with a BK Precision P/S.  The code fails on some of the function calls, particularly SI_Read, and SI_Write.  Problem seems to be the structure LPOVERLAPPED which LabVIEW reports is not defined in the .h file.

 

Would the 'proper' method be to modify the .h file with a typedef, or write the DLL calls manually and use null = o as a constant for the argument?

Thanks all,

Chris


Impulsive noise generation

$
0
0

Hello
I want to generate an impulsive noise (periodic and aperiodic) to add it to a signal,
I am looking for how I can generate noise?

Thank you; 

Convert from 17.0 to 8.2.1

$
0
0

Please I need this file as fast as posible

Convert from 17.0 to 8.2.1

Tips for keeping a large VI clean

$
0
0

I have recently finished the largest VI I have created so far, however over the process of working with on it the wires have become quite a mess. I tried to keep the VI within the screen, but do to the amount of calculations, and icons to change there really isn't a way I can see that to be possible. I already have subVIs created for all of the calculations, it is more just the number of wires that are used to connect everything. Since it is at its current finished state I plan on creating a brand new VI and focus on keeping it organized as I copy it over, but was just hoping to get some pointers before I start to ensure it stays readable. 

DataSocket Select URL.vi

$
0
0

I have an application where I would like to give the user the option to select multiple OPC tags. I am using the DataSocket Select URL.vi

This VI will by default only allow the user to select one URL, but I would like to be able to select a URL with subgroups and multiple tags.                                                                             

 

Anyone knows a workaround using this VI or another way to select multiple OPC tags?

 

 

When is the SEED file required when using the ECU toolkit?

$
0
0

When programming with the ECU toolkit, what is the Seed file used for, and when is it necessary?

Can I omit the Seed file if all I need to do is read from the ECU?

Case Structure Not Updating fom Enum - LV2015 SP1

$
0
0

Anyone know of some secret properties thing or something that I'm supposed to do to get this case structure to update off of this enum?  I know it's a little on the odd side since it comes from a cluster, but I thought that was still supposed to work.  I scoured the known issues and didn't see anything (not immediately anyways) that pertained to this.  So.... any help here would be hot.

Enum and Case.JPG


Integrate Power Meter vi with another vi

$
0
0

Hi,

 

I was given a vi that is used in my lab to read data from an oscilloscope and output the data as a graph. My job is to replace the oscilloscope subvi with a vi that reads data from a power meter. I have virtually no experience in Labview, so any help or guidance on how to achieve this would be appreciated. I did try the replace function to replace the oscilloscope subvi with the power meter, but the input  for each is different so this did not work. 

 

The two programs will be attatched. The main program with the oscilloscope is called "main", while the power meter subvi is called "power meter". This power meter vi is what needs to replace the oscilloscope subvi. If needed, the power meter is a Newport 841 PE USB

 

Thanks for the help

Latest version of the 'Using External Code in LabVIEW' Manual?

$
0
0

I would like some additional documentation beyond what I can clean from the extcode.h file regarding the functions (DSNewPtr etc...) given here:

http://zone.ni.com/reference/en-XX/help/371361P-01/lvexcodeconcepts/labview_manager_routines/

and here:

http://zone.ni.com/reference/en-XX/help/371361N-01/lvexcode/memory_manager_functions/

 

The latest version of this document that I can find after a fairly extensive google and ni.com search is this version from 2003(!)

http://www.ni.com/pdf/manuals/370109b.pdf

 

From reading the extcode.h file I know at a minimum the the functions beginning in AZ... are deprecated, so I figure there should be a newer version floating around out there.  But I can't find it for the life of me.  Unless perhaps all the info formerly in that document is now only reachable following various links from the URL's above?

Relay driver for USB 6210

$
0
0

I need to run 24V DC 8W solenoid from 5V digital out ports. Digital Out can source 18 mA max. I need a driver in between. Does NI sell such a board? I am not skilled enough to fab a MOSFET circuit. Thank you.

Express VI in packed library

$
0
0

Is it possible to distribute/use an express VI in a packed library?

 

I have developed a central error handler for use in a large application, based on the CEH developed by NI, which I modified to use user events and work across packed libraries (in principle). The re-entrant express VI for configuring errors is really useful! However, I can't get it to work outside the LabVIEW directory. I've tried moving the code to my source code directory, building menus, packaging the menus in a packed library, linking the new menu to the palettes in LV, but none of this works. Looks like I'm backing up and using another error handling approach.

Cambio de Path, new path.

$
0
0

Buenas amigos

 

En el VI que les mando tengo una programa para tomar datos y guardarlos en una hoja de datos. El problema es el siguiente, quiero que el usuario escoja un path, y se cree un archivo con un encabezado y el conjunto de datos. Eso ya está resuelto. Ahora me gustaría que si el usuario cambia el path, se repitiera el proceso igual pero en el archivo nuevo. Como pueden ver lo que hice en mi program fue que primero se crea el encabezado (una única vez) y luego se van añadiendo los datos (dentro de un while) siempre que el botón guardar esté activo. Lo que no se me ocurre es cómo una vez que el usario cambió el path se ejecute el código del encabezado y continue con la toma y guradado de datos. Muchas gracias por la ayuda.

graph of intensity

$
0
0

Hello dear community,

 

I want to plot an intensity graph for the study of a transistor saturation like what you can see in the picture attached .

I writed a program but it doesn"t work, can someone please help?

 

You can find the program attached to this post

 

Thanks in advance for your help!

update/replace PPL in project, PPL versioning

$
0
0

I can't find a consistent easy way to replace a packed project library in a project. If I update/rename/reconfigure a packed library, how can I get VIs in a project file to reference the new library?

 

As a wider discussion, how does one go about versioning PPLs such that the latest version is ensured to be in use by executables and other libraries?

 

LV2014


Scripting: Find wire class type

$
0
0

I am trying to create a Right-Click Shortcut that will distinguish between a wire of class A and a wire of class B when deciding which option(s) to add to the menu. Actually, more specifically what I really want to know is whether the wire is of a class that inherits from class A.

 

I got the reference of the Wire, then got the Data Type from an associated Terminal. so I know it's a Class.

The question is... how do I know WHICH class?

I have learned that you can't cast the Data Type wire (didn't figure), and I don't see a Value property on either Wire or Terminal.

And oddly enough, neither Wire nor Terminal seem to have nay Dependencies, despite the fact that the wire is of a type that must have an associated *.lvclass file.

 

Any Idea how to do this? Stumped so far...

Output arrays keep appending when running the vi multiple times

$
0
0

Hello everyone,

 

I'm not sure what a problem is and how to name it so please excuse my confusing subject. Basically, I had a subVI which converts a 2D string array into a 1D string array and also eliminate unwanted elements in the 1D array. So I called that subvi in another vi where the input is a 2D string array which has different column sizes:

a b c

d e

so LV automatically fills in the blank with either empty string or "0" if the array is a double array.

Since I have two different arrays, I want the subvi to be executed simultaneously, but every time I run this vi, the array outputs from my convert2Dto1Darray keep appending on the results from the previous run rather than update the output arrays even though in that subvi I created an invoke node for both input and output arrays to programmatically reinitialize the arrays to their default values which are an empty array.

 

It did some research on simultaneous run on subvi and has set shared clone reentrant execution on the subvi, but it didn't fix the problem. 

 

Any help would be greatly appreciated!

MV

 

ADC conversion attempted before the prior conversion was complete.

$
0
0

Hi,

 

I am using a NI 9219 module in a cDAQ 9171. I've been running my code for some time and all of a sudden I am now receiving the error "ADC conversion attempted before the prior conversion was complete.". Why is this? How do I fix this? I've read a bunch of forums on it, including the NI help for the error and all attempts to remedy the issue don't seem to work.

 

I am using continuous sample acquisition with a rate of 1Hz. My samples to read is 5. So sampling rate is 5 S/s?

 

Any help is appreciated,

 

Cheers,

Duncan

How to assign Decoration name or number to each decoration on Front panel?

$
0
0

Hi Everyone,

 

How to assign Decoration name or number to each decoration on Control panel?

 

Decoration.PNG

 

Best Regards,

Nirut

How to expand Tab Control to show full size when change to run with difference computer monitor difference resolution?

$
0
0

Hi Everyone,

 

How to expand Tab Control to show full size when change to run with difference computer monitor difference resolution?

 

UI.HowToExpandToDifferenceMonitorSize.PNG

 

Best Regards,

Nirut

Viewing all 69659 articles
Browse latest View live


Latest Images

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