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

reading multiple frames of AVI

$
0
0

Hello!

Is there a possibility of reading multiple frames of avi file? I am trying to manipulate a avi file to read it's multiple frames. I have read single Image by IMAQ AVI Read Frame.VI. But, I am trying to find a way to read multiple frames of AVI as a sequence i.e like a short Video.

 

Is there a possibility or any way out of reading the multiple frames?


Unicode to BIG5 Encoding

$
0
0

Hi,

 

Has anyone done any work on BIG5 encoding? Converting Unicode (0000-FFFF) to BIG 5 encoding.

Any guidance on this would be much appreciated.

 

Thanks,

VS

How to lock or freeze decorations in a control (.ctl) or Type Def?

$
0
0

When creating a control (.ctl) you are allowed to add decorations to it. However, when placed on a front panel, it becomes difficult to select the "cluster" instead of the decorations. This makes it a nuisance to do a right-click or move. Is there a way to lock or freeze decorations inside the control so that when placed on a front panel, they are not entities that can be selected? See attached simple Control.

External clock to drive a while loop

$
0
0

Hi,

I need to execute a while loop at the falling edge of an external clock. Clock frequency may vary from 6Hz to 133Hz (user can change this at run-time).

Please see attached VI. It generates a pulse train at Counter 0. That output drives Counter 1 to generate another pulse train. I need counter 1 pulse train output to trigger the while loop. hence, I use counter 3 sample clock source to be counter 1 output and use wait for next sample clock.vi to iterate accordingly.

 

Soon as I hit run, this works well for about 1 minute. Then throws this error. -200714 : SignalGeneration v1.0.vi<append>
<B>Task Name: </B>_unnamedTask<BC>

 

Although error message description is useless, I think this should be due to some sort of a buffer over flow. Anyone got a better idea to do this operation or fix this issue? 

Really appreciate if anyone can help.

 

N.B. this runs on PXIe-6358 installed in PXIe-1082 chassis 

Probability plot - question

$
0
0

Hi,

I'm trying to generate probability plot for 2 sets of data, but I don't like output that I got.

This is graph that is generated in Minitab, and that's how I would like to look like

Capture2.JPG

 

And this is what I get in LV

Capture.JPG

 

As it can be seen, problem is in Y axis, Minitab has this nice not sure what is a name but like double logarithmic scale, expanded scale on bottom and top of X-axis.

On VI XY scatterplot I can only get typical Logarithmic scale but this does not look

even close to visualisation that I would like to get.

Saving "counter" reading from DSO7104 oscilloscope

$
0
0

Hi guys!

 

I would like to ask if it would be possible to access and save oscilloscope measurement readings using LabVIEW. I have Agilent/Keysight DSO7104 and corresponding drivers installed. I can acquire measured waveform all right, using the example .vi's. However, I would need to save automatically the reading from the counter. The oscilloscope is equipped with an integrated hardware frequency counter (which uses the trigger comparator output) and its reading can be accessed via Measurement menu and displayed on the oscilloscope screen. I need to save the readings automatically but could not find the way to access the frequency value (or any other measurement - amplitude, duty cycle , etc.) in LabVIEW.

 

Saving waveforms and analyzing them would not help. I need to count short pulses during a longer time period and as the sampling period is much longer then the duration of the pulses, they cannot be resolved in the waveform, while the counter is limited only by the oscilloscope bandwidth.

 

Has anyone encountered similar problem?

 

Thanks in advance,

Daliboromir :-)

convert 2d array into 1D array with cluster of 3 elements

$
0
0

hi every one 

Is there an easy way to convert a 2D array of clusters (3 elements) to a 1D array of cluster of 3 elements? I need to do this in order to store my large data to be compatible as this data type . as the attached vi , convert "3d point" that is 2d array to 1d array of cluster of 3 elements as "vertex array"

Wait on notification from multiple function

$
0
0

Instructions: "The servant loop uses the function “wait on notification from multiple” to retrieve the two notifications on a “first come first serve” basis and display them on a graph."

 

If I have two master loops, one producing a noisy sine wave and the other producing a noisy square wave that are sent by two Send Notifications and I want them to be displayed on a graph, my question is do I use two Obtain notifier functions? and then how do I feed the two notifiers into the Wait on Notification from multiple, do I have to build an array? When I try this and then attempt to unbundle by name to be able to get a waveform graph, it won't let me connect (different types of data). I have never used this function before so any help appreciated.


VIPM Woes

$
0
0

OK...so I am having a similar situation to this post.  I am trying to build a package while preserving the directory heiarchy.  The folder that I am trying to build looks like this:

 

vipm_woes.png

 

On the left is the source directory.  On the right is the deployed directory.  If you notice, there is an extra folder in the deployed directory called Typedefs; this should not be there.  This folder actually resides in one of the other folders.

 

If I look in the vipm build spec (file called spec), I find this line:

File 71="vi.lib/MSR Consulting, LLC/General Reuse/Typedefs/Session Handle.ctl"

Does anyone have any thoughts as to why this is showing up in the build spec like this?  That folder needs to be in the place I specify, not pushed into another directory.

Deploying Executables to Systems with Existing NI Software

$
0
0

Hi all,

 

Sometimes it gets tricky to install different versions of LabVIEW stuff on computers that already have LabVIEW installed. I haven't had to worry about it too much, because the computer has always been in-house and I can usually resolve the issues by upgrading or backsaving one of my applications. However, now I am sending stuff to customers and some of them already have LabVIEW and drivers installed in other versions. So, I wanted to see how other people handle these situations.

 

For this, let's assume I have built an application in LV 2016 that uses the NI-VISA 16.0 driver as well.

  1. Existing PC has LV 2014 and NI-VISA 14.0 drivers. If we upgrade NI-VISA to 16.0, will it break the LV 2014 code or executables?
  2. Existing PC has LV 2017 and NI-VISA 17.0 drivers. If we install the 2016 RTE but see that the NI-VISA drivers already have a more recent version, will the 2016 executable run?

I am a fan of virtual machines for my own software development as well, but I'm afraid demanding that our customers buy an extra windows license for $100 just to run our software will not be a good option.

 

Edit: based on this compatibility matrix it looks like upgrading NI-VISA 14.0 to 16.0 will still be fine with LV 2014, but it would break anything in LV 2012 or earlier. Is that correct? And if so, is a virtual machine my only workaround? 

 

How to cancel value change event?

$
0
0

I have a numeric control. When I edit ist value but the mouse Cursor leaves the control, I want to cancel the value Change Event and Keep the old value.

Why will be the value Change Event fired, if I set the key Focus to false? The same happens when I set the visible property of the control to false.

cannot acces variables when deploy vis in hybrid mode

$
0
0

I got a cRio with profibus and 9871/9870 on it. There is one application running in hybrid mode. Now I changed some vis that are meant to be on the cRio. After deploying, variable communication stops. I have the Distributed System Manager running for checking and all variables stop, as soon I deployed. Resetting the cRio, and the variables run again. But then its back to the compiled version in the non-voilatile memory of the cRio. So I cannot test my changes.

choose specific array elements from FIXED size array on FPGA

$
0
0

running vi on FPGA , the task is to choose specific array elements from FIXED size array on FPGA as follow:

FIXED Array A Size = 1000
FIXED Array B Size = 10
Loop thru Array A , select elements to Sub Array B based on SubArray Index and SubArray Length values,when compiling the code
Error Msg "Array does not resolve to fixed size"

Please advice how to solve this error?any work around ?attached code and screen shot.
Best Regards

Sine wave generation to drive a servomotor

$
0
0

Hi,

As said in the title, I'm trying to generate a sine signal to drive a servomotor ( to represent the behavior of a cyclist). My idea is to sample the low frequency sine (+-2Hz) to get a sinusoidal torque command for the servomotor. The problem is that I ‘can’t generate a real-time sine wave.

 

As you can see on the video, when I change the frequency (F=vitesse de rotation manivelle/60), the reference signal goes crazy, as if the frequency increase way more than what I ask. I think this has something to do with “sampling info” which should change with the frequency but how? When I increase the “vitesse de rotation manivelle” of 1RPM this should increase the sine frequency of 1/60 Hz, we should barely see the difference.

 

Have someone any idea how to properly generate a real-time sinewave?

 

 Here is the link of the video for a better quality: https://youtu.be/_rTSBj82Y7w

 

Teststand ActiveX container error in labview

$
0
0

Hi,

 

I am using Teststand on one of the machine. I tried to open the Teststand full feature user interface labview project. The front panel of labview is showing as below.

Laview_error.PNG 

 

Can you please suggest to rectify this issue.

Regards,

Anand

 


Pass from Python list to strings or elements of Labview

$
0
0

Good day to all. Help me please. I get the Python array in Labview by TCP IP. I need to build a graph on the elements of the array, but I do not know how to do it. Very little experience. Tell me please. The array consists of 100 elements. Elements are a parameter's value.

Modbus communication(stepping motor DRIVER LSD-CD) to commuicate with Rotary hallow system

$
0
0

Hello All,

 

              I am using stepping motor driver as Modbus communication for the hallow rotary system from orientalmotor. Can anyone help with how to build VI for this and the clear picturisation view is attached below. 

 

Thank you

Use FGV as a Settings PoP-Up Window which Main.vi can get values from during runtime

$
0
0

Hello Everybody,

I haven´t found anything which could help me with my Problem. Let me explain it to you.

 

I´m creating a bigger Program with a lot of  Serial Devices and i want to store all the device Information in an .ini File and load an save them at start and end of the Program-execution from the File to my Settings.vi. This Vi was planned as a FGV. The saving and reading to this FGV works fine, but i also wanna be able to change Settings during runtime(mainvi) by showing the frontpanel of my subvi and changing the ctrl.values in my Subvi and then in my main.vi call the subvi by dropping it in the block diagram and then just wire an indicator to the Outputs.

 

The Problem with my attached Vis, is that when the Pop Up happens i wether can t Change controls or the values from my .ini file are not loaded into the Frontpanel. I have 2 different and not working approaches to this attached in a little example.

 

The Vis are created with Labview 2015

 

Sample gradient along rising and falling edges to detect fault

$
0
0

What I want to be able to do is detect the inconsistency with the rising edge as shown in the attached image, it should be smooth like the falling edge. I have thought about doing this by sampling the gradient along the rising edge and then having a trigger to say whether it is within acceptable limits. For this signal, the gradient would turn to negative thus triggering the alert. 

 

Now my problem is I have no idea how to do this in LabVIEW and would really appreciate if anyone could point me in the right direction, or has a better way of detecting a fault like this.

Mystery "VI Failed to Compile"

$
0
0

LV 2013.  Still trying to work toward LV 2017, adjusting all the things that don't work anymore.

 

So, what is the mystery "VI Failed to Compile" message supposed to mean?

 

The main program is MoSAIC HOST, which it claims is broken (it's not), because the Vi "Read Table File" failed to compile (it's not broken either).

 

The READ TABLE FILE is in a PPL.  The program runs OK from the DevSys, but will not build.

 

 

Fail 1.PNG

Viewing all 69267 articles
Browse latest View live