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

Analizing Cluster Array with elapsed time

$
0
0

Hi,

In my VI, i have to 10 valves and each valve has a "open status", "closed status", a "command to open" and a "command to close". Normaly my valve takes 3 seconds to be open after a request, so if the delay between a "command to open=True'' and the "status open= True" and "status close=False" (Yes, i have two sensors) is greater than 3 seconds i have an alarm.

In this example i am using 10 valves but normaly i have much more, so i am trying to treat the alarms in a way that i can easily increase or decrease the quantity of valves. My first approach was to make a cluster array and treat each index in a FOR loop, but i got stucked because of the time i have to wait before the alarm. Any sugestion??

i am sending an example of the vi with my unsuccessfully first approach. (i know that is not working)

thank you!!!


Hamamatsu DCAM_API init function reconstruction in vb

$
0
0

Hello,
I am working on controlling highest resolution x ray sensor from Hamamatsu C9732DK. 12cmx12cm
They have example for Labview, so it is very easy to rewrite in visual basic

Only problem that first and most important vi init function tm_initialize40.vi  is password protected, and i can't see what kind of dll calls it is making, and without that call, other functions does not work (just like in original DCAMAPI.dll)

example could be downloaded from here:
https://dcam-api.com/assets/software/HVC_4004.zip
Does any one know how can i open or how can i know, what kind of dll calls that function is making with what arguments and data types, so i could remake it in vb ? All i know, that it uses tmcamcon.dll

Please any one, help me out here, it is very important to me.

sampling rate

$
0
0

Hi everybody,

               I need some ideas to work with sampling rate, here i have some doubts.

1. I was acquiring a voltage signal from daq device usb 6211 with rse configuration mode and i have added sapling clock to acquire a samples of 10 per second per channel but i don't think it was getting a 10 samples per second per channel, instead of that it takes 10 seconds to acquire next set of samples to acquire.

2. My questions is that sampling rate which denotes no. of rate of samples to acquire per second per channel or it will be used to set for time delay to acquire a samples.

as i am a new to this labview, need to know about this important thing,

Thank you in advance,

regards,

Dinesh

LabVIEW PID controlled PWM output

$
0
0

Dear All,

 

I need to control the heater with set temperature. My idea is to use PID control which can output duty cycle percentage and in-turn generate the PWM signal to control the SSR using single board RIO with 1 KHz frequency.

 

I have searched the forum for previous post. But unfortunate to find right one, most of them uses DAQ to generate variable duty cycle PWM output. Hence am using RIO digital I/O line in RT, am not familiar on how to proceed.

 

I would be happy to see the replies.

Visa Serial interface problem

$
0
0

I am trying to read an array of string using the code as attached. I have an error with "scan from string" block every time I run the program. you can find sample of my data to be sent by my hardware to Labview as below

 

D10112.31D10212.31D10312.31D10412.31D10512.31D10612.31D10712.31\r\nCapture.PNG

 

Find if string contains valid float

$
0
0

I have attached a VI.

A separate MCU board, sends data on computer COM port, in ascii format as below:

 

$-999.999;-999.999?

 

Total length of string is 19 max. It can be less than 19 also, for example number is small like  $9.999;9.999?

VI, continuously scans for 38 bytes of string, Then serach for $ & then take out two numbers in between from them. In VI,number separted are in string Voltage & Current.

 

Now sometimes, I read incorrect string also. So is there anyway to check the Voltage & Current strings, if they contain valid number between -999.999 to 999.999

 

 

Labview 2017 Co-simulation Multisim VI

$
0
0

I am trying to build a hybrid power system with wind and solar power in Labview 2017. I have completed the Wind Turbine part of the system but I have some troubles with the PV. I built a circuit in Multisim 14.1 and I am trying to run co-simulation between the two programs. In Multisim I have already set the Labview terminal inputs and outputs. But when I go to use the Multisim Design VI, it is no where to be found. Was it erased from this version of Labview and replaced with something else? If not please let me know what have to do to get this to work.

 

Thanks

Unable to analyse ECG signal

$
0
0

Hai, I'm new to LabVIEW and currently doing a project about bio-signals. 
I came up with a program and I was able to collect my bio-signals. However, I'm unable to analyse it. My ECG analyse program either keeps saying that it doesn't have any input or it keeps analyse the wrong info. Is there anyway to improve the program to solve the problem?
I attached my program for reference.
Thanks.


Question about Format Into String Function

$
0
0

Hi, I make file name using Format Into String Function.

 

I want to make file name

Date_Name_bio.txt

but Format Into String Function create blank(spacing?)

So, file name is made 

Date _ Name _ bio .txt

How can i remove blank(spacing?)??

 

string.png

Export projects with Scilab Nodes

$
0
0
Hello everyone! I am currently trying to export a LabVIEW-project with Scilab nodes into an application file (.exe). I noticed that all VIs which include Scilab-nodes cannot be exported to an application file since I updated LabVIEW from Version 2016, 32-bit to LabVIEW 2017, 64-bit. During the application building I don’t get any errors and the application-file is built, but when I open the exported application I get the error message "The VI is not executable. The full development Version of LabVIEW is required to fix the Errors." As the program works properly when it is not exported, I assume that the code does not contain any errors and that the LabVIEW Scilab Gateway is working correctly (Scilab and the LabVIEW Scilab Gateway are updated to the 64-bit verison). Projects without Scilab nodes can also be exported without problems. The file ‘ScriptSiclab.dll’ is placed in the project folder and was selected as ‘Source File’ and ‘Always Included’ when the exe-file was built. Additionally the ‘ScriptScilab.dll’ was inserted to the Runtime-Engine (…National Instruments\Shared\LabVIEW Run-Time\2017\script'). As the ‘ScriptScilab.dll’ was not included as in “..National Insturments\LabVIEW 2017\resorce\script” I took the ‘ScriptScilab.dll’-file from the 2016 LabVIEW Version. In the attachement you can find a screenshot of a simple program opened in LabVIEW without export (working correctly) and the exported application (left) with the error-message. Also the block diagram of the program is attached. Have you ever heard of this problem? Do you have any suggestions what I could try to make the export work? Thank you very much for your help!

field fox microwave analyzer version N9918A and LabView

$
0
0

Hi,

I have Labview 2015 , but no experience with it,I have a project implemented on labview,it consist of wide band spectrum sense code.

-the first question is :

-if I make a spectrum scan   for a signal generated from a signal generator using the labview and usrp 2932,is it possible  saving this data as a file in the labview?

-and how to use this data in the microwave analyzer,in another word how to make connection between the labview and the(field fox microwave analyzer version N9918A ) ?

I would highly appreciate any help. Thank you very much for your time.

Control about LabView activex a CANoe test environement

$
0
0

I have a problem, I want control about LabView a CANoe test envirionment.

But If I add an automation refnum, I can only choose between 2 classes CANoe.IApplication3 and CANoe.IMeasurement, I saw a example which are used a autmation reference CANoe.ITestCase and about invoke node a ITestSequence and a proberty node ITestCase which selected the test case.
Could help me somewhere how I can show a access to the other classes?
The example which I find is stored in LabView 2014 and I used 2013 so I can't open this, have somewhere maybe a Vi example which open a CANoe Cfg and start a test case?
Thank you

 

write to spreadsheet file issue and in sampling rate

$
0
0

Hi to all,

      I have created some vi to acquire a signal and save it in a csv file but when i was analysing it, at the 0th sec , the values which it was acquired is displayed in a same array that time label displayed but at the 1st second it displays in a next row of the array, i don't what was happening?, i need some ideas to clear the issue and also at the sampling rate when i was increasing it to 1000, there is a time lag to get the results, the project i deal with this is lvdt analysis, when i was moving the lvdt i need to see the voltage variations but at the high sampling rate there is a time lag to get the values and display it in a xy graph i was using NI usb 6211, need some ideas.

 

Thank you in advance,

Regards,

Dinesh

New VI - default window size

$
0
0

Is there a way to specify the default window size when the "new VI" action is invoked? Both for the block diagram and front panel?

 

In 99% of cases the front panel is way too large by default. I know I can just resize after, but it's becoming tedious to do.

New class VI - template modification

$
0
0

Is there a VI file that can be edited to change the default generated class VI for both static and dynamic dispatch?


LabView communcation with rs485

$
0
0

I have a labview 2012. Now i try communicate with schneider electric em1200 through rs485 protocol. I do the program. But it show what we give to write buffer. please any one help me. how to program. front panel.PNGblock diagram.PNG

Synchronization of two DAQ Assistant USB-6003

$
0
0

Hi all, I'm creating a VI which is supposed to use two boards USB-6003 to take some measurements. The first one is reading a voltage from two lasers which measure distance, the second one reads a voltage too, from a load cell. I need to take these measurement at a relatively high rate (50k) for a total amount of sampes of 5k. I set the two express VIs of the DAQ assistants ant they work well, but since now they are completely uncoupled, the two measurements are not synchronised. How can I modify the program (or the DAQ assistant settings) in order to reach this task?

 

Thank you all!

Arduino UNO+HC-SR04

$
0
0

Hello,

I tried all solved and unsolved examples of Ultrasonic HC-SR04 sensor using Arduino of this discussion forum. But No-one works well. All VIs showed "Timeout Error" except this attached VI. But this VI always shows a constant value (48) as distance/result. I am using Arduino IDE 1.8.0. When I used Arduino code (Picture attached) the sensor works very well but I need a LabView code. I will use this code as a subcode/subVI in my main program code.

 

Any kind of help appreciatable. 

Read VISA signal on function generator

$
0
0

Hi all,

 

I´m using labview (VISA I/O) to remote control a TGP3122 function generator. I set the wave parameter (kind of wave, frequency, amplitude ecc), turn on the wave, and then I want to read the voltage value, but I cannot find the command to do that.

 

In other words, when the function generator is working, I just want to know the voltage in that moment. How can I do? My idea was to use VISA write to ask the instrument for the value, and then VISA read, but as I said, there is not a command apparently.

 

Here is a link with the instrument manual, with all the remote commands: http://resources.aimtti.com/manuals/TGP3100_Series_Instruction_Manual-Iss2.pdf

 

Thank you for your help!

A Problem of "Reference"

$
0
0

Hi, 

I have a problem to refer to a type which is contained into a cluster which is contained into an array. So the array is an array of clusters. 

Here is my SubVI

image.png

And the references which are contained into the "Array Reference out" refers to an Enum of the Cluster "Element". But I don't want that the references refer to this cluster "Element". I want that the references refer to Enum of the cluster of "array 2". Do you see what I mean ? In fact, I want to blink an Enum and if I can't acceed to this Enum by a reference, I can't blink it. However there is an Enum which is blinking but it is not the right. It is the Enum of the cluster "Element" ...

 

Thank you very much ! Have a nice day ! Smiley Very Happy 
 

Viewing all 69027 articles
Browse latest View live


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