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

enebled debugging on executable - gives an error with 2016 Runtime

$
0
0

Hello,

I have   LV 2016 RTE  installed.
On my development PC I made an Exe. with Debugging Option ON.
Unfortunately, this does not work  on the  Deployment machine.
How can I  enable or disable  through a key or swith the Feature so that this  Exe( with debug option) works.
I do not want to make another exe because the Version number  changes and the customer has issues with that.

regards,
Akshay


State machine control design

$
0
0

Hi,

I have a task to make a "Workout" state machine and I've been struggling to make the control in the screenshot. Converting cluster to array isn't working. Can somebody help me?

cRIO无法修改系统环境语言

FPGA altera program upload via LABVIEW

$
0
0

Hello everyone,

I entered to make an automatic test bench of a card, and in the sequences of test one makes the uploading of the program of the FPGA which it finds in a .jic file towards the card, by using the software quartus ii, JTAG mode, and a USB Blaster. and in the procedure of my test bench this phase must be automatic, without the intervention of the quartus ii software, and this is done automatically in labview test sequences. is there a VI that allows me to automatically upload the program to the FPGA? what are the protocols to respect? as well as if there are DLLs or drivers.

thanks in advance .

 

[QUES] High Speed Serial Software Dependency Tree...

$
0
0

We have a PXIe-6592R card with some 3rd party LabVIEW 2017 software to go with it. I have wrapped this software in a LabVIEW 2017 project which makes an executable and a set of stub VI's in LabVIEW 2012 can interact with LabVIEW 2017 based executable and hence the PXIe-6592R (using TCP/IP calls).

 

The question is, what is the minimum number of items I need to tick in the "Additional Installers" section that will allow this project to run the PXIe-6592R card, but will not trash the LabVIEW 2012 installation?

 

For example we have software that specifically uses LabVIEW 2012 and was built with certain versions of VISA, DAQmx, NI Vision and so on. What I don't want happen is I install my media for my LabVIEW 2017 based software and it goes and updates VISA, DAQmx, etc and then breaks LabVIEW 2012. So, ideally, I need an dependency tree for the High Speed Serial Software Driver disc (currently we use version 17.0).

 

We cannot update everything to LabVIEW 2017 unfortunately.

 

Thanks.

Wireless communication

$
0
0

Hi,

I want to control the greenhouse environment (temperature, humidity, CO2, light, soil moisture) through mobile using cloud system. Now, I have NI USB 6343 for data acquisition, Arduino mega 2560 circuit, and NRF24L01. Do I need any more device for this purpose? The total number of sensors is 30. I saw some wireless communication problems here but not related my topic/devices. 


Any suggestion/help would be appreciated.

 

Need Help connection between USRP N210 and Labview

$
0
0

Hello Community,

 

Iam new in thhis forum and i need help. I work on a project with a USRP N210 and Labview but i can not sucessfull connect my labview to the SDR.

 

My Laptop is connected with a ethernet cable and i can ping the device without any looses of pakets. But the Sofware Labview can´t find the device.

 

So i need help. (i prefere german answers bit english is ok too)

 

Thx for your help

VIPM not allowing me to install add-ons

$
0
0

I need to install lvhdf5 addon using VIPM, have tried manually but still getting error as seen in the image. I have verified port numbers, connection to VI server etc. 

 

Also on startup of VIPM, getting a message "Unable to access repositories: Labview Tool Network, VI Package Network".

As far as I understand these are enabled on default. Unable to access any add-ons, but more urgently need to get lvhdf5 installed. I am running LabView 2015.


NI 9881 module, MAX can't find the CANopen port.

$
0
0

I use cRio 9035 and NI 9881 to run canopen.

but the truth is that i have meet with lots of problems. 

now, i can't find the port . Normally should be the Picture Max.png

my labview version is LV2016, and  RT2016, 2016FPGA, Xnet 1850, CANopen SW 1800,

compactRIO drive 1850.

more information can be seen from the  software installed.PNG

 

After I follow the instruction, running the FPGA, i can see another CAN module 9860 is running.which proved what i have done is correct. and i still cannot find the "9881"canopen01

 

i am truly need to know which kind of step i should do. 

Constructing a text header string from a cluster

$
0
0

A common method for measurement settings we use involves the use of clusters, which may contain different controls (numeric, boolean, string, etc.) that are set by the user at run-time to specify measurement conditions.

 

It is helpful to be able to dump these to the header of a measurement text .csv file so that during data analysis, there is no ambiguity about the important measurement parameters.

 

This can be done by unbundling the cluster (which one has to usually anyways) and then manually wiring the controls with string constants at coding time to a text file VI. This is a messy solution, is not robust with a change in cluster content during code edits that happen at some times, and takes up block diagram real estate.

 

I want to be able to programmatically (by defining a sub VI) extract key-value pairs (name of control, value of control) at run-time and then dump the text to a header string (which would perhaps be the output port of this sub VI). I have played around with Property Nodes to do this, but cannot figure out how to get both keys and their values in a loop (will need to find out number of elements).

Access class private data that is an array of clusters

$
0
0

I have a class private data that has an array of clusters. I need to set the data in a class method. I tried to use the array bundle by name but that did not work. There is a step to access the array element that I must be missing. The class private data element is an array is Test, which is a cluster. 

 

image.pngimage.png

This is a snippet from the block diagram. How do I access the Test cluster from the array? Any help appreciated. 

 

 

Migrating from switch IVI to Switch executive

$
0
0

Hello,

I am looking at some old code that was written in LabVIEW 8.6. The overall program is driven by test stand 4.1. We are looking to upgrade both the LabVIEW and Test Stand code to latest.

 

I'm specifically looking at one section of code that interacts with a Switching system. The old code used the "NI Switch IVI" and my understanding is that the  newer labview we'll be using(2015) doesn't support IVI anymore. One route I've been told we can go is to use "NI Switch Executive." Is the switch executive now the new "version" that replaces the IVI standard?? What is the difference between 'switch IVI' and 'switch executive'? and when should each be used?

 

Also, on the IVI editor window in LabVIEW 8.6, I noticed there is a radio button for "executive"... is this how I could upgrade? By saving it as a switch executive and then porting that to labview 2015? 

 

The goal here is not to have to deal with writing or using any native labview drivers for the switch system but retaining the IVI/executive framework.

 

Thanks!

Access element of an array within a cluster from a DLL

$
0
0

I have a labview model and I am trying to add some functions using a DLL.

 

There are a lot of nested clusters, but I can access everything OK by using structures in my C code.  I am struggling however to access elements of an array that is within a cluster.

 

I created a Call Library Function Node block and added the appropriate signals and clusters, and then created a C file from it to see how labview would generate the typedefs.  I see where it has the table defined, but I can't figure out the proper syntax to access an element of the array.  Generated code is below... Any help you can provide is appreciated. Everything I have tried crashes LabView.

 

typedef struct {
	int32_t dimSize;
	double Numeric[1];
	} TD4;
typedef TD4 **TD4Hdl;

typedef struct {
	TD4Hdl aCoefficient;
	TD4Hdl bCoefficient;
	TD4Hdl table;
	} TD11;

double calcHarmonComp(TD11 angHarmon, double angle, double tableSize, bool isHarmonics );

I tried accessing it with
correction = (**angHarmon.table).Numeric[0];

but this crashes LabView

How to update PXI platform services from 17.5.0 to 17.5.1?

$
0
0

Hi all,

 

I'm having issues getting the modules/chassis of a real-time PXI to appear in my labVIEW project. I assumed this is because of some missing drivers, so I downloaded PXI platform services 17.5.1 to the computer. The PXI is running PXI platform services 17.5.0, which I didn't realize at first. When I go to add/remove under software in the PXI in MAX and try to update the PXI platform services from 17.5.0 to 17.5.1, I get a message that says:

 

R Series Multifunction RIO Support 12.1 requires PXI PS PXI Support 17.5.0

FlexRIO Support 12.1 requires PXI PS PXI Support 17.5.0

CompactRIO Support 17.6 requires PXI PS PXI Support 17.5.0

 

Thinking that I could just update these drivers, I updated them to 18.0, but the same message still appears. I tried looking for PXI platform services 17.5.0 and PXI PS PXI Support 17.5.0 so that maybe I could change the PXI platform Services on my computer to version 17.5.0 instead of 17.5.1 but I can't find either anywhere on the internet.  

 

I'm pretty much out of ideas by this point on how to get the modules in my RT PXI to show up in my labVIEW project, so any help would be appreciated! I'm honestly not even sure if it *is* a driver issue, so maybe I'm just wasting my time with the compatibility of the PXI platform services?

How to Read magnetic sensor data via I2C


Too many open FGPA references! Error -63198

$
0
0

Hi all,

 

I am using an FPGA (7965R with 5761 digitiser front module) to do some real time data analysis. I want to use all four channels of the digitiser and use DMA FIFOs to send four streams of data for each channel. 4x4=16 DMA FIFOs which squeaks in just under the limit of 16 available DMA FIFOs on this FPGA/chassis. I want to do all this programatically, using actors, on the RT.

 

I am using Advanced Session Resources (ASR) to pull out specific FIFOs from the the FGPA reference. I then use FIFO reads in parallel FIFO listener loops to read the FIFOs. My problem is that I quickly receive a -63198 error, which I have deduced is because I am trying to open too many FPGA references. Does the 'cast' in ASR result in the creation of a new reference? I will assume from here that it does...

 

I read that there is a hard limit of 16 open FPGA references. Since I have 16 already from just the dynamic reads of 16 FIFOs, and I will have a few more when created when I initialise the system and go about creating the dynamic references, I suspect my error is caused by hitting this limit.

 

Now, solutions:

 

I could create each reference immediately before the read and close it right after, but I have read that this would add a lot of overhead to my reads! Not ideal for code that I want to operate ASAP.  My host PC also has a FPGA reference for sending settings direct to the FPGA, in this case I could manage with opening and closing the reference each time, since I don't need the response to be deteministic or fast.

 

 

My only solution so far is to squeeze all four data streams for each channel into a single DMA FIFO. Then create a single reference for each using ASR. I would need a parent reference to create these on the RT. Then I would need one for the host which I would create/destroy as necessary. This adds up to 6 simultaneous references, which should be acceptable.

 

Can anyone think of a better way to do programatic referencing of DMA FIFOs? Perferably one that doesn't result in the creation of so many references. Please bear in mind that I really want to maintain the dynamic design of the application, to maximise the resue of the FIFO listening actors.

global variables different labview versions

$
0
0

Hi all!

 

I am experiencing a problem with Global Variables. I have to read data from 2 different systems: NI fieldpoint, which I can use only with LV2012 or below, and cDAQ, which I can use only with LV2015 or above. However, I need to read data of both systems and combine them. I wanted to do so using global variables, which I have tried in different LV2012 instances. However, if I try to read in LV2015 the global variables from the VI LV2012, I always get a NULL value. However, the options " open front panel" of the global variable in LV 2015 shows me the correct VI. Why can't I read the values correctly?

 

Thanks in advance

 

Valeria

Excel Report generation

$
0
0

Hi everybody. I'm pretty new in using LabVIEW, but I'm having lot of fun until now.
Just one simple question.. I'm acquiring data from an instrument and then when the user push the classic "Save&Exit" button it generates an excel file. Straightforward.
My code is running well, but the only things that I don't understand is that it opens microsoft excel in the background together with the dialog asking for name and folder to save it.
I was wondering if it is possible not to let Excel open and stay in background.
Attached the relevant part of the code.
Thank you for your support. 

How to add devices to RT PXI Target in labVIEW Project

$
0
0

Hi all,

 

I'm wondering if it's possible to add the chassis/modules to the RT PXI target the way I can with a compactRIO device? I want to be able to use the IO variables of the PXI slots the same way I would with RIO slot IO variables, but I don't know how. If you look at the picture attached, I basically want to access the IO variables of the PXI modules the same way I have with the compactRIO IO variables in Mod1. If that's not possible, is there any other way I can access the PXI variables to add to my VIs?

 

I forgot to mention but when I right click on the RT PXI Target and go to New>>Targets and Devices, there's no option under new or existing devices for the PXI modules I have installed.

How does "total amount of requested elements" correspond to Block RAM?

$
0
0

We're running a cRio 9112, and acquiring data from an NI 9853. 

 

I'm trying to get this labview project to run that a previous intern had left over, and my labview knowledge is pretty limited. 

 

The program is supposed to acquire data from an RPM sensor. It compiles fine, but doesnt actually show any data. I'm planning on checking hardware if I can't get the settings right.

 

Currently, the previous intern had set it to request 32k elements. The previous intern told me to try upping that and that might help get data. When I try that, it tells me that the file is too large for the FPGA. 

 

Further research showed me that I didnt have enough space to transfer the data. From the cRio 9112's manual I see that I only have 1152 kbit/s of block ram

 

The question:

 

How do I know how much total elements I can request from the NI 9853? how much "data" is one element? I don't have any fundamentals here so reading material (if you guys know of any about this topic off the top of your head) would be great as well.

Viewing all 66894 articles
Browse latest View live


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