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

Help with states machine, UDP and while loops.

$
0
0

Hi, 

I am currently working on a project that involves EEG signals and Virtual Reality.

I have a VR application and it communicates with LabView through UDP.

When I press a button on the VR it starts an animation and it sends a message to LabView and activates a boolean indicator, it works by itself. While the animation is inactive I want to write 0's to a file and when the animation is active I want to write 1 values to the same file.

I tried to do it with state machines, when I click the button on the VR app it does write 0's but I can't get it to write 1's while it is on standby.

snippin1.PNG

I attach the needed files and controls.

statemachine_justaddingvalues, control_3

testingUDP_andSTATEMACHINE, udptestcontrol

 

Any help will be greatly appreciated, you are my last resource I have tried many things and I don't seem to find any related thread.

 

 


Al dar clic en un boton del vi principal quiero que me llame a otro vi y me lo muestre en el principal dentro de un tab control

$
0
0

Buen dia,

Estoy haciendo un vi que creo va a ser bastante pesado, y en el VI principla tengo varios botones, como se ve en la primera imagen(principal.jpg), lo que quiero hacer es que al dar clic en uno de esos botones, me abra el vi que les envie y me muestre las cosas que tiene el vi datos iniciales subvi.vi(esta adjunto) dentro de la ventana del tabcontrol que abre el boton al que yo le di clic

Por favor ayudenme, no se como se pueda hacer

 

Labview 2015 with MyRio

$
0
0

hi,

 

I have myRIo device. I dont have a Labview software. Can you please tell me which other programming softwares can be used to program myRIO. Can MATLAB work?

Moreover, a friend of mine has Labview 2015. Can I program myRIO using that? if yes, what modules will I need to do so?

 

Thanks

Error in verifing the device connection

$
0
0

Hi I am new to USRP ettus X310, I have connected it with both Ethernet cable and PCIe x4 and attached here screenshot of the NI-USRP Configuration Utility.

Going through the instructions in the manual of the USRP and how to set it up, I found the my USRP x310 with UBX daughter boards is similar to NI-USRP 2944R, and I tried to run the simple streaming sample project "TX and Rx streaming host.vi" on Lab View and I am getting " Error-1074100584 occurred at niUsrpRio Config v1 Host.lvlib: Calculate Level Range.vi:420001" and I attach here screenshots of the full error dialogue.

Also, I tried to run the same example on Lab View Communications System Design Suite, I have selected the single device streaming project for 2943R as 2944R is not available in the list and I tried to run Run TX and RX Streaming (Host).gvi and I got "Error-1074100593 occurred at niUsrpRio Config v1 Host.lvlib_Decode Daughter-board names.gvi:1010001" and I attach the screenshot of the error.

 

I don't what is the problem exactly and I spent a very long time trying to solve this, so I would appreciate if anyone could help in solving this.

 

Best Regards,

Ahmed

Al dar clic en un boton del vi principal quiero que me llame a otro vi y me lo muestre en el principal dentro de un tab control

Labview 2015 with MyRio

Error in verifing the device connection

Send array from MatLab to Labview via UDP

$
0
0

Hello.

I am trying to send an array of values from MatLab to Labview via UDP.

 

I understand MatLab writes to UDP in binary if one uses the "fwrite" command and I can use a simple string to byte array conversion for that, but I want to retain the numerical value of each entry in the array.

 

If I send the array data via "fprintf" I can send the exact values of the array, but as a string.

 

I have been struggling with extracting the data from the string and reassembling it into the array I desire. I found an example that seemed to be something similar to what I am doing. It used the "Scan from String" function, but I am receiving an error when I run it (Error 85: Scan failed. The input string does not contain data in the expected format). I see the correct values being read in, but then it experiences the error after all 3 values have been read. I've attached a screenshot of the VI I'm trying to build. 

 

I would like to be able to receive a 1x3 matrix in this script (and a 1x6 matrix in another script).


接続点にある赤い印は何を意味していますか?

How to get an AVI each frame to an image grayscale

$
0
0

Hi everybody,

I have previous VIs that manipulate pictures (image data cluster) readen from JPEG files. I'd like to use these VIs to analyse individual frames grayscale from an AVI file. It's means grayscale is floating not fixd.

attachment is my vi, but i only get the frame last value(grayscale)
how can i modify

Thanks for helping,
Sincerely

Andersen

Data changing while Reading data from file

$
0
0

when I am reading the text file from a spreadsheet I got whole file and data but if I run again without stop execution the file data to be changed. changing means when I re-run the program first row is deleting. Why this problem occurred...?  

COMBO BOX.

$
0
0

Hola que tal soy nuevo aquí,necesito ayuda con Vi que estoy haciendo, como puedo guardar la información del COMBO BOX, En un SET DYNAMIC DATA y que se quede registrado toda la información del combo box en EXEL

Achieve and Maintain Load of Hydraulic Actuator

$
0
0

My objective is to Maintain the Load of Hydraulic Actuator during Seat Belt Anchorage Test.For Ex:- Achieving Load from 0 to 13500 N(0-23.0 Sec) and Maintain 13500 N+/- 200 N load for 2 sec(23.1-25.0 Sec) and then go from 13500 N to 0 N(25.1 to 27 Sec).I am using PXIe chassis 1078 and NI PXIe 8133 controller. NI Load cell Card is used to measure Load Cell data. The RT Vi is deployed in the PXIe Controller and it measures data of Load Cell and after doing PID it provides Voltage(+/- 10 V) to MOOG Servo Valve D 633-313 B. I am using only Proportional and Integral Gain to achieve and maintain the Load.

During Testing on Rigid/static Bracket, i am able to achieve the results.As PI Tuning is done on the Rigid/static bracket.

But During Testing on Actual BIW(Car Setup) seat Belt Testing. The Results are not Perfect. As BIW has a dynamic condition its stiffness also vary depended on Sample and during testing it deforms sometimes. So main challenge is to achieve and maintain the Load during BIW Testing. 

I have tried tuning of PI many times and it gives good Result on Static but it Fails on BIW. I have also increased the Loop Rate of RT VI but these things doesn't work.

how to communicate with Micrex-F Fuji PLC

$
0
0

hello to all

i want to read/write address of Micrex-F fuji PLC but this model is not available in OPC server. what is other way to communicate with PLC and how?

 

Regards,

asif 

Can't build Analog In Out Serial circuit to Labview

$
0
0
const int analogInPin = A0; 
//const int analogOutPin = 9;

int sensorValue = 0;    
int outputValue = 0;    

void setup() {
:
  Serial.begin(9600);
   pinMode(7, OUTPUT);
}

void loop() {
  sensorValue = analogRead(analogInPin);
  // map it to the range of the analog out:
  outputValue = map(sensorValue, 0, 1023, 0, 255);
  // change the analog out value:
  if(outputValue<=250) {
    digitalWrite(7, HIGH);
  }
  else digitalWrite(7, LOW);

  Serial.print("sensor = ");
  Serial.print(sensorValue);
  Serial.print("\t output = ");
  Serial.println(outputValue);

  delay(100);
}

Everything works fine in the circuit as shown in the photograph too. What I want to do is increase the number of this circuit with 9 leds like a keypad and display the location pressed on screen. However nothing I built on Labview worked. A little push would be awesome.


stop two loops with one stop button

$
0
0

Hello,

 

i need to stop for and while loop in a same time with single stop button.

I tried with local variable, but it doesn't work. Push button is set to SWITCH WHEN PRESSED.

Channel wires i cannot find anywhere.

In att.

 

Has someone sugestions?

 

Thanks a lot.

Milan

Trouble with LabVIEW RTE creating lvs****.tmp file

$
0
0

When an application is started it creates 3 files in the OS' temp folder; one txt file which contains a boot log, one lvl********.rsc file, and an lvs****.tmp file (lvs59BE.tmp e.g.). 
Are tehse file creations documented anywhere? In any case, the lvs-file has an MZ header identifying it as a DOS-executable....and one of our customers who is using Appblocker is having trouble running our applications because of this. Appblocker will flag the lvs file as illegal to execute, and LabVIEW RTE fails to launch properly due to this.

 

Now hopefully we can get the customer to adjust Appblocker to allow the process, but it would help if there is any additional information about the reason for this file, and if there is a way to change the behaviour (e.g. locate the file somewhere else etc.). I have not found much about it here on ni.com, but perhaps someone here knowns more about it or can provide such documentation?


compare and replace values in 2D-Array

$
0
0

Hi

I have a 2D array and a 1D array as shown in the figure below. I need to replace zeros in the 2D array with NaN depending on the values in the 1D array.

For example since the first element in the 1D array is one, I need to keep the first element in the first row of 2D array and make the remaining zeros in the row as NaN.

Similarly the last row of the 1D array is three. So the zero in the last row of the 2D array remains as zero.

Any help to sort this out is highly appreciated.

Thanks 

关于将labview程序导入到Veristand的一些问题

$
0
0

        在模拟电压输入的vi中,有一个采集数据的部分,这个部分一般都要有一个while循环圈住,这样才会连续运行,出来正弦图像。
        然后我现在想要去掉这个while循环(因为我想导入lv到ni veristand中,而veristand不支持while等结构),但是去掉之后点击连续运行后生成的是一条直线,也就是值不会变。我要怎么设置lv或者Veristand,才能让没有while循环的情况下达到他的效果或者允许我使用while呢?

get video currenttime from web page

$
0
0

Hi everyone!!! I want to get javascript variable data in labview code.. is it possible?? please help!!

Viewing all 67271 articles
Browse latest View live


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