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

Serial Communication with myRio

$
0
0

Hye.Im trying to connect GD02Rev2.0 (driver for the g15 cube servo) with myRio. I have to connect the Rx Tx and Control pin of the driver to the myRio to run the motor. It seems like i have to create serial communication in labview.Can anyone help me on this.thanks.The driver looks like below:


Modern ActiveX Browser Options

$
0
0

Hey all.  So I've always struggled with getting an ActiveX browser to work in my actual programs.  Generally I run the NI provided example and sure enough it works on NI's site, but then I go to use it on the site I want and things break all the time for various reasons.  The most recent issue is that I get script errors, and am unable to render Google's Captcha page.  Here is what I mean:

 

ActiveX Crap Out.png

 

But beyond this I've had other issues with the ActiveX browser.  I have VLC setup to broadcast the current playlist to a URL.  But for this to be turned on VLC requires a password.  So I setup the URL in the form of "http://Smiley Tongueassword@localhost:8081/requests/playlist.xml" This embeds the password "password" and the blank user in the URL.  It is less secure but normal browsers as far as I can tell support it.  But when I go to this URL with the IWebBrowser2 using ActiveX I usually get some kind of not authorized page.  Sometimes a random popup asks my user name and password, at which point I can type it in and click Save, but as soon as I restart LabVIEW it is forgotten.

 

So my question isn't really how do I fix these two situations, and is more.  What other better, more modern browser options are there which support ActiveX?  It appears Edge is dropping ActiveX support by the way.  NXG seems to likely work around this by including a full dedicated browser in the IDE which likely is useful for things like documentation, and WebVIs.

How can I add timer function?

$
0
0

Hi. I have a question.

I made a labview program which can do PID contoll.

But I don`t know how can add timer function.

 

1.When temperature is higher than set point, Timer have to be started.

 

2.After time which I set in timer, PID have to be off

 

3.But temperature is measuring and all temperature which is measured at all process should be plotted in one graph at real time.

 

How can I add this function in my labview?

 

 

Producer Consumer Data Acquisition Multiple Channels

$
0
0

Hello all,

 

I am a student at university working on my senior project and am having some troubles using LabView.

 

I am currently trying to implement a producer consumer format, tdms writing program for multiple analog input channels on my CDaq 9205. Producer loop iterates very quickly and consumer follows writing values to file from queue at slower speed.

 

I have passed values from loops using local variables in the past, many say this is a no-no and I agree. Doing this I have found data dropped when writing to file. This result has led to my attempt at producer consumer data acquisition and logging.

 

The goal is to acquire the analog inputs from my transducers in the producer loop and then send the values to my consumer loop for data writing. This is concurrent with using LabView GUI to visualize transducer outputs through experiment.

 

The biggest issue is the following: I want to scale my data before writing to file. I do not want to log raw voltage. I would like to do as little post processing of data as possible.

 

I would like to acquire raw data from transducers very quickly, 25-50kHz. I would also like to prompt the user to specify how many samples per second they want to write. Max samples per second writing to file ~25ks/s. 

 

I am currently getting the following error at continuous data acquisition speeds larger than 1kHz:

"The application is not able to keep up with the hardware acquisition.

Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem."  

 

I think my use of arrays in the producer loop is filling buffers but I am unaware of how to fix this.

 

Any help and or advice would be greatly appreciated. I have over 40 hours writing this code and searching these forms for like minded programs without any luck.

 

I have attached a vi, front panel is large and messy, I'm sorry. I have cleaned up under the hood to make schematic more readable. 

Error 16 in Application Builder

$
0
0

I get the following error when I try to build an application in Labview 2016 using the Application Builder addon:

 

"Error 16 occurred at CodeSignAPI.lvlib:Get Signing Error String.vi"

 

I know the code signing cert is valid because I've been using it for two years and have just renewed it for the third year.  The only difference I can think of is that this year it came as a ".p12" file instead of ".pfx".  However, I think those file extensions are for the same format.  I have installed the cert in the usual place, and LabView sees it no problem.  It just doesn't think that it's valid or something (as usual, there is no explanation as to what exactly the error means, and searching either NI's site or the Internet has turned up no usable results).  Unchecking the "Apply Digital Signature" box makes it build without error, but I need this to be signed.

SPI data setup

$
0
0

Hello Everyone,

 

I am trying to make an SPI program (connected to DAQMx)  which has 3 function mode (CW, PMCW, and FMCW). In CW and FMCW mode, when I press transmit, the SPI will send 5 words and then stop. In PMCW, when I press transmit, I want the SPI send the words continuously with configuration of bit 13 is 0 in first word, then 1 in second word, over and over. 

I want the function can be changed while i run the VI.

 

Attached my current progress. I have and issue when I change my function from PMCW to the others, the SPI send 5 words but did not stop.

can you help me with this issue?

 

Thanks in advanced

Selecting Feeds in NIPM

$
0
0

Hi All,

 

If I select the "Feed" as Category in NI Package Manager, I am not able to see anything listed though there are feeds added to NIPM. Please let me know why the feeds are not listed or if I have to configure any other settings.

 

Thanks In Advance,

Sree

 

FPGA: Is waveform graph or chart not available in fpga?

$
0
0

I was trying to use waveform graph to display data in my fpga project. The source data type is fxp, however, when I connected the source to the waveform graph, it still shows DBL, which is not supported by fpga. There is no problem for I16 data type.

 

So is it possible to display fxp data array with waveform graph in fpga?

I'm very new to this, and thanks for your reply and patience.

 

 


VPN connection to RT target

$
0
0

Hello

 

Is it possible to directly connect/build and deploy to a remote RT CompactRIO 9063 target using a VPN without having a computer connected to the CRIO on the remote end using following structure?

 

Development computer (local end) -> VPN -> customer network -> Managed switch -> RT CompactRIO

 

Thanks

 

 

Re: Re : how to run an USB-TC?

$
0
0

hi sir,

i do the programe for USB-TC, its run in my computer and reading are shown. when i try to run in my target system, the reading are didn't shown. i install Labview RUN-Time Engine in Target system. In target system i am execute the exe file.

Temperature reading from Keithley 6517B using LabVIEW drivers

$
0
0

Hello there, this is my first post and as the name suggests, I am a rookie when it comes to both LabVIEW and Keithley 6517B so if this is a silly question, please go easy on me.

 

I am trying to get a temperature reading from the 6517B so I have put together this very basic VI using kei6517 drivers downloaded from NI but when I run it, all I get is a voltage reading.

 

In case you're wondering, yes I have attached the K-type thermocouple to the back of the device and yes I have configured the device for temp measurements and I can see both temp and humidity values in the front panel.

 

Any help would be much appreciated.

NI-CAN 17.0 Functions not showing up in Functions Pallette

$
0
0

I am running LabVIEW 2016 and I have installed the NI-CAN 17.0. The CAN functions are not showing up in my functions palette? I have tried to go back and install NI-CAN 16.0, but it won't install now that NI-CAN 17.0 is installed. I don't know what is going on to where these are not being brought in automatically?

2d arrays in xy graph

$
0
0

 Hello all, 

i have analog ( multiple channels - 2d Array ) and counter data ( single channel - 1 d array). I need to plot it on XY graph.  so i used a for loop for auto indexing and plotted on XY graph . is it correct ??

or any other better ways?

I have attached an image of that. Kindly download 

 

note: I have already checked ( only analog - multiple channels -2D array ) on the waveform graph. I am getting output fine. 

Help with identification of CLD-like problem

$
0
0

Hello Everybody,

Sorry if this is slightly off topic but this was the best I could find for my question. I recently encountered a code that is very similar to the available CLD Sample Exams in front panel and block diagram style, commenting and also the folder structure however it is only solution with no template or sample exam pdf. My question is whether anybody else has come across this example? I attached the zip file containing it (in LabVIEW 16) and also screenshot of front panel and block diagram.

Thanks for your help,
Károly

Updating exe for distribuiton

$
0
0

Hello,

I'm trying to update an exe and I'm not sure where I'm going wrong. I have already built and distributed the application to the PXI's. I have updated a file and want to redistribute the new updated exe. They are not connected to a network, so I'm manually updating the PXI's. If anyone could point me in the right direction of where to find any documentation on how to properly do this it would be greatly appreciated. Right now the only way I know how to do is to rebuild the installer and run the installer. I tried to rerun the exe build and just move those files over and nothing even runs when I try to run the exe. It was working on the PXI prior to trying to update the file. 

Thanks in advance.

 

-Russell


LabVIEW RT-Linux GUI and other advice

$
0
0

I have developed with LabVIEW RT in the past where the target was based in VxWorks, or in Phar Lap ETS. These systems were essentially headless self contained 'black boxes' where a client would connect via Ethernet. 

 

I have recently seen a LabVIEW RT-Linux system with some very impressive GUI interfaces that were designed for a touch screen. 

 

I know very little about the LabVIEW RT-Linux platform, but I am very experienced with the LabVIEW environment deployed to a  VxWorks and Phar Lap target. Clearly the RT-Linux target has a lot of advantages.

 

Is there anything that I should know about GUI development for RT-Linux? Does it differ from the standard Windows GUI development? Are there caveats or limitations?

The LabVIEW RT-Linux project that I witness had very unique clean cut GUI for touch screen. Is there a special module for developing complex GUI's for RT-Linux?

 

I've tried searching for online training packages for RT-Linux, but could only find the traditional LabVIEW RT courses that I have already taken years ago.

Could somebody point me to additional resources specific to RT-Linux specifically how it differs to other RT targets. 

Is it possible to develop on a RT-Linux platform, or do you need to develop on a windows system and deploy to the target like the other RT platforms?

This RT-Linux looks like a totally different beast compared to the other RT deployment solutions.

 

Any advice on how to investigate?

 

Thank you!

 

LOGIN in APPLICATION (EXE)

$
0
0

Good afternoon,  

 

I wanted to know if someone could help me with the following:  

 

I have created an executable in labview (Application (EXE)) and I wanted that when this executable is started, I first asked for a username and password, and if the entered data is correct, I passed the main program.  

 

I'm not looking for the way to do that login itself, but rather the way to make it jump just start and if it is correct I pass the program.    

 

Thanks greetings.

Image stored in VI - large filesize

$
0
0

Hi,

 

I am using Labview with the Vision Developement module. In one of my projects I have an Image Display element on the frontpanel. Whenever I open the VI, an old image is shown in the Image Display. I have no idea how it was stored there in the first place. Unfortunately it's a very large image, resulting in my VI being larger than 500MB...

 

Is there a simple way to get rid of the Image?

 

Thanks.

Help Needed! Constant Crashing!

$
0
0

Hello Everyone!

 

Thank you in advance for any help or advice contributed! 

 

Currently we have a program, AMS, that is used to monitor various measurements and data on a marine vessel. 

 

The program has worked great for many years but as of recently has started to crash. 

 

The error reads, " Exception: Access violation (0xC0000005) at EIP=0x078B5595 Version: 1.0.12.0"

 

I will attach the files. 

 

After the error occurs, we restart the program and it works until it inevitable crashes. I have system restored back to a few weeks and problem went away for several weeks, and then returned. 

 

Has any seen this? Know what it is or whats causing it? 

 

I am a novice with LABView and any and all help will be much appreciated. 

 

Let me know if I can provide anything else that can help the community, help me better.

 

Thanks,

NHR

Run a external code in cRIO

$
0
0

To run a code made in C or C++ on Linux Real Time (cRIO 9036), I must do it using shared libraries? Could I do it using other method? If there is other method, please let me know because I have read many documents and it only uses shared libraries, in which case I will need to have access to the Internet or a communication to the device which has the code and the idea  is the cRIO can run that code 

Viewing all 69241 articles
Browse latest View live


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