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

How to Preview word file in front panel ?

$
0
0

Dear All

 

I need to preview word file in my fron panel. But when i'm using active X control and web wrowser like this topic  CLICK  the file is open with Word but i want to preview it using LABVIEW ? Can you give me some advice and ist it possible ?


continuous acquisition and generation on the same VISA norm

$
0
0

Hello,

 

I am working on Agilent DAQ - U2356A. I am working on a software which does an continuous analog acquisition.
In parallel, I would like to do a continuous digital generation on a DIO on the same DAQ.
The problem is that reading and writing  Agilent drivers are using the VISA standard to communicate with the DAQ.
When both of generation and acquisition tasks continuously run, the VISA norm is solicited without stopping and it can not be shared between the two tasks.
Releasing the VISA standard to allow the other task to execute is possible, but it will cause a generation or acquisition interruption ...
If someone has any proposal, I do not know how to proceed...

In attached, the VI screenshot.

 

Thank you for your help,

matlab node

$
0
0

I would like to Matlab node in labview to build executable application because I have a matlabe code and I do not want to write it again. I have two question:

1- Is the the stand alone LV application going to work on computers do not have matlab licence?

2-The matlab code calls user defined function from another .m file. How is this going to work in the LV code and in the stand alone application?

 

Thank for help

error -50103. occurred when I am trying to read to measure two analog channels.

$
0
0

  I have a NI USB-6366 DAQ, and I used two different physical channel which are Dev1/ai0 and Dev1/ai1 to collect data in parallel. However sometime ai0 channel DAQmx start task generates the error -50103, and sometime the other channel generates the error. These two channels never both work at the sametime, here is a picture of my code, please help me to solve the problem. Thanks very much parallel coding   

How To Write A Single Number To A Single Excel Cell

$
0
0

I'm using Labview 2013 SP1 with the Microsoft Report Generator and I can't figure out how to write one DP number to one specific cell on an Excel spreadsheet. I have no problem writing arrays of numbers to specific ranges of cells, formatting cells, writing titles, using templates, everything I need except being able to write one number to one specific cell. All the vi's that write numbers seem to demand 2D arrays for inputs. I must be missing something, but I think I've gone through every vi in the MRG pallette and found nothing.

 

Any help/examples greatly appreciated.

Running the VI causes LabVIEW to crash

$
0
0

Hello

 

While debugging a SW, I found that a particular VI, when run, causes LabVIEW to crash. This happens whether this VI is called while executing an exe or called by higher VI or even when it is run separately.

The VI to be run is NLD_Test_PP_Plot.vi present in the folder "Generic VI's".

The input for this VI is .csv file, which is attached. The csv file needs to be placed in a separate location and that path needs to be entered in the string constant in the VI.

 

Note: This VI is developed and run in LV v2009.

 

Thanks

Sharath

table reference close

$
0
0

hi,

      how work table reference connection.in this my program close button event close the table reference than cick next and previouse button how it will change the table property.

crio 9076 with NI 9516 without any additional I/O modules

$
0
0

I want to control the speed of a motor using PID controller , for that I need to read the speed and send the output of the PID to the motor. Is the following hardware enough or do I require any additional module(for eg. I/o modules) to fulfill my objective.the harware avalable to me is listed below:

 

HARDWARE:

cRIO-9076

NI-9516--------C-series module

a Kolllmorgen Motor Driver

Motor

 


How to fast color the current mouse-hovered row in MultiColumnBox

$
0
0

Hi,

 

I'm trying to color in a very efficient way the current mouse-hovered row in MutliColumnBox... however, it turns out to be pretty slow...?

Any idea about how to make it (much) faster?

 

Find attached my current way of achieving this purpose... a bit slow and plus the ActiveCell {-2, -2} considered all the cells... including the row and column headers (how to avoid this by the way ?) (No way to avoid to repainting the headers... after all?)

 

EDIT: I tried to defer the visual updates on the Front Panel but no big improvements so far.

 

 

Thanks,

 

 

Ehouarn

FGEN Soft Front Panel: Adjusting Amplitude

$
0
0

Hi guys,

 

when I want to get a sine wave (for example) by the FGEN Soft Front Panel I have always to adjust the amplitude (peak - Vp).

The setting in the drop down menu is called "Amplitude (p-p)" - so why do I have to adjust the amplitude in "peak - Vp"?

It would be easier to do the adjustment in "peak-peak - Vpp".

 

Thanks.

Stefan

converting c code to labview

$
0
0

I am not familiar with c codes. I just found out that a c-example means a c code example.

Can somebody help me with converting the C code to labview code?

lrc vi.PNG

 

converting c code to labview

$
0
0

I am not familiar with c codes. I just found out that a c-example means a c code example.

Can somebody help me with converting the C code to labview code?

lrc vi.PNG

 

project dependancies have changed when upgradeing from 2012 to 2014

$
0
0

Hello folks and thanks for reading this.

 

I am in the process of upgrading from LV2012 to 2014 and one issue I have come across is that some of the dependencies (some dlls associated with my Rohde and Schwarz drivers are no longer picked up and need to be searched for every time the VI is loaded.

 

The dlls were originally installed (by the Rhode and Schwarz installer) into: C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin

 

I  have managed to get through the issue by moving the dlls to: C:\Program Files (x86)\National Instruments\LabVIEW 2014\user.lib

 

I know the problem search paths but don't get why it has changed from 2012.

 

Any ideas?

 

Thanks in advance

 

Chuck

unbuild an array

$
0
0

Hi,
I would like to know how to unbuild an array, a reverse process of "build array" ?
If it's not possible, how to create a VI with a selectable input/output number.
As "build array", in which you can choose number of input/output by sliding "build array" icone.

Thanks

utilizzare due schede audio su labview

$
0
0

ciaoooo io sto cercando di utilizzare due schede audio in uscita da lv per produrre pink noise o suoni... l'unica cosa è che su ni max non c'è la mia scheda audio startech ICUSBAUDIO7D avete idee?


When replacing Labview 2013 with Labview 2014, do I firstly need to uninstall Labview 2013?

$
0
0

I have just recieved my latest version Labview 2014 CD.

 

When installing this new version, do I firstly need to uninstall previous Labview versions?

How do I get an actor to wait for its nested actors to stop running before stopping itself?

$
0
0

I'm developing a series of projects that are based on the Actor Framework and my actor dependency hierarchy is starting to get some depth. One of the issues I'm facing now is making sure that each actor will only stop running (and signal this via a Last Ack to a higher-level actor or via a notification to non-AF code that launches it) once all of its nested actors have stopped running.

 

For instance, say I have a type of actor that handles communication with a microcontroller over USB - a USB Controller Actor. I might want to have an application-specific actor that launches USB Controller Actor to issue commands to the microcontroller. When shutting down, I want this top-level actor to send a Stop Msg to USB Controller Actor and then wait to receive a Last Ack back before sending a notification within a provided notifier to the non-AF application code, which can then finish shutting down completely.

I'm sure that having actors wait for all nested actors to shutdown before shutting down themselves is an extremely common requirement and I'm confident National Instruments have made it possible to handle that in a simple, elegant manner. I'm just struggling to figure out what that is.

 

The approaches I've experimented with are:

  • Creating a pseudo "Stop" message for an actor that won't actually stop it running straight away, but instruct it to stop all nested actors, wait for their Last Acks and then shut itself down by sending Stop Msg to itself. This isn't elegant because it means the client will be forced to fire off these pseudo stop messages instead of Stop Msg to certain actors.
  • Instantiating an internally-used notifier and overriding Stop Core.vi and Handle Last Ack Core.vi. The idea is that within Stop Core.vi, I send Stop Msg to each of the nested actors and then make it wait indefinitely on the internal notifier. Within Handle Last Ack Core.vi, I make it send a notification using this notifier which allows Stop Core.vi to continue and perform deinitialisation for the top-level actor itself. Figures 1 & 2 below show this approach. I wasn't confident that this would work since it assumed that it was possible for Stop Core.vi to execute and then Handle Last Ack Core.vi to concurrently execute some time after. These assumptions didn't hold and it didn't work. It would have been messy even if it had.
  • Overriding Stop Core.vi, making it send Stop Msg to each nested actor and then waiting for an arbitrarily long period of time (100ms, 200ms, etc.). What if a nested actor takes only 10ms to shut down? What if takes 400ms?

The figures below show how I implemented the second approach. Ignore the broken object wires - they only appear that way in the snippets.

 

Figure 1 - Stop Core.vi from the second approach

 

StopCore.png

 

Figure 2 - Handle Last Ack Core.vi from the second approach

 

HandleLastAckCore.png

Synchronising scale changes between two sliders

$
0
0

I have anohter problem which feels trivial but upon trying to actually implement it appears anything but....

 

I have two sliders superimposed (One is for max-min range with fill, the other is for Target value and Current value with fill).  I need to keep both slider scales synchronised and I need to separate the functionality into two different sliders otherwise the fill options collide.  We have some buttons for autoscale, panning and so on.  These programmatic changes are easy to synchronise, just update both scales accordingly.

 

Problems occur when trying to synchronise manual editing of the scale limits (which I definitely still want to allow).  There is no "Scale Range Change" event like there is for Graphs.  The "Scale" reference from the Slider also allows no events to be registered.  Even the "Key Up" event of the slider does not work because at this point in time apparently the scale itself has not yet been updated.

 

I'm using LV 2012 SP1, so any new events added in later versions is of no use to me.

 

Polling is looking like the only valid option here.  Ugh.  Either that or a daemon which waits approx. 10ms (magic delay fairy!) and then "manually" synchronises the scales..... Smiley Mad

Easy print VI Panel

$
0
0

Dear all,

 

I am using this code with the Easy print VI Panel or Documentation VI. My printer is a color printer but I always get grey scale print. What am I missing here?

 

Image.png

Repeatable different steps of a stepper motor

$
0
0

Hello everyone,

 

I am working on a project where i have a stepper motor moving a plate and a signal sensor who measures a distance. I managed to initialize the signal so my initial position is the position where the sensor gives me the minimum value (Voltage).Each time the stepper motor moves, i define it from the front panel. My question is, how can my stepper motor moves automatically for e.g. 8000steps then without define it again for another 5000 steps or whatever i want with a time delay. The definition of the steps now is being done from DAQmx Timing>Samples per channel. I want to run the program and the steps to be already defined wihtout change them again and again from the front panel. I attach my current VI.

 

Thank you in advance

 

 

Viewing all 69113 articles
Browse latest View live


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