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

reading a text file into labview to interact with myrio

$
0
0

hello all so im sending data from my app that has push buttons to a text file and i want labview to read this text file. The text file will be in the following format.

 

08

0c

03........ etc.

 

 

and so on in hex, each number depends on which pushbutton are pressed there are 4 pushbutton so 16 different possibilites. When a pushbutton is pressed  it will correspond to the leds on the myrio so if i get the hex value 07 then led 0,1,2 will turn om, 08 hex led3 will turn on and so on. I have done the following to read the text file and use a for loop to read each line into a array. now i want to covert the hex value to binary format for the leds and also not sure which vis can read each number at a time correspond it the leds.

 

ble_data.png

 


Project file to bitfile corruption

$
0
0

I have a "good" bitfile that when deployed to the target allows us to meet our system requirements in position error and settling time.  Unfortunately there are other known issues with this build that need to be fixed before we can hand over the system.  The problem I have run into however is that every attempt to rebuild this project, even without any changes made to the environment or VI's, results in a build that has drastically higher position error.  At this point I also question whether the project that was used to generate the original "good" build is actually correct, or if a different project had been used; several duplicate projects were created at around the same date as the "good" build so it is hard to know.  In any event attempts to rebuild any of those files without changes still does not get us the original performance.  

 

Backups were created of the drive that housed these files, but unfortunately these were manually done and did not occur near to the time of the "good" build (6 months prior, 6 months after).  To my knowledge there have been no updates to LabView that were installed, in part because we had been having so many issues that I'm sure they didn't want to create other unknowns during development.  So we are still running LabView 2014 (version 14.0f1), and are building on NI 9155 chassis, I can list the modules installed as well if that would be of value.

 

Is there any way that I can determine the project file from the bitfile?  Are there environmental things that could have changed, and if so how can I check?  Any other thoughts?  We're really in a jam on this one, and I'd appreciate any ideas and assistance.

 

Ben

Queue/Dequeue Data from a subvi that has a for loop inside it

$
0
0

I have a main Vi that has the consumer loop to show the continious measurement on front panel, the producer loop is burried into a subvie that has its own several Subvis within. the SubVi has a for loop with 5 iteration. the Queue/Dequeue functions perfect if I remove the for loop but the minute I add the for loop it gives an error

ENET/100 visa session hang?

$
0
0

Labview Development 2009

NI 488.2 version 3.1.2

Windows XP and 7

 

Hello,

I have been troubleshooting this annoyance for several weeks.  I have a Labview application that allows users to change VISA sessions to connect to GPIB instruments at 5 identical ENET/100 boxes at remote locations worldwide.  Works great except at one site, where connections may be made/ended randomly for minutes, hours, even days until it mysteriously hangs at the VISA Open VI.  No error messages, no warning, no rhyme or reason.  Setup is identical at all 5 locations, but only this one has a issue. Occasionally I will see a "Resetting VI: (name)" message upon termination, but not always.  I am closing VISA sessions whenever a session connection change is made. 

 

To reduce complexity for troubleshooting I created a small VI (see partial snippet) that uses the same VISA session list, opens the selection, gets an ID from the attached GPIB instrument, then closes the session.  Same issue at this one site.  If I exit Labview completely, then restart, I can again successfully use the VISA resource per above.  Occasionally an "Insufficient system resources...etc" error message will be generated.  Also, and this is what is killing me, I can still access the site's GPIB instrument through MAX even though the VISA session is hung.

 

I've tried searching for solutions on NI and googling without success.  Anyone have a clue?

USB8452 interface with LED Driver

$
0
0

Is it the write vi of usb845x need to use the array data so that can proceed next? Where can I look an example vi for control the intensity of light? Thank you.

Dll running slow in project, but not in vi

$
0
0

Hi

 

I have a problem with PCL 32bit dll, that I'm using in LabVIEW 2014 application.

When I'm using the same dll in a different application, it takes couple ms to execute, but when run in bigger one, it needs about 150ms... I'm running it in the loop of ~2000 loops, so I really need to make it faster (I cannot set parallel execution to this one).

 

I've set dll to run in any thread, I've also sprecified error checking to Disabled and the vi execution to High Priority.

During the run LabVIEW is using about 1,5 GB memory and full CPU utilisation of one of the cores.

 

What seems to be the problem? How to find out what is causing it?

Contunies Triggered DAQ and Logging at 500KHZ using PCIe-6351 Card

$
0
0

I would like to acquire signal from two analog voltage channel during the 10 micro second camera image integration time window as seen in the attachment.

I have a common digital signal connected both to the 6351 card and to a camera to be used as a trigger signal to achieve continues synchronous DAQ in each time camera captures an image as seen in my attachment.

According to datasheet, the maximum sampling rate of the PCI6351 card is 1MS/s(aggregate)so it is my understanding that the maximum rate we can sample is 500KHz using both channels with internal clock. If so, during the 10 us camera integration time LabVIEW will be collecting around 5 samples per trigger in theory.

Data sheet also states the time between multiplexed measurements is dependent on the settling time that is dependent on the voltage range that is around 5 us that I am fine with as I am still within the time window of interest.

Each iteration during my continues finite element acqusition per trigger benchmarking that I did using simulated PCI6351 took around 20 ms and could not keep up with the desired sample rate.As part of the requirement, application should not rely on software and windows timing that it takes to operate DAQ-MX operations, so no user events allowed.


I think the card should be able to buffer the measurements after the hardware trigger and those can then be uploaded to the computer at a more relaxed rate during continues acqusiton. Right?

Could I use PCI-6351 card`s 4095 elements internal buffer for a continuous logging and sampling using internal clock that would be triggered per camera capture signal? 

 

Any sample code or feedback is appreciated!

Thanks

How to Ensure the Right Version of Addon is Being Used?

$
0
0

Hi all,

 

Recently built a stand alone application using RGT on a computer using office 2010 and saw no issues. On the target machine, using a more recent version of office 2013, I experienced issues.  I note the office versions and RGT versions because there could be compatibility issues if using RGT 2011 with office 2013.  Now i built the application in LV2015 and what i had hoped was RGT2015, but I also have installed on my computer RGT2011 and LV 2011. 

 

My question is how can I authenticate that i am using RGT2015 in my VI?

 

Thanks for any help.


Creating login screen in labview

$
0
0

Hi guys, i have a problem with my vi. Let me explain it. I am trying to create a login screen. It takes user name and password. Also, i create a text file, i write valid user names and passwords in to the text file. When i press confirm button (after i enter the user name and password in to the login screen), pogram matches the user name and password, if they are true then led light open. It works but when i try to press confirm button more than 2 times, it fails. Actually not give an error but confirm button blocked so, i can not make trial more than 2. What are the possible reasons for that?

Excel sheet operations in labview

$
0
0

Hi guys, i am trying to add first and second column of an excel sheet and i want to write it to the third column of the same sheet. Anyway, i managed to do it, it worked. However, it gives error now. What are the possible reasons for that?

Can I make color cutaway of model?

$
0
0

Hi guys!

I want to make part of 3D Model that is being cliped to appear different color, can you help me out, please.

Here is how it should look like and my current VI, which clips the model (I've tried to do this by seting material but it didn't work).

LabVIEW webserver on iphone

$
0
0

Is it possible, without using data dashboard, to view and/or control a LabVIEW front panel on an iPhone using LabVIEW Web Server?

Updating sbRIO software

$
0
0

I upgraded from LabVIEW 2015 to LabVIEW 2016. I have been working with my sbRIO-9636 and am looking to do some real time programming. The problem is, I have the software from 2015 installed on the system, so when I try to run it in LabVIEW 2016, I get an error. I was going to update the software in MAX, but I can't get to the add/remove software portion to actually do this. I am now getting inconsistent IP settings (This is most likely my issue). I believe I have all of the necessary software to be able to reinstall software on my RIO, but can't. I am also able to ping the RIO's IP address in command prompt without a problem. I am not sure where to go from here. I have set up a static IP on my laptop and set the RIO's IP to static, yet nothing. 

GetTypedefPath.vi

$
0
0

Hello,

 

I found this vi in hidden gens, it would be quite usefulin my application. When testing I always get an error... Any ideas why?

 

Bez tytułu.png

 

Deteccion de Trigger

$
0
0

Hola, tengo el siguiente problema:

 

Tengo un multímetro Agilent que se trigguea de forma externa. Mi problema es el siguiente, a partir de los drivers de agilent, no sé cómo podría detectar cuándo el multímetro de trigguea, es decir necesito una salida verdadero o falso a partir de si el multímetro se trigguea o no.

 

Gracias.

Saludos.


Modify LabVIEW code while it is running

$
0
0

Hi everyone! I'm quite new in LabVIEW and I have a question.

If I modify a code while it is running will there be any problems? This code is a measurement automation code and I really don't want to screw the measurements up.

Thank You,

 

Edit 1: the code is in a shared hard drive. Assume that the code is running on a computer and I modify the exactly same code from another computer, will there be troubles?

 

Diego

e3632a dc power supply

$
0
0

I am new to labview and need. I have pinged my dc pwr supply, so I know that the software is communicating with equipment. Now I need a small block diagram to see if the supply will turn on automatically.

LabVIEW error 44 and corrupting programs

$
0
0

I have some fairly complex code that I have written that does Bit Error Rate testing using multiple launches of asyncronous writers and readers, and communicaitons through queues.  It has been running on multiple machines for months and I built a new machine, installed LV2013 with all the updates, just like the other machines and now it is corrupting VI files.  I am running from a shared drive on our corporate network, just as in the previous months.  I can open a file on the remote server and run it.  I make a minor edit and resave.  This may work multiple times and then all of the sudden I get a message that I don't have permissions to save an intermediate file.  Even though it says it hasn't saved the file, if I exit without saving, it corrupts the file and it is no longer accessable as a vi.  It makes a comment about the help file.  I am not in front of the machine at the moment, but I will post up screen shots of the dialog boxes. 

 

I can take a copy of the original vi and run/modify it all day long on other machines with no problems.  From what I can see, along with my IT department, the machines have the exact same permissions and are on the same subnet.

 

What is wierd is that I can modify and save it one or more times, and then it craps out.

 

I am going to reinstall LV2013 for the 5th time, this time from the disks instead of from a National's server.

 

Anybody have any ideas?  At first I thought the file/path was too long, but I stripped it back and no change.  Where does LV2013 store intermediate/working files?

Parameterized query output not working

$
0
0

I need to read and write data out of an Oracle database and am finally starting to see some success.  This forum post was my first attempt at connecting to Oracle. https://forums.ni.com/t5/LabVIEW/Performing-a-database-call/td-p/3332420 

 

The next step is to actually get Labview to do some of the tasks that need to be performed.  One of our IT guys wrote another procedure in Oracle that I am trying to call (dgeitz.get_catalog).  The purpose of this VI is to find out what the product number is if I know a serial number.  This procedure has two variables that are passed between Oracle and Labview.  The first is the Serial number (GC_SERIALNO).  The second value is the product number (CG_CATALOG_NO) and should be sent back from Oracle.

 

The question is, how do I get the value back out of Oracle?

 

Here is how the Oracle script works:

1) Labview sends a serial number to Oracle (CG_SERIALNO)

2) Oracle sends email to a user as a test that the serial number was received.  This is for testing purposes only.

3) Oracle retrieves the product number (CG_CATALOG_NO)

4) Oracle sends email to a user as a test that the product number was retrieved.  This is for testing purposes only.

5) Oracle procedure ends when it sends the parameter back to Labview

 

When I run the attached VI, I can send serial number values to Oracle.  If I send an invalid serial number I get no errors from Oracle, however if I send a valid serial number then I get the following error. 

sql error.JPG

Under both conditions, I get no output of the product number (CG_CATALOG_NO), so the VI fails to perform its task either way.  The Oracle procedure was tested by running the script manually in an Oracle command prompt like interface (please excuse my ignorance) and it returned the CG_CATALOG_NO value every time.

 

The most likely explanation for the error above is that when I send an invalid serial number, then the Oracle script breaks and does not complete as it has no way of dealing with an error condition.  Nothing is communicated to Labview and Labview appears to be happy.  When I send a valid serial number, then something is returned to Labview and it has no idea what to do with that information.  

 

At this point, I am very stuck and I cannot find any examples on how to deal with this situation.  I am including my VI and the SQL statement.  Any help is very much appreciated.

 

Other bits of information that may (or may not) be helpful:

Labview 2015

Oracle 11g

 

Writing multiple CAN msgs based on timings

$
0
0

Hello,

          My requirement is to send multiple CAN msgs on the bus. The situation is that i need to have a queue structure wherein based on my sequence ill update the CAN msg that has to be sent either periodic or once. If periodic the msg will be sent once in x milliseconds, x is the cycle of the message. If its an event message it will be sent only once.  Also i need to have a timer which will automatically add the periodic message in the queue once in x millisec. How can i implement this in Labview? What are all the things that i shouldnt do. Any suggestions are welcome.

 

Regards

Jay

Viewing all 69090 articles
Browse latest View live


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