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

question about empty template in MS word toolkit generation

$
0
0

Hello experts, i have a very simple vi, in which I am creating a 2x2 table in a column format using 'empty' template.

I have taken this vi from the example vi that came with labview (Ex. vi name: Column Graph.vi).

 

Though i want to create a 2x2 data in column, i see the output word file created has 4 columns named 3rd quarter and 4th quarter.

I am not sure where these columns are arising from. Can anyone please suggest me what is going on? Attached is vi and the report generated

 


Array To Spreadsheet String

$
0
0

I want to convert array to string and If in some array have a space like capture2  I want to keep a space in string. 
ex.
array  Q      to string  "QQ S"
          Q

          S

                                                                                                           

                  

Rational Fraction Approximation in Labview

$
0
0

Hi, 

 

I am trying to do the equivalent of the following matlab function in labview:

[N, D] = rat(X,tol)

I have been using the mathscript but it does not recognize my equation. Is there a better way to do this?

 

 

Multiple FGV Controllers but minimize duplicate code.

$
0
0

I typically develop a FGV Controller for functions or instrument controls.  These controllers usually perform functions such as:  Initialization (Open), Setup or Configuration,  Write, Read, Close.  Examples:  Power Supply control or Timing control (or like Logging, see attache example).

 

What happens whens when you need multiple instances of your FGV controller?  Since it is non-reEntrant, you may want to copy it for each usage.   This leads to duplicate code, which is something I'd like to avoid.

 

Here is a method that I welcome critique and alternative solutions as feed back....

If you make your core function a ReEntrant VI, (as I did on the attached Example), you can reuse it without code duplication.

            This would require you to pass info (that was stored in the FGV shift register) into the reEntrant VI each time it is used.

  One solution is to create a FGV_WrapAround that maintains the FGV properties, but allows you to use the clone VI internally.

 

I know that there are many other solutions out there...

  NI Community, What have you found is a good method to handle encapsulated functions while allowing multiple use (without duplicating code)?

 

 

Network variable reads but doesn't write

$
0
0

Hello,

 

I have a project with two targets, one target is a RT Cdaq chassis and the other is a PC. I also have two network variables, let's call them "network variable 1" and "network variable 2".

 

"Network variable" 1 is in a library under the RT chassis, written to in a VI on the RT chassis, and read in a VI on the PC, this network variable works perfectly. 

 

If I probe "network variable 2", writing values works w/o issue but it will only read its default value, which is false. I have noticed the following...

 

If "network variable 2" is in a library under the RT chassis I get no error, but if "network variable 2" is in a library under the PC i get error# -1950679027. Either way the probe on the read variable does not update but the write probe does update. What could be causing this???

Write Data into 2D Array in differents orientations

$
0
0

Hi community,

how can I write data into an array in differents directions?

here is my vi but i dont know how to do it in LabVIEW.

 

Thank you for your answer

DAQmx error in executable

$
0
0

Hello,

 

I've made an easy vi to trigger a (multi) spectral camera. This vi this works fine, but I would like to run it as exectutable on anohter pc. Afther the exe is build, it doesn't work anymore, even not on my own laptop. The error appears is:

DAQmx Create Channel (DO-Digital Output).vi:6970001<append>
<B>Task Name: </B>_unnamedTask<0>

 

What does go wrong from vi to executable?

Help: How to extract information from calibrated patern Matching

$
0
0

Hello everyone, I'm new here.

 

I need help to extract information about the position from vision assistant calibrated matches. I'll use the information to program a task to my robot project.

 

 

http://imageshack.com/a/img924/4324/DQZ5MA.png

 

Tell me if you can see the image link. 

Thank you in advance.

 

 


Agilent 34972A Error 261

$
0
0

Hallo,

I am usinng Agilent 34972A to acquire temperatue measurement from Thermocouples and PT100. But sometimes I get an error 261.

 

The description of the error 261 in agilent manual

Not able to execute while scan initiated While a scan is running, you cannot change any parameters that affect the scan (channel configuration, scan interval, scaling values, alarm limits, issue a Card Reset, or recall a stored state). To stop a scan in progress, send the ABORt command or a bus Device Clear.

This error message is only shown on the Agilent Display, I dont recieve any error message in my VI. I am novice, I would learn to know more about the problems behind the error and possible solutions

Screen refresh rate?

$
0
0

Is there a .net command or other way to detect a screens refresh rate?

 

Thanks

Graham

(IEFSR 12) Flexiforce sensor

$
0
0

Hi guy,

 

I'm trying to read an accurate data from Flexiforce sensor throughout Arduino and LabView.

the idea is, I can't see the measurment on th metering more than a blink. 

you can check the design. However, I'm not that strong in Labview.

 

any idea will help. 

 

 

Thanks 

 

 

Producer/ consumer architecture for reading multiple channels and displaying it

$
0
0

Hello I am using Producer/consumer design pattern to read multiple channels and display it on the graph. I am confused as to how to split the data and display it on the multiple graphs. I have tried different methods but nothing seems to work. The pic attached is one way I tried. In this method the data on the first cconsumer loop works but the second consumer loop doesn't work. Please provide some feedback as to how it can be done

How can I get a trustful FFT spectrum from an unevenly spaced time

$
0
0

Hello,

I I trying to find the best frequency spectrum. I used the interpolation function to get evenly spaced time dt. But the frequency spectrum does not give me the right value (that I can get using the peaks detection function. I get an inverse logarithmic curve instead.

I used also extract tone function but it is not giving the right value too.

I attached the vi.

Thanks,

Zied

 

Sensoray 611

$
0
0

I'm trying incorporate the Sensory 611 PCI Frame Grabber into my LabVIEW 10 project. I'm attempting to use a third party LabVIEW driver to help me but it is for LabVIEW 7 and 8. When trying to use some functions, ie. "FG close.vi," LabVIEW searches for "Access\Access.llb\ACCESS VXIPnp Error Converter.vi."

 

How do I get Access.llb? Is it a library that is no longer included in LabVIEW 10?

 

LabVIEW Version: 10

Sensory 611 PCI LabVIEW Driver: http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=7FBBD58DD7455DC5E04400144FB7D21D

 

 

Get input values of Re-entrant VI by reference

$
0
0

Hi, 

I would like to be able to get the input values of a re-entrant vi, from another vi, by reference. The problem I see is that the values that are returned are just the default values of the controls and not the actual values. Is there any way to get the values of a re-entrant vi by reference. I have also tried the "Get Control Values by Index" function from the application control pallet and still no joy.

 

Basically what I want, is to have a logger.vi, that i can drop into several other re-entrant vi's which can get the values of all the controls on the vi that calls the logger.vi, without having to manually wire all inputs on every vi. Any input is greatly appreciated.

 

Thanks


FPGA CRio not giving proper digital outputs

$
0
0

I'm working on an fpga project with the compact RIO. I tried following the youtube tutorials and written out tutorial but i'm not getting any similar results in FPGA scan interface. 

 

I attached my project. Here's the signal i get from the basic VI, which is a digital IO set as an output in a while loop. Along with that there is a for loop to basically change the frequency of the digital signal up and down. But whatever number I put in for the for loop, it gives me the same frequency. 

My thought process goes like this: if the CRio has an optimal processing time of 40MHz than a for loop that cycles 400 times should give me an oscillation output of 100KHz, which it's not no matter what number I put in. 

FpgaOscilloscope.jpg

 

FpgaBlockDiagram.PNG

 

 

 

Any help is appreciated. 

 

Thanks. 

Zoomfactor in only 1 (one) dimension

$
0
0

I can use zoomfactor to proportionally scale a picture indicator, but how do I stretch it in only one dimension? (e.g. only the width of the  picture or image data)

Conditional Probes

$
0
0

Hello All,

 

I was hoping I might be able to get a little help with conditional probes in LabVIEW 2015.  My understanding regarding conditional probes is that I should have to option to create a conditional probe for the data type of the wire I am probing by going to the "Custom Probe" menu.  As in if I right click on an error cluster wire I should be able to go Right Click => Custom Probe => Conditional Error Probe.  My issue is that no such option is there when I go to "Custom Probe".  I only have options for "Controls" and "New...".  Can anyone shed some light as to where I might look for the setting to include conditional probes in my Custom Probe menu by default?

 

Many Thanks!

 

Ian

Boolean toggle switch from main vi controlled in subvi

$
0
0

I have a main vi with multiple subvis.  One subvi is used as a display for a monitor showing all necessary indicators for the test subject and test conductor.  I would like to have control over a main vi boolean toggle switch from within the display subvi since the subvi will be what the subject and conductor sees on the monitor.  Any idea how to accomplish this?  Thanks. 

Record data into Excel while program continues running

$
0
0

Dear Labview community,

 

I am tasked with creating a DAQ-based (RPM, power,torque,temperature,pressure) program which is, among other things, supposed to log its measurements into excel. I have not had problems creating the actual log system, however, I do have a specific problem still: I am supposed to implement a function whose task is to record those values while a record button is pressed down, and stop recording once the user presses a stop button. The program is not supposed to stop running - it records data from a running engine, and the only time the program is supposed to be stopped is when we stop the engine.

 

Now, I have tried many ways to implement it, but have failed so far, getting error -2146827284 at undefined location (an error within the excel functions, it would seem). The ways I tried:

 

  • Flat sequence structure, first trying to perform writing to excel, then stopping logging within the collector VI, then resetting the record/stop to initial values.
  • Writing to excel, then taking a boolean output from the case structure where writing is performed, and feeding it back to stop logging and reset buttons to initials.
  • I have an idea of pausing the while loop while file saving/creation is performed, but I don't know how to implement it, especially so it doesn't interfere with the daq's working on acquisition.

 

I have tried to include a maximally stripped-down version of the VI's so troubleshooting is easier for whoever is willing to help me. Saved in LV2012, I think that is the earliest version that supports the excel functions that I implemented.

Included are the VI's, and the very basic excel template that I am using for this test. 

 

Thank you for your attention, and I hope I don't offend anyone with any ignorance that the VI's may feature. I am rather new to Labview.

Viewing all 66970 articles
Browse latest View live


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