Quantcast
Channel: All LabVIEW posts
Viewing all 202387 articles
Browse latest View live

Re: Disabling right click in Adobe PDF(ActiveX) using LabVIEW


Re: Record data at every 50ms

$
0
0

Timing functions,  case structure.

 

If you'd like more specific answers, ask a more specific quesiton.

Re: Max Queue Number

$
0
0

Thank you for attention. It is not a academical type of question. We are using many number of queues in our program that runs minimum 5-6 parallel loops, and sometimes the data types and size also be large enough to concern. I'm trying to make it more simple and elegant and also safer to solve the computational problems even before they cause problems.

 

I didnt see the actor framework; some people just mentioned before hence, I dont have any idea whats going on? If you can lead me to a good source to learn and practice that kind of stuff, it will be very appreciated though.

 

thank you

Re: measure time lapsed from reaching threshold to execution

$
0
0

You also still have 8 instances of the same string diagram constant ("GPIB0::11::INSTR"). Exactly one is sufficient, right?

 

Also, if stop is pressed, shouldn't you e.g. send a VISA command (e.g. "off" or similar)?

Re: Do I need Vision Acquisition Software to capture images with a third party camera?

Re: Screen Capture

$
0
0

 wrote:
Sometimes it helps to insert quote so everyone knows who you're replying to. Smiley Wink

But it wouldn't be that much fun anymore!

 

Anyway, I see the solution and the kudo know, so I guess we have to bring our humor somewhere else.

Re: measure time lapsed from reaching threshold to execution

$
0
0

OK, here's a quick draft how I would probably do it, reusing most code as much as possible. It even sends an off command when the stop button is pressed.

Note how I align the string array diagram constant with the button terminals to easily see what each on is sending.

 

TimeLapse.png

 

(As noted earlier, I don't have DAQmx here, so I cannot test. It probably needs a few tweaks here or there. Smiley Wink

I also cannot wire errors, because I don't have the functions. You should wire all errors. Modify as needed)

 

Comparison with your code:

  • One VISA Write function instead of eight!
  • One instrument string instead of eight!
  • Graceful shutdown if stop is pressed.
  • A Case structure with two cases instead of nine!
  • All VISA send strings arranged in one diagram constant array instead of scattered across 8 different cases.
  • Two sequence frames overall instead of four!
  • On over-voltage or stop, all other buttons are ignored instead of handled and an OFF is send.
  • Terminals arranged logically and not scattered randomly on the diagram
  • ...

 

Re: acquire data without sampling rate using DAQ?

$
0
0

In that also have to specify the sampling rate in "Acquire data" section.

Is there any alternative for this?

I need to acquire 2 channels of input from DAQ without specifying sampling rate.

Is there any solution for this?


Re: Modified a DLL created in labview and now getting labview.lib was not called from a labview process error

$
0
0

Ok, still a bit weird, but as long as your happy, I'm happy.

Re: Max Queue Number

$
0
0

 wrote:

In theory, you can have 2^32-1 references.  But you will likely run out of memory first.


Not really true.

 

Instantiating a queue of the SAME datatype will give you maximum 2^20 instances before LabVIEW gives you an "out of memory" error.

 

To paraphrase RolfK (from an inaccessible forum), a Queue Refnum is a magic cookie.  12 bits are pseudorandom, 20 bits are instances in the cookie jar.  A single LabVIEW instance has a single cookie jar, so exhausting the 2^20 references has severe effects in that application instance.

 

I am not 100% sure if the 2^20 refers to the amount of queues in general or only within a specific datatype.....

 

Not sure if this is the same in LV 64-bit or recent versions of LabVIEW.  I last tested this in LV 2015 I believe.

Re: acquire data without sampling rate using DAQ?

$
0
0

Hi vim,

 

In that also have to specify the sampling rate in "Acquire data" section.

No, that example does NOT ask for a (DAQmx) sample rate!

It asks for the loop iteration rate (aka loop time): that's how the example works.

 

You can learn from that example on how to setup a DAQmx task and read samples without setting an explicit sample rate. Adapt with your own algorithm: apparently you want to read more than just one sample, so you will employ a loop with a certain loop iteration rate!

FPGA Read/Write Control for Multiple VI Options

$
0
0

Hello,

I am writing a data gathering / processing VI that uses one of two pre-compiled FPGA bitfiles, which is selected via a case selector at the beginning of execution. One of the bitfiles uses a front-panel array to receive instructions, and the other reads them via a DMA FIFO. For the array bitfile, the instructions are sent via a read/write method control. However, because this array is missing from the DMA bitifle, when I wire both bit files as possibilities in a case selector, the read/write method returns an error because the front panel object does not exist for both bitfiles (quite understandably).

 

Is there any way to configure a read/write control that adapts to the available front-panel items of the loaded VI? In effect, I want to ignore missing front panel variables if they are requested in the read/write method but do not exist in the particular bitfile. This way I can toggle between the methods on startup.

 

Regards

 

 

Re: FPGA Read/Write Control for Multiple VI Options

$
0
0

Hi toranilor,

 

No, the RT host VI will not automatically/magically adapt to the FPGA bitfile…

 

When you want to call two different FPGA bitfiles from the same RT host VI then both bitfiles need to have the same "frontpanel" (using the same controls in their frontpanel and supporting the same FIFOs).

Re: About How to develop Xnode

$
0
0

 wrote:
‎09-13-201812:44 PM
 
wiebe@CARYA wrote:

Again in my defense, I'm stuck in 2013, and haven't noticed much change.
Well, gee, nobody notices much change when they're stuck.

So enlighten me...

Re: Max Queue Number

$
0
0

 wrote:

So, is this a academic type of question or do you have a particular problem that you are thinking about tossing a gazillion queues into? If the latter, have you seen the Actor Framework?


So that's what the actor framework is for: I don't have to create tons of queues myself to see when LabVIEW crashes! Smiley Very Happy


Re: FPGA Read/Write Control for Multiple VI Options

$
0
0

Hey GerdW,

 

I thought that might be the case. I have implemented identical front panels (just dummy arrays for the DMA program) and it functions just fine.

 

Cheers!

 

Re: Missing block diagram(s) (not deleted)

$
0
0

 wrote:

 Any idea what happened?


Maybe git tried to do you a favor, and merged the VIs?

 


 wrote:

 

How it can avoid it happening again?


In SVN there are options to mark VI types are binary, so the never will get merged. In SVN this is only needed for projects (xml), never needed it for VIs.

 

I'd be interested if this is what happened, recently started using git..

 


 wrote:

 How can I find out if any of my other VIs in my project have been destroyed in this same way?


 You could try VI server, and use a recursive file search (*.vi) to open and save all VIs. This could be tricky, as LabVIEW will probably crash when a VI is corrupt... There are many variations on this theme, like open a VI ref, and then opening a reference to it's diagram (scripting). since things are bad, unexpected things will happen.

find all instance or references of a data binding

$
0
0

Hi all,

I'd like to find all Variables in a LabVIEW.Project that have the same data binding. is There a function for it?

Best regards,

Brice

Re: IBM websphere MQ API (message queue middleware)

$
0
0

Through the application of messaging technologies, companies can use a consistent approach to delivery, separating business application from the complexity of fault handling, error recovery, transaction integrity, security, and scalability. C9550-413 BraindumpsIBM WebSphere MQ provides the general communications architecture (SOA) architecture for services. It connects almost any technical trading system, with support for more than 80 platforms.

Taking the data from a filler input and acquiring the data from an associated table

$
0
0

Hi,

 

      This might be a long post. And I'm new to this software. Actually, I'm trying to enter the data of flow in my program by using a filler. And it should compare the data with the values in the table and show the corresponding P and V values and also input power. At the same time, it should calculate the efficiency with a prescribed equation. Now if the value is not in the table, it should take the approximate value from the table(i.e, if the value of flow from filler is 170, and we have 116 and 190 in the table, the value of efficiency should be in between these). Right now I could do this much- whichever value I enter which is in the table, I'm getting the output. But I couldn't do it with the filler. Also if the value which is not in the table is entered, the output is not coming. This may be a very small problem, but since I'm new on this, I'm not able to find the issue. Any helps would be appreciated. I'm using LabVIEW 2011.

Viewing all 202387 articles
Browse latest View live


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