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

Need help doing Trapezoidal Chart Profile

$
0
0

I'm a beginner in LabVIEW but I'm trying to do a simple trapezoidal chart profile to find the final velocity by using 6 inputs; current velocity, target position, current position, acceleration/deceleration, change in time and maximum velocity. So if u reply, please give a concise explanation and description of the program. Thanks! Smiley Happy


créer une waveform à partir d'un cluster

$
0
0

Bonjour, 

voici mon problème, j'ai un cluster qui contient deux colonnes temps et amplitude je voudrais calculer la fft de cette table mais je n'y arrive pas. pouvez vous m'aider svp

 

Je joins à ce post mon programme.

 

merci

cRIO hybrid mode, transition to active mode

$
0
0

Dear all,

 

I get an error when I try to switch my cRIO to active mode. The error comes from softmotion, I guess. I made a simple project with the minimum functions, to isolate the problem. Here are the specs:

 

- Windows 10

- LabVIEW 2018 SP1

- installed software

installed software.png

- minimum project

min project.png

to bitfile.png

- RT code. It comes from an NI example. I just modified the FPGA reference, and added the session and password for InitialiseSession.vi

C:\Program Files (x86)\National Instruments\LabVIEW 2018\examples\motion\ConfigurationAPI\Reinitialize\Reinitialize.lvproj

test.png

 

In Scan Interface mode, I can use the motor through the Interactive Test Panel. In FPGA mode, I can't use it anymore, I get an error -77055. So, I tried to compile the FPGA bitfile and run it, before deploying the axe. In this case, the error in Interactive Test Panel is -77090 (Scan Engine in Fault Mode). In Distributed System Manager, I can see the fault -66460. I clear the fault, and try to use configuration mode, then Active mode. In this case, I get:

 

DSM error.png

 

I tried to remove errors programmatically, running test.vi (RT code). In this case, I get another error...

 

error.png

 

I spent days trying to solve this problem... Any help will be greatky appreciated !!

Julien

Record Noise Signal (ambient light ) for a given integration time and subtract the noise from the measured signal.

$
0
0

Hallo. I am newly working with LabVIEW 2017 64bit. I have written a programme for USB 4000 spectrometer(ocean optics). I am able to record the signal from XY graph but my question is how to Record Noise Signal (ambient light ) for a given integration time and subtract the noise from the measured signal. 

that means I should be able to record only the signal and eliminate the noise wrt to the integration time. can somebody please help me with this issue. what command should i use to record noise and subtract noise from a measured signal?

writing this programme I have used Omni drivers and spam win64.(https://oceanoptics.com/support/software-downloads/#omnidriver).

 

créer une waveform à partir d'un cluster

$
0
0
Merged with duplicate post in French board

User permission problems with RT-Linux

$
0
0

I am currently facing some serious issues with file permissions on a RT-Linux cRIO. It seems as if the same code would randomly change permissions:

grafik.pngIt might also be the case, that some files were created by different builds or from debugging mode.

Debug mode brings up this error message:

grafik.png

A workaround is to unplug the ETH port while the device boots. But that's not a feasible solution for us. Do I need to configure the aliases file?

I'm using LV 2017 on a cRIO 9063.

LV2018 SP1 : Change language of LabVIEW

$
0
0

Hi,

 

On my computer, I need to change language of LabVIEW to English.

I saw this old post for LabVIEW 2010.

https://forums.ni.com/t5/LabVIEW/change-LabVIEW-language/m-p/1886287#M636615

 

Is it same method since 2010 ?

So, uninstall and reinstall ?

No option to force install products and avoid error message : ' You have a different language edition of LabVIEW.... You must uninstall that edition before you can install the English edition.'

Trying to diagnose COM port issue in Win 7 LV '18

$
0
0

All,

I could use your help in identifying what might be going on with one of my applications. I am using LabVIEW 2018 SP1.

 

I've built a app that loops through the com ports and sends a command and looks for a valid response. The code works on my dev computer running Windows 10 and any computer that I install this on with the Windows 10 operating system.

When I try to go to install the same program in a PC with the Windows 7 environment, I continue to get the dreaded "insufficient location information or the device is not present" message. I thought VISA might not be installed so I looked at the version that came with my download package and it is using the NI-VISA 15.0 Runtime which, looking at the website, should be compatible with Windows 7.

 

I am at a loss here. Anyone have any ideas on what to look for? I'll get a zip file of the VIs together to send here in a separate post.


[NXG]error:0x77623A67

$
0
0

LabVIEW NXG ver3.0.2.

This error(0x77623A67) happen in my two laptop computers.

The simple diagram is shown below:

The NXG just crashed when I click-down the button(#) or when I run the program after the (#) button is ON.

I have no idea that is there anyone who encounters the same problem?

error_diagram.PNG

Read data from NI 9149

$
0
0

Hello,

 

    I have an NI 9149 chassis. It is connected and I see it in NI MAX, but I don't know how to read from it in LabView. Whenever I use DAQ assistant or create a channel I can't see any devices. Any help?

 

Thanks,

Most suitable method to analyze data?

$
0
0

I'm using LV2013 to collect data from an external "final test" computer. It sends a tab-string with 28 cols with ints but sometimes text are attached to the ints, i.e 43([3]). The first col has a long 15-digits identifier that are a unique ID that identifies the product that are tested. Sometimes same product are tested over and over again and it can also be testet another day too. So I get a rather huge amount of data in a text-file. To analyze it I need to import it to Excel and sort it with col 1 (unique ID). It is a rather big job to read this data. One batch can be 100 products and that can produce about 130-200 lines of data. 

To save time and get more information out of the data I need to use some automatic analyzing tool. Which method should I use? Is it a better way to use LV:s Database Connectivity Toolkit or is that to "much"? The other way is to use the text-files and make a sort without a database tool and try to extract the information. That feels not so good.

 

The information I seek are rather simple I think. Sort by ID and analyze the errors for every unique product. I want a weekly "Top Ten" error by mail. I also want to see if any interesting value drives and alarms if it goes beyond limits. Perhaps presented in the weekly mail?

 

I hope you understand what I'm asking. I haven't study the DB VI:s but I know about databases. Not an expert i db:s but I have made a SQL db in Linux/PHP before. 

Regards

Using a signal envelope to amplitude-modulate white noise - how to generate clean output?

$
0
0

Hi everyone,

A brief overview of the project: we first extract the envelope of a rapidly-varying voltage signal (collected with an oscilloscope), and then use this envelope to modulate a white noise carrier. Our voltage signal is the output from a cochlear implant (CI), which represents what the implant is "hearing". We're essentially filtering an audio file through a cochlear implant. Our goal is to produce an output audio file which sounds recognisably like the input audio.

I've tested my VI with simple amplitude-modulated sine waves, rather than the CI output. It seems to work OK under these conditions - the envelope extraction via hilbert transform seems fine, and the output (envelope x white noise) audibly oscillates at the correct frequency. Here are some pretty graphs:
Sine wave modulation waveforms.pngTop is the extracted envelope, middle is the output
The problem is that the output from this simple sine wave is, as you can see, a bit noisy. It sounds OK - it does clearly oscillate at the correct frequency - but when I try this with a more complex input waveform (such as the output from our CI) the noise overwhelms the signal entirely.

I'm not great at labview and my understanding of signal processing is atrocious, so I apologise if I'm making some basic technical or conceptual errors. If you have any advice or feedback it would be deeply appreciated. I've attached my VI below.

Many thanks,
Aaron

cRIO acting as EtherCAT master controlling TIM-EC torque mordule as slave

$
0
0

Hi.
I have the following hardware:

- cRIO 9047

- TIM-EC torque etherCAT module (link: https://www.hbm.com/en/5577/tim-pnec-profinet-and-ethercat-torque-interface-module/
- Torque flange from HBM.

 

How can the cRIO 9047 acts as EtherCAT master to read the torque measurements from the TIM-EC module which should act as etherCAT slave?
How can this be accomplished? Do I need additional hardware for this? 

I have been through this turtorial: http://www.ni.com/product-documentation/10555/en/ for setting up etherCAT on NI programmable Automation Controllers, 

Variables precedence in shift registers used in For loops

$
0
0

In this simple program, I would like to subtract two double constants 45 and 8.9. Case structures 1 and 2 is used to define the variables, case struct 3 is used to subtract them. The values are passes using a shift register and I expect them to follow the order as per indexing (as shown in Array indicator). However, they seem to have swapped positions resulting in negative answer.

 

I am trying to pull in the numbers generated in case struct 1 and 2 in case struct #3. By using Add Element to shift registers I assume I am indexing 0th and 1st element in the shift register line pointing to the variables 45 and 8.9.

 

Why does this happen? What is the logic behind this?

 

 

LabVIEW_2019-04-09_14-21-52.png

LabVIEW_2019-04-09_14-23-09.pngLabVIEW_2019-04-09_14-23-21.png

Virtual stepper motor

$
0
0

Hello, I'm trying to write code to control two stepper motors, both have driver boards. The issue is that I need to write the code without having access to the motors or the drivers. I'm very new to lab view by the way. What would be nice is if there was a virtual stepper motor in labview so that I could get the code running most of the way until I connect it to the motor and see what needs to be done troubleshooting wise.

 

Is there a virtual stepper motor? I have searched but haven't found it.


SubVI default value

$
0
0

A SubVI in my LabVIEW program has a boolean terminal. It's default value is false. My LabVIEW front panel has two instances of SubVI. Boolean terminal of the one of the instance is TRUE while other has FALSE as its default value.

 

Problem is that other instance is also getting TRUE value, even if it has FALSE as its default value.

Modbus Slave I/O Server 32 port limitation

$
0
0

i'm currently working on configuring a Modbus Slave I/O server and i can only view the first 32 comms ports. i currently have 108 serial ports installed on my chassis and i need to be able to communicate with all of them. Does anyone know how to get around this limit?

 

 

image1.jpeg

Fixed size array and FIFO functionality

$
0
0

Hello all.  I am definitely a LV noob.  So, the problem I am trying to solve is my boss wants a control that will prevent a piece of equipment from running more than 1 minute within a running 5 minutes.  I assumed I could create a 2D array with 300 lines (number of seconds in 5 minutes), and 2 columns.  The first line would just be 0-299, and the second column would contain "1" if the power is on during that loop, and "0" if it is off during that loop.  At the end of each loop, I would add up the second column and if it equaled 60, then I would automatically turn off the equipment and disable the button.  After all 300 registers have been filled, I would like the first record to drop off, and the most recent record to be placed at the  end.  In other words, it will take 5 minutes for the last record to be purged.

 

Can someone point me in the right direction to accomplish such a thing?  Maybe an easier way?

 

Thanks,

 

LV_noob

Reset variable value after each execution

$
0
0

Hi people,

I have a .net object invoking a node that counts a certain value when executed (dll is working as it should), and in each VI execution I get the desired value. However when I "Run Continuously" the VI, it seems that LabVIEW is adding up the actual value to the last one of the last execution, and I get a wrong value. I have already tried to create a local variable and zeroed it at the beginning of the script and many others attempts such as cleaning all indicators at the VI properties, but it seems that the reference is just not closed at the end of each execution (but I am closing the reference of the object too)...  I have no idea how to solve this, if anyone could help, I would be grateful!

 

I am not sure if posting the code would help, nor if I can, it is just a Construction Node -> Invoke Node -> Indicator -> Close Reference.

Not connecting to some shared variables

$
0
0

Hello, I'm having a strange case of my VI connecting to some shared variables, but not to others from the same library. The attached code snippet shows the BD. All SV refnums are sent to the auto-indexing loop, where "Open and Verify Variable Connection" is executed for each SV in turn. A test indicator before the loop shows that all SV refnums are correct. However, the refnum array indicator after the loop only has some of the SV, not all of them (the missing SV names are just empty strings). At the first empty string the Error Out becomes "-1950678943:  Open and Verify Variable Connection in States.lvclass: prepareSV.vi". The DSM shows that all SV are deployed. Why would "Open and Verify Variable Connection" complete successfully for some SVs, and not for others? I could not find any difference between them in the DSM. Any suggestions would be greatly appreciated!

Viewing all 69214 articles
Browse latest View live