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

MULTIPLE Groups IN TDMS file

$
0
0

Hello all,

I am trying to write measured data in Labview in TDMS format. The point I don't get is the significance of multiple groups in TDMS file. Can you please clarify that? Because in my case, I get 16 groups for channel 0 and I don't know which group to consider.

What if, I use one segment header only instead of one header per segment? Does that affect my actual reading? 

Regards and Thanks,

Pieterson


Download new version labview without ruining my old code

$
0
0

Hi everyone,

 

Our lab is using labview 11.0 for a long time and we have written a lot of codes for collecting data on it. We just bought a new instrument and we need to use some of their code. However, their code is labview 12.0. We tried to convert it into a previous version, however, since their code is password protected we could not do it.

 

Another solution would be to use a new labview version on our lab computer. Our university has already bought labview 16.0 so it is possible for us to just use a new version.

 

First of all, I want to know if there is any easy way that I can update labview 11.0 to 16.0. Do I have to uninstall the old one and download the new one?

 

If we have to uninstall the old one, since we have written a lot of labview codes on 11.0 version, we wonder if this process would cause some problems on running those codes.

 

Thanks.

PCB testing : The tools necessary?

$
0
0

Dear users/moderators,

I am a Electrical Engineering student, and for my internship I have been given an assignment to build and automate test equipment cluster for PCB assembly testing. After researching and contacting other companies I knew are doing this, all of the information was pointing towards LabView or LabViewNXG as a good tool for automating process. However, I have questions that I cannot find answer to on NI page, and I decided that having an insightful opinion is better than guessing. The PCB assembly already has test points created, and we will connect it with bed of nails fixture. 
There are 3 software tools that I am aware of: NI Teststand, LabView and LabView NXG. From what I gather, LabViewNXG is a newer version of LabView, and Teststand is just an extension of LabView, but the entire process can be done in LabView on its own and Teststand is just a tool to make it easier.

It seems that it would be smart to find equipment that has LabView instrument drivers already written, but as I understand LabViewNXG has different drivers than LabView?
Also, in tutorial videos (Which are not exhaustive by any means) the personnel has NI chassis to which they connect equipment. Is this necessary, or can I just connect equipment directly to the PC or via USB hub?

Which product is more suitable for PCB testing, LabView or LabViewNXG? 


Best regards,

Atizss

auto deploy and run a vi on crio?

$
0
0

I have a crio9035. Every time I use it, I need to manually deploy it on labview and run RT MAIN manually. Is there a way to automate these two steps?

 

Thanks!

Keep program running

$
0
0

Hello, i'd first like to apologize for this very beginner-like question... Im very new to labview and i'm starting to see the potential and liking it, but i'm having troubles so far.

 

I have this piece of hardware that i'd like to control with LabVIEW and the pieces of code i've constructed works, but the program terminates when i've pressed both of my buttons? 

 

I have two event sctructures that react when mouse is down on two different buttons, the blocks inside the eventstructure is executed as they should etc.

 

The problem is that when i've pressed both my buttons, the program terminates. I'd like to add more code to be done afterwards. And it seems i'm not able to run the same event structures twice? I can't push the button again, it goes dark and stays dark. (After i press it first time it switches back, it is after i press 2nd time it stays dark). 

Difference between running continuously and While loop

$
0
0

Hi All

 

Is there any Difference between running continuously and While loop apart from Conditional terminal in while loop?

 

 

Referencing other packed libraries within a packed library

$
0
0

How would you go about referencing a PL inside another PL without creating a copy of the referenced PL when building?

 

I have a PL1 that is used by PL2. PL2 is used directly and so is PL1 so when LV builds an executable I assume PL1 gets included twice even though (in this instance) they are the same version.

 

Found the solution for this part:

FQ6xg8VDPd.png

 

I can see some potential problems with doing this, namely the referenced PL is rebuilt and no longer compatible, but are there any ways to overcome this?

 

How to correctly set up instrument queues for LabVIEW instances from different machines

$
0
0

This is probably a bigger step than my LV knowledge allows me to take, but recently this problem has arised in the lab.

 

We are sharing several instruments, each with a number of channels, between experiments. To make two representative examples:

  • one is a 4-channel oscilloscope with its LV drivers, which is connected via LAN to a local network (so it's directly accessible by every PC in the lab);
  • one is a NI PXIe chassis with four PXIe cards, connected via a serial cable to one of the PCs.

Each experiment controls two oscilloscope channels and two PXIe cards (there's more, but the other instruments work the same way), and is run by a different PC.

 

Now, I already experienced problems when two VIs on the same machine called the same instrument at the same time, causing a timeout error. I can imagine that adding another computer, which runs a different LV version, only makes things worse.

 

I've read about queues, producer/consumer loops, but I don't really know which is better suited to our needs, and I haven't really understood well how they work (so far my "expertise" with LV is limited to event structures in a while loop - is that a state machine?)

 

I thought about having only one computer (the one connected to the PXIe chassis) control all the instruments (even the LAN-controlled ones), and the experiments VIs talk to it via TCP (or using global variables, if it's the same computer?). Should I have a separate VI for each instrument or is there a way to do it in a more efficient way?


dynamically run VI not working after built

$
0
0

Hi all, am trying to build an application that allows a user to select a VI(strict typedef) to run.

My code works in the development environment but refused to run after I compiled it.

Please see as attached.

 

 

Can you help to advise what can I do to make them run?

 

Thank you

 

Regards,

Stonewall

"Breakeven point" for using AMC messages vs. FGVs to send/receive data

$
0
0

Hi all,

 

I'm using LabVIEW 2016. I have a medium-sized application where I'm using AMC (asynchronous messaging communication) library to send and receive messages and data between multiple local threads (VI's on the same machine). 

 

Initially I used a lot of FGVs to send data to the UI thread from other threads for display, keeping the UI thread free of incoming messages. The FGVs are read in the timeout case (timeout=10ms) of event structure in the UI thread. Then I got a suggestion to use messages in the UI thread as well to maintain consistency and to reduce CPU usage due to repeated reading of FGV data every 10ms. The rationale was that the asynchronous messages would theoretically be processed only when received, not necessarily every 10ms. (The fastest rate in the application is currently 25ms, which could change later depending on system changes).

 

So far I don't see the benefit of using messages in the UI thread in terms of reducing CPU usage. I'm thinking the overhead of flattening/unflattening from/to XML in the messages is adding to CPU usage, that I can get rid of using FGVs. 

 

Is there such a thing as a "breakeven point" of say, number of individual messages or number of individual data packets (i.e. 1D array, 2D array, etc) when you might say "less than 10 -- use messages, more than 10 -- use FGVs".

 

Sorry, uploading code is not feasible, but I think this is a pretty general topic.

 

Would appreciate any pearls of wisdom on this issue! Smiley Happy

LabVIEW Development Environment Crashes When Uploading to a cRIO-9057

$
0
0

I have a labview project that uses a cRIO-9057. When I make a change to my real time VI and upload it, my labview development environment crashes as soon as the progress bar on the "Deployment Progress" window finishes.

lv crash screen.png

However, once I re-start LabVIEW and re-upload my VI to my cRIO, everything works fine. I can stop and start the VI as many times as I like until I save a change to my VI, then LabVIEW will crash again as soon as I try to upload my code.

 

I have not had this issue with other labVIEW projects on this cRIO. I have tried formatting my cRIO and deleting and re-creating my project (although not my individual VIs), but this has not helped. Is this a known issue? What else can I try?

Continuous TCP Transfer

$
0
0

Hello, 

 

I am trying to make 2 LabView Vi's detect when a change is made in the other.  Here is an example.  A and B are the names of the two VI's which are both running.  If a true/false button is pressed in A, then B will detect it and switch its button as well.  As well, if a button is pressed in B, then A will detect it.  All of the examples I have seen use a server/client system for the TCP connections which I have applied and works well, but this only seems to be a one way transfer system and the server can never detect what is happening in the client.

 

I have attached the attempt I have made in order to detect them, which I can explain a little more about.  First the TCP connection is opened the same way any server/client pairs open.  The server computer sends a cluster of 5 elements which updates continuously.  When a button is pressed in the server (hence the event structure), it is supposed to change the same button on the client computer.  As well after the event, it is supposed to be reading the value of the button press in the client VI.  Is there an easier way to do this, or a way that acts as a two way road instead of having 2 individual 1 way tunnels?

 

Thanks!

 

NI 9237 Not reading any data in FPGA?

$
0
0

I'm just trying to read and send the values I get from a torque sensor (fancy load sensor) in FPGA. I've tried this using just scan interface and It works just fine, but for some reason the data I get returned at all stages of the data acquisition is 0. What could the problem be?

Continuously collecting strain data from two channels

$
0
0

Good Evening,

 

I am a senior in Mechanical Engineering, for our senior project, we need to create a LabVIEW program that will collect strain data continuously as it is subjected to varying loads. Basically, we are instrumenting spinal surgical tools with strain gauges and want to collect a load monitoring system that will inform surgeons how much load they are applying during surgery. We are using the following instruments:

 

1. Two KFH-6-350C1-11L3M3R strain gauges

2. Two NI-9945 quarter bridge completion circuits

3. CompactDAQ Chassis equipped with NI-9237

4. NI EDAQ-9172

 

Long story short, we have two strain gauges attached to the tools and need to collect the strain data continuously, about 3 minutes or so. The tools are subjected to a load of 50 lbs in 5 lb increments using an MTS machine. So, for the DAQ, we have two channels.

 

I have written a code but cannot seem to figure out how to continuously collect the strain data, see attached. Any assistance will be much appreciated. Also, please provide explicit details, as I am still learning LabVIEW and need to understand the process.

 

We are running the raw strain through a low pass filter to remove excess noise of 60HZ.

 

If you need any further information from me, please let me know. I am more concerned with ensuring the LabVIEW code can handle the continuous data collection that the process we are utilizing to collect the strain.  

 

Thank you for your assistance!

 

V/R,

 

JC

Create new table in MS access through LabVIEW

$
0
0

I am trying to create a new table to an existing DB [MS access (. Mdb)]. Is it possible.

 

I have already created a "insert string" in my program (labview 2015) but only inserting it to a single table only that i have created. I wish i can separate the data and sort it by month. 

1 table: 1 month

 

i need a function in my labview program that create a table in MS access. 

 

please advise

thank you in advance


Implementing a curved motion using LabView

$
0
0

Hello all, 

I am learning LabView and want to implement a .vi for our FRC robot to make a curved motion. We are able to calculate the distance to our target but want to approach it within a curved movement rather than a straight line.  

Attached image explains what we need to achieve. Any help or guidance would be highly appreciated.

 

https://www.researchgate.net/figure/Curved-path-to-reach-the-marker_fig11_275229789

 

Thank you.

Jimit

High School Student.

LABVIEW

$
0
0

Hi,

I have some dymanic data ,,,i need to check all those data and as per requirement i will take only one data at a time from those dymanic data and use that data in other purpose as a input  ,,how can I implement this in LabVIEW?? 

FPGA I/O node: you have connected two terminals of different types

$
0
0

Hi everyone, not long ago I took over a project from a senior. There is a very obvious problem with one labview program that I got --- when it comes to the FPGA I/O nodes, it always warns: you have connected two terminals of different types : .... However, in another different but similar vi,everything is OK. 

To be honest, I am not very familiar with the FPGA I/O nodes and even the labview language. It can't be better if there is someone who would like to give me some tips. 

微信截图_20190215195737.png微信截图_20190215195838.png

 

(I'm sorry that there is something wrong with that computer' USB interfaces and no Internet is available so I have to take the photos)

horizontal switch

$
0
0

Dear,

 

I would like to make more user friendly my Labview GUI using few horizontal single pole , dual throw switch as in the picture.

I couldn't find any example from the discussion forum, only for vertical ones.

Any idea is welcome, thanks in advance for help.

 

SPDT_switch.PNGSPDT SWITCH

 

FIR coefficients

$
0
0

hi

i'm trying to design FIR filter for DDC. i have tried "Parks-McClellan.vi" and i used only forward coefficient to my FIR and the reverse 0. however there is no coefficeint and my filter just passes the input data with no filtering.

can anyone help please(as im new to labview im sure ive done something wrong)

thanks

Viewing all 66748 articles
Browse latest View live


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