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

Log input and ouput CAN frames with NI-XNET

$
0
0

Dear all,

I am using a NI cRIO 9035 with an NI 9862 module. My goal is to use the CAN module to send/receive messages and monitor the communication in the bus.

Monitor received data is easy but I don't how to monitor sent data. The idea will be to save the real frames that are on the bus (the one received and the one sent) but I haven't manage to do it so far. Probably it is not possible and the only way is to mount an additional NI 9862 module to monitor them from a different interface. If so, I will be quite disapointed since these modules are expensive and I will have one less space available for other modules in my cRIO.

I would appreciate any help on that.

Thank you,

Carlos


NI-DAQmx 17.0.0 installer hangs

$
0
0

Hi,

When I try to install DAQMX,the installation crashes and shows me the error in the pic.How can i resolve this issue??

Thanks 

Sharing a VISA refnum between two while loops.

$
0
0

Hi my fellow labVIEW folks,

 

I am trying to create a measurement VI with a Queued message handler, with an addition of an acquisition loop  I have two simultanious measurements to conduct:

1. A pressure measurement (1 pressure meter, 1 control valve)

2. A flow measurement (8 pressure meters, 8 flow meters, 8 control valves). 
These will all be connected to 1 bus system (RS-232). 

So I want to have one  main vi in which I can start and stop both measurements separately. I was thinking about sharing the bus system VISA refnum between two parallel while loops, one while loop for the pressure measurement and one for the flow measurement. 

Or should I try to put them both in one while loop and enable the measurements with a case structure around the VISA Read/write?

 

Any help will be greatly appreciated Smiley Happy

2 while loops2 while loops

 

From LV 2016 to LV 2013

$
0
0

Hi,

 

I need the following Labview file to be converted from 2016 to 2013 version. 

 

When i try to downgrade it, I am not able to save the toolkit files.

 

Your help is appreciated!

 

Thank you!

 

Digital Pulse Measurement without Counter

$
0
0

Hi all,

 

I'm using several flowmeters that generate a digital pulse and using LabVIEW to convert frequency to flowrate. I'm using an NI-9474 digital I/O module with a CompactDAQ chassis that has two counters. Normally I would use these counters to read these pulse signals but I am already using them to generate pulses for PWM. Instead, I am trying to measure the pulse via one of the digital input channels without the counter. 

 

The signals are low frequency, max 100Hz. I've managed to count the pulses using an analog voltage input before using the 'Pulse Measurements' VI and it worked well. My thinking this time was that I could convert the digital waveform from the digital input into an analog waveform and use the Pulse Measurements VI to do the same task. However, when I try and do this the VI just outputs zero as the pulse frequency. I've attached the code for both the analog and digital pulse measurements below. 

 

Analog Frequency Measurement.pngDigital IO Pulse Measurement.pngAny help would be greatly appreciated and I can provide more information if needed.

 

Thanks,

Dan

Problem using Dynamixel Pro with LabVIEW RT 14

$
0
0

Has anyone gotten Dynamixel Pro servo motors that use Protocol 2 to work with Labview RT?

 

Thanks in advance!

-Dan

Find and Replace error

$
0
0

 Hello,

 

I am having a problem with find and replace a control.  When I go to replace all it doesn't work.  I am getting a cross out icon on the controls LabVIEW found.  What does this mean and how do I resolve it?

 

Thanks

Rotate a knob CW 4 times then stop motion, rotate CCW 4 times then stop.

$
0
0

Long story, working in a training environment where the core of the training is simulated, but the ancillary equipment is not.  Currently the students look at a picture of valves and say they want to open or close them.  Trying to put together a VI that I can use on a touch screen that will pull up a valve handwheel picture that they can turn 4 turns CW which then should stop and then I will make a tag that will say that it is closed.  4 turns CCW and a tag that it is open.  I started with a picture ring with 72 pictures turned and used the following code to get a smooth transition thru the crossover point.ValveHandwheelTestPic.JPG

Not sure if I can stop the rotation in one direction and then allow it to turn back in the other direction.  Once it is developed then I can overlay it across numerous backgrounds for the different valves.

Appreciate any help or thoughts on this.  Using Labview 2017. Thanks

 


Led sequence backwards problem

$
0
0

Hey, I have been trying to create a VI in order to have an 11 led sequence and also an indicator showing the led turned on led position, it works from left to right, but i dont know how to make it work from right to left as soon as a switch the button.

Tks for your time and help.

Read all input lines and append to a file to avoid overwriting previous reads

$
0
0

Hi,

I need some help regarding appending (writing) data to a file after reading the input value from all lines. So, I have came so far that it reads the inputs and can write to a .txt file. However there are two problems with current solution:

  1. I do not want the most recent data to overwrite the previous reads in the log file. I want to store all inputs from the startup to a certain amount of time, thus the overwriting in the .txt file is not good enough.
  2. The second problem, which actually is not that critical for me, is that the current solution do not add delimiter to make the importing to MS Excel or other tools trivial.

I have attached a figure of my current solution, and the attempt to switch to spreadsheet. The thing I find difficult to figure out is how I can transfer the boolean array to be appended to the file. I guess I have to use the "Write delimited spreadsheet" to append current reads with the previous but I am not able to import a 2D array from the boolean array used in the current solution. 

 

22449384_10214541990973077_376403765_o.jpg

 

All help will be highly appreciated. Thanks in advance.

Agilent 34970a Error -1073807246 when run in exe file

$
0
0

Hello all,

 

I have come across an error i am unable to figure out at the moment.

I made some SW code to read mA, code works perfectly in "development" mode, but once i compile to *.exe file i get -1073807246 on my 34970a.

Using rs-232. Same computer, same settings, i cannot see any reason this should not work.

i have also done the same in several different *.exe applications and they work. I have tried different methods of connecting, visa-open etc, but no luck.

Can anyone guide me in the right direction?

I am using LV 2017 32bit, NI-Visa installed (and re-installed). RS-232 settings are correct in "dev" mode, should be correct after compilation. 

 

Any input will be appreciated as i am stuck in my tracks here.

Thanks,

 

 

USB接続の計測機器における読み書きエラーについて  (Hex 0xBFFF001D)

$
0
0

こんにちは。

 

OceanOpticsのUSB2000+をUSB接続しlabviewで測定プログラムを組みたいのですが、NI MAXおよびlabviewにおいて何点かエラーが出ております。

下記いたしますので、お気づきの点ご指導お願いいたします。

 

①VISAのtest panelでコマンドのwrite、クエリ、readを実施したところ、

いずれも Hex 0xBFFF0015のタイムアウトエラーとなります。

機器の検出は正常にできているのにこのテストでエラーが起こるというのはどういうことなのでしょうか。

 

②機器接続の検出がlabview※でできているのですが、VISAリソースの選択候補に現れません。

※labviewの初期画面のヘルプより、計測ドライバの検索の計測器タグ欄に表示されます。

 

VISAリソース欄にNI MAXで表示されているリソース名を入力したところ、

0xBFFF001Dのエラーが表示されました。

 

これらの問題はすべて関連しているのでしょうか。

また、どのように考えればよろしいのでしょうか。

どの問題からどのように処理すればよいかを教えていただければ幸いです。

よろしくお願いいたします。

Trigger Event through file path control

$
0
0

Hey guys,

 

I'm using a vi with a file path control and an event structure. I want an event to be triggered when a new file is loaded. I put filepathin: value Change into the Event structure, but this does not work. How could I do it?

 

Thanks

Errors in VISA read using RS-232

$
0
0

Hi,

 

I am working on setting up a continuous reading of data from a neutron detector that automatically send messages every 2 seconds using RS-232. The problem I'm having is that the received messages contain many errors as observed below:

 ´0rn8!w×~/h`000.0 uSv/h
<00.v ÿSv/h
00p.0,uSv/h
°0p.0!uSv/h"002/2!uSv/h$°8°®0 uSv/i!000.1 õSvoj
040.°"}Sv/è(204n0`uSv/è

 

I get, however, messages of the correct nature using another terminal software for the RS-232 interface (Termite 3.3) using the exact same serial settings (baud rate, parity, flow control, stop bits, data bits) as in the labview program: 

000.0 uSv/h
000.0 uSv/h
000.0 uSv/h
000.0 uSv/h

 

When comparing the actual bits of the received messages from Labview and termite there seem to be random bit errors resulting in the wrong ascii code.

 

I have tried using both Labview 16 and 13 (attached) 32 bit on Windows 10 64 bit. I am using a MOXA uPort 2410 as a serial-USB interface between the PC and a neutron monitor. Does anyone have any insight into this type of error or any suggestion on how to proceed. Any help is much appreciated. 

Kvaser CAN bus interface

$
0
0

Hi,

I am trying to interface Kvaser Leaf Light v2 with Labview. 

I followed the following instructions to install the labview drivers

https://www.kvaser.com/knowledge-base/how-to-install-labview-drivers/

I can able to see my device connected to my PC using the Kvaser device guide application. Attached is the picture. 

When I try to run the kvCanExample1.vi that comes with the LLB manager I get some error as the parameter is not set. 

Is there any tutorial or users guide to learn how to use the Kvaser Leaf Light v2 with Labview ?

Do I need to user NI-VISA for interfacing the hardware with a different vendor ?

I have installed the dll that comes with the kvaser library installation. What this library is for and how do i open the file ?

 


PID speed control

$
0
0

Hi folks,

I am working on speed control of 3 Phase AC motor using PID and having troubles in the output response.

Details of my setup, CRIO-9035, NI 9263 module (0 to 10V output for the drive) and proximity sensor for speed estimation. 

Controller gains are P (Kc) = 0.282 ,I (min) = 0.018, D (min) = 0.004; Iteration rate - 50ms.

 

Full cycleFull cycleHow to reduce the rise time?  The current one is ~13.5 secondHow to reduce the rise time? The current one is ~13.5 secondHow to reduce this oscillation?How to reduce this oscillation?Why overshoot when reducing speed? How to avoid this? (Surprised not happens when increasing speed)Why overshoot when reducing speed? How to avoid this? (Surprised not happens when increasing speed)

 I got the gains with PID Autotune vi using Z-N Method. Also observed that when derivative gain increased to a higher value, the desired output (MV) switches very rapidly like on/off pulse from 0 to 10 and I don't want this behavior to happen (with current D my output is stable as shown below).

 

 Output (MV) enabled in graphOutput (MV) enabled in graph

I am not sure what is wrong. Please answer for all the above-mentioned queries

Thanks in advance 

R&S NRP-Z81

$
0
0

I have a R&S NRP-Z81, and i am trying to read the data using labVIEw. So far I am able to control the frequency and read the average power. Buti also want to measure the RMS and peak.

 

There is an Vi in labVIEW for it called: "RSNRPZ Get Scope Measurements Pulse Power", However I am not able to use , it. Is there any expert that can help me, See encirccled the problem vi

Medicion de temperatura con modulo NI 9215

$
0
0

Hola,

Soy nuevo utilizando LabVIEW y he tenido problemas para poder leer las señales de una termocupla con el modulo NI 9215.

La termocupla trabaja entre 4-20 mA, y al parecer el modulo soporta un maximo de 11mA aproximadamente. Quisiera saber que otra alternativa tengo sin tener que usar otro modulo, la idea es poder terminar tomando medidas de temperaturas de 4 termocuplas al mismo tiempo, por eso el uso de este modulo.

 

Espero puedan ayudarme, muchas gracias.

DAQmx generate subset of buffer

$
0
0

Hello friendly forum members Smiley Happy

 

I have a problem I haven't been able to solve. What I would like to achieve is to more or less arbitrarily change the content of the write buffer of a daqmx-task without having to stop the task. Is this at all possible?

 

I have made an example that illustrates my problem, please see attached image.

 

Block diagram exampleBlock diagram exampleIn the code, two buffers of different sizes are illustrated. At this moment they are simply a single period of a sine wave, but in the future I'd like them to hold arbitrary content. I then apply the difference of buffer sizes as the offset property of a Write property node. The documentation for the RelativeTo property states "Specifies the point in the buffer at which to write data. If you also specify an offset with Offset, the write operation begins at that offset relative to this point you select with this property."

 

I can see it begins at the correct phase in the buffer, but unfortunately the write operation seems to wrap around to the beginning of the buffer, so that the old data is also written. I've attached a photo from an oscilloscope that illustrate the problem. Is it possible to ensure that just a subset of the buffer is written? Or is there another approach that makes sure two different buffers are written continuously back to back (without having to end the tasks.

Oscilloscope snapshotOscilloscope snapshot

Best regards,

Oscar 

What is this function?

$
0
0

What is it.jpg

Hi,

I am really new to LabView. I've been trying to set up a project with several VIs in it. The challenge here for me is to make the VIs happen in a certain order. For this, I've put some stacked sequences and while loops (because each VIs contain an "elapsed time". The thing here is that each VIs are also related to one same value (a control). But when the control is outside the loops, it does not work anymore. 

I think the picture above is the solution for my problem. Basically, I need to "refer" to the same control withing different frame and loops. Could this work?

And could you tell me what is this function? And how to create it?

 

Thank you very much for your help!

Viewing all 69241 articles
Browse latest View live