Quantcast
Channel: All LabVIEW posts
Viewing all 203034 articles
Browse latest View live

below 10msec data acquisition : GPIB or NI-DAQ ?

$
0
0

Hello, 

I would like to measure continuously a voltage drop on a resistor, with a sampling time < 10msec for a 1sec, then sampling of 100msec for the next 10sec (this is to simplify). Then repeat this cycle of measurement until pressing STOP button. 

To go further, my resistance has a non negligeable TCR, so that when supplying a step voltage, it is self-heating. So I want to get the  "voltage" herafter setting 5V (heating), and also heafter setting 0.1V (cooling). Heating duration at 5V ranges from 1sec to 10sec, idem for cooling. So basically, I need fast acquisition only during the first 1sec of heating and cooling. 

 

My concern is how to get  <10msec sampling using GPIB. 

 

My setup is based on GPIB-USB-HS with VISA type communication using Labview 2012.

Voltage source (SMU) -  1 resistance (1kOhm) - GND. 

I put 3 DMM between the source and the GND to measure simultaneously the voltage drop on this resistance.

Don't make comments on that stupid setup, this is just to simplify my problem. 

The DMMs are Keithley 2182 (9 digits), Agilent 34410A (6 1/2 digits), HP 34401A (6 1/2 digits).  

 

Agilent E5263A provides the voltage source between 0V to 5V, in DC mode. As SMU, I can also read the voltage and the current using GPIB commands. (no comment like I don't need DMM because of SMU voltage measurement etc etc ..; thank you). 

 

The DMM are set to 4 1/2 digits in order to speed up the data acquisition using a minimal GPIB commands to each instrument. Rather than using existing sub-vi from the maker, I just send the necessary command, like READ?. 

I use a Model 9700 to measure the temperature on a holder using a TC (just for information). 

 

I measure the differential time between "before" sending the command and after reading the values. This is dt (msec). I expect to get the lowest dt, since I have no sampling time set on my while loop.

I also read the data, and display the indicator for each data, and also plot a waveform chart for each one. This is typically what I need. I agree that I can create a producer/consumer and enqueue the data then dequeue in a parallel while loop and display/graph. No problem. 

 

SMU E5263A : dt = 5msec  for reading Channel 1 

34401 only (NPLC = 0.2) : dt = 23msec

34410 only (NPLC = 0.2) : dt = 16msec

2182 (NPLC =0.2) :  dt = 33msec

Model 9700 : dt = 15 msec to read 1 temperature channel

 

But E5263 + 9700 + 34401 + 34410 + 2183 : dt = 45 msec

 

I can improve dt as I explained before (enqueue / dequeue and plot). 

However, I think that I reached the limits of using GPIB for what I want to do. 

 

I am wondering how fast could be the same data acquisition if I replace all the DMM by a DAQ-NI-USB-6251 and read the analog inputs (there are 8 channels available on the 6251 and 1.25MS/s) ? 

Should I use an oscilloscope with a trigger, and output the buffered data for each cycle ? 

Any other suggestion or example or link to similar topic ? 

Yours

 

 


Re: labview ask for unused drivers while creating installer

$
0
0

If i put a checkmark for automatically select the drivers ,it ask me for NI DAQmx drivers which are not installed in my pC.

can u please provide me those drivers?
i have searched for the same but unable to download from NI website.

Re: crc32 of a binary file

$
0
0

 wrote:

Plus, there was someone who recently came to this thread on a Google search and complained about people suggesting searching Google as a solution.  Yet, this person hasn't come back to this thread for help, so apparently Googling WAS a solution.


Can't figure out who is supposed to "look especially dumb" exactly: the user asking or the one who posts to google? (I'm won't tell who I'd pick):

 


 wrote:

Telling a user to search is not useful. And looks especially dumb when it is on a google result. Just don’t post if yo don’t provide an answer.

Re: List all attached devices

$
0
0

Hello Benoit,

 

I've not played around with the .net functions.

I'll see if i can amend your code to report the device name as per my example i just uploaded.

when i run your VI the name description are reported as illustrated.USB_Scanner.png 

Cheers,

 

Iain

 

Re: creating 1 million text files in labview

$
0
0

Also review if you really need to save all those data points. Often, it can be enough to save analyzed data, e.g. min/max or a subset representing e.g. a detected peak.

 

And if you really need all that data saved, I suggest using tdms-file(s). You can tag your data and storing to them even when they get huge is no problem.

 

But, it is useless to store lots of data if you do not have any means of searching and viewing/extracting it in a meaningful way. By date-stamping and tagging, that is at least a lot easier, and that can be achieved using tdms-files.

Re: Having an executable expire

$
0
0

A harder way to prevent hackers, is to put in an external file a counter that change/increment. if that file is modified or recopied, you can detect that by adding a CRC check. The best is to add multiple feature that makes the hacker lost in the way you do it.

-Windows registry check

-Windows file installation (if current clock is older than a specific file date, then lock)

-Your own external file that you modify with the installation date and current date... if date mismatch lock

-Internet time match current computer

-SMTP server time check

Your imagination is the only stopper for this kind of security.

Design one that is multiple check and then you should be ok.

 

Benoit

Re: Having an executable expire

$
0
0

Hackers love a challenge Smiley Very Happy.

 

How about installing in a VM? Problem solved (the hackers problem that is).

 

Think about your audience. How likely are they to hack into your application? If you put it online for everyone to download you might give it some though. Even then, the LabVIEW community isn't that big, your audience smaller, and the nr of hackers even smaller, the nr of hackers willing to put the hack online close to 0.

 

How bad is it if 1 of 1000 (or 100) users hacks your application? You might lose money, but how much? I'd say almost always every effort to protect beyond the minimum will be a waste of your time and money. But I don't know your numbers...

 

Re: creating 1 million text files in labview

$
0
0

I agree with most above, but if you really want to go with 1m small files, store 1000 in 1000 folders. It's a simple Quotient and remainder to calculate which folder and name should be used.

/Y


Re: How Save Multiple signals that are coming from different While loops in a single Excel file

$
0
0

Actually I forgot there is another detail there is actually another loop meant to take the Voltage mesurement (and the other 2 as well ) tried some stuff sadly didn't work any idea how to fix it ?

Serial data parse, remove head

$
0
0

Hello,

I am newbie in labview.

I need simple labview program for reading from serial port, convert 2 bytes to one uint16 value, and show them.

I am receiving 26 bytes. Is it posible to work like that:

Read bytes, and when 2 bytes of head appear, read next 24 bytes. 

Or is it some better solution for reading like that?

Here is example of my incoming data :

F490 F495 F489 F492 F48F F490 F488 F489 FFFF F4A5 F497 F486 F492 F494 F493 F493 F49C F494 F494 F49F F49A 

FFFF is head.

I didn't find any topic here about this problem.

Re: Serial data parse, remove head

$
0
0

It's definitely possible to do what you want.

 

The two bytes can be joined to form a U16 using Join Numbers.

Checking for FFFF can be done by checking each byte for FF, then checking if the next is also FF.

 

However, if you know the format of all of the data and can establish the "phase", for want of a better term, you can read all of the data and parse it appropriately.

 

Are the incoming data that you described (.... FFFF ....) the string representation, or are you receiving them in some other form? Take care to note that one byte of serial read will give you one ASCII letter, but that you need two hexadecimal characters to form a full byte numerically (i.e. FF = 255 = 11111111 base 2)

Re: where can I down load zlibinflate

$
0
0

 

One questions.. the VIs can't run because of "Call library founction node: library not found"?

 

Where can I download the lvzlib libraries? Thanks.

 

Re: Serial data parse, remove head

$
0
0

Thank you for answer,

so, i need to read byte by byte and using simple IF statement for checking if Byte is FF.  And how can i check next byte?

Sorry for my question, but I don't get it.

when data comes in one time, it would be OK, but I am sending this 26 bytes each 10ms. 

Could you provide me simple diagram of this serial communication?

My serial communication work, I've opened serial port, Checking bytes, and if there more bytes than 1, I am reading that in while loop.

Re: Serial data parse, remove head

$
0
0

Read two bytes at a time (one byte at a time will just give you F, right?) then check for repeated true comparison.

 

Here's a simple example:

test.png

 

Some comments are given to show possible alternative choices - for example, if you know you can't be off by a byte, you can read 4 bytes (ASCII, so 2 bytes of binary data) then check directly for FFFF. However, if you might be offset, that could lead to xxFF, FFxx, which wouldn't satisfy the condition.

Re: Serial data parse, remove head

$
0
0

I hope its better to read all data bytes in the serial Buffer at once and Process a String Operation to Find the header and Data payload.


Re: Data from Picoammeter to PC via RS232-USB cable

$
0
0

I am new to LabVIEW, and i want to measure current with my Picoammeter 6485. I want to store data from picoammeter for time duration like 10 Seconds. 

there is a example program named 'Keithley 648X Series Acquire and Enable Relative Values'. will this do the work?

Re: Ni- Scope How to change the time base?

$
0
0

I am not sure if you can change the horizontal timebase but you can change the sample clock time using property node. Below image migh help you.

timebase.png

Re: Image Processing - Rectangle recognition

$
0
0

Hi, thank you very much for the tips!

 

I used the Brightness, Threshold, Filter functions, in this order. You were right, the rectangle looks much better now, the edges are almost straight. The lines are very easy to be found by the function Shape Detection, but I still cannot find the Rectangle (see the enclosed pictures). The image before processing is enclosed as Erste Marken_5.png. The results of Shape Detection function is to be seen in the other two pictures.

Maybe there is something wrong with my settings in Curve Settings in Shape Detection function. I do not understand all options there (picture below.)

Settings.png

 

Thank you very much in advance for the next tips.

Re: Interfacing labview with keithley source meter

$
0
0

Hello. When I click on the file IV_T_2602A.vi, an error occurs as attachment shows.

How can I fix the error while I use LabView 2018 please? Can Lakeshore 340 be replaced with Lakeshore 330? Is there a way to change the big blue coordinates such as x-axis to be voltage and y-axis to be current please? Thank you so much.

Re: Serial data parse, remove head

$
0
0

Can you be sure that the buffer contains the whole phrase? If it is coming in slowly then it could take a while for it to appear there, better to work iteratively.

Viewing all 203034 articles
Browse latest View live