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

signal generation

$
0
0

Hello,

 

I want  simulated pulse  with respect to time and voltage, the time and voltage reading are addressed in Pulse.png, i have also attached vi.

 

Regards,

Ali


Multiple Bluetooth devices connected to PC

$
0
0

I cannot find a way for accessing one particular Bluetooth device out of several connected to the same PC. Seems Bluetooth Open Connection has no such input.

 

Is there any way do do it?

Thank you

Creating Custom Workspace Objects for NI VeriStand: make windows without changeable border

$
0
0

Hello,

I search for part of the Free Label Vi in VeriStand where I can change that the windows haven´t any border and aren´t changeable. I use the "Boolean Control - Boolean Button Timed.vi" which I get from Github. I´m very helpless about this topic.

Looking For Property On String Which Returns Displayed String Text

$
0
0

Terrible title I know but I didn't know how to shorten it.  So set say I have a string control with some text in it.  If the text is too long it will wrap onto a new line which is great.  But lets say I want to know what that text looks like in the control.  I want to know how many lines are displayed, and what the text is, preferable with return characters inserted.  Here is an image of how I would want the text to be returned:

 

Example_VI_FP.png

The added kicker is I would like this to work on Linux RT hardware too.  This means currently using a subset of UI properties and methods.

Merge Error Single Input

$
0
0

Hi everyone,

I was looking at the Queued Message Handler Template and realized that in several Message Loop cases there is a Merge Errors function with only 1 input.

Does anybody know if this provides any functionality?

 

Merge error.png

 

 

My best guess so far is that it is there because the "--Copy This Frame--" case has it. So you don´t have to add it when you are using queues, user events and/or notifiers. 

Is my assumption correct? or does anybody know about any Merge Errors extra functionality?

 

 

Please help , can not build . error -1 and -41. Thanks

$
0
0

I try build 2013 labview.

it ave me below error.

===

Click the link below to visit the Application Builder support page. Use the following information as a reference:

Error -1 occurred at CDK_Utility_GenerateErrorCluster.vi -> IB_Source_Container.lvclass:Report_Preview_Error.vi

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 (-1) or for its hexadecimal representation (0xFFFFFFFF).

Loading product deployment information

**************
*** Error: An internal error occurred for which the cause is unknown. (Error code -41)
**************
*** Error Details:
Error in MDF API function: _MDFCommon_GetNextLogMessage
Error in MDF::GetInstance - MDF static instance is not initialized!
*** End Error Report
**************


**************
*** Error: An internal error occurred for which the cause is unknown. (Error code -41)
**************
*** Error Details:
Error in MDF API function: _MDFCommon_GetNextLogMessage
Error in MDF::GetInstance - MDF static instance is not initialized!
*** End Error Report
**************


**************
*** Error: An internal error occurred for which the cause is unknown. (Error code -41)
**************
*** Error Details:
Error in MDF API function: _MDFCommon_GetNextLogMessage
Error in MDF::GetInstance - MDF static instance is not initialized!
*** End Error Report
**************


**************
*** Error: An internal error occurred for which the cause is unknown. (Error code -41)
**************
*** Error Details:
Error in MDF API function: _MDFCommon_GetNextLogMessage
Error in MDF::GetInstance - MDF static instance is not initialized!
*** End Error Report
**************

dll build error in lv2014, not in lv2012

$
0
0

I try build 2013 labview.

it gave me below error.

===

Click the link below to visit the Application Builder support page. Use the following information as a reference:

Error -1 occurred at CDK_Utility_GenerateErrorCluster.vi -> IB_Source_Container.lvclass:Report_Preview_Error.vi

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 (-1) or for its hexadecimal representation (0xFFFFFFFF).

Loading product deployment information

**************
*** Error: An internal error occurred for which the cause is unknown. (Error code -41)
**************
*** Error Details:
Error in MDF API function: _MDFCommon_GetNextLogMessage
Error in MDF::GetInstance - MDF static instance is not initialized!
*** End Error Report
**************


**************
*** Error: An internal error occurred for which the cause is unknown. (Error code -41)
**************
*** Error Details:
Error in MDF API function: _MDFCommon_GetNextLogMessage
Error in MDF::GetInstance - MDF static instance is not initialized!
*** End Error Report
**************


**************
*** Error: An internal error occurred for which the cause is unknown. (Error code -41)
**************
*** Error Details:
Error in MDF API function: _MDFCommon_GetNextLogMessage
Error in MDF::GetInstance - MDF static instance is not initialized!
*** End Error Report
**************


**************
*** Error: An internal error occurred for which the cause is unknown. (Error code -41)
**************
*** Error Details:
Error in MDF API function: _MDFCommon_GetNextLogMessage
Error in MDF::GetInstance - MDF static instance is not initialized!
*** End Error Report
**************

LabVIEW loses communication to COM ports

$
0
0

Hello, I have an external device that connects to my PC via COM port and in turns it communicates with my labview program using NI-VISA. The external device has a small known glitch that causes to lose communication with the PC but after less then a second it automatically reconnects. I have seen Device Manager recognizing the device when it reconnects but NI-MAX will not recognize it until I close it and open it up again. I looks to me as if NI-VISA would have to be reset it. Is there a way to include a routine to have my labview code reset NI-VISA drivers, probably? I have tried closing the port and open it up again but still doesn't work for me apparently because the COM port is no longer available, so it cannot close a session that does not exists.

 

any ideas what I could try next? 


debugging a factory pattern LVOOP plugin

$
0
0

I've done plenty of plug-in architectures with non-LVOOP before, and am now trying to get the Factory Pattern to work as a plug-in. I'm basing my attempt off of Elijah's well-documented Measurement Utility architecture, specifically using this page as my reference. I've made some progress, but have gotten stuck at one of critical steps. (That being, getting it to run!) I created the required projects and builds, altered the calling program slightly so as to find the plug-in when it is an .exe, and built everything. After debugging the path issues for where the plug-in is when it is called by an .exe, I'm at the point where the calling program reports error 1498 (Library has errors) when 'Get LV Class Default Value.vi" is run (in the factory initialization).

The library works fine as LV source code. I've re-checked Elijah's recommendations for how to do the build. Yet the class is broken in the source distribution when used in the .exe. I know I've got the path to the source distribution right, because before I did, I got a different error indicating that the library couldn't be found.

One thing I would do in non-LVOOP would be to open the plug-in from the source distribution in a new project and see if it was broken or missing something. I tried this now, and I found two things, both of which I think are normal. E.g. for the library to open in the new project, I had to add the parent class to the project first. (As per the recommendations, the parent is "Always Ignored" in the build for the plug-in and is included explicitly in the .exe build.) I also had to add a library that defined a shared variable. That library is also included in the .exe build. So I don't expect that to be a problem when the plug-in is loaded from the .exe. (I'll try removing the shared variable completely as my next test, just to be sure.)

I'm a bit stuck on how to debug further. There is no error up to the "Get LV Class Default.vi". There is an error on its output. So the library is bad. But the library in source code is fine. And the library in the source distribution seems mostly fine, except for the known dependencies that the .exe should take care of.

Any suggestions on how to debug further?
(The code base is huge and under NDA, so I can't share it.)

TIA,

     DaveT

Create 'n' number of leds

$
0
0

The user can input some number 'n'. On doing so, 'n' number of LEDs should be created. Then through another numeric control, the user can give another number and the LED corresponding to that number should glow. How do I do this?

OPC communication help

$
0
0

Hello,

 

I am attempting to connect to RSLinx OPC server in order to read the PLC data into an array and save to spreadsheet.  I have the RSLinx setup i just can't get Labview to see the server.  Are there any examples out there that would work?  I'm running LV2017 on a 64-bit machine.

Problem setting error bar size in multiple trace Error Bar Graph

$
0
0

The users here want to optionally display error bars on graph traces. So I've been experimenting with making the error bars in the Error Bar Graph invisible. Demo vi attached.

 

I've been able to do this programmatically by feeding zero arrays to the error A an B vector inputs, and setting the Error Bar Size property to zero, but the size property setting only seems to work on the first, or Plot 0 trace. The horizontal error markers stay visible on Plot 3.

 

Anybody have an answer or know a better way to do this?

 

I've been able to control multiple cursors in XY graphs using the Cursor List array, but don't see anything of that sort here.

Thanks,

BG

Setting Limits on a real time XY graph

$
0
0

 new data.jpg

Hello,

I have this XY graph with some real data.

The limits were established prior to the WHITE lines have been drawn on the graph.

That is leaving me with all kinds of FAILURE because of the existing test.

Sometimes the motor is running too slow, grabbing too few of a data. Sometimes its too fast grabbing too much of data.

Can I set the limits somehow were its more dynamic? As in, when the end slope is starting to ZERO out when where THE LIMIT line ends?

Can someone guide me in the right direction.

 

I am using Labview 7.0

I can open with Labview 8.0

please help.

Thank you

 

Support LV Image to PNG Data in Linux RT

$
0
0

I didn't know if this should be on the idea exchange or just a post on the forums, seems like a bug to me so it is here.  The function in the vi.lib LV Image to PNG Data found here:

 

<LabVIEW Install>\vi.lib\wsapi\VIs\LV Image to PNG Data.vi

 

This does not work on the Linux RT.  The function takes the cluster of image data and turns it into a PNG image.  But on the Linux RT (specifically the cDAQ-9136) it returns an error that the function isn't supported on that target.  Of course if you just straight up call the LVImageDataToPNGByteArray in a call library node the function works just fine.  So could this function be updated to have the conditional disable structure updated to work with these targets?  Thanks.

Setting Limits on a real time XY graph

$
0
0

new data.jpg

 

Hello,

I have this XY graph with some real data.

The limits were established prior to the WHITE lines have been drawn on the graph.

That is leaving me with all kinds of FAILURE because of the existing test.

Sometimes the motor is running too slow, grabbing too few of a data. Sometimes its too fast grabbing too much of data.

Can I set the limits somehow were its more dynamic? As in, when the end slope is starting to ZERO out when where THE LIMIT line ends?

Can someone guide me in the right direction.

 

I am using Labview 7.0

I can open with Labview 8.0

please help.

Thank you

 


IMAQ Pattern Matching Parallel Processing

$
0
0

I have developed a IMAQ pattern matching program that analysis images from a .avi file.  In it use there are up (but not limited) to 22 matching template pattern used, each with a (their own) set area of the image to search. 

At the moment the pattern matching process is sequential that is read the image from the avi file

  • perform the pattern matching process with template No 1
  • save position found
  • Repeat until are templates are used
  • Read another image and repeat the pattern matching process until all the images are analysed.

With the present computer system it takes about 46 ms to read the image and 10 ms per templates match with a quad-core computer working about 30%.

 

Now the question is how to reduce the processing time.  I will pursue reading the image from the avi file while the pattern matching process is going on (I assume that these two processes will be on separate threads within the same For loop ;-) ).  Another solution, is to replace the spinning storage disk with a SSD.  I may try that one first since it is easier. 

 

But the more interesting/difficult questions are:

  • if I use two (or more) instances of the pattern matching dll (wrapped up in a vi), working in parallel loops, will it improve the processing time per frame?
  • If it the pattern matching vi can operate in multi-threaded mode, what need to be set/configured to the vi execution so they will work in separate thread?
  • What otherr condition need to be met for the parallel process to work? (such as work on two instances of the same target image)

 Configuration

Window 10

LabVIEW 2017 (64 bit)

 

Thank in advance

 

Paul A. Rochefort

 

 

 

 

 

PID in LabVIEW

$
0
0

Hi,

In my computer "PID.vi" option is working but "PID Advance.vi" is not working. I tried to code using two different way (files attached), but every time showed the same message (Image attached) "Poly VI 'NI_PID_pid.lvib: PID Advance.vi': Polymorphic subVI is broken". Even I tried to open LabVIEW examples. "PID Advance.vi" is also broken there. I can't understand the problem.

 

Any suggestion is appreciatable.

 

 

How to concatenate multiple groups in a TDMS file to form single group without loosing data?

$
0
0

I have saved data in TDMS file format. Each TDMS file contains 30 groups and each group contains 9 channels inside. Each channel contains 200 samples. I want to join all the 30 groups in such a way that respective channels (named same in each group) should be joined. At end i need a TDMS file with 1 group containing 9 channels and each channel should have 6000(= 200x30) samples in total. A figure is showing the current hierarchy of my tDMS file. TDMS.jpg 

Issue in Calling Dynamic VI's in exe file

$
0
0

I am new to Design stand alone application (exe file) in labview.  i learn basic method from tutorials to build exe file for a labview project having access to some vi's dynamically. The build is completed successfully but still it is not accessing the dynamic vi's.

Any suggestion will be appreciated.

Thanks. 

myRIO wifi problem

$
0
0

I am working with GPS program.When i run the VI using a USB cable I am  able to get the desired output.But when I am using WiFi connection I am getting the following error.I am not using myRIO's wifi connection.Instead I am working with the department's wifi connection.Please4 help me to resolve this problem

Viewing all 66753 articles
Browse latest View live


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