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

Change values of control using subvia

$
0
0

What I would like to achieve is changing value of a variable using SubVia. I had this problem since the beginning of using LabVIEW and always get around it by using local variable of control but I have never found or seen a good solution to it.

 

Assume a variable enters a SubVia and the user can see value of the available and is able to change it or discard the changes.

 

My solution always been something similar to the following block diagram :

ChangeVia.jpg

 

 

this works but this become complex when there is more variable to change. I reckon there is a better solution to this but I could not find it.

Really appreciate your help and sorry for my profound ignorance.

 


Implementation of RF TX, RX Idle or Run State Machine

$
0
0

Hello. I achieved64-QAMpackettransmission and reception based on packetdigitallinkexample.

Inaddition, I try to build the followingstatemachine to implementTDD or TDMtransmissionmethod.
1) RUN (received and transmittedaccording to itsowntimeslot)
2) IDLE (Waitmode, if not yourowntimeslot)

In the case of RUN, IDLE, wewilluse the Booleaninputvalue over time to process the case, but I do not thinkthere are anyexamples and data related to this in the NI-Forum.

If you are working on the samework as me or have anyrelateddata, I wouldappreciate it if you share it.

How do I resolve errors 1and 85? Thanks for your help.

LabVIEW FPGA: The compilation failed due to a Xilinx error (Synthesized error)

$
0
0

Hi all,
I have converted a Matlab Code to VHDL code via Matlab tools. The VHDL code is imported into Labview FPGA through IP integration node (please see the attached), it imported successfully.

* I am using MyRio 1900, Labview FPGA (a version of 2018).
*There is only one "IP integration node" in the "timed loop" "5MHz''.
*It is working correctly when I am using "FPGA target" -execution mode- as "Simulation".
However, I got "LabVIEW FPGA: The compilation failed due to a Xilinx error." (Synthesized error) when I am using "FPGA target" -execution mode- as "FPGA target". Please see the attached.

Please note that I have imported a small VHDL code (part of the main code) into Labview FPGA and it was compiled successfully.

I would be greatly grateful if someone could give some suggestions. Thanks in advance.

Live view data with periodic sampling and analysis, daqmx

$
0
0

Hello All, 

I have an idea for a project and I just can't get started.

Using a cDAQ Chassis (9174) and a 9215 card I would like to live display a collection of 6 Analog Inputs on a waveform graph. 
A secondary loop would then be running every 20 minutes to log a sample of the data, 10 seconds worth for example, save it to a TDMS file and then repeat continuously until the experiment is complete.

Ideally in the future I would like to build a secondary display which takes an average of the logged data and plots it over time, measuring some slow voltage degedration of an electrochemical cell over a number of weeks. We will also aim to expand the number of channels and cards with various signal types for different sensors. 

I did as I always do when starting a new project, and browsed through the boards for a previous example, but could not find the right keywords, if anyone has any example codes for a similiar project it would be greatly appreciated. 

regards,
Jordan

LabVIEW Installer Error in NI Touch Panel Computer

$
0
0
I have developed code for vibration data recorder in LV 2015 (successfully running on PC) and using that code i developed an installer to be run on Touch Panel Computer NI-TPC-2206. But when i tried to run installer on Touch Panel Computer, error 'this program requires windows 7 SP 1 or later' (image attached).  Following steps i have tried:
1- Changing WindowsNTversion line in setup.ini file
2-Downgrading code from LV 2015 to LV 2009 (unsuccessful)
I have attached the code. In the project, i am trying to build an installer of 'Data Recorder.vi'. Please provide assistance.

bundle by name and unbundle by name cluster

$
0
0

Hi, i been trying to create this unbundle by and bundle by for a cluster 

Screenshot (273).png

^ - it basically repeats the "car wash indicators" when dragged down 

but problem is when i do it.. I can't figure out how to make that happen..  This is what i can only get 

Screenshot (272).png

 

complete newbie to labview here.. so any feedback would be much appreciated

The difference between MB serial Master query palette and Modbus Library

$
0
0

Hi ,

Can you help me please to write a paragraph about the difference between the MB serial Master Query and the modbus Library ? I want to collect a various informations .

Thank you. 


callback function take user params from object sender

$
0
0

1. This example is special in C# DLL
normally, we use system predefined delegate "Eventhandler" to define a event with no user params, So, we just use all the base class to define callback method
(object sender, EventArgs e) as input params. And Sender meas some UI control trigged action, Such as key/mouse interface etc.,, e is system defined params, such as click, down etc.,
Here, We just raise the event by our application , Not the windows OS hardware actions. And we tied some param within 'Sender' for callback functions....one is percent(int32, 0~100),another is result(bool,true/false) which means the state of dll during receive a file 

2.In labview, how callback function get user information which tied within C# DLL's "sender"?

 

3.labview2020(32bit),visual studio2019 used(64bit).

NI VISION DEVELOPMENT MODULE

$
0
0

Hello All,

 

Hope everyone's safe and sound.

 

In my work environment, I have to develop and maintain multiple Software Modules on different version of LabVIEW.

 

So my laptop has the following LabVIEW versions

1. LabVIEW 2015 - 32b and 64b

2. LabVIEW 2018 - 32b and 64b

3. LabVIEW 2020 - 32b and 64b

Most of the modules I work has got something to do with NI-VISION Development module.

 

The question is that how to have multiple NI-VISION development Modules in one Machine. At the moment, the NI package manager doesn't allow to install as new version, instead It Upgrades the existing to newer versions.

 

Is there any way to maintain multiple NI-VD Modules?

 

Thanks for your Answers!

 

Cheers

 

 

DRV8833 MyRio

$
0
0

Hi, I am new to Labview and the MyRio and I need some help when it comes to getting my DC motor working with my motor driver and my encoder. 

 

The driver and encoder I am using are:

 

DRV8833

https://www.pololu.com/product/2130

 

Magnetic encoder for the micro motor (using this motor)

https://www.pololu.com/product/3081

 

I tried and I have been failing. I attempted 2 PWM, it doesn't work. I looked at another DRV8833 blog, but I cannot use it as MyRio does not use MyDaQ. I even tried analogue but that failed.  Please if someone can guide me on how to set this up, this would be amazing. 

 

Best Regards

 

SB21

excel database

$
0
0

Hi,

I'm a new user to LabVIEW. I have a .xsls file that contains cities in the first column, longitude in the second column, and latitude in the last column. I there a way that I can choose a city name in the drop-down menu style and function return the corresponding latitude and longitude to the selected city? 

thanks for helping me.

Runtime Engine Bug with PPL's and TestStand only when "allow future versions"

$
0
0

This took me forever to create a working demo. This is directly connected to this post: https://forums.ni.com/t5/LabVIEW/Error-1571-in-Get-LV-Class-Default-Value-in-specific-situations/m-p/4066978

 

I've found an issue in LabVIEW that only happens when the "allow future versions of LabVIEW Runtime to load this application" is checked. When it's unchecked the issue does not appear. I've attached a zip file, that contains all the source, and builds to recreate the error. Outlined below is the steps to reproduce it, as well as the basic setup of the demo.

 

Source Code: LabVIEW 2017 SP1. The Source code for the TestStand seq is LabVIEW 2014. Keep it that way (I think its part of the issue).

Runtime needed: LabVIEW 2014, LabVIEW 2017, LabVIEW 2019/20. TestStand 2017.

 

Inside of the zip file you will find the following folders:

BaseActor -> Contains the source code for the base actor.

Builds -> Contains the base level PPL's, and Sequence files that are common among everything, as well as the TestSTandSimpleUI.lvlibp. This also contains the Launcher.exe to use.

InstrumentBuilds -> Contains the DCPowerSupply, DCPowerSupplySimulated, and GUI PPL's.

Insturments-> Source code for InstrumentBuilds PPL's.

Launcher -> Contains the LabVIEW Project that builds the *.exe to launch everything.

TestStand -> Source code for the TestStandSimpleUI.lvlibp

 

Steps/Settings to Reproduce:

1. The TestStand LabVIEW Adapter should be set to Runtime and Auto-Detect.

2. Run Launcher.exe with "allow future versions" checked. Depending on the order the application is run, is how the error gets reproduced.

 

No Error Steps: (must be done on a clean launch)

3. Select DCPowerSupply. Notice there is NO ERROR when LabVIEW loads the DCPowerSupplySimulated class. You can check this by setting the voltage, and getting the voltage to see they correspond.

4. Click Close.

5. Click TestStand to launch the TestStand Simple UI Actor

6. Run the sequence in the Build path called "Mobile Device Test Client.seq"

7. Pick any phone, click enter on the failure dialog box.

8. Once the sequence is done. Click Exit. (can take some time)

9. Go back to DCPowerSupply to see everything still works.

 

Error Steps: (must be done on a clean launch)

3. Click TestStand to launch the TestStand Simple UI Actor

4. Run the sequence in the Build path called "Mobile Device Test Client.seq"

5. Pick any phone, click enter on the failure dialog box.

6. Once the sequence is done. Click Exit. (can take some time)

7. Select DCPowerSupply. Notice the error when LabVIEW tried to load the DCPowerSupplySimulated class. The program is now broken, because LabVIEW won't load the PPL due to a version error.

 

You can now change the *.exe to not allow future versions to run it. This will allow either the No Error/Error Steps to work.

 

a VI system in which two motors are controlled with the following logic

$
0
0

I'm to design a simple VI using switches and and LED's but I'm unfamiliar with the LabView. Any help will be very much appreciated. Screen Shot 2020-09-08 at 12.35.12 PM.png

Actor Framework Template closes after Splash Screen

$
0
0

I'm trying to get started with Actor Framework by using the default template.  The NI developer demonstration shows that the event log should pop up after splash screen. However, when I create a template and go straight to running the splash screen, the application stops after splash screen is complete.  I noticed the Actor Core.vi has a broken run error(the one associated with the event log UI).  

 

Here is the error message for the Actor Core:

This VI doesn't match other VIs in the method, the scope is different. All VIs that implement a method of a LabVIEW class must match scope (public, private, protected). To correct this, compare the scope of both this VI and the VI of an ancestor class that implements this method.

 

Is anyone familiar with this issue? How do I go about troubleshooting this?


Initializing Array of Cluster at Index

$
0
0

Hello All. I am sure this is something simple but it has me thinking. I am trying to initialize an array of cluster to index 0 programmatically. How can this be done?

I basically have an array of cluster and the array starts at the index that was last used before stopping the VI. how can i make sure it starts at 0? Thanks in advance.

 

PGgautam1_0-1599616931446.png

 

Battery Test Stand

$
0
0

I'm looking for general guidance on the best approach for this project. I have built a functional battery test stand but the entire time while writing the program I had the feeling of "there must be a better way." Unfortunately I just had to get it up and running so I'm asking the question now, how should it have been done...? (I'll be making more test stands so it would be nice to figure out more efficient methods)

 

The basic concept is pretty simple: continuously charge and discharge battery modules for hundreds to thousands of cycles. I don't touch it, it just does its thing until I someday hit Stop.

 

My real questions is about process control. Right now I'm using a case structure with a Type Def enum with the options: Startup, Idle, Charge, Discharge, Write to file/plot.

 

During charge, for example, I enter the 'Charge' case and stay in there until it's done charging. But inside the Charge state I have flat sequence inside of a stacked sequence that opens a data log file, starts logging, starts charging, etc, then I enter a while-loop until the voltage gets to a certain level, then I momentarily suspend charging and measure the voltage drop, then resume charging, etc. etc. 

 

Point being, I have a ton of stuff happening in a single case and it gets kinda messy. On top of it, the discharge case is almost an exact copy of Charge so if I make a functional change to Charge I should do my best to replicate the change in Discharge.

 

So, hunting for alternatives, I looked into TestStand but it didn't seem to fit the continuous and no-intervention concept. Then I thought Event Driven Programming was the ticket but that seems to need user interaction. Now I found Statechart which looks promising but I am still not sure.

 

More details about the setup:

Running LabVIEW 2016 (can upgrade, have been too busy/lazy)

2 Li-ion 3.7V nominal in series (that's how the module comes) with 2 in parallel, each voltage monitored independently

LabJack U6 as my DAQ and power supply control

Meanwell RSP-750 to charge the batteries

Load resistors for discharging (wasteful, yes, but will upgrade to battery bank in the future)

Balance resistors to be used as needed

Temperature controlled environment (heating element and ambient-air cooling)

Contactor for battery disconnect

 

That's about it. Attached is the project. Open the VI called 'Main' and check out the Process Control loop. 

Match Regular Expression not allowed with inlining, why?

$
0
0

Anyone knows why the "Match Regular Expression" primitive is not allowed in a VI on which you enable inlining?

 

match regular expressionmatch regular expression

PXI-1033 Power ON not automatically

$
0
0

Hello everybody

 

The PXI-1033 doesn't power up automatically when it's connected on power supply

it's must starting before PC and PC start automatically

any solution ?

Real Time sbRIO-9628

$
0
0

Hi,

I can't use the event structure in Real time , all I want is to figure out a solution when i press a button another vi appears in Real time  . I am using sbRIO 9628 .

Best Regard.

Viewing all 66844 articles
Browse latest View live