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

Sort data based on same values in column

$
0
0

Hello,

 

I am trying to sort data based on the same values in the 6th column of the attached data.  In the example given, in the "Group Data", state, I wanted to have the sorted data such that index 1 = Lte:Cal:RFCalInit:V3:Lte, index 2 = Lte:B30:9820:-36.8:Qpsk:12rb0:TxQual:EVMSmiley Tonguek:L, etc...there should just be 2 indexes.

 

Thanks


2D Array: Add Row & Delete Row

$
0
0

Hi Labview Community,

 

My objective is to take in a set of 8 inputs and store it into a 3x8 array where each set takes up 1 row. The inputs are only stored when the "add" button is pressed otherwise the 3x8 array is initialized to 0. I would also like to have the option to delete a row.

 

Currently, I can add only 1 row into the 3x8 array. When I untoggle the "add' button, the stored inputs disappear from the 3x8 array. How can I change the vi to be able to add multiple sets of inputs and have it update into the 3x8 array. Also, how can I approach deleting an entire row? Feel free to modify the attached vi.

BlockDiagram.PNGFrontDiagram.PNG

Is there any way to convert a .mov file to .avi with LabVIEW?

$
0
0

Hello,

I'm interested in working with video files in LabVIEW. One thing I would like to do is convert different video file formats such as .mov to .avi but I can't find any information on converting files in LabVIEW. Does anyone have experience with this or know a library with VIs for this?

LabVIEW Interface For Arduino: Very Slow Angle Actuation of Servo Motors

$
0
0

I have my labview vi control panel and block diagram panel printscreens (labview 1,2,3 and 4) with the Labview Interface for Arduino  The Labview is the receiver while the Python code(3d hand tracking) is the sender through UDP. Whenever the python send sets of angles,take note that the angles are varying in some fractions of time, the labview with the arduino and servos connected didnt actuate according to the varying time of the sender ..the servos wait 1 sec to actuate and this is very slow compare to the real varying time of angles from the sender ..this is our problem..

 Thanks for the help!

Best practice for mirroring and backing up DSC Citadel Database

$
0
0

Hello, 

 

We have been using DSC for a while with a centralized PC hosting about variables accessed by about 10 PCs. One of the major vulnerabilities is that we hosted all the variables on one PC, hence we sometimes lost some points when this PC is offline. 

 

Since there exist "aliasing" functionality in the NI distributed system manager, one solution that I can think of is let each satellite PC hosts a subset of relevant variables, then alias those variables to the copies of the centralized database, with the DSC database logging enabled in all of the PCs. Furthermore, setup a periodic mutual archiving process.

 

I guess my question is, is this a recommended way of distributing the responsibility of PCs and enhancing the robustness and the accessibility of the databases? Or do people eventually export their databases to other database management solutions, such as SQL, since there has been not many changes for this DSC module of LabVIEW for the past few years.

 

Thanks a lot.  

 

Lab View DSC

$
0
0

I have an application with approximately 8000 tags developed using Intouch.  In case, I want to migrate to Labview using DSC module is there any way of directly using the tags dictionary created using Infocus in Labview instead of recreating?

Facing problem when we are using .NET constructor function in LabVIEW RT

$
0
0

Hi All,

 


We have an cRIO 9074 RT System which Acquires Data and sends to Host System. We
have implemented HTTP POST Service using an .NET DLL, to post the data to an
server while test is in progress.

But we are facing problem when we are using .NET constructor function in RT and
the error reported as the function not supported in RT.

Can you please suggest us how to get an .NET DLL that works in RT? Or the
process of generation of .NET DLL that can be used in RT.
Any Help is appreciated.

 

Thanks and Regards,

Ikram

ikramali.m@infodatinc.com

#91-9985631465

Communication with Xbee

$
0
0

Hi,

 

I want to communicate with a XBee using the VISA functions. But I get the error code -1073807246. Can someone help?

 

Best regard 


Get Type and Creator Function - Help Incomplete!

$
0
0

I got confused with the information provided inside the VI "C:\Program Files (x86)\National Instruments\LabVIEW 2016\vi.lib\Utility\libraryn.llb\Check if File or Folder Exists.vi".

 

In that, there is a condition checking for Type = LIBP, but when I referred to the Detailed Help for the VI "Get Type and Creator" to understand what this LIBP means, I could not find it there. The closest thing I could find is LIBR, which means a LabVIEW Library it seems...

 

 

Get Type and Creator Function Confusion.png

 

 

Could someone shed some more light on these File Types, or let me know if I'm missing something very basic?! What does LIBP mean??

What's difference between NI OPC Server and MatrikonOPC Server? Which one is the best?

$
0
0

What's difference between NI OPC Server and MatrikonOPC Server? Which one is the best?

Access (read) value outside of while loops before it is finished

$
0
0

Dear community,

 

yes, I know, there are already some suggestions of how to access variables from outside while-loops, however, none of these have worked for me so far. So: Let's say I change a variable inside a while loops each iteration (e.g. increment it by 1, or get a random number). I need this number outside the loop as well, but not only the last one, but the immediate value after each iteration. So, what I tried already was: 

- using a global variable (even though this is not the best choice) - somehow didn't work! The global variable was also updated only when the while-loop finished (I guess because it is itself a VI which is access from within the loop, and then only released when the loop finishes). 

- using a functional global: similar, also didn't work.

- using references. Now, this kind of works halfway. If I make an indicator (or control, doesn't matter) (say, A) outside a loop and follow the instructions of creating a reference to a variable inside the while-loop (vie ctrl reference, property node etc.), then I can see the value in A, but i cannot read or access this data/pass it on to something else. 

- using queues. But then I discovered that they only work with two (or more) while-loops which run in parallel, not just outside the one while-loop I have.

 

There is no simple possibility to remove these loops. Also, it is not a matter of using two parallel loops - really just accessing the data from outside the loop.

 

Do you have any suggestions of what I can also still try?

Pulse width measurement for RPM problem

$
0
0

First, I'm a complete LabView newb, so bear with me....I have about a total of 36 hrs actually using the software.

 

Here's the problem. I have a very simple setup with a 12V DC motor which I'm measuring the motor voltage and using a hall effect sensor to capture the shaft rpm, which is through a gearbox and has a MAX of approx 105 RPM's at full voltage. The raw data is being capture with a cDAQ-9174 and I'm getting the voltage from the motor and sensor through an NI 9219 analog input. Capturing and displaying the motor voltage...no problem. Capturing and displaying the signal sensor....no problem. Getting the pulse width measurement from the sensor signal....there is the problem. I keep getting an error for the "mid-ref level was not crossed".

 

What I did was take the raw signal, convert it from analog to digital just to get it to zero's and ones, then converted it back to analog so the pulse width measurement VI could analyze the signal. I cannot get it measure the pulse width so I can convert it RPM. I have messed with every setting on the pulse width VI and the timing and measurement VI and I keep getting that mid reference level error.

 

I attached a screen shot of the setup and what I'm trying to do. Any help would be greatly appreciated. The test setup doesn't show it connected to the 9219, but all that would show is channels 0 and 1 with the pos / neg connections to ports 4 and 5.

DAQmx Sample Rate Coerced

$
0
0

I am stuck and need help reducing my sample rate to read from 1 hz to 1000hz, When I adjust these numbers in my vi it gets coerced into 1612.90. I am using a cDAQ 9188 and a NI-9239 device to read analog voltage. How can fix my vi so that my Actual Data rate does not get coerced?

 

For vi Reference you can see this on the sample VI /examples/DAQmx/Analog Input/Voltage -Continuous Input.vi 

VI conversion 2016 to 2015

Tank indicator display changes in steps

$
0
0

So, I have a numeric tank indicator that reflects the volume of fluid inside the syringe. 

The default indicator displays the value after every movement of the syringe (aspirate or dispense). 

I was wondering if I can modify the indicator so that it displays the change in smoother manner, let say in steps; just like the actual syringe movement. 

I would have different sizes of syringes, so it would be appreciated if the solution to the above question can also implement different flow rate. 

 


Saving Data to excel file periodically

$
0
0

Hi 

 

I would like to save data which i will be collecting over a full day. I will be making a measurement (say every 5 minutes) and hence want to save the data to an excel file (or something similar if you have recommendations) which would prevent the whole days data being lost in case the program stops running mid-way. Ive tried looking everywhere but couldn't find anything. Also how to add two data (mean and standard Deviation) to a single file with the times?

 

A bit of background to what i'm collecting - I'm using a solar panel to measure the sunlight over a day. 

Event Inspector Window - Unhandled Events: "how bad" are they?

$
0
0

Hello,

Just a general question: are unhandled events bad? Do they introduce a memory leak? Being lazy, I just bundled my 4 User Events into a typdef cluster, and I used it through my whole project, like in dynamically called VIs, and some subVIs too. So I just registered for all of these 4 Events in every Event Structure.

 

There is not a single VI in my project where I need all of the 4 User Events to be used in the actual Event Structure of the VI, so of course this approach caused lots of unhandled events (visible using the Event Inspector Window). I am not sure if unhandled events can cause problems after longer runtime? I guess memory leaks?

Anyway, I cleaned up my project, and now I only register EVERY Event Structure for those User Events which are actually handled in their cases. So I do not see "unhandled events" any more in this Event Inspector Window.

 

So practically my question is that, how bad are these unhandled events? One of the User Event was generated at every sec (data broadcast to some modules from a DAQ loop).

Synchronized measurements (GPS)

$
0
0

Dear all, 

I am desperately attempting to establish synchronized measurements. I have two cRIO devices (9038 and 9068) with two GPS modules. I connected a signal generator to both of the devices just to check if acquired data aligned or not. I failed.

The sampling rate is 5000kS/s and I am getting 1000 samples times 6 channels per each read. Obtaining initial time stamp and passing it to the consumer loop, where further I calculate an array of timestamps for 1000 samples. The thing is that initial time stamp doesn't show any fractional seconds, the number is always rounded. And also I believe that the whole algorithm is incorrect. The goal is to measure to different points at the power system at the same time (50 Hz).  I would appreciate any advice.

 

Thanks. 

Notice: Attach VI Snippets to post rather than upload

$
0
0

Recently, the image uploader in the community was upgraded to the latest version. Since then, we are experiencing issues with newly uploaded VI Snippets. While this issue is being investigated, we ask that you please attach the PNG files for the VI Snippets so that they can be used properly.

 

Please refer to the following announcement for more information on the image uploader: Improved image upload experience

 

Visit our Feedback Board to ask community related questions or to follow ongoing discussions on this particular issue.

Darren's CLAD Review Nugget 07/14/2017

$
0
0

Hey everybody, long time no nugget!

 

I am going to start posting CLAD Review VIs to the forums when I get the chance. These VIs are intended to help LabVIEW programmers study topics covered in the CLAD exam. You should be able to get through the VI in about 10 minutes and come out with a pretty good overview of the topic at hand. This inaugural CLAD Review VI is about queues.

 

The VI is saved in LabVIEW 2014, and there will be more CLAD Review VIs in the future. Enjoy!

Viewing all 69591 articles
Browse latest View live


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