Quantcast
Viewing all 66749 articles
Browse latest View live

Elapse time to string vi – Display Hours-Hours-Hours instead of Days – Hours - Hours

Hi folks,

i'm a little stumped with my 'Simple Elapsed Timer'.

The timer rolls over at 23:59:59 but what I need is to roll over at 999:59:59 (hhh:mm:ss).

I appreciate I can use %D for days but the graphical data needs to be presented as 100's hours v process variable.

Can anybody offer any suggestions

 

Regards and tia

%H:%M:%S%1u


please help for a simple question to modify string content . Thanks for help !

Hi:

 I try modify this attached file.

I want change name from TC000649 to testcase2.

but after I save as name testcase2. it keep as name TC000649.

it did not change to name from TC000649 to  testcase2.

I try file, save as

 copy -create a copy on disk

substitute the copy for original

create a unopened disk copy

open additional copy

rename file.

they all return No change.

please help me.

Thanks

 

 

VISA Serial Connectivity Issue (invalid property node?)

I am using two Sparkfun FTDI Basic breakout boards to send receive data via UART. Yesterday, everything seemed to be working fine and I was successfully transmitting and receiving. Today, I changed a few minor and irrelevant things in my code, briefly had the USBs unplugged, and now it suddenly seems to be saying 'no thanks' and not cooperating.

I've read through the various similar discussion forum posts, however, it seems that while this is a somewhat common issue, the solution is heavily dependent on the device(s) being used. 

 

When I open NI-MAX and create a test panel for one of these devices, I am able to write the default data (*IDN?\n) but as soon as I try to read status bye or read the data I get the following error messages.

 

1. Read STB Operation
Error

VISA: (Hex 0xBFFF003A) Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).

 

2. Read Operation
Error

VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.

 

It looks like the device attribute "is port connected" is an invalid property node. Perhaps this is because it is not an NI-serial device? Does anyone have any suggestions for how I can eliminate this property node both in NI-MAX and in my VI? Unfortunately, the VISA configure function does not contain an input for "is port connected" which begs the question as to how one can delete dependency for this device attribute. 

 

At this point, my troubleshooting has consisted of trying out some of the other USB ports on my USB hub. I've also verified that the 'COM' port that windows is using for the device matches up with the COM port that NI-MAX is assigning. 

 

Thanks for the help

 

 

LabVIEW Application Builder for LabVIEW 2014

I have LabVIEW 2014 without the Application Builder option (to create executables).

I found the following product in NI web: LabVIEW Application Builder - 776675-35

Is this product works with LabVIEW 2014?

 

Thanks

Electronic (V-I trajectory)

I do the project in Non-intrusive load monitoring which need to connect to DAQ NI USB-6008, but I cannot do the V-I trajectory for analysis. In V-I trajectory had seven types of things need to show, such as asymmetry, looping direction, area, curvature of mean line, self-intersection, slope of middle segment, area of the left and right segments and the last one is the peak of the middle segment. How to do the V-I trajectory??

How to add additional source files from new location fold to installer? Please help. Thanks

 Hi:

 I have 2013 labview.

 when I open the lvproj file. 

under Build Specification, i open install.

but the source file Dir. can not change. or add additional one.

I have other new files in different location.

according to this link:

http://digital.ni.com/public.nsf/allkb/842DC4802B0A33AD862572E200592DAB

 

" Archived: Changing the Location of an Additional Installer in My LabVIEW Project - National Instruments

  • When you build the project installer, you will be prompted to browse to the new location of the additional installer"

BUT I did not see this prompted to browse.

 

Please help.

Thanks

 

 

[Help] add Phase shift to a sine wave from logged data

Dear all,
I wanna add a phase shift to a sine signal from my logged data. I follow some threads in this forums to do it. With the logged data sine wave, at the starting point and ending point, the signal is not shifted as expected. However, if I replace the logged sine wave by a simulated sine wave, it works well. 
I attached my VI here and please help me to fix it.
Thank you so much guys
Image may be NSFW.
Clik here to view.
error.PNG

Delay Time Making Delayed Values

I am Using An IR Sensor and USB 6221 To open or close Pneumatic cylinder.

I did that Vi in attachments .. It is working good until i use the delay time in the second frame of flat sequence.

Without Delay It works good but it opens and closes too fast .. i need it to stop a little time before it closes

With Delay it makes the values which are read from the sensor are not accurate so the program isn't working well

So the question is

only what I need is a stop time between the two phases not a delay for the whole program


Play tone for duration of space bar press

I would like to use the key press event to play a tone for the duration of the key press. Does anyone have an example for how I can do this?

Increase the sampling rate of keithley 2000 DMM

I am making a labview programme which requires data (AC Current) at 1024 Samples/sec. The Keithley 2000 DMM can supply at 1024S/sec. 

 

In the manual, I read that to do so, I need to create a data buffer in the DMM, configure the trigger, send the trigger, initialize the trigger, wait for the data acquisition and then read the buffer.

 

Problem:

1). The VI is giving a timeout error

2). While creating the data buffer, keithley 2000 gives error -140......I guess because of this error....I am getting a timeout error in the VI.

3). Also when trying to read the buffer, I don't know how much byte to read.......I only know that I am reading 1024 data points....Therefore I am using the max 32768 bytes....but still getting the timeout error....

 

I have attached my VI, manual and the screenshots of the commands from the manual that i have used.....

 

Edit: I have attahed the VI of 2013 version also...

 

Thanks in Advance!!!

Zip and Unzip Flattened Double Array fails

I need to serialize and zip measurement values stored in double arrays. This method is required and cannot be changed. I am using the OpenG ZLIB Library.

 

Now the other way around should be pretty straight forward but for some reason this fails every now and then.

 

The attached vi demonstrates the behaviour. The upper array will produce an error while inflating the lower will work just fine. Both arrays are the same size.

 

Any advice?

 

Image may be NSFW.
Clik here to view.
inflate_fail.png

Needs Support Material

Hello Guys!

I need preparation material for Certified LabVIEW Developer and Architect Exams.

Kindly email me at ghazanfar.1995.ali@gmail.com

.dll not found windows 10

I use LabVIEW 2015 32bit. I build an exe.  I works fine on Windows 7 64 bit. But the same exe can't find an .net dll on an W10  64 bit PC. The dll is in windows/assembly/GAC_32/ folder.

 

I also tried to copy the dll in the application folder. It was still not found.

 

When i select the dll manually  in the search dialogue, the program works fine.

No scientific numeration

Hi,
For some reasons I need to compute large numbers (like 50 digits or more), but in LabVIEW if you have a number like: 15489948953486486... so on, it will be represented and compute like, for example, 1.5E+48 (48 zeros).


I need help to avoid these zeros and use the "all" number, without any rounding as the attached example lines up.


Thanks in advance.Image may be NSFW.
Clik here to view.
The problem is that the output of the exponential function is not totally accurate, and this rounding effect increase the error on ahead operations  :(
The problem is that the output of the exponential function is not totally accurate, and this rounding effect increase the error on ahead operations Image may be NSFW.
Clik here to view.
Smiley Sad

 

 

 

 

 

Only one reference to a control is working

Consider for example the following code, which is working as expected: Everytime the button is clicked, the LED is changing its state.

 

Image may be NSFW.
Clik here to view.
baseline_working.PNG

 

Now I wrap the functionality into a sub-vi and use references to the controls:

 

Image may be NSFW.
Clik here to view.
subvi.PNG

 

And here is the corresponding test fixture:

Image may be NSFW.
Clik here to view.
test_subvi.PNG

 

The version with the sub-vi is working only if I use just one instance of the sub vi. As soon as I use two (or more), only one of them is responding to mouse clicks.

 

Can anyone help me how to fix this?

 

Thanks a lot,

Michael


Get Folder's Size on disk (not size)

I'm trying to get the Folder's "Size on disk". It's working with "du.exe" using "System Exec.vi".

I don't want to use System exec.vi as it increases dependency.

DLLs, .Net Constructors, Property nodes etc is fine.

OS and S/W Info: Windows 10 - 64 Bits and LabVIEW 17.

Note: You can find all details related to du.exe here.

Please suggest an optimized and correct way of implementation.

 

Image may be NSFW.
Clik here to view.
2018-02-22_1537.png

Dump data from xy graph on the hour

Hi all,

I have been cobbling together the attached vi in order to track power consumption of some instruments (replaced by the RNG in the attached) that plot 2 values in real time on the same graph. I would like to run this vi indefinitely so the use can be tracked by eye (which works fine here) but I also need the data to save at regular intervals. I can right-click the graph and copy to excel no problems but I need this done automatically, ideally every hour and create a spreadsheet with 3 columns, absolute time, value 1, value 2 with the file name time-stamped.

There are numerous topics on this board that have all different ways to do almost what I need, but I'm fairly new to labview so could do with some pointers making it all fit.

Thanks in advance for any help.

3D picture object position while rotating

Hello,

 

I load stl model and generate additional display objects on 3d picture controll. I need to rotate camera around main objects. Other items need to 'move with camera' so they are always displayed in the same way. They somehow move with the camera.

 

Is this somehow possible?

Chirp Waveform

Hi,

 

I've modified the signal generation example to meet my requirements. I have a shaker which is controlled by a NI9263 within a cDAQ9172 with also a NI9215 to monitor it. 

What I want to produce is a chirp signal. At the moment the vi does what it is supposed to do. However my question is (maybe very basic but I cannot find a way) how to assure the chirp is only carried out once? Now, when the first frequency swept is finished, it immediately restarts from "Start Freq" until Stopped. I would like it to stop once the frequency sweep is finished.

Thanks for your help. 

Relay control by PWM

Hello everybody,

 

I'm developing a VI for controlling the temperature. I want to control the cooling with the fan with a relay, so I thought about doing it with a PWD. How can I generate it? I tried with the Simulate signal tool (0..1) and converting the signal into boolean values using the >0 comparison, but it doesn't work.

 

How can I generate this signal? Can I keep going this way or should I try another method?

 

I'm using cRio with the module NI9485.

 

Thank you very much in advance.

Viewing all 66749 articles
Browse latest View live


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