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

"File Path Control" default Value

$
0
0

Hi - How do we set or change the default value for "File Path Control" (Control --> String & Path ---> File Path Control)?

 

I typed the default path into the control field on the front pannel and save the VI file.  The value gone when I reopen the file.

 

 

 

 


opposite data reporting

$
0
0

I am having a problem with the reporting of data with my experiment. I want to grab a measurement at every 6 second interval, but when I put that in the front panel, it instead grabs all the data inbetween 6 seconds.

Anyone know how to fix this? I attached the vi.

 

Thanks!

Link the "plot legend" checkboxes to individual booleans

$
0
0

Hi all,

 

I'm saving DAQ data from a waveform graph (where different channels are displayed as differently-colored plots on the same chart) and I want "unchecked" plots in the legend to go unsaved.

 

Ideally there would be some kind of boolean value associated with each checkbox which I could then use to say "yes, record" or "no, don't record."

 

Is there any way to do this? Or is there a better solution than this?

bookmark and pull down menu

$
0
0

Hi,

I need some help. In the attached word document (.docx), all my bookmarks are in the last colomn of this template. When I run my program, things work well but I am not able to remove the "choose an item" that is coming from the pull down menu located at that place.

Please run the program you will understand what I mean.

NI usb-485 vs LabVIEW 2013

$
0
0

Hi

 

Please, help me!!

 

I try use the NI USB - 485 with LabVIEW 2013, but not working, the NI MAX don`t identify the device, I have install the drive NI Serial 4.0. Somebody can say me, what happen? the hardware is not compatible with labview 2013?

 

 

Thanks and Best regards.

 

 

 

 

Launching Actor From Tools Menu

$
0
0

I have written a configuration tool(lets call it application ABC for simplicity) within the actor framework for a very large API.  Application ABC was designed/intended to be launched from the Tools Menu in LabVIEW.  For development I ran application ABC directly using a development style "splash screen" that I would run from the project that owned the source code.  My development splash screen has a crude pop-up that allows you to select the VI that you want application ABC to act like it was launched from.  As part of the final stage of development I wrote a VI that uses the App.MenuLaunchApp and AppMenuLaunchVI properties to retrieve the VI to configure.

 

Here is where the trouble started.  Application ABC runs well and closes as expected with no sort of odd behavior while closing when run using the development splash screen.  When launched from the Tools menu application ABC acts normally and allows me to run all of the methods/msgs for the actors without any hints of trouble.  Closing application ABC LabVIEW crashes whenever the launch originated from the Tools Menu.  This is very consistent.  

 

My guess as of right now is that it has something to with the actor framework running in a private application context (LV.Dialog).  I am assuming that LV.Dialog is making assumptions that I am breaking.

 

I haven't tried a simplfied example yet; but I am interested to know if anybody else has tried something like this....  Is the AF Message Maker in the actor framework?

 

LV2012SP1

My customer won't let me share the code.

I attached the debug output in case that interests anybody.

about state machine

$
0
0

In the state machine, I have a Event Structure in the Idle state. I want to add a timeout in the idle state. For example, when the VI times out, it will jump to Update state.

a.png

Returning data from a Reg Event Callback to the calling VI

$
0
0

Hi,

 

I am new to LabVIEW and approach it from a C# programming background. I have a DLL library written in C# connected up and a .NET Reg Event Callback listening to an event in the DLL. This part works. I can receive an integer value from my DLL when the event fires - so far so good.

 

However, having this integer available only in the VI which is referenced by the Reg Event Callback is useless - I need this integer passed back to the calling VI so that I can work with it. I tried wiring a numeric indicator up to an output in the subVI but this generates a function conflict on the wire connecting the Event Callback to the strictly typed VI Ref. Please see the attached illustration.

 

Please help!


flat sequence structure for benchmarking

$
0
0

Hello,

 

Maybe this is very obvious, but I do not fully understand something with flat sequence structures-FSS (I never use this structure by the way, and I do not get why they use it in this example).

There is a NI doc online explaining some rookie mistakes in LV:

http://www.ni.com/newsletter/51735/en/

The doc describes that the FSS is useful for benchmarking, the BD:

amndactq6630960983613965242.png

 

My question: what about if we put the Tick Count in a subVI at the left and at the right, and giving the exec. order with error wires? Or using a while loop which executes only once (with error wires passing through)?

Are these 3 different ways identical?

VISA read very slow communication

$
0
0

Hi,

 

Im using VISA serial communication in my project and i noticed that the read block is working very slow.
I have microcontroller which connected through XBee modules to my Laptop.
The baud rate currently is 9600 due to the fact that change this factor in each component in the line will not make a difference at all.
Also I checked this with XCTU terminal and its working fine (very fast). so its can't be something else except from the read VISA.
Please see attached VI file.

 

Thanks for any help,

Labview 2011 crashes at error 404

$
0
0

Test rig monitors and saves data from analog sensors, Recently it has started to crash at apparently random intervals ( has run for years before recent incidents). Only message on event veiwer is Labview error 404 at time of crash. S/W crashed up to 5 times/day. However, didn't crash overnight or weekend (running 24hr/day). Now it has run 1.5 day without incident,

copy of test rig vi attached.

 

Labview version:  2011.

PC: HP Compaq

OS: Windows XP

DAQ chassis: SCXI 1000

Comms: PCI-MIO-16XE-50

srq stuck in on position. Display a bmp image.

$
0
0

Hello,

 

I have a problem when I want to display a .bmp image. I use the functions "Read BMP File.vi" and "Draw Flattened Pixmap.vi", but unfortunately an error occurs:

 

Error 16 ocurred at read BMP Header Info.vi

Possible reason(s):

LabVIEW: Image not found.

---------------------------------------------------------

NI-488:  SRQ stuck in ON position.

 

I don't know why it happens. I have checked the folder where the image is stored and the image exists and all is correct. I have also checked the path of the image and the path of the "Read BMP File.vi" and are the same. 

 

I have attached this vi. Its functionality is to take a capture of the oscilloscope, so store it with a name and the display it in the front panel of the vi. If you open the file, you will see that I have used the flat sequence. I have used this structure because I thought that LabVIEW didn't find the image due to time issues ( the program tries to display the image when it hasn't been created yet).

 

I have been looking for information about this error, but I haven't found anything and I don't know what I have to do. 

 

Any help is appreciated. 

 

case structure question

$
0
0

say i have 3 case structures one within another.. say i want to create a new case structure over all these exisiting case structures. so you have true and it shows each of the case structures etc. when you go to false, all them existing ones within now disappear.

my question is there anyway, that say when you switch to false, the exisiting structures show up, like under the default true

thanks

Help for Process Priority (STOP buttons)

$
0
0

I , I have a problem with my program.

I make the acquisition with a device connected to GPIB.
I want to have my main program with 2 For Loop and a stop button which stop the program and the device.

The problem is that, if the program is doing an acquisition and is in a For loop, I can press stop button and nothing happens until the end of the for loop.
I can stop with main stop red button but my device is not Off.

I tried an event structure but it don’t works.
The goal is to have a stop process priority to the acquisition process.

I attached my structure of program. I only need to keep the 2 For Loop.
Event structure and while Loop can be removed.



I use LV2012 sp1f5 but I can upgrade to LV2014 if really necessary


thanks in advance for your help.


process timeout

$
0
0

I have a VI that sends a message to a DSP to cause it to Initialize.  On occasion, it doesn't return.  I'm trying to figure out how, at the calling level, to implement a timeout mechanism to keep this type of problem from hanging my entire program.  I attached my initial attempt, but this really doesn't do what I need it to do.  Any suggestions, examples?


Resetable, Adjustable, Running Average

$
0
0

I have a loop that is spitting out a single number each time.  I need to be able to take a running average of the value.  That is easy with a while loop and shift registers but what I need is to be able to reset it and also change the number of averages.  So when the operator says he wants some unknown amount of averaging the loop starts and with each iteration it gives me an output of the average so far and then when the full number of averages is reached it resets and starts again.

Front Panel with Multiple Windows

$
0
0

Is it possible to have multiple front panel windows that all access the same top level code?  I have worked with dialog sub VI's before, but these are only accessible when their code is running.  Is there a way to have a second window appear with extra controls and indicators that you can view and click as they autoupdate and your top level code is still running?

using a lbavie vi in c and matlab

$
0
0

I have a labVIEW VI that I would like to use in programs writen in either Matlab or C.
the ideal for me would be if I could just write something like 

 

a = VI(argument1, argument2);

 

in my C/Matlab code.

I know there is a way of doing it, but I can't find a step by step guide writen for someone like me who knows nothing about activeX and DLLs.
Does anybody knows something like that?


thanks!

% Error is Shifting? - Strain Calibration

$
0
0

Hi All,

 

Quick question dealing with an issue I have while calibrating a variety of strain gages.  I'm using LabVIEW 2014 w/ (7) 9236 Modules.

 

The main problem is that, upon an initial calibration, the Percentage Offset Error gives good-looking values, zeros.  However, once I re-calibrate later, the values jump up to 5, 10, even as high as 15%.  I am not sure what could be causing this.  In both cases, the screen reads "Calibration successful".  Does this mean that I am good to go, regardless of the Percentage offset error value?  I am bothered because anytime I see large % errors, my gut tells me something is wrong...

 

The images below show the process I am using to calibrate.  I am following the recommended process shown here:  http://www.ni.com/getting-started/set-up-hardware/data-acquisition/strain-gages

 

When I hook all of the gages up, I then jump into the block diagram, where I open up the DAQ assistant Express VI that I use to select the gages and then calibrate them (see images below)

 

 

 

Block Diagram.JPG

 

 

Once I am in the VI, the following screen is shown.  Here I add the different strain gages via their respective module location:

 

enter screen.JPG

 

Once I enter the gage factors/resistance, I continue on to device calibration, which brings up the screen shown below.  I leave both offset nulling and shunt calibration engaged, using the default 100k value of the shunt resistor built into the 9236:

 

 

setup.JPG

 

 

 When I press next, the software takes the first measurement, which displays the screen below.  Things at this point look normal.  I then press calibrate:

 

 

 

Initial Calib, first screen measure.JPG

 

 

And bingo, the first time I do this procedure, I usually get the error % column to read zeros across the board.  The calibration successful indicator gives me good feelings.  HOWEVER...when I repeat this process (a re-calibration) later (perhaps the temperature in the room has changed), I am having trouble.  See below

 

First Calib - zeros.JPG

 

 

Here is what happens later on, if I attempt to recalibrate.  I follow the exact same procedure, and seem to be getting large error % values.  Does anyone know what is going on here?  Why would an initial calibration seem fine, and then later give me error after I calibrate again.  It indicates that calibration worked, and the readout values seem correct, but I am irked by this oddity.

 

Any help would be appreciated, thanks!

 

11.JPG

application builder static lib visual c++

$
0
0

I am trying to compile a Labview VI into a library (DLL or LIB) which can then be used by external applications.  I am able to do this just fine, and can access the DLL in Python. 

 

However I am haivg trouble getting this to work in C++, particularly Visual C++.  It will compile fine, but when I get to the link stage, it gives me an unresolved external symbol error.   I have included the .lib in the linker options and the set the library path properly.   For instance, in the header file I have the following function. 

 

double __cdecl LVDLLTest(double a, double b);

 

And in my .cpp code I have the following line:

 

double c = LVDLLTest(2, 3);

 

Compiling this will result in the errror:

 

Error 3 error LNK1120: 1 unresolved externals c:\Users\OHNS\Documents\Visual Studio 2012\Projects\OCT_LabVIEW_FPGA_Interface\Debug\OCT_LabVIEW_FPGA_Interface.exe OCT_LabVIEW_FPGA_Interface


Error 2 error LNK2019: unresolved external symbol _LVDLLTest referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YAHPAUHINSTANCE__@@H@Z) c:\Users\OHNS\Documents\Visual Studio 2012\Projects\OCT_LabVIEW_FPGA_Interface\OCT_LabVIEW_FPGA_Interface\OCT_LabVIEW_FPGA_Interface.obj OCT_LabVIEW_FPGA_Interface

 

Any ideas?  Thanks.

Viewing all 68929 articles
Browse latest View live


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