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

Bundling Channel Wires

$
0
0

Hi,

I'm trying to use channel wires to communicate between a couple of subVIs, and noticed that it's making my diagram pretty messy once I have more than two or three channel wires going between different subVIs (see screenshot for example). Is there a way to bundle a number of different channel wires (ie a tag, messenger, and stream) into a single wire in order to clean up the diagram? Something similar to clusters, but for channel wires?

channel_writer_condense.png


LabVIEW 2015 RTE on Windows 7 Embedded fails to load (system error 998)

$
0
0

I have a small test application written in LV 2015 that I am trying to get to work on a panel PC with Windows 7 Embedded. I made an installer that installs the run time engine and my program. The install goes fine but when I try to run my program I get "System error 998 while loading the LabVIEW Run-Time Engine C:\Program files\[...]\lvrt.dll"

 

Is there anyway I can get this to work on Windows 7 Embedded or does LabVIEW just not work with it?

MSP-GANG Verify Firmware using dll

$
0
0

I am trying to get the MSP-GANG programmer to verify the firmware already programmed into a PCBA.  for example, if I want to verify that Rev B of the firmware is programmed into the PCBA, I can do this through the MSP-Gang GUI, you select the desired firmware image, set the MCU, etc and then press verify.  If the firmware on the PCBA is Rev B, you get a pass.  If it is Rev A, then it fails.

 

Using the dll, I cannot figure out how to accomplish the same thing.  I have tried googling and looking through the User Guide, but TI descriptions of the functions are very generic.

 

Has anyone got this to work with the dll?

 

One serial port, two different devices: one transmitting, one receiving

$
0
0

Hi All,

 

I have a cDAQ-9135 device which has one RS-232 port that can communicate at a max baud rate of 115 kps. 

 

I need to receive serial data from one device at a baud rate of 9600 bps and transmit that data (concatenated with other data) to a different device at 100 kps. Can I do this with one serial port by connecting the output of the transmitting device to the RX pin and the input of the receiving device to the TX pin? I feel like the difference in baud rates requires two different ports, but I would then have to switch over to a cRIO chassis since the serial port module (NI-9870) are not compatible with the cDAQ chassis. 

 

Any nuggets of wisdom or help would be greatly appreciated.

 

Thank you.  

Control A drone using labview

$
0
0

Hi everyone, I was trying to control my drone using labview. i have a myrio 1900 with me. Does anyone have the same or similar project or experience can share with me so I can start on with ? Thank you so much !

Problem in writing/reading waveform data in a continuous manner

$
0
0

Hello.. I have made a software program to interface a PID controller through Modbus. I implemented this using state machine algorithm where it monitors different parameters (P, I, D, SP, PV etc) in a chained manner. Now I am storing the values of Level% (input Set-Point) and Valve% (output) with real timestamps to a file and then reading & displaying this data on a waveform graph. And this is where I have been stuck. Smiley Sad

If I put the Delete function (as shown in the attached pic), it always overwrites the values whenever I rerun the program (not acceptable) and if I enable the Append, it stores the data in a wrong iterative manner (maybe because of the while loop: not acceptable). If I don't use Delete or Append, then it keeps on asking to replace the existing file.

The software program is running fine except the waveform part.

 

What I want is, it should keep storing the timestamped data continuously to a file and by reading that file, we can display the past as well as the current data on to a graph even after rerunning. Can anyone help me out?

 

It would be great if somebody is having a piece of code to do this, for a quick reference.

Driver Problem of My Experimental Setup

$
0
0
I am a master student and I am using Keithley 6514 electrometer product for my electrical experiments. The basis of my experiment is:
I apply voltage from a sourcemeter (Keithley 2410) and at the same time I measure current from the electrometer and I want to measure current with computer support because it will be efficient for me. There is not any software updates for Keithley 6514, so that's why I installed LabVIEW and LabVIEW drivers of 2410 and 6514. So my question is:
What should I do for using the softwares properly? If I need to run two drivers at the same time, how will I do this?
Thanks Smiley Happy)

Add a XYGraph to DAQMX

$
0
0

Hi, I would add a graph to a DAQMX counter and timestamp, but don`t work. have someone a idea?


Run Time needed

$
0
0

Hi to all.

 

I would like to know what run time I need to run my application and to know if I have to purchase for it.

 

I would like to use shared variables en FTP VIs to send/receive files.

 

What run times have I to purchase?

 

And which run times are not free?

 

Thanks a lot.

[Trouble Shooting] FlexRIO NI-1483 with PCO camera-link TCP serial issue

$
0
0

Hi, 

 

We have a PCO camera linked on NI-1483 camera-link adapter (FlexRIO). I try to configure the camera to auto sequence via serial interface(SerTC) port of NI-1483. I already setup all hardware and software. Now I can detect the camera clock via NI-1483. I want to utilize serial sever.vi to communicate with the camera via serial port(SerTC). However, I cannot connect the serial server as following figure. Is there anyone know or have experience on the work of TCP serial communication via UART? Thanks. The information about the example code UART and serial server.vi is not much. 

 

TCP error.png

 

Best,

Yong 

Problems for processing (matrice multiplication) large arrays

$
0
0

Hello people,

I'm developping a (sub)VI which should generate the different Hadamard basis matrix. As input, it takes the order, the indexes of the basis, and other stuffs relative to the usage in my case, a correction matrix which values will replace the -1s in the basis and a Grayscale value.

Basically, I generate the complete Hadamard matrix using the function "create special matrix", a 2D matrix of size (order x order), then I transform it to a vector A of size (order^2, 1). And after compute the matrix R = A * transpose(A), which have a size of (order^2, order^2). All my hadamard basis are subarrays of size (order, order) in the matrix R. The purpose of double loops labeled "Generate the correct H(e,f) is to pick the correct subarray.

Now my problem is that, for order value equal or less than 128, everything works fine. From order = 256, it crashes when it should compute R (as shown in the PNG file). I don't now why !!!! Is it a memory problem links to the way matrix multiplication is implemented ?

 

Thanks for your help !!!

 

¿Como generar una señal de pulsos a través de NI 9401 y cDAQ9172?

$
0
0

Hola,

Estoy haciendo un programa que me genere un trigger de una cámara, necesito que ese trigger sea una señal de pulsos que saco por mi NI 9401 y el problema que me encuentro es que no puedo unir ningún bloque generador de señales con el NI 9401.

 Me gustaría saber como puedo solucionar esto si es posible o que más necesito para conseguirlo.

 

Gracias.

PID Ti and Td

$
0
0

Hi

I have never used PID before and for me it's not clear what is Ti and Td in minute. I've read a lot about it but not enough likely.

 

My cycle loop is 20 ms. My Kp is about 0.05556 and now i should set the Ti and Td in minute (60 seconds). how can I caluculate them?

Thanks in advance

 

Fausto

¿Como generar una señal de pulsos a través de NI 9401 y cDAQ9172?

How to get my VI to control a digital output on the USB 6210?

$
0
0

Howdy y'all,

 

Thanks to all who have helped me so far, but I'm still new to LabVIEW and need another hint.

 

I'm pretty sure I'm at the end of my VI design, and the last thing I need to do is turn a digital output at my USB 6210 on and off. The attached little VI is at the tail end of my whole VI and works great. But instead of turning a virtual LED on and off, I want to control a digital output on the USB 6210. How can I make that happen?


Can labview programming take different measurement simultaneously on DMM?

$
0
0

Hi, I am a student, and new on labview. I want to know can we code labview to take different measurements simultaneously on DMM. As an example, I want to take voltage and temperature simultaneously. I'm using Keithley 2000 multimeter. If can, how do we code the program?

 

delete duplicated consecutive elements in array

$
0
0

Hi

I am trying to make a vi that  will get an array and check for each 2 consecutive elements if they are the same - if yes delete only one of them and move on to the next couple and check again.

for example :

 input array :           16 2 67 128 10 10 42 55 10 10 10 10 22 33 10 03 22 55

output  should be  : 16 2 67 128 10  42 55 10  10  22 33 10 03 22 55

 

i will appreciate  any help

thanks

 

 

Why does 'LabVIEW Class:All Methods Of LVClass' return the ancestor class names for Dynamic Dispatch VIs and not the specified class method names?

$
0
0

Suppose I have the following classes.

 

Class A:

Method 1 (dynamic dispatch)

Method 2 (dynamic dispatch)

Method 3 (static dispatch)

 

Class B: inherits from Class A

Method 1 (dynamic dispatch)

Method 2 (dynamic dispatch)

Method X (static dispatch)

 

When invoking the LabVIEW Class:All Methods Of LVClass, it returns fully qualified names of the Class A methods which have been overridden by Class B methods. Shouldn't it return the methods for the class specified and not its ancestor?

 

I can understand this behaviour for methods which don't have an override, i.e. Method 3., but not for ones which override it in the specified class.

 

Is this a bug? Are there any other methods that allow you to obtain all of the public methods of the child class at run-time?

 

LabVIEW_ayiOvRL968.png

Actual output:

Reoq08rqby.png

 

Expected output:

LabVIEW_OAgsWr3Zes.pngExpected output

 

 

DAQmx Sample clock doesn't appear to be working

$
0
0

See the attached vi.  i set the sample rate for the DAQmx sample clock vi but the loop time just runs at 80ms no matter what i set the sample clock to.  The data that is being saved reflects the 80ms capture rate.  I don't understand why the loop is cruising along when the DAQmx Read should only be firing at the sample rate set by the Sample Clock.vi...

 

Any help would be appreciated.

 

 

Arduino VISA read binary data

$
0
0

Hi everyone,

I am quite new with LAbView and I am struggling with the reading of binary data from Arduino.

I have an Arduino DUE which sends two values int16 to the serial port, each loop. So I have to read from serial and parse 2 and 2 bytes.

I have 2 question:

  • Does VISA read read binary data? As I can see, it reads only ASCII strings, how can I make it read bytes?
  • How can I parse my two signal and then rapresent them  separately?

I attach my block diagram, which doesn't work (I did it for strings).

 

Thank you for your time!

Viewing all 67408 articles
Browse latest View live


Latest Images

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