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

the connection for the given session has been lost

$
0
0

I connecting to the IDRC DSP-300-02.5HR power supply via ethernet by VISA. After system starts connection is normal. I send commands and receive answers. But when I shutdown power supply and start it again VISA don't refresh information about it. Power supply obtain IP by DHCP, but even IP not changed I receive error "VISA: (Hex 0xBFFF00A6) The connection for the given session has been lost" when try to write command by VISA Write function. Information about visa resources in the system I obtain by VISA Find Resource vi. How to solve this problem?

 

PS Power supply connected to second Ethernet adapter in the system. 


can I have both control and indicator in a cluster?

$
0
0

I create a cluster to contain 5 number controls, an array of double and two string fields. I want to change one of the number control to an indicator. But I find that if I convert one of them, all controls changed to indicators. Any way to mix the controls and indicators in one cluster?

What is *.seproj, how to open it?

$
0
0

I just came out an file whose name is *.seproj but I can't open it with my LabVIEW software.

What is *.seproj, how to open it?

Thanks!

QQ截图20160325141208.png

run length encoding (horizontal and vertical) of an bitmap image

$
0
0

Good day to all.

 

Recently I have working on some image processing related to shortest path algorithm. I have came across "run length encoding"As it is not to understand the concept but I am have no idea, how to implement it in LabVIEW. My test images are in binary (0 and 1). and I am trying to get horizontal and vertical run length encoding of test images. I am looking for some suggestions and help regarding where and how to start.

 

For reference to run length encoding here is a link . 

 

Thank you for any suggestions. 

led cube 5*5*5

$
0
0

BONJOUR.. je suis un etudiant de la faculté de science de monastir .. j'ai un probléme avec la carte myrio.. s'il vous plait je veut realiser un cube a leds 5*5*5 le problème c'est que le courant de sortie des pins A et B sont trés faible de tels façon  que la luminosité est trés faible ... comment je peut augmenter le courant de la carte ou bien une autre facon pour augmenter la luminosité? ...  

merci d'avance

Analog Discovery 2 in LabView Home

$
0
0

Hello, i have labview home edition (2014 SP1) installed.

I have waveforms 2015 installed en use Analog Discovery 2.

By the VI Package manger i installed the Digilent WaveForms VIs.

 

By Find Examples i search for Digilent, not one (of 6) example works.

The give massive errors; SubVI'DigilentWF.lvlibSmiley Very HappyWF PS Configure Voltage Output.vi': SubVI is not executable

 

In the Functions palette under Measurement I/O i find the Digilent WF VIs, no one of this work.

The VI gives the error 'Call Library Function Node 'dwf.*iniVB_PS_Initialize': Library not found or faile to load message shows up.

 

LabView does not reagonize my analog discovery 2 not by name and/or by serial number

 

I did seperate installations on 2 different machine's with the same results.

 

It looks to me that something is not installed, but what?

I hope someone can help thx in advance

receive sms

$
0
0

i have attached the code to receive sms.first i am running initialise code where i am using the command at+cnmi=2,1,0,0,1.then i am running receive sms code. but it has some problem. i have also attached the front panel of receive sms(please see through read buffer).  gsm i am using is mc35i.can anyone please find a solution

NI MAX crash

$
0
0

I get a crash report when i am opening NI MAX software,if anyone knows how to solve it,please tell me,thanks very much!

below is the main content of the NI MAX Crash Reporter:
We apologize for the inconvenience
NI MAX 5.5 encountered a problem and needs to close.You can help us diagnose and fix the problem by sending this report directly to National Instruments.
Exception:Access violation(0xC0000005) at EIP=0x1BF16CCC
Version:5.5.0f0


How to interface Intel Galileo generation 2 board with labview

$
0
0

How to interface Intel Galileo generation 2 board with labview. I am trying to send signal from my Laptop COM port to USB 2.0 client port of Intel Galileo Board gen 2. Can somebody help me or atleast let me know if its possible to do the interfacing.

x y values chart

$
0
0

Is there any way to plot a graph that keeps it's history with each set of loop iterations or plot a chart using xy points?

 

Thanks,

 

James

Accumulating indicator results, and ignoring zero values

$
0
0

Hi dear NI members.

 

I have been introduced to labview just three days ago by a friend of mine, an electrical engineering student, i wanted to have a computer based monitoring station for my power consumption, he helped me with designing/purchasing the hardware needed to interface the hardware to the PC (Labview), and i ordered a daq which i should have in a few days, meanwhile i am trying to implement the code which i want to use to display the kWh of which i consume, at this point, i was able to figure out how to display the Kwh value of any given voltage and current values, i am stuck at how can i prevent the indicator (kWh) from dropping below the last displayed value ?, since if i change the current input to zero, the whole accumulation goes to zero, as well as any other low value drops the indicator reading significently, below is a video showing my code with annotations further explaining the issue,  please keep in mind i only started using labview three days ago, any help is appreciated,

 

https://www.youtube.com/watch?v=HmIiCSOrSlU

Update of front-panel indicators is lagging when testing functions in vendor-supplied DLL

$
0
0

I'm looking to see if anyone can explain an odd LabVIEW display behavior that I'm seeing when testing some timeout functions in a third-party DLL. I have a work-around in place but I'd still like to know why, without the work-around, the information displayed by the front-panel indicators is not synchronized with what's happening in the execution of the VI even though I've tried all sorts of things to enforce synchronization. Note that to run this VI in a useful manner, you will need to be able to communicate with a Galil motion controller over an Ethernet connection and that will, for the most part, limit this discussion to what the experts among you know to be happening under the hood of LabVIEW in situations like this.

 

This is what the VI looks like when my work-around (Bogus wait added) is active. It is a small state machine that uses the elements of the "Test Sequence" array to tell it what to do at each step of its execution. Here it reads an initial timeout value, sets a new timeout value, reads it back, tests the timeout by requesting a READ of the controller (without having first asked it to say anything), followed by restoring the initial timeout and then stopping.  The two indicators in the red rectangle are there to show the current execution state and it is this pair of indicators which do not remain synchronized with the actual program state.

 

Display Problem A.png

 

When execution completes this is what's seen.

 

Display Problem B.png

 

If the bogus wait time is too short, then the indicators are not synchronized with the program state or in this case, with each other.  Note that the only time the VI display is static enough for me to grab a screen shot like this is during the "Test Timeout" period. When the timeout eventually occurs, things become synchronized and the same results are displayed.

 

Display Problem C.png

 

Here is the code.  I'm also attaching a zipped folder with the code just because I don't know if snippets are smart enough to include any DLLs referenced by the call-library nodes.

 

Timeout-Test Snippet.png

 

Here on the left-side of the FOR loop the "State" and "Index" indicator terminals can be seen. The "Bogus Wait" needed to make the indicators work synchronously appears below in the same area. Before coming up with this "fix" the things that I tried, which did not work, were:

  • adding the flat sequence structure seen here with the indicators in its first panel
  • Using property "value" input nodes linked to the two indicators with their error outputs daisy-chained to the error input on the "G Read" (timeout test) function.
  • setting the indicators for "synchronous display" (apparently this setting actually only works with multi-threaded code, which I don't believe this to be)
  • setting the "defer front panel updates" property to false

One thing else that did work was connecting a "probe" to any data path on the input side of the conditional frame. I figured it also cause a few milliseconds of delay like the wait.

 

My best guess at what's going on is that display updates are "launch and forget" actions that happen on parallel execution paths within the single execution thread and they depend on getting a few time slices from the main process to complete. But when the main process calls an outside library, that outside library does not know to share time with any other processes that might be running within the same thread.  Does any of this make sense?

LabVIEW FPGA SGL Inverse Tangent

$
0
0

I am trying to implement an inverse tangent calculation on FPGA and I would ideally like to have the input and output be Single Precision (SGL) Floats. The input would be the Tangent and the output would be the angle in radians or PiRadians. Is there an available function to implement this in LabVIEW FPGA using SGL?  I know it does exist in FXP.

 

I'm trying to use the Xilinx CORDIC 6.0 LogicCORE function (something I'm not familiar with) and I'm not sure I'm using it right. I see that I can get an output (I assume the angle) in SGL but it seems the input has to be Fixed Point (FXP).  I'm using the Zynq on a cRIO-9068.

 

I've attached a VI snippet with the CORDIC node configured for pipelining.

 

I configured the Xilinx IP as follows:

 

Functional Selection:  Arc Tan

Architectural Configuration: Parallel

Pipelining Mode:  Maximum

Data Format:  SignedFraction (no choice allowed there)

Phase Format: Radians

 

Input Width: 32

Output Width: 32

Round Mode: Truncate

 

Advanced Configuration Parameters (not really sure what these do):

Iterations: 0

Precision: 0

Coarse Rotation: checked

Compensation Scaling: No Scale Compensation (no choices allowed there)

 

In the resultant VI (see Pipelined SGL Arctan.png) I thought  "s_axis_cartesian_tdata" was the tangent value and "m_axis_dout_tdata" was the angle in radians.  But that's not what I seem to be getting.  I punch in 1 for "s_axis_cartesian_tdata" and I expect to see 0.785398 for "m_axis_dout_tdata".  Instead I see -1.77293E+38.  I've set the Execution Mode of my FPGA target to Simulation (Simluated I/O). Don't know if I have to run this on an actual FPGA to see real values.

 

Thanks in advance for  any help.

Popup VI won't close

$
0
0

I have a VI that has a main while loop, and with that, the popup will close, but then if I add an event (value changed), the VI will not close.

 

I'm really green with this stuff, so I'm sure someone can tell me what I'm doing wrong within seconds.

 

 

How to write data to a file(details inside)

$
0
0

Hi,

 

before I get into my problem im going to give details of my program.

 

Now I am using the myDAQ assitant to retrieve volages from a thermistor. I am then converting this voltage to a tempreture then mapping this tempreture on a waveform chart over time. 

I am also working out the minimum , maximum and mean tempreture that has been recorded over time. Now I need to write this data to a plain text data file logging the measrument history over the applications run time. I need to include the minimum, maximum and mean tempreture recorded at the end of this file. I am really struggling to do this (my first program I am writting with labview). 

 

I am unsure on which tools I should use, if I was pointed in the right direction on which tools I would need, im sure id be able to figure it out.

 

I have attached my program as an attachment, any help would be greatly appreciated.

 

Kind Regards

 

Ahmed


ActiveX Control Could not be Loaded

$
0
0

I was using an instrument driver supplied with the Coherent Labmax TOP earlier today and it was working fine. Later in the day I would get messages that the ActiveX control was not properly initialized. On the front panel I see the ActiveX container says "Control could not be loaded" as below. I found this link which says to repair the Runtime engine. Oddly enough, I don't see the 2014 Runtime engine in my list of NI Software, does anyone know how to uninstall it or repair it? 

 

activex.PNG

Do I need to know how to build circuits in order to test and modify sensors in LabVIEW?

$
0
0

Hello,

 

forgive me if this question has already been answered multiple times. I am new to LabVIEW and also new to electonic circuits. I have a friend of mine that has invited me to participate in some sensor testing this summer with LabVIEW. He also knows that I have never used LabVIEW. I have never really built circuits besides what would be considered very basic in nature. I see that LabVIEW has a graphical type system that looks that it represents the symbols and functionality of electrical circuits. Does that mean that I need to first know how to build circuits to even be able to use LabVIEW at all? I basically have about two months before I am supposed to start working with LabVIEW. I am trying to get a head start so I don't show up there looking clueless.

RT Waveform Acquisition and Logging Project

$
0
0
Created a default project using the "Waveform Acquisition and Logging". I'm using a NI PXIe 1078, typed the Controller address into the VI but when I press connected in the VI I get "UI Error - 314004- Create Network Stream Writer Endpoint in UI - Initiate Connection.VI -? UI Main.VI" This is a default project with nothing changed what do I need to do to connect to the target?

Levenberg Marquardt fit : formula problem

$
0
0

Hi

I am soo.. new to LM fit I might have a stupid question... So please bear with me !

I am trying to fit a simple formula but LV routine tells me my formula in wrong.

attached is  a png image for my case !

 

Thanks for any help

regards

N

 

LabviewExample4LIBSVM.vi

$
0
0

Hello all can someone guide me in using the train, validation and classifier VI's of the LabviewExample4LIBSVM.vi how to modify them to suite my application(image analaysis, particularly anamoly detection and classicfication and assocoation )of a certain group of images.

 

Viewing all 69576 articles
Browse latest View live


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