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

Exact Meaning of Resetting VI Dialog - Specific Context

$
0
0

Hi all,

 

I've seen many discussion threads related to the "Resetting VI" dialog, and I've read at least one KB on it.

 

Some context:

I've been asked to help debug an application that someone else wrote.

  • Standard LabVIEW, no LVOOP or Actor Framework
  • We're running LabVIEW 2012, calling a rather esoteric and complex module of LabVIEW code from TestStand
  • We sporadically get a MS Visual C++ Runtime Error dialog that says LabVIEW.exe has requested the Runtime to terminate it in an unusual way

I've seen the "Resetting VI" dialog in the past, but in this case it reads:

 

"Resetting VI: foo.vi.ACBRProxyCaller.[Hex]"  (It's not really foo.vi - but for simplicity's sake)

 

ResettingVI.png

 

I'm trying to figure out where to focus my efforts in isolating the problem.

 

First question:

Does this mean that LabVEW is waiting for foo.vi (the caller) to reset, or does the message mean that LabVIEW is waiting for the VI called by the ACBR node?

 

Second question:

Is the "Resetting VI" dialog usually indicative of the exact problem area, or could something else in the code be causing the crash, and LabVIEW just happens to be executing foo.vi because it takes the most time to execute?

 

I realize I'm asking generic questions and not giving a lot of information. Part of the reason for that is that this is a large and complex application that is challenging for me to decipher as a newcomer, and another reason is the proprietary nature of the application.

 

Any advice or direction?

 

Cheers,

 

Jim


Reset a boolean control programmatically

$
0
0

Hi,

I have a Boolean control ( switch when pressed ) and it is inside a while loop and the it is connected to the selector terminal of case structure. When the condition meets the boolean control should be changed to false. How can I programmatically set the boolean value without using local variable or value property node

Thanks

Help with Working VI to not close all instances of Excel

$
0
0

I have a VI that I found on the NI website.  It searched an excel file, in a specific cell location, etc "A1" and returns what ever is in that cell location.  Then it closes the file and Excel, including all other workbooks.  Can anyone help me change this so that it will only close the workbook that has been opened by the VI?

Sampled data representation

$
0
0
Colleagues NI forum would like to have help to develop a VI to display the sampled data saved on my computer in .xlsx format or txt, and play these data in a VI with the same sequence , obeying the order and rate at which were sampled . Thank help everyone.

Pacific Power 320-ASX Single Phase

$
0
0

Hello.

 

I have been using NI's Instrument Drivers (latest for Labview2014) for a year now and used their example directly to create a sub VI that controls my Pacific Power 320-ASX 3 phase power supply (it is connected to an 8135 via GPIB).  It has worked without issues for a year now.  What I didn't realize is that NI's example sets up the power supply for 3 phase and I've just determined that I need single phase.  In their example, there is a subVI to configure the instrument with a pull down that contains phase options of: Three (default), Split, or Single.  I've selected "Single" and when I run the VI the power supply enables the output and then immediately enters a shutdown mode and disables the output.  I have tried numerous combinations of configuring the power supply using NI's Instrument Driver but I cannot get it to run in Single Phase mode.  Anyone have an insight or ideas on why it works fine in 3 phase but will not for single phase.  I can manually put the power supply into single phase mode using the front panel (and also with their UPC Manager Software) so I'm certain the issue is with the NI Instrument Driver.  Any help is appreciated.

 

Dan

not getting the results i want

$
0
0

In my file input output new i am trying to simultaneously stimulate and record data. I want the recording part to start before the stimulating part. I want to pulse one signal through at a time with my control. Can someone help me? is it worth the $150 for the online class for labview for the year i think.

Robotics Simulation: Wood Texture & Exporting Project

$
0
0

Hi all,

 

I'm working on a fairly basic simulation which I'm using to visualize the location of a set of position trackers in space. In my simulation I have a table model as the environment and a set of 8 colored ball obstacles which I programmatically place at the positions output by the tracking system in real time. The table environment is from a Solidworks model I found on grabcad and tweaked to match the dimensions of our setup.  So far I've been completely unable to import the table model in a way that preserves the wood-grain appearance from the CAD model. I attached screencaps of the CAD model and the front panel of my simulation. Right now I export the assembly CAD model to VRML 97 and import the model into a new simulation via the Robotics Environment Simulator Wizard. I've tried defining the appearance at the part level, assembly level, and both with no luck. Messing around with the material settings also didn't do anything (right now I have no material specified). I also tried importing the table as the environment, as a robot, or as an obstacle with similar results. I haven't tried any of the other available file types (.ive, .dae, or .lvsg) because there isn't really an obvious way to do that from Solidworks. So my question is how do I give my table in the Labview simulation a wood texture? Should I use a different program to generate the VRML file? Should I try another file type (if so, how)? Can I define the texture/appearance of the table programmatically in Labview? I'm open to any solution that works, none of the tutorials/documentation I've been able to find has been much help at all. The closest I could find is http://www.ni.com/tutorial/14780/en/, but this method just plain doesn't work as far as preserving the appearance.

 

I can provide the CAD models for the table and the VIs I use to run the simulation if needed, although I'll have to strip the position tracking parts out so it'll run for you all.

 

Also, does anyone have any experience with creating standalone applications from a Robotics Simulation project? I'll need this program to run on another computer (which has labview with the robotics toolkit) and haven't been able to get it working for the life of me. I've rolled out executables and source distributions in the past but this is a whole other story. I can post this as another topic if I need to.

 

Thanks!

Device Drivers August 2015 Issue Fixed

$
0
0

I've seen several threads where users are complaining that they can't seem to get the August 2015 downloads to work right. Here is one, and here is another.  Today I had the pleasure of needing to go through this myself and in doing so I found a few issues along with a few fixes.

 

First download the three parts. Part 1, Part 2, Part 3.  At this point you may want to backup your three downloaded parts because after an extraction the files will be deleted.

 

Run the first part and extract it somewhere.  This will be the root of your install where Setup.exe will eventually be.  For me I selected the path C:\National Instruments Downloads\NI Device Drivers\Aug15  Then run the second part, this part needs to be extracted, but not at the root, instead this gets extracted into the Products folder in the root.  For me I selected the path C:\National Instruments Downloads\NI Device Drivers\Aug15\Products  Then run the third part, this part again needs to be extracted at the root.  For me I selected the path C:\National Instruments Downloads\NI Device Drivers\Aug15

 

Now you should have in your root 4 folders (Documents, LicenseAgreements, Products, SupportFiles), and 12 files including Setup.exe.

 

Most people have been able to get this far.  The problem is what happens next.  Users claim they run setup.exe and after some amount of install, the installer asks for either Media 2.  Of course there is no no second media this is all supposed to be in one setup.  But if you open the nidist.id you'll see it claims this is volume 1 of 2, and that the MD5s for this volume are in the SupportFiles\dist_md5_1.xml.  If you open up Setup.ini you also see what installers are for volume 1, and what ones are volume 2.

 

So the temporary fix, is to run your setup like normal, at some point it will ask for volume 2.  Here just cancel the install, then edit the nidist.id replacing the line Volume=1 with Volume=2 and MD5ChecksumFile=SupportFiles\dist_md5_1.xml with MD5ChecksumFile=SupportFiles\dist_md5_2.xml then run the setup again.  What this does is convince the installer it is part 2 of part 2 so all installers that run from part 2 will work but installers from part 1 will not.

 

A better solution is to edit nidist.id to be Volume 1 of 1, edit Setup.ini replacing all instances of Volume=2 with Volume=1, and then copy lines 3-599 of dist_md5_2.xml and paste them into dist_md5_1.xml starting at line 4033.  What this does is convince all the other installers that they are part of volume 1, not volume 2 so the installer should install everything without prompting.

 

I've attached the three files to be edited as I described.  Replacing the originals (after backing them up) should fix this.

 

This is not how the installers are normally supposted to work, manually editing these files shouldn't be needed.


Do I need the Mathscript module to use formula nodes in NI Professional Dev ?

$
0
0

Hey all,

 

Do I need the Mathscript module to use formula nodes in NI Professional Dev ?

 

DMCM

Something strange about the"Search 1D Array" function,if there is some kind of bug of LabVIEW?

$
0
0

Dear NI Engineers

 

I just discovered a strange phenomenon of labVIEW, code as below:

 

001.PNG

 

When I search element as 5.2, 7.8, this Index will show -1 which means data not found. This is very strange because the data is just in the array.

Please help to know if there is some kind of bug of LabVIEW, thank you!

 

 

Register RTSI cable and add devices without MAX?

$
0
0

Is there any way to register a RTSI cable and add devices without using MAX?

 

We recently upgraded to LV2015 and have a lot of field upgrades to do. Ultimately we are hoping to deploy DAQmx Runtime (~180MB) rather than DAQmx Runtime with Configuration Support which includes MAX and weighs in at ~1224MB!!

 

The only thing we do with MAX is register a RTSI cable and add a pair of X-series cards to it. If we could somehow achieve this without requiring MAX we would be very happy indeed! Smiley Very Happy

Generation of frequency sweep using Rigol DG4062 function generator

$
0
0

Hi All,

I want to convert the attached SWEEP code I obtained from the link below to use it as my frequency sweep. I tried following the instrutions and was able to download the drivers for Rigol DG4062 function generator (see the attached file rigol_dg4000_series.zip). Can someone kindly guide me on which sub VIs I should replace with the missing ones ag33xxx - Config waveform and HP34401A Getting started.? Or am I missing out on something, my attempts have failed. I have connected the function generator to the host computer using USB and with the help of NiMAX the Rigol DG4062 is properly detected. Any clues or suggestions will be highly appreciated.

 

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/need-a-VI-to-generate-frequency-sweep-automatically/td-p/157188

Best Regards,

Opuk

 

Different tree shortcut menu for parent and child items

$
0
0

Hi people,I am trying to write a vi with with a tree control..i have been able to create a shortcut menu  for the parent item by right clicking on the tree control->Advanced->Run-Time->Shortcut Menu->Edit....However ,i would like to create two shortcut menus,one specific for the parent item and the other specific for the child items....any help?thanks

Chart - display different data type based on user selection

$
0
0

Hello everyone,

 

i need a Waveform Chart to display n variables of different data types ( signed, unsigned, 8/16/32 bit..) based on what the user has selected.

 

Any idea?

 

thanks,

 

Lorenzo

LMS implementation in LabVIEW fpga (High throughput personality)

$
0
0

Hello there !

Have to say surprised with the limitations of labVIEW FPGA in array implementation. I am not experienced enough in labview to make this comment but I found it very difficult to work with arrays !!.

I am working on Active Noise Cancellation project. I need to collect audio data from two microphones @40k Sample rate and 100 samples per frame (at least) and output the audio through loud speaker @40k sample rate. For this purpose, I am using myRIO 1900 in FPGA High throughput personality.

Right now, I am trying to implement LMS algorithm in LabVIEW FPGA platform. I have attached png file of MATLAB code , what I want to implement !

 

Till array intializations are fine but when it comes to temporary vector manipulations. like :

x_temp(1:nr_c-1)=x_temp(2:nr_c);

x_temp(nr_c)=x(i);

 

I am going mad ! How to do this ? LabVIEW doesnt allow us to index the 1D arrays properly ( we can only extract one particular element of array not part of array, I can extract x_temp(1:nr_c) with sub array function  but how to extract  x_temp(2:nr_c) ) 

 

Please help me how to do the manipulation of 'x_temp' vector with the above basic statements.

 

PS: 1.LabVIEW FPGA supports only one dimensional array operations .

       2. Even though Adaptive Filter Toolkit pallettes are available in myRIO FPGA High throughput personality, I cannot install Adaptive Filter Toolkit on myRIO Target.!!!

      3.In MyLMS program : x : input vector(Array) , ySmiley Very Happyesired Signal, nr_c : number of filter coefficients ,step: step size. I hope you understood the rest program Smiley Happy 

 

 


Is there a way to force "Clean Up Wire" feature to use Grid Alignment?

$
0
0

Is there a way to force the "Clean Up Wire" feature to use Grid Alignment? I never use block diagram cleanup, but very often I try to use the Clean Up Wire feature...but the vast majority of the time it makes a bigger mess of things and I just end up using it to reduce kinks and then re-align the wires myself...if there was a way to force it to snap to grid, it would make my life way easier! I've played around in the Tools>Options>Block Diagram menu, but nothing seems to work....but I just can't believe it isn't possible, I must be missing something? What's the point of having a grid if the wires won't snap to them?

Display Cursor Coordinates of 3D Picture

$
0
0

Hello, 

 

Fist of all I hope everything is going well.  Using the 3D Picture Control Library I have created a simple cube. I would like to know if it is possible to obtain the coordinates of the cursor; so that when I'm placed at an axis, vertex, or face of the cube I can retrieve them somehow and place them in an indicator. 

 

Thanks!

Analog read loses data when dragging window

$
0
0

I'm using DAQmx and have a program that is collecting analog read data from a CDAQ module. There are a few graph controls on the window that data is being displayed to. When I drag the window data collection pauses though until I stop the drag. There is no event structure in the code. Does anyone have thoughts about what the cause can be.

 

Sorry, I'm not allowed to post the code.

Has the "Set file position" VI changed from 2010 SP1 to 2014

$
0
0

Has the "Set file position" VI changed since 2010 SP1? I am using 2014 and have converted the program from 2010 SP1 to 2014. It seems that the behaviour is different, specifically with default settings when not wired.

Discrete Integrator (Control and Simulation Module) - LabVIEW 2015

$
0
0

Hey everyone,

 

I'm trying to drag the discrete integrator onto a block diagram in LabVIEW 2015. Every other vi in the "Discrete Linear Systems Palette are draggable but not the "Discrete Integrator". I've noticed the same thing for the Continuous Linear Systems' Integrator. Does anyone want to explain how to fix this?

 

Sincerely,

Lex

Viewing all 68979 articles
Browse latest View live


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