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

Interface Arduino to myRIO-1900

$
0
0

The aim for my project is to interface Arduino UNO R3 with a myRIO through SPI. Need help on how to implement it. The RIO will receive a CAN data through Startom X-CAN Module and decode the data. 

The receiving CAN data to RIO is working properly (Currently using the example VI for continuous reading : pic 2, 3 and 4). I want to pass this decoded data or even the same received CAN Data to a Arduino UNO via SPI communication. Can someone help me out or point me in the correct direction...

I am using,

LabVIEW 2017 myRIO Bundle

The packages for arduino installed (in attachments : pic1)


Want to get continuous data in labview through Serial communication via RS232.

$
0
0

We actually want to get continuous data from micro-controller 89C51 in labview through serial communication via RS232.

 

But in labview we are not getting continuous data from read buffer.

It is first reading data but then untill the next data it is not giving any output. 

kindly check the below video.

 

Please help in this regard. 

 

Network stream error -314220 endpoind destroyed after few hours of tests

$
0
0

Hello

I use network stream to send DATA( 50channels ) from PXI  to PC, the communication is OK but after few hours (5 - 10) of test i have this error in PXI

 Error -314220 occurred at Write Single Element to Stream in RT_PAS_STREAM_Loop.vi:3130001->RT_PAS_Dyn_P0.vi -  - Possible reason(s): - LabVIEW:  The remote endpoint has been destroyed.

 

so if anyone has a suggestion. I would be glad to hear it

thinks

 

 

 

The structure of binary waveform file saved via OWON Oscilloscope PC Suite

$
0
0

I am using OWON TDS8204 oscilloscope together with software Oscilloscope PC Suite for TDS series that I got from the official site.

 

This software allows to automatically save the current waveform in binformat. The problem arises when I try to parse the resulting file.

Through tries and errors I have realised that data (i.e. points of the waveform) usually (but not always) starts with 279th bit and is 8-bit integer. But values of amplitudes are different from the real values (or those that I get if I save the waveform in csv or txt format): they seem being multiplied by a factor of 2.5 . But I cannot be absolutely sure about this. More over, I suspect that before the data (i.e. the first 278 bits) there is some setup info which is very useful and sometimes is necessary information.

 

I would appreciate any help with my problem. Examples of saved forms are applied. I cannot attach bin file for some reason.

 

Thanks in advance.

 

Unable to Connect NI OPC Server to PLC Sim

$
0
0

Hi,

I am trying to Connect LabVIEW  to PLC sim via NI OPC server. 

Please go through the Attachment, as I was updating RF OFF variable through the RF OFF Control in LabVIEW. Value of RF OFF get Updated in OPC Quick Client. but i didn't get updated in S7-PLCSIM1 (DB101.DBX0.1).

You can check the Device Properties of NI OPC Servers in attachment.. It is in Simulate Device mode.

Please give any suggestion for communicating LabVIEW to PLC Sim Via NI OPC Server. 

Thanks.

 

NI OPC to PLC Sim_RF OFF(Variable) ONNI OPC to PLC Sim_RF OFF(Variable) ONNI OPC to PLC Sim_RF OFF(Variable) OFFNI OPC to PLC Sim_RF OFF(Variable) OFF

Re: Reading a PWM and determining pulse width using a digital input pin on a NI 9425 DAQ

$
0
0

Hi,
Have you been able to do it? I'm turning on a led with a Duty cycle of 70% and I'm also trying to sense this Duty cycle via DI.
Bu it seems not to work :/ .
Any idea how to do it

Transistor npn characteristic curve labview

$
0
0

Hello, we want to represent the characteristic curve of a npn transistor.
When making the diagram, the graph does not represent what it should, it gives us the following error: 

updating the value from call library function

$
0
0

Hi everyone,

I am facing a problem configuring a CLF in Labview 2015-64.

I have a dll which is written in C++ (code is available) and need to be called in Labview for indication purposes. The dll should be called once and I need to keep reading the result as it is being updated.

 

Hier is a sample code in C++, and the goal is to read the sum pointer in LV as it is being updated in dll: (correct me please if the C++ code should be changed!). dll is also here attached.

__declspec(dllexport) void test_sum(int iteration, int waitTime, int *sum)
{
	for (int i = 0; i < iteration; i++) {
		*sum = i + 1;
		Sleep(waitTime); //wait in ms
	}
}

Here is the LV code I have made, it does not crash but just gives me only the last value (here 20). But I expect to copy the memory from the pointer every 2ms in the while loop and showing me the values from 0 to 20! 

dll_Call.JPG

 

 

Any help or hint is greatly appreciated.

 

 


Led lights up if array clicked on.

$
0
0

The code can determine what array index is being clicked on.

How can I make the Led to also light up, and all other leds go out?

 

I need your Feedback for a VI

$
0
0

Hello everyone,

 

Resume: Please review the VI's (2 of them) and give me your feedback.

 

Explanation: The purpose of these VI's is to give Format to a Text. I'm working with Teststand and if an error happens it must be written into a File. I tried my best to make it readable and to documen it. Iwould higly appreciate any comment on this VI's. Thank you.

 

The File must be something like this

 Text Example.PNG

The VI's work very fine, but i'm curious of it's the correct way to do it or if my code is actually redundant and bad done. I'm curious too of how would be your own logic to do such a programm.

 

ErrorLogger.pngparagraph_format.png

 

This last VI just writes the text into a .txt file and then reads the text from it, just to clean the format and avoid problems.

FormatCleaning.png

How to add header to spreadsheet?

$
0
0

I have a spreasheet file, 9 columns of integer x multiple rows. I would like to add a header to the top, Sample #, Max, Min, 1 sec, 2 sec....... Thank you.

data file.PNG

Problem building exe

$
0
0

Hi!

 

I have two projects, for one, I built an exe and it is running great. In the second project, in one of the several Vi's that I have, I call in the code the exe I had created before and if I run the program everything is fine. Then, I built an exe for my second project (the one that includes my first exe), and the problem comes when I run it, all looks good until I reach that part of the program that calls the first exe, it just doesn't load it.

 

I hope you understand what I mean.Here is how I call my first exe of my first project.Here is how I call my first exe of my first project.

 

lecture fichier excel avec labview sans utiliser active X

$
0
0

Bonjour,

 

J'ai besoin de lire un fichier excel mais il est sous format drive avec Labview, car mon application après va être utilisée sur un PC sans Microsoft Excel. Donc je dois pas passer par ActiveX. Il y a t-il un moyen, une fonction pour parcourir le fichier drive et avoir en sortie un tableau 2D de chaines, pour  que je puisse après faire le traitement de données nécessaire sur ce tableau de chaines ?

Ci joint la solution que j'ai trouvée mais ça n'a pas marché et j'ai pas trouvé comment m'en sortir des erreurs.

Je vous remercie par avance pour votre aide.

 

Setup custom unit

$
0
0

Hi ALL,

 

I working on reading flow from my meter. It all has been wired up.

 

I base on Labview example. As I want to measure the flow through my meter and not the position of the gear wheels inside it, I try using the 'CI Linear Encoder' instance of 'DAQmx Create Virtual Channel' instead of the 'CI Angular Encoder' one.

I then wired the 'volume per pulse' value (2ml in my case)  to this VI as 'distance per pulse'. My problem is now to setup corrent unit (ml) via the 'custom scale name' connector.

 

Is anyone could help me out.

 

Regards,

gregorian7

Driver for Waters 1515 HPLC Pump

$
0
0

Hi All,

 

Has anyone written a driver (or VI) to control a Waters 1515 HPLC pump?  I'm trying to take the official software that controls it (Breeze) out of the equation because it doesn't support Windows 10, and the price of the Windows 7 version is thousands of dollars.  Any help would be appreciated.

 

Thanks!

 

Andrew


Syncing Boolean with Containers

$
0
0

In the front panel, I have two tab control containers with different charts inside it. I also have a boolean push button that satisfies the condition for the case selector on the block diagram, which generates an output onto one of the charts in the front panel. I would like to avoid having the user to manually switch tabs on the front panel every time they change the boolean push button. How do I sync the push button so that it will change to the corresponding tab control container on the front panel?

 

Controlling a SRI 8610c Gas Chromatograph

$
0
0

Hi All,

 

We have an old (early 90s) gas chromatograph made by SRI.  The software for it, PeakSimple, works but not too well.  I want to replace it with LabVIEW.  Has anyone figured out how to talk to the 8610c using serial communications?

 

Thanks,

 

Andrew

 

Getting BNO055 to work with a myRIO1900

$
0
0

I am new to LabVIEW and I am trying to get an accelerometer to work with my myRIO. I tried adapted the example code in the project guide, I can’t seem to figure out the what register values to use. I am trying to get the accelerometer (BNO055) to give me quaternion data (register addresses: 21-27). I am not too familiar with I2C communication, but I believe the problem with my code is requesting the right data from the IMU. Could someone please help me or point me in the right direction.

 

Attachments:

-“ Accelerometer demo (labview orginal) “myRIO Project: in LabVIEW’s project guide for ADXL345 accelerometer

-“ Main-BNO055 “The code I am trying to use for my BNO055 sensor

-BNO055 Data Sheet

-ADXL345 Data Sheet

Possible to generate stimulus from HDL testbench on Host VI?

$
0
0

I have an HDL design with an HDL testbench. I want to port them to an NI board with LabVIEW. Thus, I create an FPGA VI and import the HDL design by component-level IP (CLIP). However, I have trouble to create a host VI as testbench. I searched LabVIEW documents. It seems that there is no way to run the HDL testbench on host and generate stimulus to FPGA VI through the host VI. It means I can't reuse the HDL testbench to drive the FPGA VI and so I have to write an equivalent LabVIEW testbench. Is this true?

 

Actually, I have an FPGA board from a vendor, which supports communication with MathWorks Simulink. Furthermore, Simulink supports cosimulation with ModelSim. Thus, I can reuse my HDL testbench to generate stimulus from ModelSim to Simulink and then pass them from Simulink to the FPGA board. No need to rewrite the HDL testbench by Simulink...

How to get buffer data in DAQmx ?

$
0
0

Hell everyone,

I wanted to get the data in Buffer of DAQmx. I searched for the same in the forum, but i didn't find any solution. I am able to get the buffer size but not the data. Please anyone help me the solution to get the buffer data.  

Thank you so much.

Viewing all 69258 articles
Browse latest View live


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