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

Calling Recursive Vi's

$
0
0

Hello,

 

I am trying to program a variable sweep for an instrument.

 

There are 20 variables, A,B,C, ... 

Each one has a parameter range Low, High, Step. 

 

Each one can be called in a hierarchy:

 

Loop A:

           Loop B:

                       Loop C:

                                   Measurement

 

Or

 

Loop C:

           Loop A:

                       Loop B:

                                   Measurement

 

Now I have 20 variables, if I were to code out each possibility that's 20!

My current idea is to : 

read from a text for the looping sequence,

create a queue of vi references,

call the first vi from the queue, and pass rest of the queue sequence

then the first and each subsequent vi will call take out the first element of the queue and call it, until there is no more to call. 

 

Is there any idea on to program this? Maybe there is better way to do this?


Labview VI Deployment Version Question

$
0
0

Hello, 

I took over a Labview project and made some changes.The file name appeared in development mode is "Thermal Test 3.6 [Thermal Test vbeta V3.74.vi]". This is new to me. Why does the VI have two file names on top ? In addition, when I deploy the VI , the top of exe file always shows "Thermal Test 3.6" even if I changed the application file name as "Thermal Test 3.74". How can I change the title on top of the deployed exe to the right version (3.74 instead of 3.6) ? Please find attached picture for details. 

 

Thanks

 

ffl3883

Error when trying to simaltaneously access CANopen and Ethercat using NI Industrial comm drivers

$
0
0

Hello,

         I'm trying to access 2 devices on the PXIe controller from LabVIEW that apparently using the NI Industrial Communication drivers. 

Situation/Requirement:

1.I have pressure sensors that works based on CANopen interface.  

2. I have AKD drives that control the servo motor. The drive are on the ethercat chassis that is again connected to the PXIe chassis.

3. When i start my application i need the pressure sensor as well as the soft motion axis working together. 

4. My application has 2 timed loops one for Motor control and another for pressure sensor monitoring.

 

Problem/Error:

1. When i try to start both the timed loops, sometimes the pressure sensor interfacing works fine but the motor control never starts. I get an error.

2. Some other times, i have the soft motion control working but the pressure sensor doesn't work. I get error code

−2147136764

4. I tried to start one function first and then manually start the other one next. Always the second application doesnt work and sometimes starting the pressure sensor app, stops the motor control.

3. Funny part is both the functions work independently, when i dont try to run both of them together, both the functions work. I'm not sure, in order to execute both the devices together, do i need to set something up? Am i missing something here? Any help/advice would be really helpful.

 

Regards

Jay

how to make this graph?

$
0
0

What do I do if I try to change the color of the bar beyond the curve value?

I do not know how to make it.
Any suggestions would be appreciated

.

Labview with excel

$
0
0

1.I want to import the excel

 

2.And extract data that need to use

 

3.finally, save the data that extract to new excel

How to programatically create a type def. from the column header

$
0
0

I write numerous post-processing software to analyze the output files from different measurement systems which typically output ASCII files. Generally I create a type def. with all the columns of data I am interested in processing and then assign the appropriate column/row of data to the correct cluster element using bundle by name (as shown in the example:CSV Header to type def).

My question is: can I programatically create a type def. from the column header? Or is there a better way to get the data into a cluster where I can use the 'un-bundle' and 'bundle by name' in my programming? This would save me endless time and allow me to write software where I don't know the arrangement of the files.

Error 200088 with write to measurement file

$
0
0

I am trying to write a while loop with a digital input DAQ assistant. The DAQ assistant is representing a hall effect sensor that tracks the revolutions on a small wind mill hooked up to the computer via a PCI6503. I was initially having issues with the boolean indicator sampling at a quick enough speed. The data was saved to an excel file but would not be accurate for the number of revolutions. To over come this I increased the sampling speed with a "DAQmx timing" function. Now the sensor triggers the boolean indicator in real time but I can't run a "write to measurement file" in the while loop with the "DAQmx timing" funiction in the same loop. I keep getting an error code 200088. If I move the "write to measrument file" function outside of the while loop it runs but doesn't save the data. Any tips on how I can run my program at the correct speed and save my data?

Voltage Triggering

$
0
0

Hi everyone, 

 

I'm working on my senior design project, the system has two linear encoders and analog input, I'm using DAQmx to acquire data. I want to start reading voltage ( analog input) whenever I mover one of the encoders so basically triggering voltage. so is it possible to trigger using two different sources? in this case encoder_X and encoder_Y?

 

 


How to develop labview script for CAN using CRIO 9045 and NI CAN 9853.

$
0
0

i am using can 9853 with CRIO 9045.My can device is connected with external device(testing device).i have to send 17bytes of data from can 9853 to external device.but can standard support only 8bytes of data.so i have divided 17 bytes into 8+8+1.so now i have to send these data bytes with standard can format within 200ms(specified) to external device.how to write the code in labview.which type of programming mode or API i can use.i attached the screenshot of can format i am using.please share the best way to develop labview programming.

Rational Testmate in LabVIEW from Rational Apex

$
0
0

Hi,

The Rational Testmate is an automated test tool which resides in the Open Text Exceed which is a GUI based client for Unix system.

Now, the task is to run a test case file (*.tc) in the Testmate.

How to do this through LabVIEW?

Convert number to string as currency!

$
0
0

Hello I would like to convert a number array with prices into a table string and like to keep the two zeros after the comma if it is an integer number. Is there a tool for that?


Differences in table names from MS Access 97 in mdb files and LV Table List by "DB Tools list tables"

$
0
0

Like in topic "Differences in table names from MS Access 97 in mdb files and LV table name list by "DB Tools list tables" (LabView 2011). I create connection via "Microsoft.Jet.OLEDB.4.0". And I look by MS Access 97 into mdb file. I got some differences in this list names of tables. Have somebody idea why ? Have somebody idea how get list of table names in other manar than "DB Tools list tables" and "Microsoft.Jet.OLEDB.4.0"

array of strings to a tree

$
0
0

I have been given a task in which I have to convert an array of strings into a tree.

For eg. if the first element is xxxx/yy/zz (here xxxx is the parent of yy & yy is the parent of zz)

             and the second element is xxxx/yy/ww... Here I should compare all the elements of the array and make a tree out of it.
Here the input will be already given.

Thank You.

how to convert array of strings into a tree?

$
0
0

I have been given a task in which I have to convert an array of strings into a tree.

For eg. if the first element is xxxx/yy/zz (here xxxx is the parent of yy & yy is the parent of zz)

             and the second element is xxxx/yy/ww... Here I should compare all the elements of the array and make a tree out of it.
Here the input will be already given.

Thank You.

Specific Labview .NET question

$
0
0

Hello folks, I've done a lot of searching before posting this, as I cannot find the exact information I need specific to my programming requirements.

 

Situation:

 

>.NET dll driver provided to me, written specifically to talk to one of our Bluetooth devices.

 

>Labview VI written using case structures, in order to interface between Teststand and the DLL driver so we can control it from Teststand

(we don't want to use the native Teststand .NET connector, and require a VI for other uses).

 

In my VI I have a Constructor Node > Invoke Node and all behaves. I initialise and connect to a COM port, run some commands and it works fine.

 

However if I stop the VI to run it again using a different case from the structure, I have to re-start the entire port connection process.

 

I want to run the initialise case once, then call the command cases as many times over as I need without having to re-construct the .NET reference and establish the port again.

 

Do I require use of passing refnums to achieve this? The port remains connected (unavailable to other applications) after the VI stops. But I take it using the constructor each time resets the connection.

 

I then can't use an invoke node to run a command, without having a constructor node before it, so how do I do this?

 

Many thanks!


RT/FPGA Timestamp

$
0
0

Hello,

 

In a situation where one uses FPGA to get data from different I/O modules with different acquisition speeds what is the correct way of adding a time-stamp to data?

1) After you get data to RT and just use "Get Date/Time in seconds" there?

2) Do you in some way convert tics that you send from FPGA to RT to get exact time-stamp?

3) Other solutions?

 

regards

Any tool to create a 2D array from a curve ?

$
0
0

Creating a graph from a 2D array is easy - be it LV or Excel. 

 

Was just wondering if there is any tool that can create the  2D array given the graph … either in LabVIEW native or third party ? Or am i being very ambitious Smiley Very Happy

Reading column lengths from an array

$
0
0

Hello,

 

I have a spread sheet of one column that gets updated with a new random number every time a button is pushed, and a second column that is has a separate number that the first random number is assigned to.

 

I am trying to read the column lengths of each of these columns so I can more quickly find where the next random number needs to be assigned. I assume that as long as the column lengths aren't equal, there is an unassigned 2nd column number. Before, I was going row by row in a while loop looking for the first blank space in the first column (also indicating that there is a unassigned second column number) and using that iteration number as the length. However, the spreadsheet I'm reading from is fairly long, so that method took around 35 seconds which I am now trying to optimize.

 

I feel like this is something really really easy and I am just having a brain fart of sorts. I have tried several different things, but my probes keep saying that they are reading the same number of lines. I have attached a screenshot of this section of the code. Any help would be awesome!

 

 

Hello guys , I'm an engineer student , I'm doing a little project , I'm new with Labview and I have some a problem that i couldn't solve after completing my project .

positioning of elements in typedef cluster

$
0
0

Hi,

I have a typedef cluster on my front panel containing  two different  typedef clusters. Each of them contain various types of controls and indicators. How can arrange all this elements everywhere in the front panel to make the user interface as obvious as possible for every user. 

Disconecting from typedef doesn't work...

I'm new in LabVIEW  and I apologize  for the ( probably) simple question.

Viewing all 69226 articles
Browse latest View live


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