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

for loop iteration parallelism - stopping

$
0
0

Hello,

 

is it possible to stop a for loop with enabled loop iteration parallelism when the first instance is finished?

I have x loop instances and the x is every time different so i couldn't make x while loops.

 

Best regards
Stefan


Using FIFO in communication HOST-FPGA

$
0
0

Hello,

I'm new to RIO programming.

I need to pass some configuration data from host to FPGA and back, I found a method involving FIFOs. I created a very simple program (picture attached) to learn how it works.

The problem is that the program doesn't work. The variable 'wynik' is 2 regardless inputs 'x' and 'y'.

Hope you can help.

Thanks

Read Data LM35 using NI MyRio

$
0
0

hi, i'm using lm35 for temperature sensor and my data acquistion using NI MyRio 1900. i got problem , normal temperature is correct showing 25 but when given a hot temperature, the temperature should rise but the temperature actually drops below 25. Here is my program.

Upgrading LabView

$
0
0

Hello 

Is there a way to upgrade my LabVIEW version ( 2015) to 2018 without having to buy a license. Thanks in advance Smiley Happy 

Caractéristiques d'une cellule photovoltaïque

$
0
0

Salut Je suis entrain d'écrire un programme pour acquérir une caractéristique d'une cellule, mais le problème que je lance est le programme que je n'étais qu'une seule fois. 

Amazon and proxy

$
0
0

Hi, I'm trying to install a labview program with the NI Cloud aws toolkit.Has my company asked me to make all the toolkit calls go through the company proxy?

Report Generation for Microsoft Office - Using Table Functions in For Loops

$
0
0

I'm currently trying to create a vi to add rows to a table based on the amount of data I'm trying to print to the table. The problem I'm running into is passing the for loop constant 'i' into the 'add row' and 'edit cell' sub vi's. I can create a constant or control for the (row, column) parameter, but can't unbundle and rebundle the constant/control to include the 'i' for the row number. Anyone have any ideas how to manipulate this?forloop.PNG

Passing 'i' into the first integer block in the (0,0) cluster

Frequency/Continues output using the NIDAQMAX python library

$
0
0

Hello,

 

We are pretty much new to this combination of Python and LabVIEW, with the use of the NIDAQMAX python library we want to generate the frequency/continues output with 50% duty cycle(for now).

 

As suggested in this post nidaqmx co_channels can't write sample we have done the changes but we are not able to generate the output, as this gets executed only once(just one pulse).

 with nidaqmx.Task() as task:
         task.co_channels.add_co_pulse_chan_time(counter="Dev5/ctr3", low_time=0.005,high_time=0.005)
         task.start()

If i put the for loop, with this we are able to generate, but we don't having any control over the frequency and number of samples are finite only.

for i in range(10000):
         with nidaqmx.Task() as task:
                   task.co_channels.add_co_pulse_chan_time(counter="Dev5/ctr3", low_time=0.005,high_time=0.005)
                   task.start()

 

Our aim is to convert the LabVIEW code in the below screenshot into Python, with out the use of while/for loop (this is because once we set the FO, we want to pole DI/AI and based on that we would like to set AO/DO's)

L_C4A3.tmp.PNG

NI PXI-6602

Python 2.7

LabVIEW 2013 SP1 32-bit

OS: Win7, 64-bit

 

Regards

Anup S K


Keithley 2010 Multimeter Error 0

$
0
0

Hi all,

 

I've been having a problem with the Keithley 2010 multimeter in LabVIEW. No matter what I've tried to do, the following error keeps on appearing (also see attached image):

 

'Error 0 occurred at Keith 2010 Reset / Preset; GPIB Send Message'

 

This error seems strange as I can communicate to the Keithley2010 through the NI measurement & automation explorer with no problem - sending it commands manually. The Reset / Preset vi is within the SCHLUM scanner vi and I cant see why an error is being caused there.

 

I've also attached the .vi and support vis in a zip folder.

 

Any information/help would be massively appreciated.

 

Thanks

K

Multicolumn listbox with drop down menu item

$
0
0

Hi,

I want to build a multicolumn listbox  with a column having drop down menu (enum type). Can anyone suggest a way how to implement it.

Thanks,

Ravi

VeriStand: The build procedure failed to compile the Simscape model

$
0
0

Hello,

 

I am trying to compile following Simscape model into NIVeriStand.tlc file to get dll. 

 

Model.JPG

 

 

 

 

 

But I am keep getting following error.

 

The call to NIVeriStand_make_rtw_hook, during the exit hook generated the following error:
    VeriStand: The build procedure failed to compile the model: Simscpae_Model16b. This might be the result of a failed linking or compile operation of the binary file.

If I use Simulink model instead of Simscape, everything works fine. I am also not sure if I can compile Simscape model into Veristand compatible dll. Any help on this issue is much appreciated.

File I/O : file is opened/created and modified without problem but error 1 on closing

$
0
0

Hi,

Rather bizarre a problem, I successfully open/create a file, then edit it without problem. But I get error 1 input parameter invalid when closing the file.


The program is structured as a state machine implemented using case structure wired to an integer control. The file refnum is stored in an indicator after creation for use via local variables in other cases. I have used refnum to path for visualising it throughout the course of the program. It appears that in the last case, the refnum suddenly changes to "not a filepath", which then goes in to the close file vi.

Any help?

Simple MIMO PID control

$
0
0

I have been working with simulink till now. Recently I started working with labview and I'm finding it difficult to simulate simple 3-input 3-output (MIMO) PID control loop in labview. 

 

I'm attaching the simulink file. As well as Labview file. 
I do not know why there is error in labview, when similar code works in simulink.

 

The reason for choice of labview is to validate my simulation using experiments. I have purchased cRIO for experimental works. 

USB 4065 Electrical resistance measurement

$
0
0

I am using USB 4065 multi-meter to measure the electrical resistance of the my sample (2-wire). I wonder how can I change the reading rate in Instrument Studio? Right now it is about 5 data points per second, I would like to increase it to 20 points, or as close as possible.

 

Any help will be appreciated.

Thanks

Problems with SubVI and own Dac

$
0
0

Hi, I have problems making the SubVI for my own DAC, I want to insert these but i dont remember how I did It ...(last year subject) . If someone can help me  solving these problem...IMG_20190520_201559.jpg

 


Caractéristiques d'une cellule photovoltaïque

Using Labview for data acquisition to determine torque values.

$
0
0

Hi NI Community, 

 

I am making a VI to determine torque for my certain application. I am using a strain gage to measure my values for torque. I am running into issues of an error 200279 after an extended amount of time (can range from 30 seconds up to a little over 300 seconds before it pops up). I have tried looking up similar scenarios and they have not worked for me such as adding clocks to determine the read rate or playing around with numbers for number of samples per channel in the DAQ Read icon and the rate in the DAQ Sample Clock. I am using a NI 9237 (input module to DAQ continuous bridge completion) as well as LabView 2018. Please let me know if you have a solution.

 

Thank you

Oscilloscope NI ELVIS display frequency

Error -1918 - Save to UFF58

$
0
0

Hello to all,

 

I am trying to save N channels of FRF in UFF58 format using the VI's SVT UFF58 Open/Write/Close. The VI Write is set to "Complex Spectrum - N Ch", where I supose to link separately the Real part and the Imaginary part of N FRF's. But when I try to run the code, the error 1918 appears:

 

Error -1918 occurred at SoundVib_UFF58.lvlibSmiley FrustratedVT UFF58 Write Spectrum (Complex) (N Ch).vi

Possible reason(s):

Sound & Vibration: This function only operates on phase spectra expressed in radians, degrees, or cycles.

 

I can't understand what this means, since it is asked to link the real and imaginary part of the FRF and there is no mention to the phase.

I thank you all in advance

Frederico

 

 

 

Recorded output data has a delay between input and output readings

$
0
0

Hi there,

 

I'm conducting an experiment which uses a capactitive displacement sensor (Displacment Graph Voltage Data in VI)  which is moved with a motor (Motor Voltage graph in VI). I have set up a loop such that the voltage of the motor increases from 0-10V and decreases back down to 0V, in order to conduct an indentation experiment. The displacement sensor changes voltage according to the indentation that is occuring. I would like to ouput the motor voltage and displacmenet sensor reading continously (currently at 500Hz) into an excel file.However, I have found that a delay occurs! The loop that supplies the motor voltage value is updated at a rate faster than the ouput data, causing the excel sheet to show something along the lines of (1V input motor voltage; recorded motor voltage 0.3V, and displacmenet sensor is XX V), I'm would just like there to be no delay between the output motor voltage and the read motor/sensor voltage. I have attached the excel file which shows that Column F does not at all match up with Column B when they SHOULD be the same.

 

Many Thanks and I hope the above makes sense Smiley Happy

Viewing all 67376 articles
Browse latest View live


Latest Images

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