two digital to write data to the power file triggers
Hello
I am currently building a VI to use two digital front as triggers posted the pic to start and stop writing data to the file.
When start trigger is activated, the data is written to the file, it goes indefinitely until the stop trigger is on.
If someone give me some advice, they will be appreciated.
Hi Jetfire,
you know the difference between BMP and JPG?
Size! (And this is the reason why BMP is not allowed in this forum.)
Just you rename a file does not change the dataformat. Please attach real JPGs (or better yet the PNGs) next time!
Jetfire created a related thread, now with a VI instead of an image...
Tags: NI Software
Similar Questions
-
How to write data from the INI file for the control of the ring
Hai,
I need to write the data read from the INI file to a control of the RING. Doing this operation using variants I get the error.
I will be happy if someone help me. I have attached the file special INI and VI.
-
Writing data in the CSV file?
I tried, but in vain, to write data in the CSV file, with the column headers of the file labeled appropriately to each channel as we do in LabView (see attached CSV). I know that developers should do this same in .net. Can anyone provide a snippet of code to help me get started? In addition, maybe there is a completely different way to do the same thing instead of writing directly to the CSV file? (In fact, I really need to fill a table with data and who join the CSV every seconds of couple). I have the tables already coded for each channel, but I'm still stuck on how to get it in the CSV file. I'm coding in VB.net using Visual Studio 2012, Measurement Studio 2013 Standard. Any help would be greatly appreciated. Thank you.
a csv file is nothing more than a text file
There are many examples on how to write a text using .NET file
-
Can I write data to the memory of the Machine (not SD card)?
Can I write data to the memory of the Machine no SD card?
I know that I add data using FileConnection like this
FileConnection fc = (FileConnection) Connector.open ("file:///SDCard/"+"da.txt", Connector.READ_WRITE);
This is the code that write to the SD card.
But if I want to write in the memory of BlackBerry, what path will be in the FileConnection?
Or is it impossible to add files in the memory of BlackBerry?
It will be something like "file:///store/home/user/".
-
How to calculate the sum of two digital form fields based on the selection of the checkbox.
I have a form in Acrobat Pro who needs a custom calculation. How to calculate the sum of two digital form fields based on a selection of the checkbox. I have three number fields. Field-A and B are simple one or two digits. Field-C is the sum, or the total field. I want to field-C have a control box which, when turned on and off, just gives a. gives the sum of A + B
_ Field - 2
_ Field - A 4
[check] _ _ field - 6 C
[disabled] _ _ field - 2 C
Thank you
The custom field C calculation script could be:
(function () { // Get the values of the text fields, as numbers var v1 = +getField("A").value; var v2 = +getField("B").value; // Set this field's value based on the state of the check box named "CB" if (getField("CB").value !== "Off") { event.value = v1 + v2; } else { event.value = v1; } })();
Replace 'A', 'B', and 'CB' with the real names of the fields.
-
Write data to the Source folder
I'm trying to change part of a script that I use for work he entered into the source of a file folder, run on rather than to a specific folder (in this case, the office). Can someone help me understand how to change and/or by adding the code below?
create the reference to the csv file
var file = new file (Folder.desktop + "/ Data.csv");
Open the csv file in Add mode
leader. Open ("e", "TEXT", "?");
jump to the operating system in use on the line set
($.os.search(/windows/i)! = -1 ? file.lineFeed = 'windows': file.lineFeed = "macintosh";
at the end of the file
leader. Seek (0.2)
write all the information required for the csv file
Name of the document, Date1, database2, donnees3, etc.
file.writeln (decodeURI (activeDocument.Name) + ","Data1","Data2","data3"," + data4. ") ToString()', '+ Data5.toString ());
Close the csv file
leader. Close();
Now, I'm assuming that the part to change here is Folder.Desktop. And I think I will need to change this option to be Folder.getFolderName. getFolderName is a variable used in other code that checks the source directory of the current file. This code of source directory, it's what I do not know how. The script itself would have to do the check whenever it is running as I want him to be able to work with included subfolder of batch runs, make a new file in the subfolder when working with these files. Anyone has any ideas, how to proceed? Any help is very appreciated!
dgolberg
Edit: I forgot to mention; It would be nice if it can also store the name of the folder in which the source file is in a variable, so it can be written to the file as .csv. This is not as important as the code mentioned above, but it would be helpful none-the-less, if possible.
No problem, I was able to solve it on my own all the time. I thought it would be much harder than it actually was. but has been able to do by simply changing
var foldLoc = new File ("C:\\Temp\\");
var file = new file (foldLoc + "/ Data.csv");
TO
var foldLoc = app.activeDocument.path;
var file = new file (foldLoc + "/ Data.csv");
and now, it records the data and the .csv file in the same folder as the currently open project. Thanks for trying to help; It is much appreciated.
dgolberg
-
Modification date in the jpg file properties menu
My Nikon image download went well, but 4 of the images have the wrong date on them when they were taken. I think it was off on the camera somehow. So, when I view it in the Microsoft folder, they are out of use. Is there a way to change the property case created date on some images in the large folder?
To change the dates of file or folder, you will need a 3rd party program as freeware "Attribute Changer.
<>http://www.Softpedia.com/get/system/file-management/attribute-changer.shtml >Remember that sometimes the dates of the .jpg files come the EXIF information stored in the .jpg file and you may need some kind of an EXIF Editor to change that.
HTH,
JW -
Two components don't PublishedStaticFiles on the same file, who wins?
Hello
I use UCM 11 G PS4.
Anyone know how PublishedStaticFiles works, I know that publish
resources in the weblayout/resources/wcm/custom.
But did anyone know what happens if two components are trying to publish the same file?
I will wait for that Content Server to merge the files into one published 2
According to loadOrder.
Can someone tell me what is the difference between PublishedStaticFiles and PublishedWeblayoutFiles?
Kind regards
CIPII do not understand your problem. If you disable a component, its file (s) will NOT be published. It seems that you you copied all its content and/or you merge js files, so you don't need for the 2nd component more. Turn it off, and're you good to go.
-
How to store the captured data in the csv file
Here's the sceanario
I was able to capture data from the oracle forms and store it in variables.
now, I want to store the same data in the csv file and save this csv file.
quick reply is appreciated.Ok. This is what my, admittedly simple, code performs above: var_orderid col1 and col2 in var_quantity.
See you soon,.
Jamie -
Tool to manage data in the DMP file
Friends,
We currently have this process:
-Export production data using expdp
-gzip .dmp file and move it via ftp to test servers
-import data on the test servers
We are trying to create a process where we can remove all the "sensitive data" test, because our data is highly confidential.
So, we have already designed a procedure that can remove these data after the import.
BUT my question is: there is some King of oracle tool which can allow us to modify the data in the dmp file, even before you start the import operation?
Approx. (Test and Production): Oracle 10 g 2 running under Linux
Thank youYou can protect your sensitive data after importation in the test environment using datamasking grid control functions.
Another solution, I've used sometimes is create the trigger for insertion in the test environment a sensitive but important data change is slower.
HTH
Antonio NAVARRO -
How to share data in the swc files?
I can save the shared data (such as dsn) in application.cfm so all cfm files can read.
But how to share data in swc files as application.cfm. I heard application.cfc, may I use share data in the swc files?
Don't you think that if it is correct that application.cfm and application.cfc exist in the site?
Thank you
MarkIIRC, you can't use both. If you Application.cfm and Application.cfc in the same folder, CF will ignore Application.cfm.
-
How do you use the freqout as the sample clock to write data on the of 6224 PCI
Using PCI-6224, I try currently to export data using the freqout as a reference clock sample to a digital output channel. I plug the scope to see the clock on the freqout PIN. However, the data seem to be missing. How can I output the data correctly using the reference for timing? What am I missing that connects the two signals together? Any help would be greatly appreciated. I am writing this code in MS VS C++ and here's what I've done so far:
int32 error=0; TaskHandle taskHandle=0; TaskHandle taskHandleFRQ=0; char errBuff[2048]={'\0'}; uInt8 data[8]={1,0,1,1,1,0,1,0}; /*********************************************/ // DAQmx Configure Clock /*********************************************/ DAQmxErrChk (DAQmxCreateTask("",&taskHandleFRQ)); DAQmxErrChk (DAQmxCreateCOPulseChanFreq(taskHandleFRQ,"Dev2/freqout","",DAQmx_Val_Hz/*Units*/,DAQmx_Val_Low/*IdleState*/,0/*Delay*/,10000/*Freq*/,0.5/*DutyCycle*/)); DAQmxErrChk (DAQmxCfgImplicitTiming(taskHandleFRQ,DAQmx_Val_ContSamps,8)); /*********************************************/ // DAQmx Configure Digital Output /*********************************************/ DAQmxErrChk (DAQmxCreateTask("",&taskHandle)); DAQmxErrChk (DAQmxCreateDOChan(taskHandle,"Dev2/port0/line0","",DAQmx_Val_ChanPerLine)); DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"/Dev2/PFI14",10000,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,8)); /*********************************************/ // DAQmx Write Code /*********************************************/ DAQmxErrChk (DAQmxWriteDigitalLines(taskHandle,8,0,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL)); /*********************************************/ // DAQmx Start Code /*********************************************/ DAQmxErrChk (DAQmxStartTask(taskHandleFRQ)); DAQmxErrChk (DAQmxStartTask(taskHandle));
I think that the original code was operational. However, given that the data transmission has been set to finished, I had a hard time to visualize the data on my scope. By changing the value of DAQmx_Val_FiniteSamps to DAQmx_Val_ContSamps, I could easily see the data.
My mistake. I'm still learning here. Thanks for the time.
-
How to write data from the acquisition of data in NetCDF format?
I connect to a set of data from the sensor through the DAQ assistant and want to write all data in NetCDF format. I have the required plugins installed, but still can not find how to do this.
Or the labview can only read the netcdf files, but cannot write it! Please let me know if there is any other way out. I have looked everywhere but could not find something useful!
Thank you
Hey,.
Sorry, the sheet in effect only allows to read NetCDF files, not writing to the NetCDF format.
Kind regards
-Natalia
-
write data to the cell in excel
Hello
I am trying to write data to a cell in excel. When I'm looking in sample program, I felt a bit difficult to understand.
I have written code to read data from a particular cell that works well. I am facing difficulties in writing data in the cell. pls help someone.
to read a data cell that works
status is Excel_RangeGetItem (rangeHandle, NULL, CA_VariantInt (i + 1), CA_VariantInt (j + 1), & MyVariant);.
Get the pointer of SHIPPING
status = CA_VariantGetDispatch (& MyVariant, & MyDispatch);
Create a Range object pointer for SHIPPING
status = CA_CreateObjHandleFromIDispatch (MyDispatch, 0, & ExcelSingleCellRangeHandle);
Get the value of the range of simple cells
status = Excel_GetProperty (ExcelSingleCellRangeHandle, NULL, Excel_RangeValue2, CAVT_VARIANT, & MyVariant);
status = CA_VariantGetCString (& MyVariant, &val);)
strcpy (CellValue, Val);to write data in a cell
status is Excel_RangeSetItem (rangeHandle, NULL, CA_VariantInt (i + 1), CA_VariantInt (j + 1), MyVariant);.
status = CA_VariantSetDispatch (& MyVariant, & MyDispatch);
status = CA_CreateObjHandleFromIDispatch (MyDispatch, 0, & ExcelSingleCellRangeHandle);
status = Excel_SetProperty (ExcelSingleCellRangeHandle, NULL, Excel_RangeValue2, CAVT_VARIANT, & MyVariant);
status = CA_VariantSetCString (& MyVariant, writedata);I know I made a mistake in the code above.
Thank you very much, Roberto. You have solved my problem.
-
How to write data to the XML in VBA 6
Hello
I am using vba 6
I have different data like strings, integer etc I get the object group tag.
I want to write data of XML on the button click.
and save this file on the way to my pc.
Bad forums. Message here:
Maybe you are looking for
-
How can I turn on my iPod without restoring?
My iPod touch 5 worked very well that it stops completely and the apple logo came. The logo has been there for about 3 minutes, then the screen went black. If I try to turn it on the apple logo appears again for 3 minutes about that disappears again.
-
Each image or photo I watch is saved to the file. How can I disable the who.
Each image or photo I watch is saved to the file. How can I disable the who.
-
Received a phone call about Microsoft Security Essentals scam
I got caught in this scam. I received a phone call and allowed access and paid by credit card for the technician assumed to install at a price of 210 euros microsoft security essentials software and another program called registry reviver. I was take
-
The administrator cannot connect to the Internet
I'm unable to access the internet as an administrator, but can another installation to users. What is the problem and how can I fix?
-
ACPI\HPQ0006\2 &; DABA3FF &; 0 driver
Laptop: HP Pavilion dv6132eu [number removed for privacy] Operating system: Version Dutch Windows XP Professional SP3 After installation there is an unknown device in device control (Apparaatbeheer) When I ask foor this device properties details tab