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

Migrating Community Edition Code to LabView Professional

$
0
0

Background:

 

I've been inspired by a work related project just recently, so I've started a similar one at home using the LabView Community Edition and have been making a lot of progress due to somewhat laxer review processes... A day later it becomes apparent I'm about to be assigned to the very project that inspired my own. My own project is not completed at this point and I do not intend to continue working on it.

 

Problem:

 

Not only have I solved a lot of the problems I'm about to encounter at work already, I've also been using a lot of the best practices and patterns I've become familiar with through my job for my own project.

 

Resolving the situation:

 

I'm now wondering what the intended degree of separation between private and commercial projects is. I see several potential solutions (all assuming consent given by the employer):

  1. Reusing finished code:
    1. I'm allowed to migrate VIs/Libraries/Classes from the Community Edition to the Professional one.
    2. I'm allowed to migrate VIs/Libraries/Classes from the Professional Development System to the Community Edition (reasonable proof available, like timestamped version control)
    3. Both
    4. Neither
  2. Reusing code partially by copying/pasting between block diagrams:
    1. Community -> Professional
    2. Professional -> Community
    3. Both
    4. Neither
  3. Reusing code partially by manually replicating identical algorithms:
    1. Community -> Professional
    2. Professional -> Community
    3. Both
    4. Neither
  4. Reusing code partially by manually replicating similar functionality:
    1. Community -> Professional
    2. Professional -> Community
    3. Both
    4. Neither
  5. I must refuse participating in producing code I have completed in the Community Edition
  6. I must refuse producing code for this project.
  7. I must turn down the assignment including giving advise to my colleagues

Kind Regards,

Andreas


Error 1073807194 occurred at Property Node in Visa Configure Serial Port (Instr).vi

$
0
0

Hi,

 

Yesterday I began collecting data from 4 different instruments while running a test. Data was being collected once every 10 seconds and graphed and written to an excel sheet.. Everything worked fine for over 12 hours. At 1:00 AM Labview gave me this error and stopped my code. After closing labview I'm not having trouble even starting a VI or using MAX, the programs stop responding and I have to force a close. I'm not sure what happened. Would really appreciate and insight. All my read serial ports use a close visa after them.

TCP WRITE when a condition is right

$
0
0

I know I am asking a general question, but unfortunately I can't find a way around it. Assuming I want to write to a server using TCP Write from Labview only when a condition is met, how do I go about it?

 

Why doesn't LV2020 installers install NI-MAX?

$
0
0

I have built an installer for my program

 

It includes these installers:

  1. NI-LabVIEW Runtime 2020
  2. NI-488.2 Runtime 20.0
  3. NI-Serial Runtime 20.0
  4. NI-VISA Runtime 20.0

For the last decade or more one of these last three included installers also installed NI-MAX.

 

But that is not the case anymore and according to NI, Measurement and Automation Explorer (MAX) cannot be downloaded by itself. 

 

Now how am I supposed to install it? 

 

I hate to say it but LabVIEW 2020 is a failure on so many levels...

How to output negative values for C/AO0 sine wave

$
0
0

Hello all,

 

I am generating an analog sine wave to output through the C/AO0 to read on an external oscilloscope. Currently, I have been able to generate a specified frequency and amplitude through an FPGA VI. . However, the values that I read are all positive (0-20V) instead of the desired -10-10V. How may I obtain both positive and negative values? Could I do it by scaling the 2nd half of each oscillation by -1?

 

I have attached a zipfile of pictures of my front panel, block diagram, and oscilloscope readings. The oscilloscope is a Hantek DSO4102C.

 

I currently do not have an RT Host; it is just the FPGA VI.

 

- Best regards, 2001J

HP34970A Sampling Rate

$
0
0

Since I am new to LabVIEW. Can anyone guide me how to adjust (add in the following VI) the sampling rate with HP34970A so that the signal sync (the time shown on waveform graph matches with actual time). 

time slot calculation

No load test for induction motor

$
0
0

Hello, I need to make a test panel for testing induction motors in no load state. Which hardware and software would you recommend for a motor such as AEG dAM132SV4d3?Its power is 5.5 kW and nominal current is 11.4 A. 

I am from Croatia, do you have some representatives in Europe?


RT Main.vi stopped running Automatically

$
0
0
I'm new to LabVIEW FPGA, and I'm working on the vibration acquisition and control. Now I've encountered an unexplained error as the title says. RT Main.vi stopped automatically after about 10 seconds. Highlight the execution process of RT Main, an error code 63195 has occurred. It's worth noting that the Error has not occurred 7 months ago, while the computer and NI-9035 did not open during this 7 months because of the COVID-19. Similarly, the unchanged code has been experimented, which ruslts to the same error. Why did this problem happen and how to solve this error? Thanks for your reading. Any suggestions whould be appreciated.

Need some help. cRIO 9056 disconnects after hours of VI running with no issues

$
0
0

I could really use some help.

 

I'm using two VIs to collect data, plot it, and write it to an excel sheet.  One VI runs on the Rio, it collects voltage data from three pressure sensors and uses three global variables to "send" that data to the main VI running on the PC. The main VI collects data from three instruments (about 20 different data points) once every 10 seconds via serial communication and plots it and writes it to an excel sheet once every 10 seconds, with the data from the global variables.

 

After running for 10-12 hours the Rio disconnects. I cant figure out why.

low pass filter vs. moving average

$
0
0

The data was obtained in every 1 s (1 Hz) and find a some periodical small peak.
Using excel, I applied the moving average of multiple stage to the data.
As you can see the peak can be removed by this simple calculation.

 

I would like to use a low pass filter to obtain the similar shape of graph for reliable analysis.
Before the shape according to 'window' parameter, I put the cutoff frequency and taps as the parameters for the first time.
However, the filtered value itself was very 'sensitive' to the change of taps.

I can guess this trouble came from raw data of dc-offset in each point.

 

The sample data was attached.
(I didn't consider some delay of filtered data due to taps.)

 

The original data was changed seriously compared to the average method.
I am afraid that the filtered data was changed  when other data was put to the code even with optimized value of taps.

My question is how to find the insensitive values of taps in fixed cutoff frequency in best way to mimic the moving average?

 

labmaster.

Push Button from Arduino via Labview

$
0
0

Hello,

I am trying to control the button from Arduino via Labview in order to activate a DC motor in specific speed. I have many buttons but I would like to control only the button 2. Unfortunately is not working and I can observe that the TX and RX lights are blinking. This is with LIFA.

If I use the LINX, photo 2, I can see that the TX and RX lights are always on (which is good), and then when I push the Boolean in labview, also the L button goes on, which means it takes the command, but the button is not doing anything.

 

Alexis_Koul_0-1598158581015.png

Alexis_Koul_1-1598158802721.png

 

 

how to wait for different source of occurrences in same loop

$
0
0

Is it possible to wait for more than one different (= from different generated sources) occurrence in same loop ? (while ...)

 

I've tried with two and the loop never runs unless seems both occur, or if one/other times out say.   What I need is to un-block on _any_ one of the occurrence.

 

I would like to have different few generators, but have same one loop to wake up on any one of those occurrences. 

 

How ? 🙂

How can I change the value of my original data?

$
0
0

 

if x in my txt file

Can you enter a value to change x

Simply , how do I read the position of x if the value is 5
//Not long to learning labview

 

1598170913479.jpg

1598020209432.jpg

Simulation of mathematical equation in from MATLAB simulink to LabVIEW

$
0
0

Dear Friends, 

                     I want to Simulate a mathematical equation in LabVIEW VI, However i have simulated the same expression in MATLAB SIMULINK which i believe to be correct. I have attached the Equation which i want to simulate using LabVIEW software.

The input to the equation is 8.3e-6 + 8.3e-6 *sin (2*pi*1*t-pi/2). I tried building a VI and I am getting a peak of (max output)120.345 at the output port. Where as in MATLAB Simulink, I am getting a peak of (max output) 122.3, which i am not getting in LABVIEW. I am not sure where i went wrong. What i think is there is a problem in feed back, but i have used shift Register. please help in getting a peak of 122.3 from my LabVIEW VI. I have attached details here with 

 

Thank You very much 


Error -200621 occurred at an unidentified location.

$
0
0

Hello, when ever I go to use the function generator or the oscilloscope in the NI ELVIS Instrument Launcher I get the error: Error -200621 occurred at an unidentified location. Any assistance would be appreciated. 

Shared Variables from PC to RT

$
0
0

Hello,

 

I am working with a myRIO project where data is communicated from a PC VI through Shared Variables to an RT Host VI which writes them for the FPGA Target. The PC Front Panel has a cluster for Settings and a cluster for Data, and each of these clusters are type defined clusters that include shared variables (which are also clusters) inside of them. These shared variables and these type defined clusters are referenced in the RT VI.

 

If I want the values on the PC VI to propagate through the shared variables to the RT Host VI, should I set the cluster on the PC front panel to have a Data Binding of "Shared Variable Engine: Write Only", or should I have the shared variable clusters inside of the type definitions as "Shared Variable Engine: Write Only"? Both the clusters and the shared variables initially had data binding settings of "Unbounded", but I am unsure if this is correct. Would "unbounded" be correct for this type of application?

 

On trying to test the initial settings of these VI's, I was able to have type defined boolean controls (not clusters) with data binding set to "Shared Variable Engine: Read/Write", and these communicated data to the RT. However, the type defined clusters that I previously mentioned did not communicate the information written to the front panel.

 

 

 

 

Picture of PC Front:

 

Settings_TypeDefinedCluster_FrontPanel.jpg

 

 

Picture of TypeDefined Settings cluster SharedVariable (from PC). This is the shared variable that is inside the type defined cluster:

 

Settings_SharedVariable_InsideTypeDefined.jpg

 

Picture of RT Block Diagram cluster that I'd like to read the value in the Shared Variable:

RT_TypeDefinedCluster_FilledWithSharedVar.jpg

 

Picture of RT Front that displays error since the RT read a 0 due to no values written (this produced a condition to divide by 0, hence an error):

RT_Front_ErrorSinceNothingRead.jpg

 

 

 

 

I am working on getting a zipfile to share here so that the code may be used directly, but I am still working on getting it set up.

 

- Best regards, 2001J

Conversion de numero decimal a binario

Measure Light Intensity in Lux or Lumen with IMAQ Light meter in LabVIEW

$
0
0

Hi everyone!
I try to measure light intensity in Lux or Lumen in a machine vision project.
this is what I've done so far:

I grab the video from my webcam, and extract the Luminanc plane from the image and then wire it to IMAQ Light meter , which finally measure pixels Mean Intensity in the specified rectangle...

how can I convert this code to get me the Units Lumen or Lux ?

image.png

 

Thank you

Best Regards

Eric

 

Enqueue Process is delayed and struck

$
0
0

Hi team ,

 

I am using Queued message handler architecture Using one Producer loop and using one consumer loop .

 

Automation was like a when a user clicks on start button , one set of sequence of test case was run and completed after that again user  will click on start button to load same set of sequence for UUT testing .

 

During the first time there was no delay or struck when running the code . for the next time when i click on start button it takes nearly 20 - 30 seconds for next sequence load and run . what will be the issue ? weird

 

I probed and find that enqueue had a issue and there is no issue with dequeue .

 

what should be the process rate ? timeout for both enqueue and dequeue

please find attachment of enqueue and dequeue vi's

Viewing all 69326 articles
Browse latest View live


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