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

Install and default options headache.... MathScript & LabVIEW2015

$
0
0

The IT department installed 2 versions of LabVIEW and only one of them has mathscript and it isn't default.  On Windows 7 Pro, how do I set the one with MathScript (32-bit) version to be default?

 

I tried through the "open-with" and the file "properties" and it doesn't want to.  I suspect the install changed something on the registry and doesn't allow me to change default association. 


Finite Acqusition During DI Pulse Window

$
0
0

I would like to setup a finite acqusition or hardware timed single acqusition with start and stop triggers using PCIe-6351 card.I have one DI line that changes its state and I would like to acquire couple of analog channels during this time window.

I connected the DI trigger line to one of analog channels to monitor the the state of the DI at the time of acqusion.

I tried the example under pretriggerred acqusiton with start and reference triggers section provided in the link below. (see the attachment). I have no luck with it as it first captures the pretriggered number of samples then catches the reference signal condition and acquire the rest of the samples to make the total of the acqusition equal to number of samples defined in the sample per channel parameter. It is almost as if the start trigger signal is ignored.

Any ideas what my problem might be?

Is there any other alternative method to implement the intended functionality where I can define sharp stop trigger without providing pretrigger condition?

http://www.ni.com/tutorial/4329/en/

Thanks

Looking for Solution with Queued Loops

$
0
0

Greetings all,

 

I have a problem with running two seperate cases as shown in attached .vi.

One case has a loop in it. Once it starts, the other seperate case does not respond to Cmds.

I have made a test file which is a simplified version of my customers code.

By probing I see that the Queue is getting fed but the lower loop is not de-queueing.

 

Any suggestions?

XML file data in large application ..

$
0
0
 

 

 

"currently i am using .INI file in labview application 

its bit difficult to use ...

i am using Global Values to use them in different sub vi"

 

in the same way ,How to use xml data file  for Large Application in labview .

 

 

in Xml file we use cluster in labview ... 

if i wants to use Cluster data in Subvi.. how to use it (Global Variable or Type def ?)

Testing a number to see if it s prime WITHOUT using the Q&R function...Possible?

$
0
0

We challenge each other at my place with LabVIEW challenges. I threw together a bunch of examples for this weeks challenge that requires finding prime numbers, but aside from one hack ...

 

The "hack" uses Datsockets to read from a web-site that has a list of prime numbers and I parse the text to get the list of primes. Like I said a hack.

 

 

... all of my examples used the Q&R function.

 

Realizing that I asked myself how I could check a number to see if it is prime WITHOUT the Q&R and I could not think of one.

 

Can you?

 

Don't waste your time trying to come up with one becuase I do not have a problem I am trying to solve onyl curious if there are alternatives the the Q&R node.

 

Thank you for reading!

 

Ben 

SubVI Value not updating when connected to connector pane

$
0
0

I have a legacy program that calculates a frequency when a sensor value changes (falling edge basically), and I'm trying to convert the logic to a subVi so I can use it for 44 other sensors. The program initially used a large number of Value Property Nodes, which I found out is not proper for subVis. I converted them to local variables, but I still am having issues.

The issue is as soon as I connect something to the connector pane output the value quits updating. If I remove the connection from the connector pane it works fine.

attached is an image of the block diagram. I have tried connecting both Freq and Frequency Output to the connector pane, as soon as I connect it to the connector pane it goes from functioning fine to not updating at all.

The VI is setup as non reentrant.

Thanks

Problems with data conversion

$
0
0

Hi all,

 

I am trying to make an A-D conversion. Conversion table is given in the attachement, as well as the vi file. I am receiving three 8bit data over serial communication and joining them to form a 24bit number (I am mentioning this so there would be no questions why am I implementing input like this). As you can see in the conversion table no output number should be greater than Vref, however in this implementation I get an output of 2*Vref.

Can anybody please help me find the error.

 

Darko

Static Accessor from Template has Inlined Execution

$
0
0

I was working with LVOOP today and was trying to create accessors for my private data and I found something that doesn't seem to make sense (and doesn't seem to work at all in some cases).

 

When creating my accessors, I used the "Create VI for data member access" dialog.  It was set to create "static accessors" and to allow them to be accessed via property nodes.  When I went to use these accessors via propery nodes, the code failed to compile.  It turned out that the accessor VIs that were created had their execition mode set to preallocated clone and to be inlined.  When I reverted these back to the default settings, my code compiled and functioned perfectly.

 

I check the actual VIT file that is being used for the template and it is set as non-reentrant.  Also, when I create accessors using the same method as above but choosing dynamic instead of static, the reentrancy is what I would normally expect, non-reentrant.  It did not appear to correlate to the "availale via property node" setting.

 

Is there a reason why the rentrancy of static accessors are being changed?  It is it safe to change them back to normal or do I need to be using dynamic accessors?

 

LabVIEW 2013 & 2015


Change file name and VISA serial port in LabView installer/application

$
0
0

Hi everybody!

I have already developed a LabView Project in which six VISA serial port are read and data are elaborated and saved in a text file. Now I would like to create an application/installer in order to run the main VI on another computer where LabView is not installed. 

If I create an application I am not able to set the seial ports numbers and the file name before starting the VI. How could I do it?

Thank you very much in advance!

 

Lorenzo

PLC communication with LABView

$
0
0

Hi All,

 

I am getting an error while communicating Labview with my PLC (RTU-EN01) through MODBUS as follows:

Error Code:- 1967353902

"The Modbus I/O server failed to receive any response from the Modbus slave device. Ensure that  the Modbus slave device works properly and that the connection between the Modbus master and  slave devices is configured correctly"

 

I have configured the below mentioned configuration for MODBUS:-

Delta PLC (RTU-EN01) IP Address - 168.192.1.5

Delta PLC (RTU-EN01) Subnet Mask - 255.255.255.0

 

IP Address of the PC(in which Labview Application is running) - 192.168.1.3

Subnet Mask of the PC(in which Labview Application is running) - 255.255.255.0

 

And in Configure I/O Server, i have configure the IP Address as - 168.192.1.5

 

I am following this tutorial for the communication between my PLC & Labview through MODBUS http://www.ni.com/tutorial/13911/en/

Pls help me out in locating where i am going wrong as i am interfacing PLC for the first time

Reading HTML Code From a Web Site with login

$
0
0

Hi, I need your help to build a VI that reads the HTML content of a web page.

The web page you want to read is protected by username and password ,
so first you must to log with your username and password and then read the HTML content .

I tried with DataSocket , but I do not understand where and when to enter your login credentials
to login and read the content of the page .

Can you help me??

THANK YOU

Plotting multiplot chart on NI Dashboard

$
0
0

Hi there, I have two sensors for measurement and I would like the two datas from the sensors to be displayed on the chart on the NI dashboard, how do I do so? I've tried adding 2 plot in NI Dashboard chart, however it only shows one of the sensor data only.

Control frequency and amplitude of a loudspeaker.

$
0
0

Hi all,

 

I'm going to start some experiments using sound waves and I need to control the frequency and the amplitude of a loudspeaker with the following characteristics. Rated power: 1 W; Maximum power: 2 W; Nominal impedance (Z): 8 Ohm; Frequency response: 300–20000 Hz; Mean sound pressure level: 77 dB (1 W/1 m); Resonance frequency: 550 Hz. 

I would like to do it with Labview. Can anyone suggest me good references to learn how to do it, possibly avoiding too long or ery general handbooks.

 

Thank you,

Davide

 

Closed loop control DC Motor

$
0
0

In the example below,

http://www.ni.com/tutorial/12944/en/

The inputs and outputs of the transfer function are voltage and angular velocity.

My questions are,  

1) When we are putting the setpoint in the PI controller is the output unit even in voltage for the angular velocity or in rad/sec?

2) What if the tachometer used is showing the speed in voltage as my board has frequency-voltage converter and i want to convert it into rad/sec for showing angular velocity?

 

Thanks in advance Smiley Happy 

LabView

$
0
0

Is it possible to create the block diagram shown at the attached image without having access to the laboratory equipment? The program is used to control a Siemens CPU 313 PLC together with OPC Server. I am just trying to recreate the block diagram using LabView at my home pc.


TO rotate a shaft

$
0
0

Hi,

 

In my project i am using CRIO 9073 with NI9237,9401 and 9505.

With this setup,i gotta rotate a shaft connected to it. With my code,i am able to rotate the shaft,control the drive direction but i would like to control the PWM as well.Can someone let me know why my PWM/duty cycle loop does not work,i spent enough time debuging it but i could not.

AR Drone Toolkit Can't have access to navigation datas

$
0
0

Hello!
I am using AR Drone toolkit to control my AR Drone 1.0 . Actually , it works but the only thing I achieved to do is to make it fly! I designed a program to read the navdatas but it doesn't works (The program works, but there are only zeros in navdatas fields) . Here is a photo of my program in attached document, has anybody an idea where it comes from ?
Hebergeur d'image

Writing to DAQmx Channel property nodes does not update channel values

$
0
0

Hello all,

I have a conundrum.  I have programmatically created a task in LabVIEW, and programmatically added several analog input channels to the task.  That's easy.

I would like my user to be able to edit individual channels within the task.  To this end, I've created a set of VIs which allow him to change settings appropriate to the channel (for instance, if it's a thermocouple channel, he can change thermocouple type, CRC value, etc...if it's a strain gauge channel, he can change poisson ratio, and so on).  Those VIs all work admirably, as does the VI they live in.

The specific issue I am having is that writing to the channel property nodes does not update the channel settings.  See images below.  The first image is the code that should set the new channel settings:

Set voltage chan config block diagram.png

Note that immediately after setting the property nodes, I'm reading back their values, just to see what comes back out.

 

The second image is an image of the FP immediately after running this VI.  Note that the values read back from the channel property nodes did not update to match the set values, but instead retained their original configuration values:

Set voltage chan FP.png

What am I doing wrong?  I've been fighting this for a few days now and I'm mystified.

Thanks for your time!

Diane

 

Error 363507 - LV2016 Issues

$
0
0

Hi all,

I am having a familiar problem but also one that there doesn't seem to be a consistent solution to. Basically the problem is as is stated in this thread.

The problem is that since installing LV2016 on my development PC, the HTTPS POST Method that I was using to access a database has ceased to work in either of LV2016 or LV2014 which I am still using as my development version. I have tried all the usual fixes, swapping out the ca-bundle.crt for a different one, disable the verify server flag, uninstall LV2016.

 

None of which seem to have worked, considering that I have now reverted as much back to the original setup as I think is really possible I was wondering if there are any other solutions I should try before going through the process of uninstalling of my LV, purging as much of my computer as I can and reinstalling (and wasting several hours in the process) I figured I would see if there were any other suggestions for soluctions to this problem.

 

The problem does not seem to be on the database end as I can access it through both an browser POST command and also through the same program running LV2012 on a seperate PC.

 

Any help is much appreciated.

Creating arrays in a nested for loop

$
0
0

Hi all. 


I have been stuck in this problem for quite a while now and I still don't know how to continue. Some outside input would be greatly appreciated!! 

I'm trying to do the following: 

- Take an array of numbers, check if they are inside of a certain range (ex. between 2 and 4)

- Build two new arrays: one with all the numbers that are inside the range, and one with the rest. 

An additional condition is that the amount and value of range conditions will change (for example, it could be between 2 and 4 only/  2 and 4 AND 6 and 7 depending on the input)

To process this, I created two nested for loops - one that goes over an array that includes the range conditions and the inside one that actually goes and checks if the values are within the range. I think I've done this part successfully, but the next part is confusing to me - how do I actually create the separate arrays within the two for loops?


My apologies if I did not explain this well. Another method of conveying this problem is that I want to translate the following into Labview: 

Array ranges   // ex. [1 5 7 10] -> this means we want to split numbers based on those which are in (1,2) and (4,5) vs. those that aren't

Array values  // [2 3 6 11 3] 

Array inValues // Array for values inside range
Array outValues // Array for values outside range

 

for m = 1:size(ranges)

             for n = 1:size(values)
                           if (THE NUMBER IS INSIDE EITHER RANGE)
                                          inValues = [inValues  NEWNUMBER] 
                           else
                                         outValues = [outValues NEWNUMBER] 
                           end

              end
end

Seems easy enough, but it gets so chaotic with Labview that I don't know what to do. I've attached a picture for reference -  the insert into array function doesn't actually add into the array, it creates a new array. How can I save that up for when the nested for loop ends? 

 


I've seen some examples with shift registers that are within one loop and I could not successfully transfer that into my block diagram. 

Any help/direction would be greatly appreciated. 
 

Viewing all 66786 articles
Browse latest View live


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