GetDiskSpace on real-time operating system

Is it possible to query the free space on the disk in a PXI system running the operating system in real time.   I get a lot of linker errors when trying to use the GetDiskSpace function which works under Windows. (In Labview, it is apparently something called read Volume information but I was not able to find an analogue to the CVI 8.5)

Jim

Hey Jim -.

The problem is that GetDiskSpace is implemented in the Toolbox of programmers, who is not yet supported on Pharlap.  However, you should be able to pull parts off toolbox.c (\CVI85\toolslib\toolbox\toolbox.c).  All the work to get this function is done by the GetDiskFreeSpaceExWin32 API function, which is supported on Pharlap.

Take a look at the source code and let me know if you have any questions.

NickB

National Instruments

Tags: NI Software

Similar Questions

  • The 1473R CAN be used with the real-time operating system of NOR?

    Hello, I am trying to determine if I can use the OR 1473R framegrabber PCIe FPGA in a PC based computer time real OS OR. Anyone know if this is possible? So I think that it should appear to the OS in real-time as a target FPGA that can transfer the data via DMA, but I wanted to make sure the drivers would work in real time of NEITHER.

    I appreciate any info on this!

    lukepike,

    Yes, you can use this device with real-time OS of NOR.

  • Using FTPClient on a real time with system Exec.vi

    How can I tell FTPClient.exe address target when I start this executable with system Exec.vi in Labview?  I don't want to reinvent the file FTP utility used by MAX with targets in real time. I want to run this executable to a labview support utility without using MAX to do.

    Is this possible?

    Danny

    Thanks for the info.  Your "bad mood" response "suggests" a response to my question.  However, the full answer to my original question is that it is not possible to use FTPClient.exe outside MAX.  It is therefore not possible to spend in the address target at run time if the FTPClient.exe runs external to MAX.  FileZilla is a good choice - there are also other FTP clients out there, but you pointed out a solid choice.  Thank you.

  • Install Windows on SMU-8133 (with time real operating system already installed)

    Hi all

    I have an SMU-8133 NI with a real-time operating system (OR Real - Time PharLap 13.1). Now I want to install Windows on it and make it dual-boot (I want to keep the original real time operating system). So my question is how do I install Windows without erasing the current real time operating system?

    I tried to just install Win7 (starting from USB) but it says "Windows cannot be installed on disk 0 Partition 1" because she needs NTFS (what we have is the FAT I think). If Win7 is unavailable, Windows XP is also correct, but I still prefer Win7.

    Thank you!

    As a general rule, Windows don't play well with other operating systems installed on a drive, there will be some efforts to preserve the existing installation of RT OS if it is a requirement.  The simplest approach would be to wipe the entire disk, installing Windows and then reinstall LabVIEW RT.

    If you can start from scratch, you must first make sure that the partitioning is correct.  Since you did not purchase this as a Windows / controller dual boot RT initially, you do not have Windows installation media OR, correctly configure the partitions from disk for you.  You will need to do this manually during the installation of Windows.  The best approach is to create two partitions, one for the RT and a Windows.  RT the partition must be the first partition on the disk.  Install Windows on the second partition.  Once Windows is installed, convert the 1st partition to FAT32 using the built in Windows or a 3rd party partitioning tool utilities.  You should now have a system with Windows installed correctly and ready to be fitted to RT.

    Change your SMU-8133 to boot RT using the BIOS Setup menu or hardware DIP switch.  It should boot to safemode RT.  From another host PC, find your target in MAX.

    You can now put your target if you want to switch to the FAT32 file system the system of dependency files.  You can do this through MAX, or by using the utility RT USB key.  See herefor details on this step.

    Warning: Before doing this, ensure a MAXIMUM target shows already the correct amount of disk space for partition 1, you created.  If the RT operating system can see a usable partition (FAT32 or dependency) it will set up only that partition by avoiding to touch the rest of the disc.  If the 1st partition is not used, the formatting process will claim rather all of the disk because no usable partition has been found, and you may lose your Windows installation.

    After that, you can perform the installation of the RT of MAX software as usual.

    If you try to preserve your existing installation, you can try to combine the above process with one of the options available for the creation and restoration of RT disk images, although I am not very familiar with these tools and can not comment or creating an image on a single disk partition and restaurant then a disc multi-partition will be successful.  Here is a good linkto start with which describes the options available.

    -JoshH

  • I'm looking for STE in operating system.

    Hello

    How can I get the ETS? can I have a free version or a trial?

    Kind regards!

    Hi Azzam87,

    part of your question has been answered in your parallel thread:

    I have the NI PXI-8106 (non-regular RT) controller, can I install real-time operating system

    http://forums.NI.com/NI/board/message?board.ID=270&message.ID=6825&requireLogin=false

    You can try LV module in real time for 30 days. Download this module, install on the host computer and then install RT on PXI.

    Follow this KB:

    How can I make my PXI controller a real-time target?

    http://digital.NI.com/public.nsf/allkb/21C45EF391059C2A86257241005CA814?OpenDocument

    Simply prepare your PXI. Convert to FAT32 format, after which create the instant USB boot disk in MAX.

    PXI to USB boot. Install the base RT on PXI with this USB utility. After that start to RT PXI and install the rest of the software with MAX.

    See:

    PXI installation/Configuration

    http://www.NI.com/support/install/install_hardware_5.htm

    Kind regards

    Jiri Keprt

    Czech Republic DENIES

  • Timer & events system process

    I usually use a "smart" delay dealing with the events, but I wanted to use a thread separate to process system events. Wording of menchar here, I feel that using a timer, it is automatically in a different thread. Is this true?

    A timer from asynchrous (in fact, all the timers async for a given process) runs on a common, separate thread.  A 'ordinary' timer is a Panel control that will run a reminder on the thread which instructed the Group of experts.

    Events system includes GUI events as I understand it, and these can be worked on the thread that the Committee.  Thus, on the face of it, you do not want to process system events using a 'regular' timer, not an asynchronous timer.

    I don't know exactly what will happen that if you did a process system events on an asynchronous callback to timer on its separate thread - some things may work, others might not.

    In the old days, CVI had a "processGUIevents" function, which was different from the function of "handle system events".  I don't know if CVI maintains this distinction much longer.

    I don't use a timer to make a smart delay, I put the thread to sleep and not the timing, rescheduling the thread after some time operating system.  You do not have a problem, unless you happen precisely set the 'smart' delay in a separate thread (a you created explicitly, or the CVI runtime provided thread timer async) and not expect to update the GUI, you have loaded on another thread.  I intend the delay "smart" to be used only from the main thread - which is the point of it, it allows the process to sleep but will react to user on the GUI input within a short time.

    It seems that the delay NOR will be spinlock, at least in some situations, and NEITHER was told that they treat events from the system during this period, at least in certain situations.  So, using the Delay(), NEITHER would have the same issues if use you some other thread than the thread that has loaded a GUI you are using.

    If your application does not have a graphical interface, there is no problem to use the smart delay on any thread, that I shouldn't think.

    I hope this helps.

  • Hypervisor-HyperTerminal: how to write texts in HyperTerminal to a VI in real-time

    I use on my PXI system hypervisor. With 'Specifications to build', I built my RT application in a standalone rtEXE file and set it as start VI for my RT system. It seems to work, since I have received information from my "hypervisor-HyperTerminal" while restarting the RT system.  He writes, "Startup Application: d:\ni-rt\startup\RTMain.rtexe. However, I don't see how my RT application is running or if an error occurs.  Therefore, I think to write texts or my RT application information to the HyperTerminal.

    I wanted to use VISA to the serial port of the HyperTerminal on the side-access system in real time. I used the example LabVIEW "basic series write and Read.vi ' to 'smplserl.llb '.  Under the system in real time, I found only a single resource VISA name, which is "COM1".  Apparently, I can write successfully texts at the port "COM1", because no error was shown in the example VI. But the texts do not appear on the HyperTerminal.

    Do you have an idea, what I did wrong in my attempt, and how I had to do it correctly? Thank you very much.

    Kind regards

    Scarletice

    Hello Scarletice,

    You can use the Debug String VI (http://zone.ni.com/reference/en-XX/help/370622J-01/lvrtvihelp/rt_debug_strings/) RT a message programmatically to the console at the time on a Real - Time Hypervisor system LabVIEW Real-time.

    Please let me know if you need additional help, and have a nice day!

    Best regards

    Casey Weltzin

    Product Manager, LabVIEW Real-time

    National Instruments

  • On a Linux operating system, what tools need to developed a real-time application that communicates with FPGA?

    On a Linux operating system, what tools need to developed a real-time application communicating with FPGA?

    It is not unclear to me by reading the documentation on the website OR tools or drivers should I install on a Linux operating system in order to develop a C++ real-time application (that interact with FPGA) which will take place on a sbRIO-9651.

    Is this possible at all?

    Thank you

    Michel

    Everything works very well with an FPGA VI, compiled with LabVIEW FPGA 2015.

    1. I have installed Eclipse on CentOS 7 with cross-compiler found at this link:

    Compilers C & C++ GNU for Linux ARMv7 (Linux host) 2014

    2. I also install a debugger crossed to debug application c / c++ remotly. Once on the page go in the section "Linaro Toolchain for Cortex-A" and download the second link linux "linaro-toolchain-binary (big-endian).  The binary gdb is in there, so you must point towards him in the Eclipse debug configuration:

    Linaro Toolchain for Cortex-A

    3. I installed the linux drivers from NOR-RIO 15:

    Driver OR RIO 15.0 for Linux

    4. I was able to program an application to c / c++ opening and running a LabVIEW FPGA Bitstream in a few steps:

    Example of API Interface FPGA C OR real time Linux and Eclipse

    Michel

  • monitor thread on the system in real time

    I have a SMU-8101 controller in my PXI system. I have it running with a system of operating in real time. I inherited some software WHICH has been used on a program of LabWindows used on a PC with a Windows 7 operating system. The SOFTWARE seems to work OK. My problem is when I leave the program I get an ERROR of EXECUTION NOT DEADLY

    "

    Source position thread ID unknown 0x000000EC

    Your CVI program ended on the target in real time. However, there still on the target in real time, the threads that are running or have already run the CVI code.

    Please check that your application cleans all its threads. Son left running after that your application can crash the target in real time when your application is unloaded.

    "

    As I said I got the code and there is a lot of it. I am looking for a smart way to track down these threads. I was wondering if there are tools available that could help with this? Or any other suggestions on how to run these lines down?

    Hi DPearce,

    This article knowledge base has some information on why CmtDiscardThreadPool causes your program hang and gives some recommendations for fixing it.

  • Firefox will replace wndows, etc, etc.? And the real operating system?

    I keep seeing Firefox OS for desktop of android and so forth, as well. Will it be a real operating system that could replace the windows and so on of the OS. I want to be clear with this problem.

    Hi Briguy, no bones of firefox will not be a replacement for the Office of the operating systems like windows at the moment. However, since it is open source, people are free to hack on it and try to get firefox os running for all kinds of platforms - there are projects he works for devices like the pi raspberry for example: https://wiki.mozilla.org/Fxos_on_RaspberryPi

  • Does previous time Machine, operating system?

    I upgraded my OS to El captain and before that, I did a backup using Time Machine and now I would like to backup again to take security records of some jobs. The fact that Time Machine will not erase the previous operating system (Yosemite) in the new backup?

    Thanks in advance.

    Use Time Machine to back up or restore your Mac - Apple Support

    Restore an entire disk Although the procedure is a bit tedious, Time Machine can also return your drive whole (including OS X itself) to its State at some point in the past.

    How to create a clone of startup

  • Is there a limit on the number of times you can use a disk operating system Windows 8 pro?

    So I got an operating system disk with my laptop, I used a disc of Windows 7 on it. My brother has used the disc 8.1 on its newly build pc, it worked. When I tried on my new pc it says that some files are missing or damaged. I wonder now if you can only use it once.

    Hello

    You can use several times on THE same machine. You can install on many machines, but you can turn on a SINGLE machine. In your case, the system thinks you want to update and it will not work. You must purchase the upgrade dics (DVD).

    Kind regards.

  • I got a new hard drive from apple. They have updated to El Capitan. This affects how I restore from time machine? A full restore allows you to copy on the new operating system?

    can I use time machine to restore everything, only the data, not the operating system

    Why would you go back to a previous operating system when you just got a new hard drive with the new operating system on it?

  • Real-time System Manager

    Hello world

    How can I open real-time System Manager to monitor on my project of myRIO resourses?

    I've already activated the VI server on the target.

    If I select Tools-> real-time Module I find only "Project Wizard", "set up Time-triggered network" and "viewer of Trace".

    Thank you in advance,

    Lorenzo

    The "Distributed System Manager" is an application/executable separated - you can find it, if installed, on the start menu under the folder "National Instruments". If it is not there, then you probably have installed as part of your installation - raise your LV Installer and choose to install.

    Alternatively, you can use the System Configuration API to read the various parameters (e.g. CPU / memory) on the target itself to monitoring the health of the system.

  • NOR-DAQmx compatibility with the system in real time

    I try to use a time system 11 with LabVIEW Real-time. When I try to connect with the driver OR DAQmx, an error saying that the version of the NOR-DAQmx drivers are bundles with the one on the real time. I tried to use different versions of the NOR-DAQmx drivers that are available in the table of compatibility, but not those who worked. I have an old computer working with the same real-time system that uses LabVIEW 9 and has the driver NOR-DAQmx 9.3.5 f0 driver installed on it but I can't find the drivers on the web. What should I do?

    I am using LabVIEW 2015 in my current computer.

    Thanks in advance.

    Looks like you can just have a lag in the versions of software installed on your host computer and the target.  In order to deploy the code from your host to your target, the two must have corresponding to libraries of functions.  See this link for instructions on updated versions of the software on your target match those installed on your host computer, the wizard of the LabVIEW RT software.  If you have already done this, and it did not help, please provide a screenshot or error code of the message that is to appear.

Maybe you are looking for

  • El Capitan grateful suddenly don't no optical drive

    I have a MacBook Air running El Capitan, purchased 3/2016. I bought the optical drive when I bought the computer. I used the external drive to burn DVDs and CDs. Everything worked fine until I plugged the optical drive yesterday. I opened iTunes, plu

  • 6 nine DC7900 CMT spontaneously power down and restart

    We just bought 6 new DC7900 Convertible mini towers. I rode 5 so far, 4 with XP and one with Vista. XP boxes have been spontaneously restart. Hereby I don't mean a normal shutdown and restart but they all of a sudden hard powerdown and start to begin

  • How do I reinstall my acer crystal eye webcam

    I recently updated my software to alienware, but the webcam is not working. I have an acer aspire 4530. can u help

  • My e-mail address is in Arabic. How can I change to English

    Hello: Depending on your question. You say, we respond, somehow I do not see. The title is correct, but there is no answer. From June 8 to July 27, 2012 I was without my original e-mail address which is E-mail address is removed from the privacy *. A

  • My cursor moves its own

    I have a new computer with Vista Home Premium on it.  The problem I find is that when I am typing in emails and reports etc, I find suddenly that the letters are included in the previous sentences, paragraphs or just moving on different lines.  It's