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

passing enum values via rt fifo

$
0
0

Hi everyone

 

I've got a question about passing enum values via a rt FIFO queue. When I want to pass clusters of double or boolean values it works fine (even though clusters aren't supported by rt FIFO - somehow). When I want to pass unsigned word enums the values do not arrive (or just occationally). Attached you'll find 2 VI's: A "set process data" VI and an "init" VI.

Does anyone have a suggestion regarding that issue?

 

Thanks a lot for support :-).

 

 


Data From Mitsubishi PLC to Labview

$
0
0

Hi All,

 

I have encountered a problem of data from PLC.

I have created a small program in LabVIEW to connect with Mitsubishi FX-3u PLC via FX-ENET module. It was working good.

And I receive the data from PLC also good.

 

The problem is,

 

The Float Data of DM 100 in the PLC memory 32 bit Data (2 Words) is in the REAL number format. Ex. DM 100 = 31720 and DM101 = 16722 

(If I transfer to HMI it will shown as floating Data like 13.155)

 

I am going to send The Actual float data 13.155 to HMI also the SQL Database.

 

For HMI I have no problem. But if I read the PLC DM Data via TCP/IP I can get ASCII value of 31720 and 16722.

I can try many conversion, But I can't get the value of 13.155

 

I know many Experts here, please help me on that...

I need your suggestions.

 

Thanks.

Broken VI. Missing library?

$
0
0

Hi everyone.

I installed some Veristand Add-ons and I get a couple of Broken VI's. And I don't know if I can fix them manually of if there's a missing Library or another strange reason.

 

Do you guys have any Idea of how I could fix this problem?

 

When I open the VI it tries to search a .lvlib file that doesn't exist and a VI that does exist but I have to browse for it manually.error_addon_veristand.png

I don't know if you can open it in your PC but I will atach the folder anyway.

Thanks 

Regards. 

Mixed Integer Linear Programming for Optimal Scheduling of an energy System

$
0
0

Hello,

in our lab we have an energy system which is made of thermal and electrical energy producing units. In our simulations (Matlab+Cplex), we were able to determine the optimal production schedule in dependency of a determined weather forecast and consumer behavior. These calculations are equivalent to a common unit commitment problem, which is generally solved with an mixed integer linear programming (milp) approach. I was wondering how this could be implemented on a Compact Rio/Lab view 2016 system. Are there existing functions, which can solve milp-optimization problems?

 

Regards SR89

thermocouple temperature conversion to voltage

$
0
0

Hello;

I'm working on an experiment, I have several thermocouples. NIDAQ converters give me the temperature values from signal emitted by the thermocouple. For this moment I need to plot the thermocouple temperature according to thermocouple output voltage. Is this possible, it's urgent!

Best regards

Communication OM21 exe program

$
0
0

Hi everybody,

 

I created a exe program to communicated with OM21 device with LabView 2012 :"CDM_2oo3.exe".

This device is described on "http://www.locadif.fr/fr/produits.asp?idp=23" (in French).

 

This program worked on my computer (Windows 7).

But there is a communication error on an another computer :

"-1073807202

 Property Node (arg 1) in OM21.lvlibSmiley Frustratederial And GPIB Write.vi->OM21.lvlib"

 

Description

Hardware :

Computer --> converter USB to RS232 (8 COM ports) --> OM21 device

 

File "2018_03_12 Fichier exe pour la CDM pour 2oo3.zip" (in attachment):

Folder "Configuration files" --> file "OM21-Ground_continuity.ini" (definition COM port to put on C:\)

Folder "Programme" --> LabView project

 

 

I tried some tests :

Test 1 :

On my computer (Windows 7), I tried exe program : "CDM_2oo3.exe"

--> OK, it worked

 

Test 2 :

On another computer (Windows XP), there is a LabView Runtime.

I changed COM port and I tried exe program : "CDM_2oo3.exe"

--> NOK, communication error

 

Test 3 :

On Windows XP computer, I use install kit to install exe program

 --> NOK, communication error 

 

Test 4 :

On Windows XP computer, I tried another COM port and I changed COM port on file ""OM21-Ground_continuity.ini"

--> NOK, communication error 

 

Test 5:

On Window7 computer without LabView, only Runtime 2012, I I use install kit to install exe program

--> NOK, communication error 

 

Do you have any idea ?

 

Regards,

Little_Giant

Broken VI Installing Custom Device

$
0
0

Hi everyone.

I installed some Veristand Add-ons and I get a couple of Broken VI's. And I don't know if I can fix them manually of if there's a missing Library or another strange reason.

 

Do you guys have any Idea of how I could fix this problem?

 

When I open the VI it tries to search a .lvlib file that doesn't exist and a VI that does exist but I have to browse for it manually.error_addon_veristand.png

I don't know if you can open it in your PC but I will atach the folder anyway.

Thanks 

Regards. 

How to Close SubVI's Front Panel Sequentially?

$
0
0

Hello,

I'm new to LabVIEW. 

I'm trying to close the multiple SubVI's Front Panel sequentially but I didn't get the expected behavior. 

 

Expected behavior:

1. Main.vi -> Click "OK" Button - > SubVI "Middle.vi" Open -> Click "OK" Button from FP of "Middle.vi" -> SubVI "Lower.vi" Open.

2. Click "STOP" button from "Lower.vi" FP, it should close the the Lower.vi but "Middle.vi" should remain open unless we hit "STOP" button from "Middle.vi" 

 

Note: I kept "STOP" button Value change event as well as "Mouse Leave" Event to stop the VI.

 

Find the attached project. 


Put Cluster in empty Cluster

$
0
0

Is there a way to simply put one cluster into a new empty cluster, without specifing the datatype?

In my case (see screenshot) I want to store one part of a configuration cluster to a configuration ini. The configuration cluster consists of a few subclusters, which have to be saved independendly but to the same file.

The data structure is like this:

[Powermeter_config]
Key1 = ...
Key2 = ...

[Laser_config]
Key3 = ...
Key4 = ...

[..._config]
...

Everything works fine if the config file already contains all entries. But if the config.ini is still empty and I save only one subcluster (for example Powermeter_config) then the Keys get scatterd in the ini-file without belonging to one cluster.

I can work around this problem by putting the subcluster in an empty cluster as I did in the screenshot.

 

But is there a better way to do this? As you can see the LARA_config_input is a Typedef, so I can change it easily. But I don't now how to create the "empty" cluster dynamically, because with my way I have to use a cluster-constant, which is hardcoded to specific content...

 

Save_ini.PNG

VI Runs Fine, Executable Says a SubVI is Not Executable

$
0
0

All,

I have a VI that runs fine.  All the subVIs work perfectly.  But when I build an executable in the same folder and try to run it, I get a message saying that some of the subVIs are not executable.  Has anyone run into this before?  If so, how did you fix it?

 

Thanks!

Difference between Master/Slave vs Producer/Consumer?

$
0
0

Hello,

 

Can any one of point out the Difference between Master/Slave vs Producer/Consumer?

 

Is producer consumer also a master slave?

 

Hemant

Difference between producer consumer and Queue message handler?

$
0
0

What is Difference between producer consumer and Queue message handler?

 

Hemant

Difference between QSM and QMH?

$
0
0

What is Difference between QSM and QMH?

 

Hemant

Timed loop structure settings

$
0
0

Hi. I had use "timed loop structure" when I comunicate whith device via ModbusTCP protocol. I need maintaining original frequency of poll the device. Then i have one of two "mode" settings of timed loop structure:
1. Process missed periods, maintain original phase;
2. Discard missed periods, maintain original phase.
But, second variant is slower. Why is it? In this case it can drop frames and saving time!
In my case first variant is 6 ms long, second - 13 ms.

Tree: dragged data format

$
0
0

Hi,

 

I am dragging files & folder from one tree control to another. Unfortunately, the tags change in the process. When dropped, the new tags seem to be the values of the first cell. That is a problem because I use the tag to save the file path.

I now want to read out all the tags of the dragged/dropped data to overwrite the automatically generated tags with the original ones. If I cannot use the same tag I could easily add a constant or something like that. That would also allow me to easily check if the selected tags have already been dropped and discard this event to prevent duplicate files.

 

I tried to read the tree data in the "Drag Starting?" event but cannot figure out how to get anything useful from the variant data. I saw the LV examples but that was not very useful to me. Basically, I am just trying to read the "LV_TREE_ITEMS" as a string, array of strings or something like that. I found info of what the format should be (Manual: 'Array of a cluster containing an array of strings, from left to right, in the item you are dragging, an integer representing the glyph index associated with the item from which you are dragging data, and an integer representing the indent level of the item from which you are dragging.') but was not able to use that information for the "Variant To Data" VI.

I am not used to the variant data type very much.

 

Any help is appreciated. I saved an example for Labview 14.

thanks!

 

Flumen


TEST

Host to FPGA Target Communication for large data sets

$
0
0

I would like to send a custom waveform signal generated in windows LabVIEW and would like to generate the signal from one of 9269 AO card that is controlled with FPGA running in my CRIO-9039. I generate the signal and have an variable sized array of single precision float and dt. What is the best way to transfer it to FPGA?

I was thinking to use a timed loop set to run in dt time frame in FPGA and iterate each value of my array within the loop in continues mode. Here is what I have tried/will try so far:

-Using FPGA memory where I write in host and read in FPGA did not work.

-Tag communication only allows around 65000 bits size array that makes it around fixed sized 2000 SGL elements array which does not satisfy the array size requirement.

My array that I would like to transfer could have millions of elements within it.

-DMA FIFO is another option I am compiling to test right now.  I set the size of the requested number of elements in my FIFO to the highest allowable value,262149 elements. I am thinkning to edit with the depth parameter of the FIFO to increase the host size buffer to transfer my array. 

I do not mind the determinism and fast DMA FIFO transfer and just like to be able to generate the waveform.

Is there anything wrong with my approach or any other way of transfering huge data sets to FIFO?

Thanks for help!

Memory leak when using System Hardware property node.

$
0
0


I see a memory leak (Free Physical Memory) on a RT Controller (LabVIEW 2012) when calling system hardware property node, specifically TempReadings. TempReadings returns temperature(s) of a PXI chassis. By my calculations it results in 58.4 MB of lost memory in a year if property node is called once a minute.

 

Also, calling this property node takes a really long time to execute and I struggle to understand why.

Sharing NI Update Service between Virtual Machines

$
0
0

I'm currently using Virtual Machines having a separate VM for version of LabVIEW I need. 

 

The NI Update Service downloads can get fairly large (I see one of the download directories has about 15G right now). Many of the updates are needed on several of the VM's so I'm wondering if I point the download location to an external or Network drive, can the Update Service from all the VM's use the files that are downloaded from a different one or will it just download them again because that instance of the Update Service hasn't downloaded it yet?

 

Looking to save drive space on my SSD and download time.

 

Thanks

Opening VI in Sub Panel with VI Reference

$
0
0

I have an application that requires that opening and running a VI in the subpanel of another VI running as an executable.  The catch is the VI going into the subpanel will not be in the project structure of the VI that is running it.  I am currently testing this out on just a VI.  When I try to run the code that I have attached I get error 1003 from the Run VI invoke method.

 

The application is for a test system that has two monitors on it and they are being used for display from the test that is running.  While I am running that test I am required to interface to another application that will be controlling a heater.  I don't want to interface the heater code with the test application I am running since it will be for a one time test.

 

I know it may be trivial but I am trying to prevent the user from having to cycle through windows from the start panel.  I just figured it wouldn't be this difficult to figure out.

 

This is being done in LV2014 and unfortunately I am stuck with that version.

 

Thanks for your help!!

 

Viewing all 68975 articles
Browse latest View live


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