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

LabVIEW created executable crashes after 2 weeks

$
0
0

For a project I use a cRIO-9030 controller with two analog input modules and a temperature module. It communicates with a PC for which I have created an executable using LabVIEW 2017. The PC gets the measured data form the cRIO via network shared variables and network streams, formats the data into something useful, displays this data and depending on user input will log some data. All not very exciting. The executable runs on a computer (Win10 64-bit) without the LabVIEW development environment (32-bit) but I have installed the RTE so it works. 

 

However, after almost two weeks of running this morning the following pop-up message was found on the screen

“Cardamon unexpectedly stopped working”.

The user interface was still visible but in Windows task manager the Cardamon.exe was gone. Closing the pop-up also closed the user interface.

 

I checked the Windows event viewer and found the following error logged. 

Windows Event ViewerWindows Event Viewer

The exception code 0xc0000374 means there is some sort of 'Heap Corruption Exception' generated by ntdll.dll but I have no idea what might cause this and how to debug this. 

 

If anyone has some advice or at least a direction I need to search in it would be highly appreciated. 

Is it also possible some other software program running on the PC could be the cause of this ?


Starting all Sub-VIs parallel but loading of VIs is different

$
0
0

Hi guys,

 

I created a project with some VIs. One main VI is starting all other Sub-VIs, also a VI that reads data from a text file.

 

So I'm trying to start all VIs at the same moment. But according to the big text file that I read in, this VI is loading longer to create the array where the data is saved. There is a time delay because all other VIs are running since I'm using the start button.

 

I've already tried the time delay, sequence or case structure but it did not work.

I also tried to set the VI Connection into the read-in-VI but then the other VIs also starts earlier than the data read in.

 

I'm using labVIEW 2014 and to get the rigth values from the text file per time I used a for-structure.

 

Could anyone please help me how to start the other VIs when the first value from the text file is loading (not before and not after).

 

 

Thanks and best,

 

Missing NI Module RoboRIO support for 2017

$
0
0

The first time I installed Labview and the myRIO toolkit stuff, it worked fine. Then, later it keeps saying it is missing modules. I have tried uninstalling everything and reinstalling many times in slightly different ways and updating everything in slightly different ways in case I was getting the order wrong.

Currently I am trying to connect myRIO to Labview 2017. I have installed everything - including FPGA, real-time, robotics module. It says the roboRIO module support is missing and this is referenced the myRIO main.vi (when I try to open a blank myRIO project) as well as a subVI (Error Cluster from Error Code). It then also says there is a Dependency Loaded from New Path warnings from that subVI. From what I can tell from copious amounts of research trying to understand all the different parts and updates to Labview, roboRIO is not current for the 2017 versions, so why is it being reference in the main.vi of the 2017 version?

Build and search a text array error log problem

$
0
0

I have a serial controlled instrument that I can query for a status and error code.  There are maybe 10 possible error codes to look for.  I can parse the instrument text string using string subset to get the error code letter/symbol from the return string.  I created a text array and a used search 1D array to match the error library in the array.  The problem is the search array doesn't match the error code correctly for all searches.  In trying to figure it out I created a test VI to troubleshoot the problem without needing the instrument,  see attached.  The search seems to work for every array element except for element 4, "g".  I can't figure out the reason it doesn't match a search for the letter "g". 

 

I have two questions: first is this approach of building a error code table as a text array, then searching the array for a match a good way to go? Or is there a better approach to converting the instrument error string into a user alert error code?

 

Second, What did I do wrong where the array search for "g" doesn't match?

basic problem with making a UI

$
0
0

Hi labview-community,
first of all thank you for this great forum it helped me really a lot. My project is about a equi-biaxial test for rubber/elastomer. To bring in the biaxial tension state in the material, I want to inflate a membran with air pressure so it will strech in the shape of a balloon. For this experimental test set-up, there should be some different test modes availible for the user, such as a single-mode test or a long-term test (creep test). Futhermore it should be possible for the user to decide whether the test has to be pressure controlled or strain controlled. So the programm should look like this: Choose the test mode by clicking on the button (single-test/long-term test), then choose the control parameter (pressure/strain) also by clicking on a button and at the  end the user should type in the desired parameters for the test (mainly it's just a ramp function) Then press start. My problem now is, that when I run the VI and choose for example the single mode, it is not possible to type in parameters in the front panel, because the VI is already running to that time. Thats why I captioned it a basic problem concerning a user interface. I think this has to be made so easy, but I just dont find help through google. Maybe I'm just searching for the wrong terms because of my lack of vocabulary. My own solution would be either some case structures or some event structures, but then the programm would stop after choosing the right case via button-click and not wait for me inputting the parameters and a pressing play. Is there something like a wait-for-the-user's-decision-function? Or sth. like demand-an-input-of-the-user-fct? Or maybe you can just give me the right keywords to google it

If you open my file, you can run it and then press Einzelversuch (single test mode), after this it stops. Then you can type in the parameters but have to press "Run" once again Smiley Sad if you have problems with the two  DAQs pls delete them.

I'm using Labview 2016 64-bit

other translations:
Langzeitversuch - long term test

aktueller Sollwert - current set-point value

Vorkonditionierung - pre conditioning
Zeit- time
Druck- pressure

 

Kind regards,
Tobias

DAQ multi-channel analog input at different times

$
0
0

Hi everyone,

 

I am trying to sample multiple analog inputs arriving at different points in time, after a 2kHz trigger signal. the first analog signal comes directly after the trigger and another analog signal comes about 30 us after accompanied by a digital data ready signal. The DAQ i am using for this is a NI PCe-6321.

 

The current method i am using is creating two separate tasks and unreserving/starting those in a loop according to the following example i found.

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PA7XSAW

 

The problem i'm having with this method is that it takes about 33 ms (300 Hz readout) to finish sampling the two channels. This is far below my 2kHz trigger signal which means i'm not receiving all my data. So i was wondering if anyone has a method of speeding this up or another acquisition method completely.

Parallel while loops

$
0
0

Hello everyone, I'm working on LVRT projects, the first while loop handles all the controls and parameter inputs, the second loop is a timed loop which acquiring data, connect to the third while loop with queue function which handles calibration, plot and saves file. However, the second and third while loop delay like two and half minutes when I click run. Can anyone help to improve it? I also want to add an event structure which asks password when the user change the test section, should I create another while loop or put the event structure in the first one? Thank you very much. I attached the code here.

LabView Troubleshooting

$
0
0

Hello 

I would like to know if there is any way to do an analysis for NI-9236 C Series Strain/Bridge Module for correct voltage check as well as resistance of the module. Or is this possible through a shunt calibration?

 


Write Dynamic Data To Measurement File

$
0
0

Good morning, 

 

I am using an acoustic actuator to send a sinusoidal signal through an aluminum plate which is then received by a different acoustic sensor. This is a typical acoustic pitch-catch. I would like to write the sent and received signals to an excel spreadsheet so that I can compare the two. However, I am not able to save either of the signals to any spreadsheet. 

 

Could someone take a look at my VI and determine the problem and a possible solution? 

 

Thanks, 

Mike

Issue with variable deployment on Ethernet RIO

$
0
0

Hi,

 

I am using an Ethernet RIO (NI 9149) with Scan Engine for an application (LabVIEW 2017). When I run the code from my LabVIEW project, the variables are deployed correctly to the Ethernet RIO. However, when I run it as an executable, the variables are not deployed (there is no Deployment Progress window). Is there any way to get my executable file to deploy the variables?

 

I also had an issue when deploying from my project (right click on Eth RIO target => Deploy All). Most variables were deployed correctly, while several were not deployed at all. I tried to deploy the variables from a specific module only, but it didn't solve the issue. I had to select Undeploy from the module and then Deploy to get it to work. Is there a specific reason why this happened or could this be a bug?

 

Any help would be appreciated.

Thank you

Detection of raga in a song

$
0
0

I am Naveen,new to this software and i need some help for doing a mini project.Detection of raga in a song.

working with Multiple chassis in Labview NXG

$
0
0

Hi, I'm working with two separate cDAQ 9188 chassis, both equipped with 9469 synchronization modules and 9205 Voltage input modules.  The software is Labview NXG.  I would like to configure the channels in the analog input task window, and then drag that task to the block diagram where I can read & write the data using the DAQmx commands.  This is easy when the channels are all on one chassis, but with two it is giving me synchronization errors.  

 

I read this tutorial: Synchronizing Analog Input C Series Modules with NI-DAQmx in LabVIEW NXGwhich was very helpful, and it shows how to add channels through a constant or control from two different chassis, but I really want to add the channels from the tasks I created since it is easy to add, modify and test the channels in that window.  Since I will be working with hundreds of channels, building 1 or more tasks appeals to me since it seems very organized and easy to setup.  

 

I've tried using 1 task with channels from two different chassis, and I've tried two tasks with one channel each from different chassis with no success.  I get the same error below when I run the VI.  

 

Error -200436 occurred at NISmiley Very HappyAQmx:InternalSmiley Very HappyAQmx Start Task.gvi:6610001 
Start trigger delay is not available when an external sample clock source is specified.

Change the sample clock to onboard clock, or do not configure the start trigger delay.

Property: Start.Delay
Corresponding Value: 22.0

Property: SampClk.Src
Corresponding Value: /cDAQ3/?/SampleClock

Device: cDAQ2

Task Name: Analog Input_3

 

I am also open to other suggestions of clean ways to add and organize 100 - 200 voltage channels!   I may be barking up the wrong tree here.

 

Thanks,

Kyle

 

Remove URL from footer of HTML Report from generation toolkit

.NET invoke node "set wavelength" function freezing LabVIEW

$
0
0

Hello LabVIEW community,

This is my first time posting to the forum.

 

Hardware: Newport Oriel CS 260 monochromator, NI MyDAQ, Hamamatsu HC 120-05 photomultiplier tube, Dell PC i5 with 8 gigs RAM

 

Software: LabVIEW 2017

 

This is my first time using LabVIEW. I am doing a project in my physical chemistry program to develop an interface for a Newport Oriel CS 260 monochromator to turn it into a scanning spectrometer. The end goal is to produce a high resolution spectrum of iodine vapor, but that is besides the point. I have completed the goal of developing the interface but I am running into one issue that I cannot figure out and neither can my professor who I am doing the project for. I am using a .NET invoke node to access the "set wavelength" function within a loop to create the ability of a scan. As the scan progresses it will inevitably freeze. When I select the Highlight Execution button to see what is going wrong I see that everything is fine except for the Set Wavelength invoke node. It is highlighted to show that data has flowed into it but nothing is flowing out. The two outputs, reference out and error out, are grey and the program is now frozen. I cannot abort execution of the VI, there is no error message, I must use task manager to end LabVIEW, then restart the program and the monochromator to attempt another scan.

 

As far as troubleshooting goes I have switched computers, which increased the average length of the scans I can achieve before freezing, but freezing is still inevitable. I have placed a time delay in the loop. I have tried switching the preferred execution system to user interface, this changes the nature of the crash. Instead of just freezing it causes the whole block diagram to grey out and a (not responding) appears at the top of the screen by the title of the VI.

 

At this point I have no idea what to do. In advance I appreciate anyone taking the time to read and reply, if I need to provide an extra information or attachements please let me know I will do so promptly. Thank you!

 

-Sean

Modal fight between print dialog and LV

$
0
0

The code looks like this:

print hello world.png

I have the window set to "dialog"

dialog.PNG

The resulting dialog is on top but when I go to type a file name or click on it, the clicks don't register. I have to click off the window and then back in to do anything.

Save dialog.png

Does anyone know how to solve this? I'd like the hello world front panel to be modal again after the print dialog goes away but the print is asynchronous and there's no event to tell me when the front panel is back on top.

 


Print Screen Wavegraph

$
0
0

This project aims to record the signals from a microphone.
I would need to know how I could make a real-time print screen at wavegraph, that is, the graphics that show me in the front panel.
For example, press on a control button and save the image .jpg .
and another question as to how I could connect two microphones to record at the same time and write my data at the same time.
For what I contacted you last time I managed to fix the error I was happy with.

Thank you!

Print Screen Wavegraph

$
0
0

This project aims to record the signals from a microphone.
I would need to know how I could make a real-time print screen at wavegraph, that is, the graphics that show me in the front panel.
For example, press on a control button and save the image .jpg .
and another question as to how I could connect two microphones to record at the same time and write my data at the same time.
For what I contacted you last time I managed to fix the error I was happy with.

Thank you!

Moving Average versus High Sample size Mean

$
0
0

I am doing a data acquisition for single channel @ 5kHz with 250 samples / channel. So the while Loop iterates at 50ms intervals.  

Thus every 50ms  i compute the Mean of the 250 samples , then use the resulting mean value to compute the moving average with a window size of 10.  This is fine to see the trend of a physical parameter like  temperature  which inherently does not change rapidly. But i have problem when it comes to rapidly changing values like pressure as i loose out the valid peaks. The Moving Average snippet is below : 

MovingAverage.png

Instead of the Initial mean computing then doing a Moving Average of those mean values, suppose i increase the samples to 250 x 10 = 2500, will I be better off to get a relatively clean output ? ( of course the time lag resulting with Moving Average will anyway be gone ) 

 

Or any better methods can be thought off ?? 

 

 

Segment Signal

$
0
0

Bonjour,

j'ai essais  de récupérer un échantillon de signal (avant et après le déclenchement), par contre le nombre de points récupérer n'est pas du tout ce que je souhaitais.

1 Pourriez vous me dire d'où vient le problème svp

2 j'ai envie de récupérer un échantillon de plusieurs voies, y-t- il un autre moyenne que d'utiliser le Vi expresse de enclenchement ?

 

merci d'avance pour votre aide

cordialement 

  

FFT

$
0
0

Bonjour

 

je souhaiterai convertir un tableau de données en FFT sachant que ces données sont acquises avec une fréquence de 20 KHz.

 

merci d'avance  pour votre aide

Viewing all 69312 articles
Browse latest View live


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