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

Writing LV program to communicate with ADAM-6017 using Modbus TCP/IP

$
0
0

I am attempting to data log 4-20 mA signals from (3) ADAM-6017 DAQ modules (Advantech) using functions from the NI Modbus Library. I have never used LabView before, but I somewhat understand what is going on. My current VI is attached, but I do not know how to enhance the VI to perform the following tasks:

1. Output time-dependent register values from all 8 channels to Excel spreadsheet with each COLUMN as a register value (right now it outputs all values in the same column and the time is normal at first but then it gets weird -- see attached screenshot of excel sheet).

2. Output the mA reading to Excel, not the decimal value of the register. Even better would be to convert these values to the actual pressure, temperature, flow rate, etc. based on the span of the instruments. But all three ADAM modules have a mix of instruments attached (not all with the same span/units), so this may be difficult?

3. I have (3) modules on different IP addresses and I want to data log all of them. How do I add all IP addresses to the same VI (do I need 3 separate TCP Masters)? 

 

I would greatly appreciate anyone's help!


Club two packet structure along with data and send separately

$
0
0

Hi Experts,

 

When the OK button is clicked, I want to pass 2 data namely DA1 and DA2 along with their respective packet structure(everything is available in the vi). While verifying the sent data through Wireshark, I want the DA1 data to be displayed post which DA2 data needs to be displayed i.e one after the other and not like a single shot of data and send it via UDP protocol. I am attaching my vi here. Kindly requesting your expert advice to accomplish the same. Thank you in advance.

 

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

$
0
0

I am always having this error:

 

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

 

I've already reinstalled the drivers VISA and Serial, and i did some configurations in MAX.

I'm trying to connect labview to agilent 34970A data acquisition.

 

What else can i do?

Application not working on a specific windows desktop machine

$
0
0

We have a LabVIEW application installer created by a vendor which does not work on a Dell desktop running Windows 10 PRO or Windows 10 Enterprise. An error window pops up indicating that the full version of LabVIEW is required. However, when installing on a Desktop with the windows 10 corporate load, or a laptop with the windows 10 corporate load, or a cDAQ 9132, the application runs normally with no pop-up window.

Any idea why it doesn't run on the Dell Desktop with Windows 10 PRO or Windows 10 Enterprise? And why the pop-up window that indicates full version of LabVIEW required? 

note: LabVIEW is not installed on any of the machines that the application runs normally - only what the installer installs. 

"Read Data Express VI" alternative

$
0
0

Is there some alternative to get the channels from a channel group without use the "Read Data Express VI". Using the VI express is too slow, it is taking around of 15 msecond for interaction,  resulting on 2 second to get the data for each file, almost 3 minutes for 80 files.Read Data Express VI.png

Labview robotics

$
0
0

Hello all,

 

Since I find it difficult to find a solution for long time,

I will be glad if someone can recommended where can I ask my questions:

In LabView Robotics,

1. How can I choose between "apply velocity to wheels" VI and "apply velocity to motors" VI?

2. According to the those 2 VIs, what is arc velocity and what is steering frame velocity?

 

Thank you very much in advance

Orit

 

 

Trouble exporting myRIO encoder data; limited to 100 samples/sec

$
0
0

Hi everyone,


I'm somewhat new to LabVIEW and myRIO, and I’m trying to read data from a quadrature encoder using myRIO’s encoder reader. In my LabVIEW program, I have the Counter Value terminal of myRIO’s Encoder VI wired to a Waveform Chart, and I run the program in a While Loop. The problem: When I export the Waveform Chart data to Excel, I am only able to get 100 samples for every second that I run the program. I’ve noticed that this problem occurs whenever an I32 or Double datatype is wired to the Waveform Chart, and the Counter Value terminal is of I32 datatype. This problem, however, doesn’t occur when the datatype is Dynamic Data. For example, if I use the Simulate Signal VI and set its sample rate to 10,000 samples/sec and wire that to the Waveform Chart, I’m able to export 10,000 samples/sec. However, I’m not sure how to get the Encoder VI to give me any datatype but I32, and converting this I32 data to Dynamic Data doesn’t solve anything.


Does anybody know a way around this issue?

MyParts Kit

$
0
0

I purchased a MyParts Kit and I am trying to find the correct inductor to use but when researching the labeling I don't find a match. Is there a more detailed parts list for this kit?

 

Inductors are labeled the following:

R-H

0V VW

VW-

E32


Controlling SoftMotion axes via Python?

$
0
0

Hi,

 

I am working on my third-year university project and I am using LabVIEW to control a gantry system. I am not well versed in LabVIEW, but I have decent understanding of Python and so I wanted to know if I can control my SoftMotion axes within Python. I have tried looking at available documentation and resources online but I am unsure how to pass an Axis through to a Python node if that's even doable. 

 

 

Thank you

Labview robotics

GNU C & C++ Compile Tools for ARMv7 (Linux 2018-2019)????

$
0
0

Hi folks!

 

I have an NI RIO that I am working on some kernel modules for but I am having a very difficult time getting the toolchain for compiling these modules.  NI has a link available here:

 

https://www.ni.com/en-us/support/downloads/software-products/download.gnu-c---c---compile-tools-for-armv7.html#338449

 

However, the Linux version of the download for the most recent version (2018-2019) does not seem to be accessible and I see a greyed out download box along with the following statement: "Previous versions are available only to customers with an active standard service program (SSP) membership. Purchase or renew SSP to access locked versions."

 

I do not have a SSP or anything of the sort but it seems like this should be available to download.  Any ideas?  What can I do to get this?  I apologize in advance for posting this in the LabVIEW section but I'm a bit stuck at the moment and I don't see another more appropriate forum to put this in.

 

Thanks for any help provided!

Blinking LED

$
0
0

Hi,

 

in my project I need to make a led blink every time a multiple of 0,01 appears.

How could I do it?

My vi it's here!

Aprecciate your help 😉

Turn on Scripting programatically

$
0
0

I'm creating a plugin for selecting properties and methods, and I need to have the plugin create helper files with property and method info for the plugin to use on subsequent runs. I would like these files to contain private and scripting properties and methods, even if those are not turned on in the user's ini file and preferences. (Thus, the file will have the properties available if the user turns on those features)

 

I think I can turn on private methods programatically by temporarily modifying the LabVIEW ini file. However, I can't figure out how to temporarily turn on scripting. 

 

I did find a private application method called Allow Scripting, but when I run it it gives me Error 1036:

 

Capture.PNGCapture1.PNG

  

Any ideas how I might accomplish this? Or should I simply rebuild the files in the event that the user turns on these options?

Version d'essai LabView NXT

$
0
0

Bonjour à tous,

 

Je suis étudiant et je souhaiterais obtenir une version d'essai de LabView compatible avec un système NXT. Est ce que quelqu'un pourrait me renseigner sur la démarche à suivre s'il vous plait ?

 

Bien à vous,

Falling In Air Vi

$
0
0

Hey all.  I have this assignment where I need to build a Vi to show a speed vs time graph of objects falling.  I have the front panel built like the text book, but I am having trouble with the block diagram.  I assume using the matlab script would be the easiest/best way, but I am having trouble coding this with the given equation.  Any help would be much appreciated!

Screenshot (814).png


Trigger generation using DAQ Assistant

$
0
0

I'm trying to send a trigger in my Labview program to an external device through an NI DAQ board (PCIe-6361). The trigger cable is connected to a digital line (P0.0).

In Labview, I put two DAQ Assistants in flat sequence with 10 ms delay, each of which inverts line (please see attached).

1. Could anyone tell why it doesn't work?

2. Is there a more standard way to do this?

 

 

Installing the Machine Learning Toolkit on 2019

$
0
0

Hello all. Recently downloaded the evaluation version of LabVIEW 2019 which I've already run, so it works. I then downloaded the LabVIEW Analytics and Machine Learning Toolkit from here

 

It seems that there is only a 2018 version and furthermore, it will not install on the 2019 LabVIEW version I just installed. The error given says that LabVIEW 2018, 32 or 64 bit has to be installed. How do I get this toolbox to work in 2019? I have tried to find 2019 versions of this toolkit or posts with similar errors but have not found anything in either case.

 

Thanks,

 

Brian

Labview Installation error

$
0
0

After closing the NI Package Manager, about a minute later I finally get an error "An error occurred when launching the following required file: "GUIExecutableFullPath". The installer might be corrupted. Try redownloading the installer or using a new media distribution.

 

Based on this message, I redownloaded it, but I still got the same results, so that didn't help.(Also I tried offline installer, it didnt work either with same issue)

How to Snyc two While loop?

$
0
0

Hi Friends,

 

I have tried to sync two while loops, but when I stop the bottom they show different time. I think time must be same since both loop have same number process to execute.

 

a. How can I sync my while loop clock? so that during the measurement I can get the same time for reading two different data input from two different while loop?

b. There is difference in time between two while loop, Can we accept that much error?  

c. I have read some previous thread they say,  if there is some data exchange (like there is output variable from one loop to the other) between two loops then they will never sync. Is that true? 

d. I tried to put them in one big while loop then the time for the lower one takes more and making negative time difference. when i remove the big while loop then upper loop takes more time in-compare to the lower one.  since the time i am measuring is not the execution time why there is a difference?

 

I have enclosed the block diagram? Please look for your suggestion?

2.png

 

 

system exe.vi

$
0
0

Hi

  I made a labview "hello.vi", using system exe.vi module. When I run , no result come out from standard out, Please help me to find out what I am wrong?In this program, I am using comand line to call python to execute "hello.py". it should print out "Hello World". Thanks

Viewing all 66935 articles
Browse latest View live


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