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

Custom control question

$
0
0

I have a basic question that seems to be eluding me.  I have a third party library which uses multiple strict type def's.  One of them really confuses me as to how it works:

 

The typedef has a section with individual string and integer controls.  Somehow, these are converted into string arrays and integer arrays.

 

Custom control question.png

 

This isn't an xcontrol (Just a *.ctl).  How is a control like this made?


Thanks,

 

XL600


water tank control

$
0
0
In college we have been given an assignment for a water supply control V.I. The parameters we have been given is that there must be 2 tanks, a supply tank and a dosing tank. On start the supply tank level will begin to decrease from max. when the supply tank levels fall below 30% the inlet pump will fill the tank, switching off when the tank is 90% full. The inlet pump fills the supply tank from the dosing tank. Dosing tank is monitored for pH, Fluoride and chlorine. Show current values and running averages. If any of these are out of spec the inlet pump shuts down and dosing continues until system comes back into range then the inlet pump automatically restarts. This has taken me days and I have so far been able to make the supply tank fill from 0. Averages are somewhat right and all the appropriate indicators are working. We are also required to use random number generators to produce values for pH, fluoride and chlorine. It is not a required to use the DSC Module as we are just simulating the process, Please find attached V.I of work to date. Any guidance and help would be greatly appreciated.

FPGA 2013 open reference error

$
0
0

I am trying to deploy an existing project from my computer.  My co-workers can perform the task but I cannot.  The FPGA code will complete the compilation step but then it tries to perform "Preparing Interactive Execution" step and I get a Dialog error with no error code stating "LabVIEW could not perform the operation because an FPGA VI reference to another VI is currently open.  You must close the currently open FPGA VI reference before attempting to perform this operation".  I have restarted my PC and have nothing open but the the current project file.  This process works on my coworkers PC but not mine.  I am stuck as to where to track down the causes of this error.

 

 

Weird format behavior when writing numbers in Excel cells

$
0
0

Hi guys,

 

I'm trying to wrap my head around a weird problem:

I write a 2D array of double (decimal delimiter is a comma, so 1/100 is 0,01) into an Excel Workbook. I created this file "Test.xlsx" by hand and did not change anything regarding formatting of the cells.

excel vi code.PNG

But what I get in Excel is this:

excel screenshot.PNG

 

 

Why

1. is cell A1 different in formatting from all other cells (format and justification)

2. are the values of those other cells wrong? There seems to be a problem with the decimal delimiter.

 

Thanks for your input!

how get epoch time second

$
0
0

hi,

      how to  convert timestamp into epoch second in labview8.2.

how to change labview timestamp epoch to UTC epoch

$
0
0

hi,

      i have database table in UTC epoch field.i want to select  and insert data from database table based on labview timestamp controll.

 

    example:

                       table:

                                   S:no      U.name         PWD                Epoch(UTC 1970)

 

                                    1           kumar            123                 1450422341

                                    2           sham              786                 1450421623

 

the labview epoch is difference from UTC epoch. so ADD this  second 2082844800 to  labview epoch than it will work for selection quary but insert epoch is not work.

 

 

NI-VISA control sekonic instrument

$
0
0

Dear all,

 

I wanto to control a color meter device (SEKONIC C-700) using Labview. The device is connected by USB to the PC. I was able to install the device, the device is read by the VISA and I run the VISA Interactive control.

 

When I go in the NI MAX, the device is recognized. I go to VISA interactive control and then I don't know how to communicate with the device, it is my first time that I try to control a device which has not already the VIs provided by the company. I guess I need a list of command and the seller should send me this, is it correct or I am not following the right procedure?

 

Thanks for your support

Some black pixels half of time with IMAQ acquisition ?

$
0
0

Hi

 

I am currently using a dalstar 1M30 camera ( ya, old one ) with a Labview controller.

You will find attached screens of the front panel and the vi.

 

Half of time, when I turn on the camera and the script, I observe what you ll see on the front panel picture, a big part of the pixels are black. Basically, the image is shifted to the top, and as a consequence I lose the top information of the camera.

When i turn off/on , the camera, this problem sometimes solves by himself, but I must say that it is not reliable for my work.

 

I am very new to this IMAQ acquisition, and i was wondering if you could see on the picture something jumping to your hear, as beginner problem or whatever.

 

Some collegues mentionned sometimes a problem with triggering, but I must say that I do not know how to look for this issue.

Thank you !

PS Smiley Surprisedn the VI picture, the red square shows the Image VI which displays the picture on the front panel image.


how I can apply blinking property node in global variable?

$
0
0

Hi,

 

I need to apply the blinking property node in a global variable. I open a VI reference to global variable and I can modify any property of booleans indicator, but when I try to activate the blinking property node, does not work.

 

Anyone know how I can do this?

 

Thanks

 

Bye

numeric control with increment/drecement buttons

$
0
0

hi - i'm trying to limit the ability to type a number into a numeric control. i want the following option to be controlled by a second Boolean button input:

 

if the boolean button TRUE, i want the numerical control on the front panel to allow the user to type in a value OR use the increments/decrement buttons

 

if the boolean is false, i want the numerical control to only allow the user to change the value via the increment/decrement buttons and NOT be able to enter a value directly to the numeric control.

 

this is similar to using a property node to disable the numeric control, but i only want to disable the ability to type in the value, not disable the increment/decrement buttons...

 

any thoughts?

 

 

AutoComplete with Drop down - LV Obsolete?

$
0
0

I've been hunting and searching for a solution in the LV forums to use an Autocomplete with a drop down menu.  Don't act like you don't know what I'm talking about.  You see it all the time in many different applications.  Heck even this forum uses Autocomplete with Drop Down (Attached).

 

I've seen recent posts that state "OMG only GOOGLE can do that fancy stuff, not mere LV mortals."

 

I think Labview is falling behind the curve with developer tools while other software continues to improve.  I've seen post here asking about this feature 8 years ago and still no answers.

 

I have other ideas I can use, but, they're not as graceful as a an Automatic Drop Down menu.


Here's what I need.  As the user types, a drop down list (from my ARRAY) is narrowed as they type.

 

The combobox is almost there...however, the combobox only works on the first match (doesn't show other matches), and it doesn't have a drop down, it does have pull down.

 

JQuery seems to be very popular today, has anyone tried using JQuery with Labview?

https://jqueryui.com/autocomplete/

 

Does anyone know how to  "Autocomplete with Drop Down" in Labview?

 

Thanks,

 

Doug

What is the best way/place to initialize everyting in my VI?

$
0
0

Ok LabVIEW Pros.... I am new to LabVIEW and am creating my first (Semi-complex) work station powered by LabVIEW. In an attempt to form the best LabVIEW habits possible I am in need of help. With GUIs, there are always several variables and controls/indicators that need to be initiailized. What is the best method for doing so? This works perfectly but just looks Ugly to me.... Would it be better to throw this all in a subVI or at that point do I have to worry about all of the references etc...? Ideas and best practice advice is much needed/appreciated. See example below...

 

subVI_Initialization_Question.png

Thanks Guys!

 

Kellen

Mismatch between recorded and saved data

$
0
0

Hi guys, I am preparing Labview codes for synchronized analogy reocording and playback. Specifically, I want to record for 6 seconds, while output sounds for 5 seconds. This means the analog output stop 1 second before the end the recording. In addition, I want to save the 6 second recording into 3 TDMS file (2 seconds each). However, I could not make my current codes work in the required way (attached). I have detected two problems that are beyond my skill. 

1. "Some or all of the samples requested have not yet been acquired". This is weird, because I have already put the ''DAQmx Read'' function under the condition that only when there is sample to read.

2. Instead of saving the data to 3 TDMS files, only one file is generated.

I am appreciate any of your help. Thanks very much.

C# activeX

$
0
0

I have a project that need translate the attached C# code into LabVIEW GUI (CSharp_EventLog.pdf), trying to do some basic code shown as EventLog.PNG, but seems not working. I do send event from server side, but this piece of code does not get any response. I am not familiar with ActiveX and C#, need some suggestions on:

 

1. Is there any wrong with my LabVIEW code, why there is no event response? Read C# code, there seems Class cast and/or Automation refnum cast? not sure how to code it in LabVIEW.

2. In the Call back vi, event data is variant, I expected to be string. 

 

Thanks in advance.

 

Jason

problem with object tracking vi

$
0
0

hi every body 
i'm trying to use the camera to track any object selected on the screen in real time .
i didit with pattern matching and i wanna make it with object tracking vi, but i'm facing a problem with ROI and object detection 
any help please !?


RTTarget properties showing up in INI for non-RT applications

$
0
0

Hello,

 

I am building executables that do not use any RT code (the only external interaction is via the VeriStand API) but every time that I run the executable I get RTTarget properties added to my INI file for that executable.  The properties that are added are shown below:

 

RTTarget.ApplicationPath=C:\Users\<username>\Documents\LabVIEW Data\Remote Development\startup.rtexe
RTTarget.VIPath=C:\Users\<username>\Documents\LabVIEW Data\Remote Development

 

Why is this happening?  Is there a way to prevent this from happening?

Is it possible to release VI references from memory that were opened by the Application Builder?

$
0
0

Hello, I was wondering if it is possible to programmatically close all references to VIs that are open in memory such that they are no longer stored by LabVIEW in memory. I am using the LabVIEW Application Builder to build my software into an executable. I have a "build server" which runs constantly and listens for instructions to start a new build of my software via TCP. When it receives instructions to start a build, it executes Subversion (SVN) commands to update the working copy of my software to the latest version, then opens the project and builds it. The problem is that many of the VIs that are part of the project remain in memory after the application builder has run. As a result, if I try to start a new build without restarting the build server VI, it will change the VI files on the disk when it updates from SVN then try to load them again, resulting in conflicts with the copies of the VIs that are still in memory. This gives an error dialog for each VI. As such, I would like to be able to close all of the VIs that are open in memory programmatically, however I can't seem to find a method of doing so. I have included an image of my attempt, however the VIs remain in memory. I was wondering if anyone knows how to achieve this?

 

VIsInMemory.png

MAKE TWO HTTP REQUESTS IN PARALLEL FOR TWO DIFFERENT IP ADREESES.

$
0
0

I WANT TO USE HTTPCLIENTS TWO BLOCKS TO REQUESTS IP ADDRESSES TWO DIFFERENT BUT IN PARALLEL, THE SITUATION IS THAT CAN NOT GET TO WORK TOGETHER. CAN YOU HELP ME? THANKS.DOUBLE REQUETS .jpg

Looking for Boonton 9242 Instrument Driver

$
0
0

I am looking for an instrument driver for a Boonton 9242 RF Voltmeter. Any help appreciated!

error 7: while running EXE

$
0
0

Hi,

 

I am getting below error while running exe. But while running in development environment it is working fine. Please help

 

Open VI Reference in PRJA2871_Firmware_LoadVI.vi:70002->PRJA2871_Firmware_Parameter Download.vi->PRJA2871_MCRL Main Screen.vi<APPEND>
VI Path: <b>C:\LabVIEW Code\Code New V2.1 test\EXE\MCRL_VCR\MCRL VCR.exe\Ethernet\PRJA2871_Download_Ethernet.vi</b>

Built Application or Shared Library (DLL): Make sure all dynamically loaded VIs were properly included in the build specification for the application or shared library.

LabVIEW Real-Time: VIs built into executables cannot be accessed through VI Server calls. Use Source Distributions to dynamically call VIs on Real-Time targets.

Viewing all 69253 articles
Browse latest View live


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