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

How to find QMG 220 IP?

$
0
0

Hello everyone,

 

I am using QMG 220 but I have a problem in finding its IP address.

I already tried quadera software but it also not showing any IP.

furthermore, I used advance IP scanner by setting the different IPs network range but still, I can't get IP.

 

Help needed!

 

 


NI Installer Builder - Wrong Media Path

$
0
0

Hi, I am going to build an installer using the project explorer.

My installer needs additional drivers like NI488.2 runtime, NI-VISA runtime and LabVIEW runtime.

I do not have the device driver CD but i have those installers downloaded from NI website.

 

When i was prompt to select the drivers needed, i select the installers downloaded from NI website. However, i encountered the error complaining wrong media path(as in the attached image).

 

Can anyone please advise how can i select my installer path separately without having any error?

Thanks in advance!

 

Best regards,

Crystal

NI Driver for Ametek / Solartron / Modulab XM MTS

$
0
0

Hi All,

 

I am quite new to Labview programming and have some questions regarding the NI driver for the Modulab XM MTS machine from Solatron / Ametek

The machine is this one https://www.ameteksi.com/products/materials-testing-systems/modulab-xm-mts.

 

Does anyone know how to get the driver for this machine? The one I am using (Rev 3.0, 1 Feb 2017) has a problem with reading the output data, even though, it does its job well. So I couldn't get any data from the measurement.  

I have emailed Ametek about it but still don't get any responses yet about it.

 

Any suggestion would be very appreciated.

Thank you!

 

Transfer FPGA clock value to Host

$
0
0

Good morning to everyone,

I have a simple question, that is however quite annoying for me.

In brief, there is a way to transfer the value of the FPGA clock to the host, in order to do some calculation on the host itself? Actually i tried with read/write control but it seems not working.

Thanks!

I2C communication through myRIO

Windows UIAutomation mit LabVIEW Applikationen

$
0
0

Hi,

 

I'm using Windows 10 with a touch screen (no keyboard).

.NET controls are part of the UI Automation of Windows - therefore the touch keyboard pops up as soon as they get the focus. (at least with .NET framework which is not too old)

 

Unfortunately this does not work with LabVIEW controls. I tried to register them to the UIAutomation but it seems that they aren't derived from a WIN32 control (see attached VI). Using the display coordinates (not the front panel xy) of the "LV Numeric" control, the System.Windows.Automation.AutomationElement.FromPoint() method does not find it. 

 

I'm wondering if someone of you guys found a solution for the LV touch keyboard feature lack?

 

Following is not an acceptable solution:

- self made keyboard

- osk.exe

- click on the keyboard icon in the task list every time I need the keyboard

 

Cheers,

Jonas

 

 

 

 

Programmatically vertical center a button between splitters

$
0
0

Good morning

 

Have a problem with a button in my VI. The button needs to be always in the center between the splitters.

print1.png

 

But something in the code isn't working. This is what I've done to vertically center the button:

Capturar.PNG

This code is inside a Event Structure "Panel Resize". However every time the panel resizes the button goes to top, near disappearing from screen.

Tried to get the splitters position instead of the Height of the Pane 4, but didn't worked.

 

Can you help me solve this problem?

 

My code is attached to this message.

 

VISA Write subVI very slow

$
0
0

Hello,

I have a VI which needs to send several VISA commands over a GPIB interface to configure instruments, which has been running fine for more than a month. Recently however, it has slowed down to a crawl. It used to take less than half a second to run, and now takes almost 8 seconds.

 

I have isolated the problem to the "VISA Write" subroutine. When I send a command to the instrument manually using the VISA Interactive Control utility, it happens almost instantly (less time than it takes me to take my finger off the mouse after clicking "Write"). When I send the same command to the same instrument by calling the "VISA Write" subroutine, it takes about 1100ms to return. I have joined the VI code I am using to benchmark execution time.

 

What do you suggest I do to solve this problem? I have tried rebooting the computer, deleting and re-adding the instruments in NI-MAX...

 

I am using LabVIEW 2010 and NI-VISA 5.4 on Windows XP Pro SP3.

 

Regards,

Louis H.


Regarding RAID NI HDD 8265

$
0
0

I have one HDD 8265.I have installed all drivers and set up with the help of http://www.ni.com/tutorial/53938/en/#toc5 .The actual write speed is 750 MB/s but i am writting at the speed of only 250MB/S. Is there any other method to increase the write and read speed of HDD.

Programmatically change the number of plots drawn

$
0
0

Hello!

 

I'm trying to display a measured resistance with a boxplot. For that i modified a boxplot.vi I found in these forums. I want to be able to change "time measured in minutes" and "measurements per minute", which means i got an array of variable size. Each loop-iteration (of the loop fetching the data from my measurement device) adds one row and each row is displayed as one box in the plot.

 

Problem is that i have to manually add every row by indexing it in the array and building it into the array that's wired to the xy graph. As far as i know there is no way of increasing the size of "build array" programmatically and a loop won't work since only the data of the newest iteration will be available.

 

I can use the maximum number of boxplots thats likly to be used and just display as many as needed, but that isnt very efficient or good programming style at all.

 

Is there any other way?

 

 

Here's the .vi I used and a snippet of my program.

 

Greetings, 

Auer

Regarding RAID NI HDD 8265

Help with Sudoku solver conversion from C

$
0
0

Hi, I would like to implement in LabView this solveSudoku function written in C that makes use of recursion, but I can't manage to make it work.

 

 

Immagine.png

d.pngImmagine.png

 

The full project is in the attachment. The VI in which I have trouble is called solveSudoku.

 

Thanks for the help.

how can I get structure pointer from labview?

$
0
0
/*wrapper.h*/
#ifndef _WRAPPER_H_
#define _WRAPPER_H_

#ifdef __cplusplus
extern "C" {
#endif // __cplusplus

struct CPPLIBRARY_EXPORT cPlushandler;
typedef CPPLIBRARY_EXPORT struct cPlushandler cPlushandler_t;
CPPLIBRARY_EXPORT cPlushandler_t* createHandler();
void CPPLIBRARY_EXPORT deleteHandler(cPlushandler_t *m);
void CPPLIBRARY_EXPORT addElement(cPlushandler_t *m, int a);
int CPPLIBRARY_EXPORT getElement(cPlushandler_t *m, int index);

#ifdef __cplusplus
}
#endif

#endif // !_WRAPPER_H_


/*wrapper.cpp*/
struct cPlushandler { void *obj; }; cPlushandler_t* createHandler() { cPlushandler_t* m = NULL; m = (decltype(m))malloc(sizeof(*m)); if (m != NULL) { m->obj = new CPPLibrary(); } return; } void deleteHandler(cPlushandler_t *m) { if (m == NULL) return; delete static_cast<CPPLibrary *>(m->obj); free(m); return; } void addElement(cPlushandler_t *m,int a) { CPPLibrary *obj; if (m == NULL) return; obj = static_cast<CPPLibrary *>(m->obj); obj->setValue(a); return; } int getElement(cPlushandler_t *m, int index) { CPPLibrary *obj; if (m == NULL) return -1; obj = static_cast<CPPLibrary *>(m->obj); return obj->getValue(index);

 

1) Is it possible to create the cluster with void pointer?

2) I would like to call the  createHandler()  funcation and get the pointer of cPlushandler_t*?


Re: RTD DaqmX Read

$
0
0

Hi,

My question is not related to your question but just wanna ask if you can tell how to connect Ni9217 to RTD (wiring)?

Exponential transfer function

$
0
0

I'm trying to recreate a system that controls the MAP using a PID controller by varying the PID parameters to modify the infusion rate signal, but the output of the system is the same as the input which I actually think is because the transfer function is not working. Here is my block diagram and the results.

I went through some discussions here and non of them solved the issue. I currently use the MathScript  block to write the transfer function. image_2018-11-19_21-42-53.pngThis is the output

 

image_2018-11-19_21-48-53.pngThis is the block diagram

 

التقاط.PNGThis is the transfer function

 

 

 


Softmotion module with Elmo Drive (Slave)

$
0
0

Hello, everyone

 

So, I have been working on this for some time now and is about that time, I will start pulling my hair. 

I have downloaded all Software Requirements. Ni-Industrial Communication for EtherCAT, NI-RIO, SoftMotion Module, and SDI Plug-IN from VI Package Manager (VIPM) and also, configured the Master Controller with NI-Industrial Communications and SoftMotion Module Software. I changed Ethernet Port 2 (Ethernet Adapter eth 1) to EtherCAT to connect to third party slave (Gold Tiger Servo Drive). I Uploaded EtherCAT XML file for third party slave into EtherCAT Master and Used SDI Plug-in example. ivproj to run the SDI Plug-in in the background which allows the interactive Test Panel to access the SoftMotion Axis bound to the EtherCAT drive. The Interactive Test Panel is recommended to use to test and debug the motion system.


Interactive Test Panel code errors encounter
1. Error code 77094 was encountered when forward, reverse, and home limits are off. (" Both limits inputs are currently active. Verify that your limits are properly connected and configured.")
2. Error code 8611 was encountered when forward, reverse, and home limits are on. (" The motor exceeded the programmed position error limit. Verify motor tuning parameters, feedback connections, and feedback configuration settings.")

 

Things that were done to fix errors
1. Reinstalled Software into cRIO controller.
2. Reloaded XML file into cRIO controller.
3. Checked all connection with Elmo Installation PDF from Elmo Motion Control.
4. Ran Elmo Application Studio to check that the Servo Drive is properly connected and functioning.
5. Reinitialized Example.ivproj and deployed all. Ran Example.vi and run Interactive Test Panel.
6. Inverted DIO using Elmo Software Configuration using Elmo Application Software

 

 

 

 

Capture fist occurrence of threshold

$
0
0

I'm trying to find the first occurrence of a passing a threshold using the Threshold 1D Array function.  My labview program is continuously sampling the output of a variable DC power supply.  The supply will start at 0V and I will increase and eventually pass the set threshold.  I'm using a DC power supply to simulate a transducer that will essentially output a step function with a rise time of 50ms and amplitude of 5V.  I don’t have the transducer yet.  What I want to accomplish in labview is to display only the first occurrence of the threshold being passed.  In my attached BD, the threshold function refreshes with every while loop iteration.  The while loop reads 100 samples of data sampled at 1kHz with each iteration.  Because this is much faster than I can turn the knob, the reported index is either 0 or 99 depending if I'm increasing above the threshold or decreasing below the threshold.  If I turn my knob quickly about the threshold point, I can see the index indicator very briefly display an index between 0 and 99.  I'm not sure how to only capture the first occurrence and could use some guidance.

 

Another idea I’ve been toying with is to eliminate the continuous sampling and do a measurement analogous to a single sweep on an oscilloscope.  I could tell labview to capture a finite amount of samples that would capture the whole step function from the transducer.  Then have a for loop function that would store the results into an array.  The entire array would then go into a threshold function.  I’m still new with labview and I’m not sure how to implement that in a BD.

Labview 2018 hangs on startup

$
0
0

Hi,

 

I recently installed labview 2018 on my laptop (no previous labview install) and I can't get it to open, It hangs on the initial window or if I open a library or vi it hangs once that opens with no reported error.

hang.PNG

 

Version is 18.0.0. The package manager works fine and says everything is up to date. I am at a loss on how to find the issue here, any advice is welcome.

Find the number of duplicates in array

$
0
0

Hello,

 

In the attached VI, I am attempting to find the number of duplicates in a string array, then return a new array with the number and the corresponding number of times that string appears.  In the VI, for the given array:

100, 100, 100, 200, 200, 400, 400, 400, 400, 400, I would like to generate the array:

100 3

200 2

400 5

Thanks for your help!

Pump control using inverter and LabVIEW

$
0
0

Hi All,

I am trying to Start/Stop & frequency control of a LS SV-iG5A inverter through LabVIEW. I used RS 485 to connect that with computer.  I have attached a picture of communication specification of the inverter. When I connected the inverter with computer a COM port showed but I don't know how to make code now. I went through Introduction to Modbus using LabVIEW but can't find Modbus Master option in my LabVIEW.

 

Any suggestion about coding or any previous example code will be appreciatable.  

Viewing all 66729 articles
Browse latest View live


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