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

no output

$
0
0

I am not getting any output. There are no errors when I run the vi file . I am trying to do serial communication with a machine to which we have to pass commands and which inturn has to return data, but even when I try any command I am neither getting any output nor byte count at port. The machine which i am trying to communicate has db9 connector, I am using db9 to usb converter cable and trying to communicate with the pc. I am using VISA for serial communication. I also did a loop back test by shorting pin 2 and pin 3 in db9 to usb cable in which i got the output for the given input. It would be very helpful if I get any advice .


error -2558 using Open data storage express vi.

$
0
0

I have the appropriate Tektronix plugin installed and when I use the Open Data Storage Express vi to create new *.WFM file I get error -2558 indicating My system does not have the software installed to support the file type. I am using version 2015 SP1. Anyone else seeing this issue? What am I mising here?

SSL Certification and LabVIEW

$
0
0

So I have just come upon an interesting issue which may cause significant problems unless I can find a reasonable solution.

 

Up until yesterday a number of software programs that are running in a number of remote locations were all running happily accessing a database.  This database is accessed through the HTTPS POST and HTTPCLIENT VIs, and for the past couple of years everything has been running nicely while having the verify server flag true, the database is part of a corporate site that is all properly signed and certified.

 

However, as of yesterday they all decided to stop, from investigating into the server itself it appears that the SSL certificate has rolled over from its previous period. By looking around the LAVA forums I managed to find reference to the problem being an the LabVIEW ca-bundle.crt file being outdated so not properly checking the validity of the new certificate.

 

Now while there is a workaround here that switching the verify server flag from TRUE to FALSE I can make all the programs work again, there remains the significant issue of having to update and rebuild several years worth of programs. So I was hoping for something that I could do outside of LabVIEW to try and resolve the problem, I had considered replacing the ca-bundle.crt but I am not sure of the validity of this idea.

So any ideas are likely to be accepted if they mean I don't have to go back over several versions of LabVIEW.

 

TLDR:

Demo.gif

Can I do anything with this to solve the problem?

File.gif

Save for previous version from 2015 caused problems

$
0
0

Hello all,

 

I did a CLD practice run using the Sprinkler System example. I built it in LabVIEW 2015, and then saved it for previous version to LabVIEW 2014 before posting in the Certification forum for comments. When it was opened by another member using 2014, the Read Delimited Spreadsheet.vi was not found. I can't duplicate the error because I don't have an install of 2014. The original thread is HERE. I have attached both my original 2015 project and the 2014 "Saved for Previous" version. Also attached is a screen shot from the attempt to open the 2014 version. Could this be an issue with the backsave?

 

Thanks to all.

Dan

Digital states - high impedance state detection in FPGA vi level

$
0
0

Hello everyone, I have a question about how does the high impedance or high Z digital state look like in FPGA vi level. What I have is a PCIe 7852R multifunction card with digital IOs that are single-ended TTL.

 

If the digital input to the 7852R is HI or LO, I can detect the HI or LO in the vi. However, I wonder what I would see if the digital input is in high impedance mode? NI white paper says that "This state isn’t a high or low, but rather a floating or high-impedance state. It has the designation Z and is often used as an enable line." So what I would I actually see in the vi and how can I detect this?

 

Thanks for reading. I am looking for help.

 

Best,

 

A

controlling a 5v relay throught usb port

$
0
0

Dear All

 

 

I buy this 

 

http://www.ebay.com/itm/5V-USB-Relay-1-Channel-Programmable-Computer-Control-For-Smart-Home-New-/262337732951?hash=item3d148c2157:g:7acAAOSwoudW6ScT

 

And I thougt that it installs a driver to control it by COM port, but not. Seems that needs the create or write a dll library (I had never done that)

 

In attach is the data with dlls and a excutable to open and close the relay and it works, but I would like to put it working with labview.

 

Can someone help me?

 

 

Best regards

cpalha

where is IVI New Session VI

$
0
0

Running LabVIEW 8.5.1 on Windows 7 32-bit which is stated to be compatible by NI

 

I have a instrument driver VI for an optical spectrum analyzer which has in it the IVI New Session VI

I cannot find the IVI New Session VI in any pallette.

 

What am I missing?

 

This source code was rescued from a Windows XP PC hard drive which crashed.

 

 

 

 

Maths problem, converting change in voltage to change in displacement.

$
0
0

I get an input from an LVDT that ranges from roughly 0 - 5V. The arm travel on the LVDT is around 15.6cm or 156mm. So I've calculated that every time the arm moves 1mm the voltage changes by 0.03205128V. How do I go about the calculations to be able to show it on an indicator. I've tried to use a comparison to start with. So that every time the voltage equals let's say 4.7V, a case structure would increment an indicator by one. A problem here though is the voltage produced by the LVDT has too many decimals so that it never equals 4.7V. How can I change it so that it's limited to one or two decimals?  

 

Essentially what I want to show is that a change in voltage in the LVDT corresponds to a change in displacement of the arm. So a decrease in voltage means an increase in displacement and vice versa. 

 

I have attached my code to show what I'm trying to get at. 

 

 

Thanks for your help.


Using the build table Vi to build a table of a large array ( about 206 columns by 10500 rows

$
0
0
I am trying to use the "build table" VI to generate a table of large 2D array dbl (206 columns by 105000 rows). labview 64-bit but literally hangs. Thought moving from 32-bit to 64 would sort his out? Probes show that the 2D array is ready just waiting for the table to get built. Any work arounds?

How does the NI USRP-2920 satisfy Nyquist?

$
0
0

Acording to http://www.ni.com/white-paper/13881/en/, "The bandwidth and sampling rate are related as an I/Q rate of 200 kS/s has a bandwidth of approximately 200 kHz."

 

In all of the examples included for the NI USRP-2920, the I/Q rate on both the RX and TX match. From my understanding to satisfy Nyquist, the sampling frequency should be greater than 2 * [carrier frequency + 1/2(bandwidth)]. I'm still learning and may have missed something, but here are the questions I have:

 

1) How does specifiying only the I/Q rate allow sucessful RX and TX? In what senario would you want different I/Q rates fro the TX and RX?

2) What defines the sampling frequency? Does LabVIEW automaticly pick a sampling frequency based on the supplied carrier frequency and I/Q rate?''

 

Any input would be greatly appreciated, thanks for reading

-Pat

How to select a record from a table to manipulate the data in a database?

$
0
0

Hello Community,

 

Using 32-bit Labview 2015.

 

I created a user interface that runs a query and fetches my table from a sql database.

I want to be able to manage one record at a time by selecting the record from my table and then manipulating the data as needed.

 

Everytime the user runs a query I want the first record in the table to be selected/highlighted.

I want an indicator showing which record is currently active.

Then by a button click, to be able to scroll through the actively selected record.

Once I have the selected record, I want a way to write a query to edit or delete the record.

 

Attached is a picture of my query to select all from my table and plugging the data into my table(results).

Attached is a picture of my table showing the records from my sql database.

 

What is the best way to go about selecting a record from a table and editing the data with a query?

 

Any help would be greatly appreciated.

 

Thank you 

linear discriminant analysis

$
0
0

Hello everyone!

I am new in Labview. I would like to implement a linear discriminant analysis.I wanted to know if anyone can pass me an example of any kind that makes me understand how to get started. Thanks so much.

Francesca 

create attribute NS

$
0
0

How do I add namespace to an xml? I used "Create Attribute NS", but it does not show in the xml. Thanks Tony

Bronkhorst F201c mass flow controller using LabJack U3

$
0
0

I want to create a Lab View program to control a bronkhorst mass flow controller. The communication is with Labjack U3. I need help creating the program. Can anyone please help??

How to measure digital output of linear actuator on USB 6009?

$
0
0

Hi,

 

I am a new Labview user and need help with measuring a digital input signal.

 

I have a Bimba Original Line Electric actuator with an integrated DC motor with encoder, drive, and controller. The drive has a programmable digital output which I have set as a tachometer output that emits 100 square wave pulses per revolution of the motor. I have set the motor to make a total of 56 rev over 22 sec. I want to measure the real-time motor rpm on labview and synchronize it with a few other analog input signals. I wired the actuator to the USB-6009 as shown below.

 

wiring schematic.png

 

I opened the USB-6009 Digital I/O test panel and set all the port 0 lines as inputs. However, when I click start and run the actuator, the p0.0 led doesn't blink, as shown below.

 

test panel.png

 

Shouldn't the led blink in response to the motor revolutions?

 

I essentially want to collect the pulse signals from the drive and convert them to rpm on labview.


restart.vi error the operation exceeded its time limit

$
0
0

Hello,

 

I am using the Replication and Deployment Utilitiy.

 

Recently I got an error from the utility, when I tried to deploy an image to a cRIO 9023 controller.

I don't know what this error is and how to fix it. I got the open source Labview Code for the RAD Utility aand tried to debug and fix it myself but my LabView skills are quite poor.

But I could find the location of the error.

Can you please help me to fix this problem?

 

Here is my analysis:

 

The VI - The error occurse in the restart.vi (from the ni syscfg)(its in the bottom left area)

Picture RAD_Deploy Image Wrapper VI.png

 

Error Log from the RAD:

Model    cRIO-9023    

Model Code    73D2    

Serial Number   016219C9     

MAC Address    00:80:2F:13:1F:41

IP Address    192.168.130.180    

Host Name    AIS9023    

App Image Name    test    

App Image Version    1.0.2    

Time    0%    

Result     Error -2147220323 at nisyscfg.lvlib:Restart.vi:1680001<APPEND>

(complete call path: nisyscfg.lvlib:Restart.vi:1680001
rad_Deploy Image Wrapper.vi:4490002)

Description of the error code -2147220323 from the Lab View help: The operation exceeded its time limit.

 

TargetSettings In (the variable out of which the session is created for the restart.vi, if I'm not mistaken)

Target Settings in.png

 

Session (the session variable for the restart.vi)

Session Variable.png

 

 

Ambiguity function

Conversion Required from Labview 2014 to Labview 2012

$
0
0

Kindly anyone help me to ge the attached file converted in Labview 2012 version. Currently It is in Labview 2014. 

is there a utility to convert vi files to text and back agin

$
0
0

I work somewhere you cant transfer binary files from one machine to another, only text files. Is there a utility somewhere that will convert the native binary vi file to text (like xml) or something and back again? Preferrably in perl or python or even c source code.

Thanks

Visual Studio LVUserEvent Message Cluster

$
0
0

Hi, It is possible to use a queue to exchange messages between a .dll and LabVIEW? Yes. Check image.

 

It is posilbe that the data contained in a cluster and are variant? You can convert a data to variant in .dll and convert a variant data to data labview?

 

And I tried to implement a function with the following code, but I err when I run LabVIEW.

 

#pragma pack (push,1)
typedef struct
{
 LStrHandle newStringHandle;
 LvVariant* Data;
} MessageCluster;
#pragma pack(pop)

 

...

 

MessageCluster Message;

 

...

 

PostLVUserEvent(*rwer, (void*)&Message);

 

Thank you very much.

Viewing all 67042 articles
Browse latest View live