The Image input terminal of the IMAQ Write TIFF File 2 VI defines the type of the image, which is defined by the IMAQ Create VI.
Re: Managing U16 images in Labview/IMAQ Vision
Re: RS485 2 wire on NI 9871
yes, connected 4 with 8 and 5 with 9, then to + and - of the modbus card, this one.
Put in a 100 Ohm resistor for terminator just then, see if that changes something. Its just 0.5m long cable.
Installed all the drivers on the cRio.
Re: Synchronizing Multiple tasks (reference triggered)
Mobile now... It is still available from the timing pnode. More sub section. The detailed help ... Helps
Re: Sampling Rotary Encoder- Error -201319
I'll make you this deal.
Show code by snippet tell us what hardware you are using and explain what you see. I'm on a phone so.... no LabVIEW.
Re: RS485 2 wire on NI 9871
Modbus uses an RS 485 physical layer. However, it has additional requirements for other layers. Are you using NI-Xnet?
Modbus does not act like SCPI
Re: Removing Global Variables
Hello again,
Thanks for pointing out the redundancies. However, as you all would already OBVIOUSLY know, removing all those redundancies DID NOT solve the problem. I did find a way around to the actual problem.
However, thanks Shane for at least answering a part of the main problem
Re: RS485 2 wire on NI 9871
its this one wit a modbus card, on 19200 Baud, nothing extra. Fot now just trying to see if I got the wiring right in MAX and VISA test panel.
Slave address is 001, not 01, but that should not make a difference, still just 01 in hex.
Configure Labview as Master, how? Is there options in MAX?
I just got an answer I need this one, a repeater. Or Can I set the 9871 somewhere, this channel is 2 wire, not 4? This only works in Labview, not in MAX? I found some examples there, half duplex.
http://www.bb-elec.com/Learning-Center/All-White-Papers/Serial/4-Wire-to-2-Wire-Connections.aspx
set windows for half duplex:
http://digital.ni.com/public.nsf/allkb/3EB322DAEAACB19D862571F500021C00
Re: Can labview read .dat file?
Good day sir.. How to convert wav file to dat file?
Re: Parsing XML Files in LabVIEW
Hello Bill, Currently, the XML file generated from Test Stand contain results of two test sequences executed in Parallel. While I am parsing, I am able to parse the data related to only one test sequence (Not all elements). I am unable to parse the data for another test sequence which is available in the same XML file. I had tried to change the Cluster constant to match the XML format, but I did not have any luck parsing both the test results from the XML file. Thanks for your support.
Karthik
Open .lvappimg application file
recently a vendor sent me a .lvappimg file to deploy on cRIO-9068 and cRIO-9081 . I was curious if there was any way to open this in lab view? I would like to open it up and view the .vi files and actually see the graphical code. Is there any way i can do this? I have the replication and deployment utility (first time using it). I was also not sure how this .lvappimg file is created in the first place. Is it created within the labview software or the project has to be downloaded to the cRIO then once its retrieved with the replication and deployment utility it just creates this .lvappimg file?
Simulating signal from event structure
Hi everyone!
Is it possible to use the event structure to simulate/change different waveforms?
I've attached my VI.. when I push the button, the waveform changes, but it's locked.. I've already unchecked the "Lock Panel" option in the "Edit Events Handled by this Case" window, but it's still not working.
Help?
Thanks!
Re: How to close a CSV file if it is already opened.
rolfk wrote:Look you could kill Excel and that would make sure the file is closed, but I assure you that your user is going to swear at you for killing his application behind his back. It's simply stupid programming!
If the user opens that file in Excel to view it, edit it or whatever else he might be doing, Excel locks the file for any other application to open, even for reading only. That's the way Excel works in order to be always able to access the file in a consistent state. If the user then goes and wants to open that same file in your application, he has to make sure to close the file. You could get sneaky and open an ActiveX connection to Excel, try to enumerate every document currently open, see if the document you want to open is part of that list, then open that document reference over ActiveX and close it behind the back of your user, who will then be dumbfounded that his Excel application seems to flicker every time he uses your application, and the file he had open before, sometimes simply disappears from his open Excel. And you also have to properly close the Excel ActiveX reference to make sure you don't close Excel itself. If the user has changes made to the file, he will get anyways a dialog if he wants to save them to the file!!!
All in all it would probably be easier to simply load the Spreadsheet file in LabVIEW directly, display it to the user in a table to view, similar to what he would see in Excel, may detect if he made changes and save them back to the file, and in that way get rid of Excel altogether, than trying to be sneaky with a users application.
You can do even better than that. If you Use the report generation toolkit you can open the file in excel as an unsaved workbook. I had to give this option to a program I was writing where it was temping for the user to check on a test by opening the file in excel. Same problem there, if they opened it in excel, the next time I went to write the file was locked. So I added a big button on the front panel that lets them open it in excel, but not from the file. If they want they can save the new Excel workbook to something that I am not writing to.
Re: Open a .mat file in Labview
I used Excel to save as a CSV (I think you already did this) then changed the datatype to double (your numbers have decimal places). It now reads properly.
If you only want to display integer values, round the output of the Read Delimited Spreadsheet function using a numeric conversion function like Round to Nearest or just To I32.
Re: Copy entire folder into another folder on USB drive
You don't need (in this specific case) to concatenate the files and folders, and if you want to copy all of the .csv files, you shouldn't concatenate at all. Instead, use auto-indexing on the File Name (array) output at the For Loop boundary.
The reason you get errors with more than one file is that the output of your List Files function is something like this:
File Folder
a.csv "" (blank)
b.csv "" (blank)
and so when you concatenate them, the arrays are made into one string. Check the Context Help (Ctrl-H) for more details. The output (and input to your for loop) then becomes
"a.csvb.csv", which doesn't exist.
Re: Measure 2 counting rates with 2 counters
Since you just want frequency (counts/second), have the counters measure Period (seconds/count) and invert the measurement.
Re: Open .lvappimg application file
bombay88 wrote:recently a vendor sent me a .lvappimg file to deploy on cRIO-9068 and cRIO-9081 . I was curious if there was any way to open this in lab view? I would like to open it up and view the .vi files and actually see the graphical code. Is there any way i can do this? I have the replication and deployment utility (first time using it). I was also not sure how this .lvappimg file is created in the first place. Is it created within the labview software or the project has to be downloaded to the cRIO then once its retrieved with the replication and deployment utility it just creates this .lvappimg file?
The lvappimage file is actually a compressed file (zip) that contains an image of the disk structure on the cRIO, any FPGA bitfiles that may be needed and then some metadata regarding versioning and configuration. The intent of the RAD is to improve the ability to backup a system in its entirety and then replicate to another system(s) - hence the RAD name. The best comparison I can make is the idea of an Installer but for cRIO specifically; however you are right in that the RAD tool is used to backup a live system and is not a build specification in the LabVIEW IDE. RAD itself is just a LabVIEW application that uses a set of well known APIs to perform this magic imaging process; the source code of RAD is available if you are interested.
From that perspective it therefore depends on how the LabVIEW application is designed as to whether there is an readable "code" or not but most of the time this is not the case. Most likely there is a LabVIEW built startup application and one or more FPGA bitfiles - neither of which are decompilable back to LabVIEW VIs.
Re: Porting LV for Windows VIs to LV for Mac (iOS)
With no dll calls, you should have no problems using VIs between platforms. How to get your JKI and OpenG is something I do not have an answer for other than copying them directly.
Re: Global replace library path in call library function in multiple project VI files
Attached is a VI that might do exactly what you want, with some minor path constant modifications and the deletion of a diagram disable structure.
Your mileage may vary, and I don't promise it won't destroy your project/computer/world.
Good luck
Re: Simulating signal from event structure
The front panel isn't locked, it's just waiting for for an event. Because you don't have a timeout case configured in the event structure, it's going to block execution until you trigger another event.
Re: Parsing XML Files in LabVIEW
For me, reading an xml file with anything is a slow and tedious effort and I just have to keep chugging away until I finally get it right. It sounds like you mostly have it right, because if you can read one test, you are very close to reading them all. It could be almost as simple as putting your code in a loop.