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

Reverse engineering a VI

$
0
0

Hello,

 

   Please check out the attached VI. I've inherited code from a previous engineer and I'm trying to wrap my head around how this particular VI works. I appreciate it!

 

 

Jay

 

 


send signal to Relay

$
0
0

Hello Everyone, 

 

I have been working on a labview program that will essentially control a set of motor in a machine. I currently have a simulation of what the final product will look like(attatched below) where the cube represents the different motors and the buttons control the cube. IN order to actually get this to work I need to connect my program to a set of relays that will send the signal to the motor driver to move a certain motor. I am new to LabView and I am having trouble figuring out how to send a signal to my relay. I want each button to send a signal to a specific relay. There should be three relays that are associated with the motor pair I want to use and then once that relay has been switched on a second signal should go to another relay indicating the direction. Sorry if my description is confusing but if anyone has any insight that would be greatly appreciated!

 

The relay I am using:

https://numato.com/product/16-channel-usb-relay-module

 

 

Labview Community Edition Download error

$
0
0

When attempting to download the community edition of Labview I repeatedly get the message the download was not successful I have tried over several days using different ISP's and different computers. Any suggestions?

Open channel voltage jumps from + to - 10 Volts

$
0
0

Setup:

cDAQ NI-9189

NI AO 9264

NI AI 9209

NI DI/DO 9375

 

Project:

Design a VI for a Dynomometer that shows raw voltage and calibrated values live for RPM, Torque, Thrust, Cylinder Head Temps, and Fuel Flowrate of an Engine. Save this data to a .csv file for later analysis.

 

Problem:

Something has caused the voltages of the cDAQ to jump randomly between +10 and -10V. This isn't happening on the USB DAQ we are using and didn't occur before a few weeks ago. Reverting to an old version of the VI didn't fix it, but nothing has changed with the setup.

 

Explanation:

As shown in the attached image, in which the top image shows an unconnected RSE channel, the second image shows an unconnected Differential channel, and the third image shows what happens to a connected channel regardless of the setting used. I apologize for the messy state of the VI, due to the functionality we need and our relatively limited experience with LabView it isn't pretty, but this was the easier way to make it. If there is any advice that could be offered to fix this issue it would be greatly appreciated.

 

 

Edit: Since I use Labview 2020 I added a 2015 LabView Version as well.

Sending commands to RSPD 3303X-E power supply

$
0
0

Hi All, 

 

I have a RSPD 3303X-E power supply that I would like to control through labview. I keep getting an error message as follows: Error-1073807343 occured at VISA Open in file-name.vi

 

Possible reason(s):

VISA: (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

 

I am able to send the ID query command using NI MAX but cannot achieve the same in LabVIEW using the NI-VISA library.

 

I have included a copy of the file for your reference. I will be grateful if you can help me. Perhaps can you provide LabVIEW examples for sending commands to RSPD 3303X-E.

 

Thank you in advance.

 

 

What causes this error "The requested action is invalid while onboard memory is disabled"?

$
0
0

I am in the process of enabling continuous peer-to-peer streaming between the PXIe-5122 Oscilloscope and the PXIe-7846R FPGA module. However, I am receiving an error stating "The requested action is invalid while onboard memory is disabled." after the "niScope Fetch Binary 16" VI is executed in the while loop. I could not find any reference to this error online. Does anyone know why the memory might be disabled at this point in the program? This error did not occur before I began adding the P2P functionality (when I just at the waveform generator and oscilloscope programmed in the VI). Attached is a screenshot of the Host VI and the LabVIEW Project.

how to make dll

$
0
0

hi all. in my attachment has 2 vis. both 2 i've made dll. why only the numerical vi can be called and succeed.the vi has array can not be called succeed.  Any help would be appreciated.

 

VISA Code to read conductivity with an eDAQ EPU357 Isopod - error -1073807194

$
0
0

I'm trying to develop some Labview 2019 code to read and log conductivity with an eDAQ EPU357 probe and one of their Isopods, which connects to the PC with a USB port.  The code sends a text string as a command to the device which then returns a text string result.  They have sample code available but claim to have never tested the code.  I've simplified the code a bit and am trying to use it to collect data about once per second.  I have one VI that just initializes the USB port for baud rate, etc which is uploaded below.  When I attempt to run that I get this error message:

 

"Error opening resource:
ASRL3::INSTR

VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it."

 

Can someone suggest a fix or something for me to check out?

 

I've run TeraTerm with the device and get the expected results.  I've closed down TeraTerm and used the VISA Clear coomand to (presumably) reset the USB port before running the LabView port initialization VI that gives me the above error message.

 

I used MAX to determine the port address (COM3) and have tried to open a VISA test panel but get the same error message:

 

"

Error opening resource:
ASRL3::INSTR

VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it."

 

So far as I can tell nothing else is trying to use the port when I get the errors with my Initialize routine or attempt to run the VISA test panel.

 

 


Simple C code scripting environment in LabVIEW

$
0
0

Hello, 

 

I'd like to create a simple C code scripting control in GUI and convert those text to LabVIEW code.

I have been thinking how to make a most effective structure for that but is not easy to design.

So, kindly ask is there any idea or experience about this from you globally?

Users want to typing some conditions and logic based on C style text scripting.

 

Thanks in advance!!

 

Best Regards,

Loop 2 is not responding using the Events also the Loop 1

$
0
0

I am working on a project to log data on 100 KS speed. I have made here demo code. when I am using the events in Loop 2 this is not executing also stream of Loop 1 not executing which is controlled by a local variable of indicator "Boolean" from Loop 2, I am using QUEUE also the Channel Writer for data stream. This is not running.

 

Please suggest what is problem . 

 

Pankaj

ODBC database renewed, Labview doesn't recognize it

$
0
0

Hi.

 

For a long time ODBC access to a MySQL database worked fine with my LabView-VI. Recently I changed the database/catalog. (Not the ODBC-connection name.) The old one named 'mand15', the new one is now 'mand17'. The old one doesn't exists any more.

 

When I now try to access the database, LabView always tries to connect to the old one (mand15) instead of the new one (mand17). See the error message from LabView. This sounds resonable, but in my configuration, it was not necessary to point to a specific database I like to use. I cannot find a place where I ever entered the string "mand15". I only specified the ODBC-connection name. In my case "sage".

Where does LabView get the database name from?

Another question: Can I specify the database when I use the DB*.VIs?

 

Thank you for your attention and best wishes.

Tukan_900

 

 

PS: I tried to run the VI on several machines and different LabView Version with no success.

How to Read Fuel Dispenser data in LabVIEW

$
0
0

Hello to every one..

i want to make fuel management system for vehicle. i want to read fuel dispenser data ( amount of fuel filled any vehicle) in LabVIEW.

is it possible to connect fuel dispenser with LabVIEW?

If any one have idea please suggest is it possible or not?

Thanks in Advance .

 

Asif 

为什么找不到VISA设备?

Output chopped signal from thermopile sensor and chopper squarewave.

$
0
0

Hello everone,

 

I am using NI uSB-9162 for data acquistion from my thermopile sensor which is placed next to a optical chopper. I am using two channels in the NI-USB, one is the acquistion of data from thermopile sensor and other is the signal of optical chopper (Amplitude 5V).

I am showing both of these signal on XY graph. What I want to show on graph is when the signal from chopper gets to an amplitude of 2.5 V the data acquistion of output signal from the thermopile starts. 

Another thing that I want to know is how can I know the time delay between these two signals.

Thank you ! 

Unable to open LabVIEW 7.1 application (.exe) file in LV 2018

$
0
0

Hi,


I am given a very old LV application file and am trying to open it in my LV 2018. When I try to open this file, I get an error message saying that I will need a LV run-time 7.1 installed to open this.

I understand that this is extremely outdated and nowhere to be found. Therefore, I was wondering if theres any workaround this?

Many thanks,


Access Scope of Library

$
0
0

Is there a reason why I can't define the access scope of a library until a place it within a virtual folder? All I want to do is make all these libraries private just as they are now, but instead I either have to put them into a virtual folder (which I don't want to do because I'm particular about my file structure) or make each of the individual members of the library private (which could get annoying if any one of these ever get very large).

FireFist-Redhawk_0-1597752984479.png

 

Strange behavior of Multi column List box Background Color based on User logged in

$
0
0

I've come across a strange issue which I'm wondering if anyone else has seen before.  I have a built application which reads data from a database, and displays a list of jobs to the shop floor.  The jobs have a due date, so it is a simple matter to determine which are late.  I display the list of jobs in a multicolumn listbox, and change the background color of any overdue dates to pink from default. I built the application and deployed it to a target laptop PC on the shop floor. The program works perfectly and has run for weeks without issue (i.e. the correct cells are colored and the rest reset to the default) when the PC is logged in as me.  

 

However, when windows does an update, the PC is automatically logged out, and I then have to login again.  OK, you say, log in as a generic login that anyone can have access to.  However, here is my issue:

 

The program runs perfectly when logged in as a different user EXCEPT the background color for the overdue dates are ALL colored pink - no selectivity.  I've tried with two different users, one with admin privileges, but so far the only login which works is mine.

 

Any thoughts before I throw the PC out?

Secondary Project Provider for lvclass to make custom menus

$
0
0

I am trying to make a custom menu item when a user right-clicks on a lvclass in the labview project.  The goal is to make it so that a developer could select a custom member template.  I'm pretty sure it can be done by creating a Secondary Project Provider.  I putz'd around with the documentation/examples and they did the job, but I was hoping someone might have an example of what I am trying to do so that I don't waste a ton of time on deadends.  Thanks.

TDMS File Error

$
0
0

Hey Guys,

 

I just started with LabVIEW. I need to acquire data from different temp. sensors and write them into a tdms file. I already read that i should not use express VI's to get a better understanding of LabVIEW. So i tried without.

 

Here is a Picture of my Code and the error that appears. I searched the internet but all the solutions for this code didn't apply for me.

 

Is somebody able to help?

 

Thank you and please dont destroy me, as is sad i'm new to this stuff 😉

 

Lucas

 

 

Standard Service Program for CompactDAQ Systems

$
0
0

Hello ,

 

I have an end user ask for pricing for 

Standard Service Program for CompactDAQ Systems--Two additional years of extended warranty

SRV-CD5963197

Viewing all 69271 articles
Browse latest View live


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