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

Controlling LED using digital module NI 9401

$
0
0

Hello,

I am writing a program of water valve opening and closing by user input. The software program work good, but when I want to use for switching leby digital module , it create problem.

Please help me out with this.

I attach both the program and looking forward to your kind reply.

One more thing is that i am using NI 9401 two channels for led switching. 

Kindly check and give a solution for it. I am new to LabView.

 Thanks

Best Regards

Faisal


CANopen TPDO AND RPDO

$
0
0

Hi

I have problem to understand how to use TPDO and RPDO with LV2017.

Now i have the hardware pci8531.

I have three hardware with CANopen. In the old version threre are Node1 , Node 2 and Node 3 for the name of Hardwares. The old card is PCI Serie 2.

For example :

RPDO1 and TPDO1 from the same Node.

It means RPDO1 fetches the data from device. and TPDO1 transmits the data to software control center, right?

For the three devices i need three nodes. So i can fetch the data from devices, right?

Do i need also SDO and Sync in the program? Thanks!

 

C++ 기반으로 디지털 DAQmx 읽기 쓰기 text 코딩 방법 알고싶습니다.

$
0
0

C++ 기반으로 디지털 DAQmx 읽기 쓰기 text 코딩 방법을 알고있습니다.

현재 저는 Visual Studio 2017 버전으로 사용하고있는데 C++ Text 기반으로 DAQmx 디지털 읽기쓰기 코딩방법을 알고싶습니다.

Display numeric as standardized scientific notation

$
0
0

This must have been discussed before but I cannot find it.

 

In LabVIEW, scientific notation is displayed in the form "1.234E+5", but the standard for scientific notation is 1.234 x 105.   I would like both numeric indicators and graph scales be able to display like that. Is there a reasonable way to get that? I’m guessing no since there is a superscripted character in there.

 

But can NXG do it?

At least it would be nice to get graph scales in this format (whatever it is called): 105.

 


Bonus points to anyone finding a way of formatting SI units the standardized way, with a space between the value and the unit, like "2.4 GHz", standard SI style convention. And no, "%#p Hz" is incorrect.

Write to Measurement File Problem with table Format

$
0
0

German (English below):


Moin,
ich habe ein kleines Problem mit der Write to Measurement File Vi.
Über meine DAQ Karte USB 6000 nehme ich Daten von 3 Sensoren auf. 2x ai input (voltage) und einmal den Counter input. Die Messwerte sollen (nach Bearbeitung, also simples skalieren der Spannungen) zusammen in eine Tabelle geschrieben werden. Die erste Spalte soll für die Zeit sein (relative Zeit reicht hier, und da meine DAQ Karte kein Hardware-Timing hat reicht auch hier das Software Timing). In die drei Spalten daneben sollen dann jeweils die Messwerte der drei Sensoren jeweils zum gleichen Zeitpunkt. Ich hätte dann gerne für jede Sekunde Beispielsweise 10 Messwerte.
Mein Problem ist jetzt


1. ,dass für die Messwerte für verschiedene Sensoren unterschiedlich oft in in die Tabelle geschrieben werden.
zum Beispiel wird ai0 mit 100 Messwerten pro Sekunde in die Tabelle geschrieben, der Counter Input allerdings nur einmal Pro Sekunde, die restlichen Zeilen sind hier dann leer. Wie kann ich meine Datenaufnahme Synchron halten?


2.,dass Messwerte für Beispielsweise eine Sekunde in die Tabelle geschrieben werden, und dann für die nächste Sekunde ein neuer Abschnitt in der gleichen Tabelle kommt, wieder mit neuem Header und allem drum und dran, statt eine Fortlaufende Tabelle zu haben. Wie kann ich einstellen, dass ich so eine fortlaufende Tabelle bekomme? 

 


Ich habe schon Probiert die Write to Measurement File VI innerhalb und außerhalb der Schleife zu positionieren, und ich habe schon mit Timing und den Sample Rates herumprobiert aber konnte keine Zufriedenstellende Lösung finden. Die Write to Measurement File VI ist nur Beispielhaft in ihrer eigenen Schleife außerhalb, ich hatte Sie dort auch schon ohne Schleife und auch in der Hauptschleife. 
Im Anhang habe ich einmal einen Screenshot meiner VI und einmal einen Screenshot einer erzeugten Tabelle.

 

Vielen Dank schon mal!

 

English:

 

Hi,
I have a small problem with the Write to Measurement File Vi.
Via my DAQ card USB 6000 I record data from 3 sensors. 2x ai input (voltage) and one counter input. The measured values are to be written (after processing, thus simple scaling of the voltages) together into a table. The first column should be for the time (relative time is enough here, and since my DAQ card has no hardware timing, the software timing is enough). In the three columns next to it the measured values of the three sensors should be entered at the same time. I would then like to have 10 measured values for each second, for example.
My problem now is, 


1. that the measured values for different sensors are written differently often into the table.
for example ai0 is written into the table with 100 measured values per second, the counter input however only once per second, the remaining lines are empty. How can I keep my data recording synchronous?


2.that,for example, you can write  measurement values for one second into the table, and then for the next second a new section comes in the same table, again with a new header and all the trimmings, instead of having a continuous table. How can I set up to get a continuous table like this?


I've already tried positioning the Write to Measurement File VI inside and outside the loop, and I've tried timing and sample rates but couldn't find a satisfactory solution. The Write to Measurement File VI is just an example in its own loop outside, I had it there without a loop and also in the main loop.
In the appendix I have a screenshot of my VI and a screenshot of a created table.

 

Thank you very much!

 

Saving and writing multi-dimensions array with Binary File VI's

$
0
0

Hello everybody,

 

I have a 3-D complex array (eventually it can have higher order) and I need to save and, using another VI, read this array. The solution I found here in the forum was use the Binary File VI's. 

 

Now I am having trouble to recover the N-dimentional array after I open with the Read Binary File VI. The output array have the correct dimension, but all the information are concentred in only one dimension (as it was a 1-D array). 

I can't resize the array, because in the original aplications the sizes is not know a priori and also the original array have a lot of elements, so sometimes when I use the resize array VI, my computer doesn't have enough memory to complete the operation.

I synthesized how I am saving and reading in the VI attached here (LabVIEW 2015).

 

I hope anyone can help me.

Thank you all in advance

Frederico

Blank CSV file attachment with email

$
0
0

Hi ,

I have a tried & tested report generator software(standalone exe file) that is working for many clients.

What is does basically is parse through 24 csv files generated hourly throughout the day , generate a summary report & email it.

My problem is..... in one particular machine , the email attachment is always 0 bytes i.e blank, though the summary report is being generated at its designated DOS path.

I have increased the delay between the report generation & the email from 5 seconds to 15 seconds without any positive outcome.

The same software works fine in other machines.

Any ideas about what to check for in this particular machine?

convert .ctl to .vi

$
0
0

Hello guys,

I can't see the block diagram of a control file .ctl and I want to convert it to .vi.

Is it possible to convert it and how to do it?

/mctnnn


Fuzzy logic

$
0
0

Hi to all, I am a total newbie at fuzzy logic and I have a problem. 

I need to implement a fuzzy logic in my program instead of ""signal above treshold"" part. Fuzzy logic should have zero order hold value of my signal as an input and then it should generate either 1 or -1 value as an output depending on whether the zero order hold signal value is above or under the treshold(it could be 0.75 for example).

 

Does anybody know why every time I am trying to delete a second name from a listbox, the previous name deleted reappear on the listbox?

$
0
0

I attached a VI. Just give it a try and you will see what I'm talking about. Try to delete every name one by one and you will see that the delete button is not working as it should. What am I doing wrong? I would appreciate it if you attach a VI. I'm more of a visual learner. Also, for your information, I'm new to LabView.VI.PNG

LV2018 and access to front panel from Windows 7.

$
0
0

Hi to all,

 

I need to help to access to front panel from Windows 7 OS.

I built an application exe (with html page included) and after that I deployed it on cRIO so html page is now loaded on RT target (my Web server) and I am able to connect at the VI by Internet Explorer browser in Windows 10 and Windows 8 OS.

 

I developed the project with Labview 2018 so I installed LVRTE2018SP1 64 bit on Windows7 client Pc (like for Win 10 and 8) and disabled Firewall to open html page from Internet Explorer but it doesn't work.

My question is.. Someone has tried to use web server with Windows 7 OS and Labview2018?

 

When I write on the web "http://xxx.yyy.www.kk:8000" I am able to see "Labview Web Server Describtion" but when I insert the name of the page http://xxx.yyy.www.kk:8000/namepage.html I receive HTTP 404 not found

Any hint?

 

Thanks in advance.

Background colour of pallette

$
0
0

My problem is with visibilty of text in pallette menu in labview 2019.  I have high-contrast colors in Windows 10 selected and in result text colour in pallette changed to white but background is still as it was (white  with  gray elements). Couldn't find any other way to resolve it then changing windows theme colour.

I don't have white as colour anywhere. In windows it is green and in labview theme text colours are Light Blue and yellow.

Measuring S21 magnitude and phase using 2901 SDR

$
0
0

Hello Everyone,

 

I am trying to find out S21 using NI 2901 SDR. I am interested in Magnitude and Angle of S21.

Firstly, I am transmitting a signal from TX1. Using Power splitter at TX1, I am splitting Input and sending it back to RX1 for reference for S21. At RX2, I am receiving a signal transmitted from the TX antenna. After the collection of signals, by simply dividing the RX2 signal by the RX1 signal, I am getting S21. Is this the correct way? further, how can I do phase calibration of TX and RX? Attached is the working diagram. Kindly suggest VI which will be helpful.

 

Regards. Thanks in Advance 

NI Sync Create Clock Issue

$
0
0

I am trying to use NI-Sync to create a clock to then send triggers to an output. From looking at the example Here , it should work. However, I am getting the error of 

"Property Node (arg 1) in niSync Create Clock (Frequency).vi:6780001->triggerMultiplySandbox.vi <ERR>
This operation requires a feature that is not supported."

So it looks like its erroring at the create Clock.vi. I believe I am following all the rules, so it should work? See attached for my vi.I've set the frequency from 10 KHz to 1 MHz to see if its maybe a frequency issue. The coerced freq is always inf 

.vi file reading outputs in front panel

$
0
0

Can you receive&send input/output data without an .exe file? I am running a .vi file and want data to be outputted onto the front panel without having to run an .exe file. As of right now only the .exe file is outputting data but this is hindering me because once I make changes i have to then remake the .exe file. I want to be able to edit the .vi file then be able to see if the changes change the outputs. Thank you for the help. 


Synchronization between c-series AO (9263) and AI (9201) modules

$
0
0

Hi all,

 

I am working on yynchronization between an AO module (NI 9263) and an AI module (NI 9201). I followed the example below, and it does not working.

http://www.ni.com/tutorial/5376/en/#toc1

 

Could anyone please give me some hints or suggestion?

 

Thanks a lot

Elliot

How to interpolate multiple timestamps to one single value + downsampling of the aquired data to a fixed frequency?

$
0
0

Hello together, I'm using a Keithley 2700 to acquire measurement values sequentially on 6 channels (sampling frequency of the entire array approx. 5 Hz) and in parallel I'm using a NI PIC-6133 to acquire another 2 channels with a sampling rate of several kHz. Due to the sequential sampling of the Keithley each channel has its own time stamp, the simultaneously sampled channels of the 6133 another. I would now like to interpolate these raw data in such a way that there is only one time stamp for each acquisition of the measured values. Additionally I want to reduce the sample rate, e.g. by specifying a different sample rate.

 

Current raw data:
Keithley_Value_A; Timestamp_A
Keithley_Value_B; Timestamp_B
Keithley_Value_C; Timestamp_C
Keithley_Value_D; Timestamp_D
Keithley_Value_E; Timestamp_E
Keithley_Value_F; Timestamp_F
6133_Value_G1; 6133_Value_G2; Timestamp_G

 

Desired interpolation and downsampling:
Keithley_A_new; Keithley_B_new; Keithley_C_new; Keithley_D_new; Keithley_E_new; Keithley_F_new; 6133_Value_G1_new; 6133_Value_G2_new; Timestamp_new

 

Is there a suitable interpolation function in LabVIEW that I can use to do this? Can anyone give me an example?

 

Many thanks for ideas and tips,
Michael.

 

---------------------------------------------

LabVIEW 2016 (PDS)
Windows 10
NI-PCI 6133
Keithley 2700 with GPIB

Renishaw XL80

$
0
0

  Good morning / afternoon, 

 

I have to connect labVIEW to a Renishaw XL80 interferometer. 

The laser works when I use the software provided by Renishaw, but I cannot connect it to LabVIEW. 

I used the DX10COMLIB in an activeX call, I open the open it and call the connect method, but nothing happen. The "connect" is false 

 

Then I used a .NET class to call interop.dx10SDKAdaptorLib, then I call the DX10adaptorClass and then the connect function, still nothing. 

 

I should be pretty close as when this program is running, Carto (software provided by Renishaw) refuses to connect to the laser. As soon as I stop it, it connect. 

 

Thank you for your help

 

 

 

 

OPC UA: 3rd party OPC client connect to LabVIEW OPC server

$
0
0

Hi all,

 

Currently I am trying to connect a 3rd party OPC UA client to LabVIEW OPC UA Server

  • I created an OPC UA server using LabVIEW with this endpoint URL: opc.tcp://hostname:49580
  • The OPC UA client in my demo is the OPC Quick Client in KEPServerX6 

My question is can this OPC Quick Client connect to this local OPC UA server hosted by LabVIEW? While I am still looking for solution, any inputs from you guys are much appreciated Smiley Happy 

Implement Excel Solver in Labview

$
0
0

Hello all,

 

I currently have an Excel sheet where I use Solver to solve some equations. The thing is I need to implement those calculations in a .vi since I need to get the results of the calculations in real time.

 

A summary of what values and equations I use in Excel:

- At the beginning I have a column with time values (X axis) and a column with frequency (Y axis).

- In a new column (lets call it column3), I use equation1, where I know the values "a,r,t", for the summation I only use values from i=1 to i=4.

eq1.PNGEquation1

"t" is the time value at that moment.

For equation1 I will have four "a" values and four "r" values, corresponding to "i" values:

i=1 --> a1, r1;

i=2--> a2, r2;

i=3--> a3, r3;

i=4--> a4, r4;

To solve equation1 I will have to "manually guess" "a" and "r" values, but Solver does this work for me (I will explain these later).

- With column3 solved, I then use Least-Square fit equation:

eq2.PNGEquation 2

To solve this equation I use Excel equation "SUMXMY2", to do so I use columns 2 and 3. The outcome of the equation will be called "X".

- Then I tell Solver to change "a" and "r" values to get the minimum value of "X". The only restriction I use is "r1" >2. What Solver does is a lot of iterations with different "a" and "r" values until it gets the minimum "X" value possible.

 

Sorry for this long summary... Now comes my question:

I know how to implement all those equation in Labview and I know how to manage all the columns/raws.

What I don't know, is how to implement the part where I need to change/guess "a" and "r" values. Solver does a lot of iterations of "a" and "r" until it gets the minimum "X" value possible.

 

In Labview how do I change "a" and "r" values automatically until I get the minimum "X" value?

 

Thank you for your time and help

 

 

 

 

Viewing all 66688 articles
Browse latest View live


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