This shows you the VI and its input/output pins. To do this, click the Show Context Help (or Ctrl H) found on the Help menu. If you have not done so already, turn on the Context Sensitive Help of NI LabVIEW. Leave a few inches between the 2 VIs so there is room to work. Repeat that same process, but this time, drag a Read.VI to the Block Diagram and place to the right of the Create Channel.VI. Drag a Create Channel.VI onto the Block Diagram. Hover your mouse over the block diagram, right click to pop up the Functions menu, select User Libraries then ULx for NI LabVIEW. This is a small project so it should all fit on your screen. Adjust the layout of the Front Panel and Block diagram so that they are next to each other, either vertically or horizontally. NOTE: Make sure you have closed InstaCal prior to loading NI LabVIEW. A USB-1608G Series device will be installed and showing up in InstaCal as board 0. In general, the examples collect arrays of data but don’t demonstrate the minimum effort needed to collect just a single value.įor this example, we will create a VI that can acquire one analog sample and display it on the Front Panel. Included with the ULx installation is a collection of sample programs you can use and learn from to perform all manner of functions. Measurement Computing offers programming support for NI LabVIEW™ by way of using ULx for NI LabVIEW™. Note for newer products, such as the USB-1608G series and USB-200 series, you set Misc Option to Misc Option (all four of them) to -1.Using ULx for NI LabVIEW™ – Learn How to Acquire One Sample of Data You can also take this newly edited CB.CFG file and deploy it to another computer. Just run your program.Īlso do not update the unit to be serial number 0 as it will then need to come back here for reprogramming. Once this is done, you can never run InstaCal again as it will destroy this change. If you add another, it would not know which one to use. But again, this only works for one device of this type. What setting Misc Option to 0 does is it informs the driver that it should use any USB-DIO96H it finds and ignore the serial number. Basically removing what you have just accomplished. If you do, it will delete the device stating that unit is no longer installed and replace it with the unit that is attached. Misc Option: xxx (where xxx is an integer between 1 and 255.)Ĭhange the integer to 0 and exit the file. Open it with Notepad.exe or a similar text editor. For Windows XP, it is located in C:\Program files\Measurement Computing\DAQ folder. To do this, you will need to manually update the InstaCal configuration file called CB.CFG. If you have more than one unit then this will not work and you must run InstaCal to change the unit/update the serial number. However, it will only work if you have ONLY ONE USB-DIO96H in the system. There is a way around having to run InstaCal every time you swap a USB-DIO96H. This application note uses the USB-DIO96H as an example. Swapping an MCC device and not having to run InstaCal every time. Please consult Windows© Installer SDK for additional documentation on the command line syntax. There are many command line Windows© installer options you can use, though this application note does not address them, you can see what they are by typing in the command line: InstaCal.msi /? To launch InstaCal silently, call it via command line syntax: You will need all these files for InstaCal to function correctly. When it is finished, 7-Zip will create a new folder in the folder where you put Icalsetup.exe, containing the following files and folders: To unzip it into its component parts, run 7-Zip, select the file, and then click on Extract. This file is actually a zipped file set to execute. Install 7-Zip and follow the on screen prompts.ĭownload the InstaCal installer from our website: To get started, you will need third party software to extract the InstaCal MSI installer from our download. However, depending on your application and MCC hardware, you can copy your configuration file (CB.CFG) to the target computer. Running InstaCal cannot be done in a silent mode. This KB article explains how to silently install InstaCal, but it does not run InstaCal.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |