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

Local variables occasionally acting as constants in FPGA VI

$
0
0

Hey all,

 

I'm running a data acquisition application on a cRIO-9039 (if that shall be of interest) with LabVIEW 19, and appropriate versions of FPGA and RT modules.

Since the last set of measurements, I made some modifications to the FPGA code. I used to be a big fan of local variables, as they, if used properly, may save you some spaghettis. However, of course, I agree local variables are bad in general. What happened now was that local variables, which had been in the code already for the last set of measurements as well (and working correctly), suddenly started acting as constants instead of reading their respective values. Precisely, the local variables would now always yield the initial value of the respective front panel element, instead of the current value. In this case, probing the variable output with another indicator read from the desktop VI shows the initial value, instead of current. Reading the front panel element owning the local variable directly from the desktop VI however gives the correct, actual value.

 

The most strange thing about this is the sudden change in the behavior of the local variable, that occurred somewhere along the process of modifying the FPGA code.

 

I got the issue solved by replacing the local variables by the front panel elements directly, which have been partially disconnected before. Any ideas how this may be explained?

A guess from my side: The whole thing happened somewhere when the FPGA started running low on slices. Maybe, by that time, LabVIEW started an optimization process and replaced any front panel elements, which are not modified (or read) within the FPGA VI itself, by constants. Greatly overlooking the fact that the front panel elements were modified by values set in the desktop VI...

 

Now that I'm done writing this, my own guess seems to make even more sense than before. Still interested in your suggestions on this!

 

Cheers


Convert rows into columns when saving to file

Taking 1st maxmin 2nd maxmin & 3rd maxmin from 1d array.

$
0
0

hello !

I have a signal which is a bit noisy at the high and low state. I want to calculate accurate amplitude by taking 3 to 4 max points and 3 to 4 min points to take average of each and find amplitude. 

What could be the best way out ?

I have attached a picture of the signal 

Historical Trend in Activex Object to be used by Third Party Appilcation

$
0
0

I'm doing some data acquisition where I am capturing/analyzing data periodically, I'm also logging the captured data.  Is there a way to implement labviews trending of the logged data within an ActiveX object that can be used by a third party application?

labview .exe file icon not shown in usb devices

$
0
0

Hello

When i make the .exe file of labview with a .ico file, the icon is not shown when i move the .exe file in a usb device.

Untitled.png

 

My build settings:

Untitled.png

 

 

 i have not found anyone else having this issue.

What am i doing wrong?

Manage and open large TDMS data files

$
0
0

Hi NI Community,

 

I'm looking for advice on how to manage data collected from PXI chassis.

 

Currently, we are taking multi-channel data at a very high sampling rate (up to 1MS per second) and each run can last anywhere from 1 to 5 minutes. The output TDMS file can end up being 10-20GBs which is quite large! I've had no problems opening a 20GB TDMS file with DIAdem or FlexLogger to visually inspect the traces. However, I'm looking to see if there are ways I can avoid using DIAdem or FlexLogger to view the data. I found Scout (free version) online but it is not that great to open a large 20GB data file as it fills up your RAM quickly. Can you suggest to me how to deal with a large amount of data? And how to open and view large TDMS data files?

 

Thank you!

VI possibly causing "low memory" issue

$
0
0

Hello all.  We have been running a program that logs voltages and temperatures.  The program writes to an excel every second.  While the excel is growing in size, our PC should not be getting "low memory" messages from this.  Attached is a snippet of the program.  This snippet is obtains the temperatures.  The channel writer sends these temperatures to state machine that does the logging and other functions.

 

Also attached is a sub-vi that puts the temperatures into a certain array format that is viewed on the UI.  I am wondering if this sub-vi is making any contribution to the "low memory"  message we are getting.  The sub-vi is designed so that it can be used in other programs and will allow us to get our desired display format without having to manually program array structures.

 

However, I do believe I read in the forum that changing an array dimension programmatically makes copies of the array.  The controls of the sub-vi allow us to change the array dimension by changing two constants, but the indicator array is set as an 8x2 array.  Does the sub-vi make a copy of the array each time it executes if we changed the dimension once?

sbRIO-9637 webDAV VIs not working (363504)- Also cannot MAP as a network drive

$
0
0

Hi,

 

I need help with this issue, have tried suggestions from multiple posts but I do not have any solution for this issue yet. I would appreciate if anyone can guide me in the right direction.

 

Hardware Info: I have a sbRIO-9637 from NI to try out. Hardware that we are/were using is myRIO.

 

Problem statement: I am having issues using vi's from WebDAV pallet on the sbRIO-9637. When the VI is made to run it gives out an error 363500, 1097 at times. Please know this VI is expected to run on PC side to access a file on the RT target.

"LabVIEW: (Hex 0x58BEC) Failed to connect to the specified hostname. Be sure the specified hostname is correct, the server is running and configured to accept remote requests."

 

To my knowledge, hostname should be correct. I know that the password is also correct.

 

Also, I am not able to map the same sbRIO-9637 as a network drive on windows not sure if these two are co-related. But can access it via a web browser or FTP.

 

Information: Same VI works just fine with myRIO, myRIO can be added as mapped network drive too.

 

For the ease, I have installed same software on both the devices, same user name, same password and same settings.

I have tried connecting and working on one device at a time and both as well. Nothing I have done so far has helped.

 

Also tried, making a new VI, same issue.

 

Only difference is the IP address and that the sbRIO connects with Ethernet and myRIO connects with usb cable.

 

Also, sbRIO-9637 losses connection in project explorer when a VI is deployed and when connected back in the project explorer the VI is found to be running on the RT target.  

 

I did format the sbRIO-9637 and did a fresh install for the software.

 

Followed step below as well: 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019PlESAU&OpenDocument=&l=en-US

 

https://forums.ni.com/t5/Real-Time-Measurement-and/WebDAV-session-no-error-but-not-connected/td-p/2540680?profile.language=en

Above solution is for VXworks targets and I believe OS on sbRIO is NI Linux Real Time same as myRIO.

 

 


LabVIEW Community Edition crashes on launch

$
0
0

crash12.gif

 

I have tried reinstalling it but this error still persists. Anyone knows a solution to this problem?

 

electrocuted_0-1597780622714.png

 

UDP Error 74 occured at Unflatten From String

$
0
0

Hello,

 

I am trying to run a simple example that recieves data using UDP from an external source.

 

When I run the example, I am able to correctly recieve the data, but after some time running the following error occurs.

 

cjegues_0-1597784027541.png

 

Any tips on how I can troubleshoot/resolve this error?

 

I've attached the VI files.

 

Thanks!

NI 9211 Thermocouple Inaccurate Reading

$
0
0

Hello, 

 

I'm trying to build a simple VI that stores temperature versus time measurements from an Omega Type K thermocouple in a CSV file (please see attached). I am using an NI 9211 coupled with a NI cDAQ-9172 chassis (due to my older equipment, I am still using LabVIEW 2017).

 

The VI I have thus far seems to behave appropriately, but when I use my thermocouple to measure the temperature of an ice water bath, I get consistent erroneous readings of 50 degrees Celsius. I've verified that the thermocouple works with a 4 channel datalogging thermometer, so the problem lies with my program or the DAQs. 

 

In addition, I know the "Convert to Thermocouple Reading.VI" is not compatible with the NI 9211; is there any conversion I need to apply within my program to get the correct temperature reading?

 

Appreciate any insight!

Wavelet Analysis

$
0
0

Izin bertanya,,,
apakah di antara teman-teman ada yang mempunyai source VI Wavelet Analysis di labview kalian ??

Installer problem

$
0
0

Dear All,

 

i want to install a application from Analog Devices which bases on NI. During the Installation I got the following measage:

 

Cannot install

  • NI Security Update 67L8L0QW for cw3dgrph.ocx (higher version already installed)

How can I solve this Problem ?

 

Network Stream Error

$
0
0

Hallo zusammen,

 

ich bekomme bei dem folgenden Writer stream den Fehler, dass beim Sendeendpunkt für Netzwerk Stream erstellen ein unverbundener oder fehlerhafter Anschluss wäre. (Block im Bild ganz links):

 

mihamm_0-1597819058221.png

Das gleiche Problem tritt auch beim Empfangsendpunkt auf. Woran könnte das Problem liegen? Ist vielleicht die Datentypdefinition fehlerhaft?

 

 

Hello everyone,

I get the following writer stream error that at the send endpoint for network stream create an unconnected or faulty port. (Block in the picture on the far left)
The same problem occurs with the receive endpoint. What could be the problem? Is the data type definition perhaps?

 

Labview data logging

$
0
0

I want log acc data. 

please tell me what's wrong in this code.

Thank you.


Unable to recover project after typedef crash

$
0
0

Hello everyone,

 

I once again have a problem with Strict-Typedefs. This relates directly to my problem in this question. Usually when I need changes in typedefs I save the whole project and make a copy of the entire folder and then close the typedef. Sometimes LV crashes and I am able to recover the project with the changes of the typedef. (Sometimes some variable of enums and unbundle-by-name are changed -> also annoying). Overall a very annoying and time consuming situation but I have learned to live with it.

 

Now I am in the situation that the project crashes on startup and I am unable to open the project or VIs with the typedef in it. Does anyone else experienced this behavior? Are there certain steps I can take to 'force' changing of variables. (LV Version 17).

 

Note: I hope it is a user error. Usually changing/ adding/ removing variables should not affect a stable programming language or its IDE.

Generating and stopping a pulse in a while loop while aquiring data

$
0
0

Hello everyone,

 

I still have a lot of questions, since I'm fairly new to LabView.

So my main goal is to generate a pulse, once a certain level from an analog input is reached. Yes I was able to accomplish that.

I'm doing that with a NI PCIe-6353 with a BNC-2120.

In general I'll list my main steps:

1. Acquiring data through analog inputs ai0-ai2

2. Saving that data into a txt file

3. While the program is saving that data, it's checking the Y value of the ai0 input.

4. If that value goes below a specified value, it is supposed to start a pulse

5. Which I am generating through an analog output ao0, and a pulse pattern generator.

The read, write and compare with the if-structure functions are all inside a while loop. As well as the saving.

 

So far I am able to control the pulse pattern, like width, amplitude and such.

But my pulse is not starting or stopping with the if-structure. It's running continuously, if that value is reached. Even if I try to put a stop-function into the false-case.

My only problem so far is to start and stop the generated pulses.

In the image shown there is the data I want to capture, the blue graph, and the pulse I want to generate, which I'm capturing in the third graph right now to control what it is doing. So let's say my value reaches the horizontal red line at 1.75, which now is my If-value and is returned true. I would love for the pulse to be where the vertical red line is. And that at every time, the Y value reaches 1.75.

But I can't stop the pulse generation nor align the pulses where I would like them to have.

Any help would be much appreciated, because I wasn't able to find anything so far.

And if I have to rewrite my program, so be it, but please someone help?

 

Best regards

A desperate researcher

 

digital continuous output error at higher sample rate

$
0
0

Hi there, 

 

I have a problem getting the sample rate above 1x10^6 using the digital continuous output example (error attatched). I am trying to alternate two lasers around 100KHz. One laser turns on for 45us then 5us rest then the other turns on for 45us and so on in a loop until I stop it. I am new to labview so please use language I might understand thank you!

 

I am using a NI X Series for usb which should be capable of faster frequencies.VI should be attatched.

 

Thanks for helping.

Single Precision Float

$
0
0

Can any one help?

I  see the SGL icon which converts a number to Single Precision Float.

But I cannot see how to convert a 32 bit Single Precision Float back to a number.

Watlow F4 Profile Programmer

$
0
0

So I am currently trying to use LabVIEW to control a Watlow F4 temperature controller. We want to be able to allow operators to easily configure temperature profiles for things like thermal cycling, etc. The attached F4 driver is basically the control that I want the program to be able to have. The problem I am running into, is how to create simple controls for setting a series of setpoints/soaks. There are times when a single setpoint and soak will be sufficient and there are times when there may be 4 or 5 setpoints and soaks. I'm not sure how best to modify this example VI to accommodate that kind of control. I imagine using some sort of array or something that they can enter a setpoint and a dwell but I'm not sure exactly how to implement that. Any help would be appreciated. Thanks. 

Viewing all 69267 articles
Browse latest View live


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