I'm trying to solve a basic question in Essick's 'Hands On Introduction to LabView' If the iteration value is > 10, then the round LED lights. I've used all the suggested icons in the questions. Still, the VI doesn't work. I'm quite new to LabView and still familiarizing myself.
Greater Than 10 check
Consumer Producer Loops
Hi all, Background : Want to stream data to Binary file from Keysight high speed digitizer M9203A being sampled at 200MSPS= 400MBPS from four synchronized channels. Procedure followed: After fetching 200M Samples from all the channels writing them in four individual queues in producer loop. In consumer loop Dequeue all the Queue and create an array and write the array to TDMS or Binary file. Problem Facing/ Optimization requisite : Since the data size is very large any new array occupies the system memory.
In producer loop I have avoided any additional large size array by writing fetched data from Instrument directly to the respective Queue.
However in consumer loop I have to build an array of data from all the four channels before writing it in a TDMS file.
Is there any way I can avoid making this array as well.
Looking forward to your valuable comments.
thanks
jayant
How many methods are there to add hardware timed timing control to the DAQ and outside circuit?
Hi there!
I am about to add hardware timed timing control to my DAQ and outside circuit to substitute the "WAIT" vi. I haven't found a suitable method to achieve the goal.
So may I ask how many common methods are there to add hardware timed timing control to the DAQ and outside circuit?
(M series DAQ and LabVIEW 2016)
Thanks a lot!
Best,
Jason
How can I program the AVR microcontroller using LabView?
Hi,
I want program ATMEGA128A using LabView.
I have read documents related to this subject and I tried but I didn't.
I heard C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition. Could this be a solution for me?
My MCU has not a bootloader. Should my MCU has a bootloader , how will I program the AVR using LabView?
How can I make a similar AVR studio using LabView?
Are there other solutions available?
be very happy if you inform me.
How can I program the atmega128a using LabView?
Hi,
I want program ATMEGA128A using LabView.
I have read documents related to this subject and I tried but I didn't.
I heard C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition. Could this be a solution for me?
My MCU has not a bootloader. Should my MCU has a bootloader , how will I program the AVR using LabView?
How can I make a similar AVR studio using LabView?
Are there other solutions available?
be very happy if you inform me.
Analog Output Electrometer
Hello,
I am working with an electrometer which can resolve currents as low as 0.1fA
and measure as high as 20mA in 11 ranges.
With the analog output of the device (0V - 2V) i go to an analog input of the NI 6009.
The output gives an analog output signal for each range seperatly.
(For example: 1.67 V can be 16.7 mA but also 16.7 nA)
How can I know in LabView in which range I am?
Thanks!
Verification of Labview progamm to calculate signal to noise ratio
Hello,
i want to measure SNR of a simulated (or acquired) signal. For that, using two Harmonic-distortion-vi, i have extracted fundamental and residual signal from my simulated signal. Can you please check the attached vi and tell what i did in there is right or wrong?
Thank you.
Best Regards,
JP
Problème bouton stop inactif
Hello everybody !
Un brin de nostalgie car ce sont mes derniers jours de stage sous labview et le codage va très vite me manquer !
Je reviens vers vous car je fais face à un problème auquel je n'arrive pas à trouver de solution.
Il s'agit de mon bouton stop qui au cours de l'execution n'a aucun effet lorsque je clique dessus. Il ne s'enfonce pas, l'aspect du bouton reste inchangé. L'action mécanique est "armement au relachement".
Comme d'hab, tous les conseils sont les bienvenus !
Bonne journée à vous
Problème bouton stop inactif
Unable to connect to an IP adress through a browser opened with Labview
Hi all
I'm trying to create a VI where you have a web page opened inside a Lab view program. This web page should only be connected to a certain IP address corresponding to an electric meter. I have tried putting the IP address inside the URL, but each time I try to, I am either unable to connect or I get this error :
A translation gives : "An erreur has occurred in the script on this page", the Error being : "String, number, identifier expected". It then asks if if I still want to execute the scripts on this page. If I say yes, the page is then stuck with a black screen, and loading is written in white in the middle.
Both Edge and Firefox (the two browsers installed on the computer) correctly link to the IP address without any issues. I tried changing "/" to "%2F", its UTF-8 equivalent but it didn't change anything. Here is a copy of the program :
If anyone has any idea of how to solve this, I'd be grateful.
Persistance of Shared Variable values
Hi,
A colleague was telling me about using Shared Variables because the SVs preserved values between runs of the software. I have been looking online for a description of this property because I want to understand it's use case and limitations.
For instance, if I have an application on a Windows machine, run it for a while such that the SVs are populated, stop everything and reboot, what will the state of the SVs be?
Does data retention require the DSC module? And related to that, does data retention work in a cRIO? (Will the values persist across a reset?)
Thanks!
Channel Wires on RT systems, duplicate VI error
I am using a Tag Channel on an RT system and then serving the data to a client. However every time I "build" the source package for the RT system I get an error about duplicate VI names. This seems to be an issue with the implementation of Channel Wires on RT systems.
LabVIEW prevented a file name collision during the build. Duplicate file names cannot be copied to the same destination. You can rename files as part of the build process to avoid name conflicts.
The following files were moved to a unique location:
C:\Users\sth\Documents\LabVIEW Data\2017(32-bit)\ExtraVILib\ChannelInstances\Tag-a[.](dbl)\Initialize.vi
There is only one tag channel of a 1D array of doubles. This channel has only one writer in the main program and only one reader in a sub VI. So why does the build think that there are two Initialize calls and that they are different VIs? The Initialize is in the class definition.
LV 2017SP1. RT system is a cRIO-9039 RT linux. Is this a bug in the implementation on RT systems?
Setting probe type through labview
I am creating a basic Labview program to capture a waveform once triggered. We have multiple probes that are measuring different things and I want to be able to change the probe type from current to voltage through Labview. Is this possible? Also Is there any way to detect what type of probe is connected to a certain channel in Labview? I have a Tektronix DPO 2024B Oscope and both the plug and play, and IVI drivers installed for it.
VHDL Code for CLIP Clocks (FPGA Module)
Hi to all,
I'm trying to use the Configure Component-Level IP wizard to create the declaration XML file automatically from the vhdl.
I'm following the procedure on http://zone.ni.com/reference/en-XX/help/371599N-01/lvfpgahelp/fpga_clip_clock_ex_code/
when I try to do "check syntax" in step 3 of 9 I always get the following error:
Compiling architecture rtl of entity xil_defaultlib.clipgenerateclks [clipgenerateclks]
gcc.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
Fix the above error and check syntax again.
Can someone help me?
Thanks in advance.
Giovanni Maio
Incrementar Enum llegando al máximo
Programmatically Add Network Device to visaconf.ini
For some background, our software can communicate with many devices using VISA, so each device gets a simple VISA resource drop down. In order for a network device to show here, it needs to first be added to NI-MAX. We would like to incorporate something like the wizard in MAX into our software so that the device can be added to the list of available VISA resources. I know how to construct the resource as TCPIP0::<address>::INSTR, but that would need to be selected separately, it wouldn't show in the VISA resource drop down.
The visaconf.ini file doesn't look too difficult to edit, but before I dive into that, I was wondering if anyone has used any NI DLLs to accomplish this. I'm not sure why the system configuration VIs don't have this functionality, they all use nisyscfg.dll, but it doesn't look like any functions in that allow for adding a new resource.
At this point I assume that NI-MAX is just editing visaconf without using an external library and this is what I would have to do as well, but if anyone knows of an existing way to do this, it would be greatly appreciated.
NI Scope - Configuring a Stop Trigger
The following example is configured to acquire data in producer-consumer architecture and stream acquired data to disk.
How can I change this program to work around a trigger event. I want to acquire data only between 2 trigger - start and stop (reference) trigger. And then write the acquired data to the disk. The following is a scenario.
- using a pulse train running at 1 Hz (1 sec time domain) from a pulse generator with trigger
- At this point I assume that there is a trigger pulse generated before every actual pulse
- spec says delay between trigger and actual pulse is 4.0ps
- How can I change the example to add in a reference trigger that detects the next trigger pulse and stops acquisition. So the total acquisition time = 1.0 s
Any advise is appreciated. Thanks!
The following are the references I followed to understand how to add a stop trigger but was unable to complete:
- https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MiHSAU
- http://www.ni.com/tutorial/4329/en/
- Use of start and reference (stop) trigger together with niScope
LabVIEW 2018 Python Node preserving state between calls
I'm working on porting a large code-base from LabVIEW 2012 and the OpenG LabPython toolkit to LabVIEW 2018 and the native Python Node. One issue I've hit is how to preserve state on the Python side between calls to the Python Node? I naively assumed that it would work like the LabPython toolkit did - each session refnum was an instance of the interpreter and once objects were created in the interpreter they hung around until the refnum was closed - but it seems that I'm mistaken!
Is there a way to instantiate a Python object of soem sort in one function call and then get at it in a subsequent call without the overhead of passing things between Python and LabVIEW on every call?
Data logging from multiple sensors via RS232
I am measuring data from 3 oxygen sensors which collect into a single controller. The controller connects to my laptop via an RS232-to-USB cable. Using termite and LabView I can see that it continually transmits data that looks like this:
M@@@0141160.3912011M@@@0139506.1563011M@@@0138818.984E4899A03A31011M@@@0141161.1412011M@@@0139500.9843011M@@@0138820.063CE70E003A31011M@@@0141160.8752011M@@@0139501.53M@@@0000000.0002011M@@@0000000.0003011
The actual data is each of the 10 digit numbers following the set of "M@@@"s. (ie. the first oxygen sensor reads 0141160.391 ppm).
How do I isolate those numbers in order to graph the values over time? and separating the three different sensors?
Thanks
pin layout NI 9214
Hello,
does anyone have the pinout for a NI 9214 module? It has a connector that looks like a 3 pin IDE socket. I am thinking about some cable tail like this
https://www.harwin.com/products/M83-LFD1F2N54-0000-000/
and then make up some PCB board with 16 sockets, so I can plug sensors into that. Would make things easier, because we will not have sensors connected all the time. So its not much point to hard wire them in. Or should I buy that NI connector, its some 300+ dollars.