keithley220 GPIB-USB-HS+
How to send the data on specific URL?
I have to send the "Welcome" String on URL. But I did not understand how can do this.Can you please help me to find out this.
XY Graph Multi Plot with Absolute Time - No Plots Showing
Hey All,
I have an application to read Torque, Angular Encoder Position, Load Cells, and Temperature. I am acquiring data continuously and planning to have a few graphs for different test modes. The first graph I tried was just Torque (Y axis) vs Encoder Angle (X axis), and this worked great with the Express XY Graph. I remember I had to wire 'False' to the Reset input to get this working.
The next graph I need to plot is a multi plot, Torque on left Y axis, Angle on Right Y axis, and Time on the x-axis. I quickly realized that this is more complicated and creating this with the Express XY Graph VI posed some issues with converting my signals to the 'dynamic data type'.
I have been trying to work with the regular XY Graph and Chart VI's, so far I can set up the graph and the x-axis time window is working fine, but I can't seem to display the signals anymore. It is frustrating because just plotting torque vs angle was working great, but trying to plot them both on the y-axis vs time is causing me some headaches. I have attached my code, let me know if you have any ideas on what my problem may be?
Kind Regards,
Douggle07
Front panel architecture
Hello,
I am looking for a better architecture to update the front panel of the program I inherited.
There are 200 graphs, indicators and controls. I am trying to centralise all the proprieties and value changes in one VI (let's call it FPUpdate.vi). The goal is to improve the maintainability and being able to add controls easily in the future. Also I believe it is a good idea to update the controls and indicators all at once.
I started a new project to make some tests, here is what I tried so far. The consumer loop put the data in a queue and FPUpdate.vi dequeue and change the values of the indicators. This way, only FPUpdate.vi needs to have the references to the FP.
The data queue contains a cluster of all the data displayed. The user does not need to see all the values, only the newest are interesting. That is why the data queue is limited to 1 element.
This simple program works but there is only one place where I enqueue the data. The real program must be able to change the values from multiple places and I didn't find an easy way to avoid race conditions with this architecture.
Another idea would be to write the data in a global variable and FPUpdate.vi would read this variable periodically to update all the indicators.
Do you have any advice ? You probably even have a better way of doing things ?
I saw a lot of discussion about data architecture but not so much for the front panel. If you have a link to a good example please share it.
Using LV2018
Yddet
Please open "FP architecture.lvproj" then main.vi. I included OpenG Vi's in the zip file.
Snippet Main.vi
Snippet FP update.vi
Using VI Scripting to find value of Array of String Constants
How can I find the value of an Array of Sting Constants using VI Scripting? The included code only returns one of the values in the Array. Is there a way to return all the values?
Thanks,
Read out of Pfeiffer Dual Gauge, RS232 works, Lan works not
Hi,
I have to read out a Pfeiffer Dual Gauge TPG 262. It has only a RS232 connection. If I connect it by RS232 with the PC, the communication works. If I connect it by an adapter(converting RS232 to Lan) and try to read out by TCP/IP, the LabVIEW Programm has Problems, even the device sends results to the pc. I used the LabVIEW -Programm from Pfeiffer and I tried it with VISA. When I start anew all devices and the Computer, I get once a time a result, that´s it.
Do anybody know why the communication by TCP/IP don´t work by adapter with LabVIEW? (There is a program written with an other programming language which works with TCP/IP and Adapter.)
I am grateful for any idea.
Replace 1's with 0's if they are less than 900
I'm struggling with the last part of my solution. I have a 1D Array with 1's or 0's. As the title suggests I'm looking for multiple 1-sequences and if they are less than 900 1's in a row I would like to replace them with zeros.
What I already achieved is finding the start and end of each sequence with 1's and their index and forming a pair of them. So I'm already able to work with the correct indexes. I posted a picture of my last and final step where I want to replace the 1's with 0's. I go in with the first pair, go in another for loop which runs (end of 1's - start of 1's) times. And start to iterate from the start index these N times. But somehow this part does not work and I do not know why. In my notes it makes sense, but I have made an error somewhere. I would be really grateful for some good tips.
LabVIEW for Multiple Languages in the 2D Array
Hi Guys,
I wanted to read the excel file (containing all the languages like English, Korean, Chinese, and Japanese). When I am reading it only for English, It has given good results. But when tried for Korean, I am getting blank in the 2D Array. I have used Microsoft tool kit for reading.
When I am doing the same for text saved in Big Endian, I can get the results as expected. I have added "UseUnicode=TRUE" in the .ini File too and checked but of no use.
Can anyone tell me what I am missing ??
Thanks 🙂
Extracting specific data from each string parameter in 1d array.
Hello everyone I am new to this community.
I have 1d array of string which i have taken from a CSV file, the array is quiet big its like 1800 parameters in it. I am looking for a technique to extract specific data from each string parameter. for example SLR_D12_RC2_VS7.0_VL6.6_SL1 is one parameter and i would like to extract RC, VS7.0, VL6.6, SL1 from it. Similarly LIN_T_RX_PDF_14V_SL2 is another parameter and i want to extract PDF, 14V, SL2 from it. There are many more parameters like these and the values that i need are separated by _ (underscore).
How would it be possible.
Thank you in advance.
Write status of signals to a word file
Hi,
I want to write the status of the signals (that is true or false ; 0's and 1's) value to a word file and later convert it into a .pdf using LabVIEW. Could anyone help?
Trouble reading digital freqency
I have created a task in NI MAX that reads a frequency from my USB-6353. I'm having trouble creating a VI to accomplish the same task. I feel I've tried every possible setting, but haven't had any luck yet.
Using a call library function node to access cpu register?
I am trying to implement watchdog timer functionality into my LabVIEW program. I'd like to read the watchdog timer register, which has an I/O address E85h (0xE85) from my LabVIEW program using a call library function node.
I am running RHEL 8.0 (Linux) and LabVIEW 2019 on a single board computer.
My computer's manual, specifying the watchdog register address and setup is on page 64 here: https://www.rtdusa.com/manuals/CMA34CR_BDM610000083L.PDF
I wrote the following C code to read the register (not 100% sure if this is correct):
watchdogMain.c:
#include "watchdog.h"
#include <stdio.h>
#define watchdog_addr 0xE8B
int readWD() {
int c;
c = (*(volitile int *) watchdog_addr);
return(c);
}
watchdog.h:
extern int readWD();
I created a .so file using the C code above and wrote a simple VI that uses a call library function node to display the variable c.
LabVIEW crashes when I try to run it.
I have experience with call library function nodes and general C code, but not with read/writing registers from C or LabVIEW.
Any help would be appreciated.
Thanks.
Project right click menu
I want to create a script which creates accessors for DVRs. One of the issues which i have is the need to navigate to cluster of the private data. Then i can right click it and create required VIs using my plugin (DVR helper). It works similar to built in Labview feature "Create Accessors..."
I wonder if there is a way to use plugin from the project window by simply right clicking on a class. Similar to how GOOP and LUT plugins work (see images below).
So the question is: how to add custom menus to the right lick action in the project window?
Help with Error 85 Scan from String (arg1)
Hi,
I am new to Labview and created a VI that reads data from a serial port. I am using VISA read function and my expected data stream has the following format: A,+000.00,+000.00,M,+022.21,00,3A.
After the Read VISA, I have a Scan from String function. But when I try to run my labview VI it gives me Error 85 Scan From String (arg1). I have the following format for this arg: %s,%f,%f,%s,%f,%f,%x. Could someone let me know where I have it wrong?
Thank you.
NI 9205 Thermocouple Reading
Hello,
I am using the NI 9205 to read a type J thermocouple. I am trying to read ambient temperature. It starts out with a reasonable temperature reading (ie. 63F) and then after 6ish seconds, it plummets to -130F. It doesn't change again. I am using Labview 8.6 and using NI MAX to configure the thermocouples. Ideas? Thoughts?
Nat
Controlling a Keysight (Agilent) N8921A DC Power Supply Using IVI Driver
All,
I am working with an Keysight/Agilent N8921A DC power supply.
The IVI subVIs that are available to me are "Configure Voltage Level.vi" and "Configure Current Limit.vi." When I set values for voltage level and current limit, the power supply sets the proper voltage level, but sets the current level to zero, as though it was expecting a command for the current level, not the current limit. I have tried all the available subVIs I can find in the "DC Pwr Supply" folder, but I cannot seem to find one that sets the current level.
Has anyone written code for this power supply using IVI drivers? If so, could you post a snippet?
Thanks,
DAQ能否控制电机
用9174daq机箱和9403数字模块能否实现电机的控制,即能否发出脉冲和方向
DAQ能否控制电机
请问视觉编程中distance type控件如何找出来?
Cursor legend automatically resize
I have a VI, and the VI front panel has a waveform control 。I sets the VI front panel pane to scale all objects according to the size of the pane.In practice, when the front panel is resized, the size of the drawing area of the waveform will be scaled, but the cursor legend size of the waveform will not be scaled.Is there a way to scale the cursor legend along with the front panel size?