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

Labview to excel

$
0
0

Hi everyone,

I am quite new to labview and I was thinking of how I can make a project that will write to excel from labview. I do not want to write an entire string, rather when I receive a name and values, I want to search in the file for that name and add the values in. So if I have a file with the following format,

Country Name Age Height

Canada    x

US           y

 

And if I send a command like (X, 19, 70)

 

The file should be changed to 

Country Name Age Height

Canada    x        19      70

US           y

 

That is my first option. I was also thinking that if the first option is too hard to achieve, I could also have something like 

Country Name Age Height

And send command like (Canada, X, 19, 70), and append data to the file. So for each time, I have to concatenate the string with unnecessary values but that could make my life easier. 

 

I am quite new to labview and I do not have a vi to show. My project is still in the designing phase in my mind. I do not want to use any AcitveX or report toolkit. I am using labview 8.0 in windows 10. Any help is greatly appreciated.

 

Thanks,

Kaawn


motor valve control

$
0
0

Hello labview experts,

 

I am trying to put together a VI that does the following:

 

1. pressure setpoint respond to motor speed and valve.

2. motor and valve can be auto or manual mode.

3. pressure setpoint to motor is feedback, and pressure setpoint is feedforward to valve (not sure if this is necessary)

4. valve (proportional) is open at 100 and close at 0. 

 

Could you help with some of issues i am having?

1. i am not sure if the feedforward loop is done correctly

2, my valve is having trouble responding. It stays at 0 because that will increase the pressure while motor speed increases. (maybe having it ramp down from 100 would be a better idea but i am not sure how to implement that)

 

Please see attached file. i also attached a subvi that I created just to have some pressure output.

Thanks!

 

Counter

$
0
0

Hello all,

 

I am a beginner in Labview. I am trying to create a digital input counter ( NI PCI-6514 port 3 line6 and line7- counter increments on high) where after reaching 10000 instances program would execute .bat file and reset counter. After struggling for days I decided to ask for help! Any help will be greatly appreciated.

 

Thank You,

Source Control Software (SVN, Perforce, Git, etc)

$
0
0

I am just now getting around to installing SCC.  I installed the latest version of TSVN (1.12.1) but the VSI toolkit would not install from VIPM.  Error message says it's only compatible with TSVN version 1.8.x.  Looks like this toolkit is no longer being updated. Is there some secret to getting this installed on newer versions of TSVN?  I guess I could go back to a 1.8.x version of TSVN but that's not ideal.  I'm not sure yet what I would be losing if I downgrade to 1.8.x but since I am the only developer and I don't need a solution that is sophisticated, this might be the way to go.

 

The JKI SVN toolkit is no longer supported either.  It's my impression that SVN is being abandoned  for LabVIEW developing, in favor of Git or some other SCC tool.  Does anyone else get that vibe, especially since SVN toolkits are not supported?  

 

Does anyone have suggestions for a lone developer?  I'd like to know, in particular, what other lone developers are doing.  Perforce is free for up to 5 users but I haven't found any tutorials yet (haven't looked).  I will look into Git if that seems to be the new direction but the longer it takes me to type this message, the more I'm leaning towards downgrading TSVN.  I would still like to hear your opinions though.  Thanks.

 

Agilent N6700B

$
0
0

Years ago I used labview to control a Agilent N6700B. I remembered just downloading the drivers & having a set of VIs to work with .  

This time around I'm confused --- I've installed the driver, but I don't see any VIs for my device under Instrument I/O, nor can I find any VI files for it on my computer.

 

Any thoughts?

 

Thanks,

Ben

检测异常

$
0
0

求助:系统为win7 系统,机箱为9178, 采集卡为9232。连接电脑后仅能识别9178机箱,采集卡无法显示。自检后仍无显示。

检测异常

$
0
0
Moved to duplicate post in Chinese board. It is under Regional Communities

错误1198


Is there an Example Finder in LabVIEW NXG

$
0
0

It may be a stupid question, but is there an Example Finder in LabVIEW NXG like there is one in LabVIEW?

If there is one... where?

If there isnt one... is there another way to add a Vi to the Examples? 

 

글로별변수로 VISA쓰기에 참조입력을 하면 -1073807343 에러가 발생입니다.

Array allocation and initialization with a .dll to be used in Labview

$
0
0

Dear all, I need your help using a .dll in labview using arrays at the input and output.

I've created a .dll from MATLAB (implementing a voigt function) to be used in Labview 2017 (32bit). The function requires at the input an array of number (frequencies) and two scalars (gaussian and lorentzian width). The output is an array with the same dimensions as the frequency array.

Using a MATLAB-coder I build the .dll but I think that I do some mistake when handling the array, in particular the memory allocation/initialization even if I set a buffer array for the output and use "Array Handle" in the .dll setup. When running the VI I get the error 1097 "corrupted Labview memory" and sometimes Labview itself forces to close.

 

The VI and .dll (plus folders generated by the MATLAB coder) are attached in the .zip file.

 

During the compilation of the .dll from the MATLAB-coder the array size of the input array is set to be "unbounded" because in the code there are other local variables calling it with variable sizes and the .dll cannot be compiled if I fix the input array size.

 

Can you provide some suggestions to make the VI with the .dll work? I read a lot of posts with similar problems in handling arrays with .dll, also I tried to follow the configurations steps in the Labview-HELP VIs.

Do you think that  there is an error in the .dll compilation or in the C++ code?

 

Thank you very much for your help!
Moonfall

slow communication

$
0
0

hello

  Am using lab veiw to connect PLC, the problem am facing was that boolean 1 button i press the boolean button 2 shows late result as shown in video attached

am using modbus tcp communication

boolean 1 is an start button

boolean 2 is an output of my controller, output result is good but the indication on labview is very slow

出力を一定時間間隔で制御

Datalogging and supervisory control 2014 with windows 10

$
0
0

Hi,

We have a full development license for labview 2014 and DSC RT module license now we are planning to add one more client system to the existing server which is running with the above licenses

The new PC is Dell optiplex7060 with windows 10pro after installing the Labview 2014 with DSC RT module  it is showing only labview to be activated and there is no option to activate the DSC module

How can we use it with the new PC?

 

I have rarely worked with NI Labview so my question may be  silly

 

Regards

Sandeep

myRIo

$
0
0

sh.PNG

Hi everyone ... I am new to labview and I am using myRIO 1900
i wanted to use a C++ program in myRIO project, but I got this (in the photo).
I know that there is something related to shared libraries ... but I dont have much experience
can anyone help ...!
Thanks


how to read the data from TDMS file??

$
0
0

Hello everyone ,this is bharat . I am fresher to labview and learning basic labview.

      Anyone can suggest how to read the data from TDMS file, in that lack of data is there . I want to read the data and should show  the graph of those data. 

 

 

enable EtherCAT communication without using softmotion.

$
0
0

We are currently using the NI cRIO as a master and ELMO’s servo motor driver (third-party) as a slave for motor control through EtherCAT communication.

set up.jpg

After completing the cRIO network setup according to (http://www.ni.com/product-documentation/10555/ko/), I imported the XML file to add the slave (Elmo motor driver) and created the master-slave structure according to (http://www.ni.com/product-documentation/10555/ko/) successfully. Using the Softmotion of NI and the getting started example provided in the SDI toolkit, I have checked that the motor is moving in position and velocity mode. I think that EtherCAT communication itself has no problem.

scan period.jpg네트워크 세팅.jpg

We confirmed through the ‘NI Softmotion Drive Interface Plug-in Feature Compatibility’ that the minimum possible scan period is 2ms when running an Elmo drive through NI Softmotion. We wanted to work with a shorter scan period, We want to make my own communication programming VI between the EtherCAT master and the slave without using the provided Softmotion.

Is there an example where there is communication between NI's EtherCAT master device and any type of third party slave that includes successful programming VI for PDO input/output without using Softmotion library. Or, is there any other hardware product that needs to do this?

 

The key point is to enable EtherCAT communication without using Softmotion.

 

Help NI Improve API Documentation

$
0
0

The R&D Product Documentation team is researching ways to improve documentation for APIs that support multiple programming languages. We're looking for customers to provide input on some early concepts. 

Specifically, we’re looking for customers who:

  • Have varying levels of experience with APIs and NI products. You do not need to use multiple programming languages to participate.
  • Are available for a one-hour web call (via GoToMeeting) with two R&D technical writers to show you some early concepts and get your feedback.

 

If you're interested in participating and influencing the future of NI API documentation, please sign up here. We will follow up via email to schedule the details. Your contact info will only be used to contact you about scheduling this feedback session. It will not be used for any sales or marketing activities.

 

Thanks!

 

Kerry Miller and Rachel Burich

R&D Technical Writers - NI Product Documentation

Labview is crashing when vi's open

$
0
0

About a week ago, I was creating a exe file, and some installation files. Labview crashed during the process. Since then I have several vi's (That were involved in making that exe file) crash upon opening them. They crash during the opening, not running. I never get far enough to run the file.

I'm on Windows 7

The same errors occur on all of the following versions of labview (16 32 bit sp1, 18 32 bit sp1, and 18 64 bit).

 

The error I get is: Access violation (0xC00000005) ... You can see a screen shot in the word file in the attached zip file.

 

I just had something new happen. I got essentially the same error upon closing a project file. That error was:

Exception: Unknown (0x00000000) at EIP=0x014325C2, Version: 18.0f2 (32-bit)


Let me know what additional information is needed. This was my attempt to have everything needed.

interface of SR 830 Lock in via GPIB/USB converter

$
0
0

Hi,

 I have a SR 830 Lock IN amplifier and want to measure some signals with it. For the data acquisition I am using Agilent 82357B, GPIB/USB converter. How do I interface the SR 830 via LabVIEW?

I am new in LabVIEW and have not so many idea.

 

Please help me.

Viewing all 69348 articles
Browse latest View live


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