Mounting drives using LabVIEW

Hi all,
To start off, I'm using LabVIEW 2011 on a Windows 7 machine. I've been mounting flash drives to a work computer, so that I can plug in more than 26 flash drives at a time, and now I've been asked to create a LabVIEW program that can mount the flash drives easily so that anyone can do it.
When I mount a flash drive, I use the Disk Management utility found in the computer managment utility. I did, however, figure out how to mount the flash drives using the command prompt utility, using a command called diskpart. My problem is, if you open a command prompt and type in diskpart, it opens a new command prompt window. I thought that I would be able to use the system exec.vi to enter in multiple commands to the same command prompt window, and recieve the output from the commands, but since diskpart opens it's own window, I cannot do this. Does anyone have an idea? Thanks!

I'm manually mounting my flash drives to folders, then I'm removing their drive letter, so that I can have more than 26 drives plugged into the computer which is responcible for removing the necessary information from them. I don't know how you made diskpart operate from the original command prompt, if I use either system exec.vi in labview, or the command prompt, and type in disk prompt, a new window opens. Lastly, if I did open up diskpart in the original command prompt window, I need to figure out how to enter in a command to a command prompt, receive the output from the command prompt, and then enter in another command to the original command prompt. For instance, I need to be able to run the the following two commands: 
DISKPART> select volume 3
DISKPART> assign mount=C:\drive27
(note, DISKPART> is not part of the command, but rather, when you use diskpart, a new window opens and this is the marker for where to enter text)

Similar Messages

  • How do I browse & play .mp3 files from a USB flash drive using Labview 8.0?

    I'm a tester & want to test USB flash drives connected to PC.
    I want to browse the file system & playback the audio files, .jpeg files etc in the USB drive. I've Labview 8.0. When I searched for some examples or VIs which can detect the USB flash drive, couldn't find any. So if you could point me in the right direction, I can find a solution to my problem.
    Thanks.
    Solved!
    Go to Solution.

    You probably won't find specific examples for this.  A USB flash drive is mounted by the OS and appears as a new memory storage device to all software on the PC, including LabVIEW.  You can certainly write a LabVIEW program to open files on the stick and play/run them but I would create a VI that wrote files to the stick and then read them back and checked them for bit-level errors.  Keep in mind that your OS might be doing parity checking under the hood which would make your test rather meaningless.
    BTW, testing memory by looking at pics or listening to MP3s would be useless of course.  A human can't see or hear bit-level errors in a high bandwidth data stream.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Control CD or DVD Drive through LabVIEW

    Hi All,
    I am interested in controlling my PCs internal CD/DVD drive using LabVIEW. I've had a look around the forums and ni website and it seems that external CD drives can be controlled using a PXI card and the SCSI interface.
    Searching the LabVIEW help I haven't been able to find any reference to SCSI but I guess the protocol must be implemented somewhere as it can be used with the PXI card I found referenced during my search.
    Initially I would like to just open and close the drive - if anyone can offer some pointers in the right direction I would appreciate it.
    Also if anyone is familiar with the level of access provided by SCSI maybe I could get a little extra information. For example eventually it would be useful to be able to control the motor speed of the CD turntable independently - is this type of command exposed in SCSI?
    Many thanks for your help,
    David
    Solved!
    Go to Solution.

    Open / Close, here: https://decibel.ni.com/content/docs/DOC-19732
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • I use labview 8.0 and i can not run daqmx driver for pcmcia 6062e daq card

    i use labview 8.0 on window xp .when i installed a PCMCIA daq card 6062E, i could not run daqmx driver.It is fine to see that the traditional version is working well.When i install daq card sometimes it is working well with traditional driver  but mostly i see error on reading an analog input from PCMCIA daq device.An error called 'base adress' occures .I use last version of driver that is daqmx 8.0.1. and i have installed this correctly but again i could not  see any signal on the test panel for daq-mx driver.I don't know what is the problem.Also when i install PCMCIA daq card Please reply this message.I need your helps.
    Thanks

    Hello,
    Thanks for your reply.I will try to answer your questions.
    I have checked the Device Mananger and I have seen that the device is detected by Windows  XP.  For another question the card shows up under both NI-DAQmx Devices and Traditional NI-DAQ (Legacy) Devices consistently in the Measurement & Automation Explorer.I use a way that I reset the driver for traditional NI-DAQ in MAX,and then i reset the device for NI-DAQmx driver in MAX and again i tried to run the test panel of DAQmx driver but again i saw a wrong signal or noise signal on the test panel i could not see the sinusoidal signal that i connected. i do get the test panels to run with the card using the DAQmx driver,  But could not run the DAQ diagnostic utility.The error was as i specified below.
    03.05.2006 09:49:35
    Results saved to:  C:\Documents and Settings\serkan\Desktop\Diagnostic Results.txt
    Selected Device: Dev1
    Device Type: DAQCard-6062E
    Serial Number: 107509E
    Device Support: (PASS)
    NI-DAQmx Version: 8.0 (PASS)
    Device Reset: (FAIL)
    Error -50002 occurred at an unidentified location
    Possible reason(s):
    The specified device is not a valid device. The operation could not be completed as specified.
     ------ DIAGNOSTIC UTILITY ABORTED -----
    And for your last question i can say that i have used the DAQ card on other laptops.But the results were the same.İ hope to see your reply
    Thanks,
    Serkan Buhan
    Electrical-Elecronics Engineer
    Researcher
    TUBITAK-BILTEN

  • How to remove a mounted drive at startup in a mobile account, using netinfo

    How does one remove an mounted drive at startup in a mobile account, using netinfo?
    One of the user automatically mounts a network drive on her new intel Macbook in her portable account. Trouble is that the network drive is only available on the intranet. So when she is on the road, it take the Macbook very long 3-4 minutes before it let's her log in.
    Simply I thought to remove the drive on her macbook through the system preferences -> account -> login items. However the "login Item" GUI is very slow to respond and if it respond it does not let me remove the network drive. I tried this both on the intranet and off the network.
    I tried to remove the mounted drive at start up through the workgroup manager, but it does not show up there.
    So I thought that I try to use netinfo on the local machine. But I can't find where mounting info is stored in a mobile account. I thought it would be in the local @ localhost or should I connect to an other DB?

    The login items are not stored in Netinfo, they are stored in loginwindow.plist in the users Library/Preferences. You can either remove the entries for the server or simply trash that file and let a default one get recreated.

  • Has anyone used an USB ASIO driver with LabVIEW ?

    Anyone has already tried to use LabVIEW to get data from USB audio recording equipment (M-Audio Quattro)?
    RKO

    Hi,
    NI-VISA 3.0 is the only driver in LabVIEW that would give you access to an USB device. You would probably use NI-VISA USB Raw mode.
    To use the VISA driver you need to know in detail how the device works and how to program with USB. There isn't too much documentation, but if you are clear on those two things it should be easier to get familiar with the NI-VISA API.
    You'll need the USB specification (www.usb.org). Also check the NI-VISA Programmer Reference Manual
    Hope this is what you are looking for.
    DiegoF
    National Instruments.

  • How use an ESP motion controller to drive an actuator by using Labview program?

    Our group bought a Universal Motion Conroller/Driver from Newport company and
    its model is ESP 300. Right now, I am going to use it remotely and I want
    to use Labview to compile the driving program. My thought is to move an
    actuator step by step in x-axis and the length of step moving is 2cm.
    After moving 40cm on x-axis from the beginning to the end, I will move the
    actuator one step on y-axis. Then I moving from the beginning to the end
    on x-axis again. I wonder whether somebody has such a labview program
    or not. Or, has anybody other sample Labview programs for the
    controller to control the moving? Can you provide them to me?
    Thanks a lot.
    Huili Wang

    Hello,
    There are several examples written in LabVIEW to do what you are trying to do but they will only work with National Instruments motion controllers, as they use driver specific VIs. In order to use your controller with LabVIEW you'll need a shared library of some sort. Once you have this library you can program your controller in LabVIEW by making function calls referencing to its shared library. See built-in LabVIEW examples for 'Using External Code'.
    I hope this helps. Let me know if you decide to go with one of National Instruments motion controllers instead and need help finding those examples I was referencing above.
    Best regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • How to make a driver using DLL in LabVIEW?

    I had followed the "Using Exteranal Code in LabVIEW" manual having finished the making dll file, and the lsb file(I attempted that two ways). But when I load the code in LabVIEW, it can't work. I don't know what had happened, I only got a error message like this:"'0x100014f1'commond call memory'0x00000000',this memory can't be written" or other similar error message, if I push the "enter" button, the vi application which I having lunched will crash. If I push the "cancel" button, the debug model will start,and the next message is "Unhandle exception in LabVIEW.exe(MSVCRTD.DLL/LVS95.TMP/COUNTER.DLL(the last one is creat by myself)):0xC0000005:Access Violation", but I wonder what had cause this? My DLL had been made successf
    ully under the VC++6.0, why LabVIEW can't call it fluently? How to make a driver for my own device using LabVIEW? How to correct my error to finished my hole work? Thank you very much. Jacky Wei
    Attachments:
    counter1.rar ‏33 KB

    1. Can you call this DLL from within VC?
    2. What operation system do you use? There may be a problem with calling of win95 dll under NT or win2000 for example.
    3. If you use NT you may not have permissions to work with some ports and memory areas.
    4. Under NT or win200 try to compile the library as a 32-bit dll, and under win95 - as 16-bit one.
    Good luck.
    Oleg Chutko

  • How to use labview to drive a New Focus Picomotor sinusoidally

    Hello,
    I am currently trying to use Labview to control a NewFocus Picomotor (Model# 8302)using the inteligent driver model 8753:
    http://www.newfocus.com/products/?navid=3&theView=modelDetail&productLineId=6&productGroupId=195&mod...
    http://www.newfocus.com/index.cfm?navId=97   (Using MCL with Labview)
    Ideally I would like to modify a preexisting driver to drive the motor sinusoidally in the 30-70 Hz range with control over the amplitude.  At this point, I am completely daunted by the complexity of the example files and have no clue where to start.  Any assistance with this matter is GREATLY appreciated.
    Best Regards, 
    BRox

    BRox,
    I had a look at the examples and obviously all it does is to communicate to the drive through RS232 with a proprietary protocol. With the documentation in the block diagram and the documentation of the protocol it shouldn't be too hard to understand what's going on, but on the other side NewFocus has obviously missed a chance to provide a high level and easy to use API for their product...
    I can't dive too deeply into the features of this drive, but before you spend too much time on understanding their command language, you should check with NewFocus, if it is possible at all to meet your requirements with their hardware. The main reason why I doubt that is the slow communication speed provided by RS232. The only way to reach a sinusoidal motion profile of 30 to 70 Hz with this type of communication is running the complete trajectory generation and interpolation onboard. If you have planned to generate the motion profile in LabVIEW and send setpoint commands to the drive this will probably not work.
    If the drive provides another command input (e. g. an analog +/- 10 V input for torque or velocity command signals), we can talk about alternative approaches.
    Regards,
    Jochen Klier
    National Instruments

  • Using mounted drives for storage

    iMovie 08 only allows for saving on internal drives, or connected FireWire drives. Well, I have 2 TB of storage on an old Mac connected over Gigabit Ethernet, and I intend to use it. Here is the solution:
    1. Move your iMovie Events onto your choice of mounted drive
    2. Delete the iMovie Events folder, located in your Movies folder
    3. Use Coctail or the Terminal to create a symbolic link of the moved iMovie Events folder (on your external drive) and place that link back in your home Movies folder
    4. Start up iMovie again, and you will see that all is well
    Using regular Alias did not work for me. I got the thumbnails, though with a warning triangle, but not the source to play.

    no, I use FAT32 so I can use it on both Macs and PCs
    Note that the Mac doesn't require using the same disk format on both "disks" of a partitioned drive. You could use Disk Utility to partition the drive and format each partition whatever you choose.
    Partitioning/Reformatting will erase everything on the drive, so make backups.
    Not sure how your PC will respond to the presence of the Mac partition, however. (No experience.) You may want to do some testing.
    Karl

  • Using LabView, Arduino, and Easy-Driver to control a Stepper Motor

    Hello fair folks of the LabView forums!
    I am a humble engineering student in need of some advice and input on a project I am working on.
    I’ve also done a fair amount of reading on the LabView forums with people trying to use LabView and Arduino to control stepper motors, and I’ve used as much information from each as I could. However the problem I'm encountering now is one which is unique to my VI Configuration.
    So, here is what has been done thus far:
    -Installed LabView Interface for Arduino [LIFA]
    -Installed necessary VISA drivers for LabView to communicate with arduino
    -Uploaded firmware to Arduino to allow it to communicate with LabView
    -Properly wired Stepper Motor with Easy Driver and Power Supply; I have verified this by first using the Arduino independently of LabView, using example code found here.
    -I have created a VI, and have just recently got it to run without reporting back any errors. While I suspect the behavior I’m encountering has to do with something inside the VI, it is difficult to determine as there are no errors being reported!
    But here is general problem I am encountering:
    -Connect Joystick to USB Port, connect Arduino to USB Port.
    -Plug in outlet for Power Supply
    -Open LabView VI
    -Run LabView VI
    -LabView successfully detects Joystick, and Arduino.
    -Tilt Joystick; Stepper Motor moves in proper direction, but it only takes a single step. If held, it does not move further. If returned to zero, and then tilted, it again only takes a single step.
    I know that in the example code, the Arduino issued the step command by writing the signal from LOW to HIGH, and varied the speed by how often it did this.
    I assumed that the Write-PWM feature would do this same thing, but perhaps my assumption is wrong. I will continue to tinker with this myself, but I would be extremely grateful for any insight you might be able to lend.
    I’m thinking, if not the Arduino Write-PMW feature perhaps a simple timing-sequence that could be used to alternate between writing 0 and 1, with the timescale of the sequence being scaled to the X-Axis from the Joystick. But, I am open to suggestions, and certainly appreciate any thoughts you may have to offer!
    Attached to this is the VI used in this setup, a picture of said VI, as well as a rough sketch of the hardware configuration.
    Thank you!
    Attachments:
    Arduino Stepper Control.vi ‏1224 KB
    VI Picture.png ‏82 KB
    Configuration Sketch.png ‏522 KB

    Hi danjifraga,
    I am not so familiar with the Arduino toolkit functions, but you may have better luck looking at the Arduino page at:
    www.ni.com/arduino
    I'll ask around on Monday to see if anyone is more familiar with the toolkit.
    Good luck,
    Brian
    Brian G.

  • Using a driver with labview

    I want to create a GUI using labview to control a data acquisition card using a driver that was not created in labview. Could someone point me in the direction of some documentation that would give me some info on doing this.
    Thanks

    If you're using a non NI data acquisition card and the manufacturer doesn't have a LabVIEW driver, then you'll probably be using either a DLL or ActiveX interface that they provide. For interfacing to third praty DLLs, start with "Using External code in LabVIEW" that is part of the LabVIEW Bookshelf. You will need details from the manufacturer on the function calls. There are some shipping examples on ActiveX. The Invoke Node and Property Node functions on the Communication>ActiveX palette are used to access methods and properties.
    If you were to mention the make and model of the board you're using, you might find someone here with knowledge of it that would provide more details.

  • Use Labview to control two Picomotor actuators successively through Model 8753 iPico driver

    Hello All,
    I want to use Labview to control two Picomotor actuators(belong to channel A ,C) successively through Model 8753 iPico driver.Since the example VI's
    (Application.vi) from Newport's website just control one actuator at one time, so I copied the example code, thus there are two repetitive sections (see the attachment) in
    the while loop structure. The test result was that two Picomotor actuators moved to respective target position circularly. And I found the test was correct when two Picomotor actuators belonged to different address. Can anyone tell why ,what should I do? Any assistance with this matter is greatly appreciated.
    Best Regards,
    Attachments:
    control two picomotor actuators.vi ‏90 KB

    BRox,
    I had a look at the examples and obviously all it does is to communicate to the drive through RS232 with a proprietary protocol. With the documentation in the block diagram and the documentation of the protocol it shouldn't be too hard to understand what's going on, but on the other side NewFocus has obviously missed a chance to provide a high level and easy to use API for their product...
    I can't dive too deeply into the features of this drive, but before you spend too much time on understanding their command language, you should check with NewFocus, if it is possible at all to meet your requirements with their hardware. The main reason why I doubt that is the slow communication speed provided by RS232. The only way to reach a sinusoidal motion profile of 30 to 70 Hz with this type of communication is running the complete trajectory generation and interpolation onboard. If you have planned to generate the motion profile in LabVIEW and send setpoint commands to the drive this will probably not work.
    If the drive provides another command input (e. g. an analog +/- 10 V input for torque or velocity command signals), we can talk about alternative approaches.
    Regards,
    Jochen Klier
    National Instruments

  • Using LabView and Modbus to Communicat​e with AKD Servo Drive

    I’m working on a project to control a Kollmorgen AKD servo application using Modbus directly from LabVIEW.  I’m new to both LabVIEW and servo drives so forgive me if this seems simple.  I have established communications to the drive through Modbus and have been successful at some rudimentary control of the servo.  I know the drive only supports "Write Multiple Registers” and “Read Holding Registers” functions and there are scaling factors that need to be applied.  What I need is some help with taking the Modbus information supplied by Kollmorgen for each command and formatting it for communication to the servo and vice versa.  I need to understand how to take the supplied 8, 16, 32, and 64 bit information for commands, scale it, and format it into the two or four registers required for the drive to read the parameters.  In turn, I also need to understand how to take the same information and read it and scale it from the drive.  I’ve attached a spreadsheet with the particular commands I’m interested in and a sample VI that seems to work for speed control but to be honest, I'm not sure how/why.
    Attachments:
    KM Modbus Cross Reference.xlsx ‏57 KB
    VEL.CMDU.vi ‏10 KB

    OK, I've got the ability to read values from the AKD drive pretty well sorted out.  I'm now having trouble with the ability to write.  I want to use Labview to program Motion Tasks in the AKD drive.  To do this I need to perform three commands: MT.NUM (specify the motion number), MT.P (specify the angular position), and MT.SET to set the parameters for the task.  MT.P requires sending a 64 bit signed float or a 32 bit signed float (requiring four or two registers respectively).  I used ModPoll to see what values the drive held in the MT.P registers after entering the desired angular position using the AKD Workbench software.  For example: using Workbench I entered 234.567 for the angular position and read 208 and -32506 from registers 2060 & 2061 (the 32 bit registers for MT.P).  After scouring the forum I put together the attached VI to try to write to the same registers but I can not seem to get the translation of the input (angular position) to the register values correct (entering 234.567 does not produce 208 and -32506 in registers 2060 & 2061).  Anyone have any ideas?
    Attachments:
    Motion Task Definition Rev H.vi ‏21 KB

  • Has anyone has developed a driver which uses labview to control an EPIX(R)D PCI Digital Video Capture Board?

    We have an EPIX(R) D PCI Digital Video Capture Board from EPIX Inc. worked with Image Pro Plus and a
    Kodak Megaplus 1.4 CCD Camera. This camera is an old model with Camera Control Unit. Now we use Excel Macro works with all of these software and hardware and the whole system works excellent. Now we intend to update the software to Labview 6.1, IMAQ vision builder and IMAQ vision. But we didn't find the driver to let Labview work with EPIX(R) D PCI Digital Video Capture Board. I have contactd Epix Inc. They said some customers have developed their own driver for labview and it works fine.But this company doesn't support this driver. It will be appreciated if anyone ca
    n provide this driver for us. Thank you very much.

    George. You probably don't have many options with the Epix board. However, if your Epix software enables you to save files to disk, then you can open them from LabVIEW and process them with Vision or Vision Builder.
    Another option is to contact Graftek (www.graftek.com) or ImageMill (www.imagemill-tech.com). They have created drivers for third party image acquisition boards in the past and they may have one for your Epix board.
    A third option, of course, is to upgrade your Epix board to an NI IMAQ board. Your sales contact within NI may even be able to give you a discount on the trade in, but I can't guarantee it.
    Good luck!
    Kyle V

Maybe you are looking for