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

NI XNET (rtexe)

$
0
0

Hi guys I'm trying to set up a rtexe (so it's standalone without a host pc) on a CRIO-9035 with XNET. When I run the vi on my development pc the interface leds illuminate to show I'm connected and I can read dbc files. When I create a build spec for my project on my rt target it doesn't work... what am I doing wrong?

 

Heres: screenshots of my project and code.

 

 


Duplicate hierarchy for previous version

$
0
0

I want to save a VI that has a number of sub-vi's for a previous version.  Current is 2015, previous is 2013. 

 

I'm going to find out the hard way shortly, but is "save as previous version" going to handle sub-vi's properly?

How to synchronize "Write to Measurement File" in parallel while loop?

$
0
0

Hi there,

 

I was wondering how can I start and stop "Write to measurement file" in two parallel while loops at exactly the same time?

 

I know using time stamp is a method. But is there any easier way to do this?

 

Another quick question is if I run three parallel while loops and save the data at the same time, where there be any delay in the saved data? I've set the VI to reentrant mode.

 

Attachment is my code, thank you in advance!

Synchronize.PNG

Class Strangness

$
0
0

Hello,

 

When I unbundle the the object I get an array size of 3. 

When I use the data accessor I get an array size of 0.

Any ideas on what is going on?

 

Thanks

 

Analog Group.lvclass_Init.png

Default text editor inside project explorer

$
0
0

Hi community,

 

does anyone know if it's possible to change the default text editor inside the project explorer? The current default is windows notepad.

 

Greetings from Berlin.

Question about Set point of Model predictive control (mpc) in real time control

$
0
0

Hi

 

I wonder Set point of Model predictive control(MPC) in real time control .

I  using [cd generate time profile for mpc simulation.vi] for Set point of MPC

I understand that this vi is only used for simulation purposes.

In real time, what do I need to put in a set point?

( I trying to make Lane Keeping Algorithm using MPC and Autonomous Vehicle. and MPC algorithm calculates Steering anlge in real time. but I don't know what put in a set point steering angle)

 

Please I need suggestions.

 

Thank you.

NI-XNET Database Editor: Aribtration ID Numeral System

$
0
0

I am working on creating a CAN Database using the NI-XNET Database Editor. From the list of CAN IDs I have, many of them are denoted with h for hex and most of these values are accepted as arbitration IDs in the CAN Frames.

 

However, there are three cases where the IDs are not accepted:

 

1. CAN ID's in this format: 0x00062280 are not accepted as the arbitration id as there is only the options decimal, hex, octal, binary, SI notation. Does anyone recognise this format?

 

2. There are some hex values that start with a zero, e.g.  0C1003C0. When I type this in, the first zero disappears. Will the database still read it correctly?

 

3. Some IDs are listed with two or more codes e.g. 14082280, 16082280+Node#  . When I type them one after the other with no spaces it returns:1FFFFFF7. How do I enter this into the database?

 

Thanks in advance,

 

Lisa

problem with ULx for LabVIEW 2.15

$
0
0

hello, 

 

I have a daq - "USB-1208HS-4AO" and its software from measurment computing website.

I'm trying to use blocks of ULx but i get a message that the assembly expected to version 2.10 and found 2.15.

Also, it is trying to seek the file on LabVIEW 8.5 folder but mine is Labview 2014.

At measurment computing website they wrote it is compatible with NI LabVIEW versions 2010-2016.

Anyone knows what is wrong?

 

thanks,

Adi

 

Fit rectangle into Binary Particle

$
0
0

Hello all,

 

I have a problem with a function I am trying to implement: I would like to get the biggest Rectangle that fits into a region in my image. By biggest I mean the biggest area. Here's a graphic to illustrate:

Best fit rectangle.png

 

My form will look something like the black one (inmy Image the entire form is filled with white) and I would like my result to look something like the green rectangle.

So far I have tried the following: Detect falling edge from top to bottom gives me the lower line. I then rotate the image so the lower line is horizontal to avoid using math. Then I use the base line to detect intersects with the side from where I draw up to get the upper points. Then I select the correct point and draw the rectangle.

This works fine for some images, but others are a rotated or a corner might be missing which is when it gives me bad results.

 

Does anyone have a pointer as to how to better implement this? Any help is greatly appreciated!

Fitting small data with a lorentzian curve

$
0
0

Hello,

 

as described above I'm trying to fit some measurements with a lorentzian curve. Currently I'm using the Nonlinear Curve Fit Vi. I will attach everything that is needed, since at the moment I'm just playing around.

 

My Problem is that the amplitudes are in the range of 1E-12 to 1E-9.

Now I found this:

"What is the Y-range of your data? if it is very small, it prematurely thinks it is converged even if it is not. In this case, you MUST wire the stdev input with an array of equal size as your data, initialized with value appropriate for your data."

 

I guess my Y-range is very small, but I don't get the rest of the quote. Since the Vi doesn't have a stdev input?

 

I swapped the LavMar with the bounded LavMar and switched it to TRDL. It actually generates a good fit until you put the offset to 30 or 0.5. So neither is really giving me what I would like to have.

 

 

I have attached every needed VI.

"Messung mit Fit.vi" is the one that you need to start. I know the code doesn't look pretty. As you can see it generates values for a lorentzian curve, with hardcoded values.

"Ansprechbarer Lorentz-Fit.vi" is the Vi where my LavMar is implemented.

"Lorentzfunktion.vi" is my Model for the lorentzian function.

The last VI isn't important, but it's needed since I use it.

 

 

Greetings

LabVIEW and git

$
0
0

On NI community there are some resources related to the usage of git for LabVIEW projects.

Some of them are old (some years ago), for others it's not clear if they works or not and so at the moment I can't find a working way.

I use several releases of LabVIEW on my Windows 7 64 bit PC.

I followed this, but I can't find a way to setup diff and merge tools; LabVIewGitEnv doesn't work because LVInit.sh gives errors

handle_options: command not found
update_attributes: command not found
do_git_config: command not found

Since nowadays git has become a standard tool, could someone provide an updated and working step-by-step document on how to have LabVIEW working with git?

Read position in real time for Thorlabs

$
0
0

Hello,

 

I am using LabVIEW 2013 to control a Thorlabs controller (KDC101/K-Cube). Right now the controller is moving a single axis stage. Attached is my VI's. The VI called "test .net.vi" is my main VI. Right now, everything works how I want it to. however, while the stage is moving, the program kind of "blocks", meaning that it cannot perform any other actions while it is moving the stage. I need to read and display the "Current Position" in real time and update, say 4 times a second. Does anyone have any ideas for this?


Thanks in advance for any help!

SM

passing values between different vi's

$
0
0

Simple application. In main VI i click button for new window with subvi. In this subvi i can choose value from menu ring. When i click diffrent button on main VI i want to send what is choosen in subvi, to indicator in main VI. Why this doesnt work?

LabVIEW equivalent of Array[i].ClusterElement = Value

$
0
0

I have an array of clusters, which are composed of mixed data types (booleans, numeric, string controls). I would like to write a value to a particular cluster element of a particular array member.

 

If I right-click on that element and then create a writable property by going to Create->Property Node->Value then for some reason it always refers to the first array element even though I made the property node from, let's say, 4th element.

 

So how do I write to a particular place in my data structure? In other words, what would be an equivalent of C's assignment operator Array[i].ClusterElement = Value ?

Saving issues

$
0
0

I've got a VI that's set to automatically save a data file (table of points with a header) once the program has finished running. 

Every so oftern, however, it's not correctly determining the file name and is either skipping a number or writing over a previous scan.

ie. the file names should be 1116201601, then 11116201602 (so date followed by number going up). Yesterday I was running scans and it ran 1115201601 and 1115201602 fine, but then instead of writing to 1115201603, it overwrote 1115201602 and then skipped to 1115201604 for the next scan. They are saving as .txt files. It doesn't seem to be a specific number that is always not saving correctly, just randomly, but enough where it is an issue (at least once every 10 times).

 

I'm not that proficient in Lab View so it's probably something fairly simple, but I can't determine what it is unfortunately.

 

I've attached the VI


System dependant cases? [1 project for myRIO and cRIO without code changes]

$
0
0

 

Im working on a project with Realtime and FPGA that can be run on the myRIO or a cRIO with appropriate I/O-modules. Lets say Im working on myRIO and everything is running fine. Now when I want to test it on the cRIO I need to change the specific I/O-constants and a few details (like conversion from fxp to int because the input module uses a different data type).
Of course all of that needs to be done in reverse order when Im switching back.

What Im looking for is a case structure or something that checks the system its running on during compile time and uses the appropriate case (which simply could contain the correct I/O-constant for that system). That way I could create a project for every system, use the same VIs and when the code is running or compiling its automatically choosing the correct IOs.

[In C one probably would do something like this:

#if defined (__AVR_ATmega16__)
...
#elif
...
#endif

 ]
Do you know of something that could help me?

LabVIEW Project treat LLB files as Normal Files

$
0
0

Is there a way to get a LabVIEW project to not open LLBs and just treat them as a non LaBVIEW file?

 

Use case:

I create installers that includes many LLBs. LabVIEW wants to open all the LLBs and tell me about conflicts and limit where I can install them.

user32.dll getting included in application

$
0
0

I'm sure this is something stupid, but after 2 hours of trying to figure it out I give up.

 

I'm making calls to user32.dll.  Built several times, never had a problem.  Randomly the compiler started including it as part of the build causing the application to crash instantly.  I can't find any settings in the a compiler that would either allow or prevent this.

 

What am I missing?

Lag between text scrollbars

$
0
0

Hi, I would like two text indicators to scroll using one vertical scrollbar (and keep the lines lined up), but there's a lag between them which results in them not lining up.

 

Is there a way around this?

 

Many thanks

Graham

 

Writing Strings to TDMS File (Doing it wrong...)

$
0
0

I'm trying to set up my program to write to a TDMS file. I believe that mabye selecting the TDMS format was a bad choice because of how I've been asked to format the data at the output.

I love the ability of being able to set file level properties. But my format needs to be something similar to below:

 

TDMS_Format.PNG

 

The only real "data" is the timestamp and the measurement, the rest are simply strings. Is there a way to write strings to a TDMS File as a channel? Or must I absolutely use properties for this? Or should I just move from TDMS to a writing to a spreadsheet directly?

 

Thanks,

 

Kellen

 

 

 

Viewing all 69374 articles
Browse latest View live


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