How do we get information from an MFR reader and write it into a log file?
We are working on a project using an MFR 4100 reader with a serial port
to read data from RFID tags into an Excel or text file. So far,
when we run our VI, the data from tags shows up fine on the front panel
but shows up as garbage in the Excel/text file. It also shows up
as garbage when we probe the block diagram. Does anyone have any
insights on doing this?
Thanks,
Team LEAD
Smith College.
Attachments:
write to excel using josh's code.vi 81 KB
Here's a screen shot of our VI in case you can't view it.
Thanks,
Team LEAD.
Attachments:
screen shot of write to excel vi.JPG 91 KB
Similar Messages
-
How i can enter information from Database to jtree and update it
How i can enter information from Database to jtree and update it
Is the memory cache enabled (about:cache)?<br />
You can open about: pages via the location bar like you open a website.
*http://kb.mozillazine.org/browser.cache.memory.enable -
After reinstalling CS6 the bridge photo downloader isn't able to read raw files and fails to convert the raw files to DNG. Previously downloaded raw files, now DNG, open up successfully in Camera Raw 7. How do I get the photo downloader to read and convert raw files. MacBook Pro with Snow Leopard. No such problem before this reinstallation.
You should install Camera Raw 4.6.
Visit this page and follow the instructions carefully:
PC: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4040
Mac: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4039
-Noel -
I need to continuously acquire data from daqmx card, write into a file and at the same time corelate (in terms of time) the data with signals from other instruments. The current problem is that there is time delay during read and write data into buffer,thus causing misalignment of the data from multiple instruments. Is there a way to solve the delay? or Is there a way to mark the time of the data acquisition in the buffer? If I know the starting time (e.g. 0) of data acquisition and sampling rate (e.g. 1kHz), can I simply add 1ms to each data sample in the buffer? The current code is shown below.
void DataCollectionWin::ConnectDAQ()
DAQmxErrChk(DAQmxCreateTask ("", &taskHandle));
DAQmxErrChk(DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0,Dev1/ai1,Dev1/ai2,Dev1/ai3,Dev1/ai4,Dev1/ai5,Dev1/ai16,Dev1/ai17,Dev1/ai18,Dev1/ai19,Dev1/ai20,Dev1/ai21,Dev1/ai6,Dev1/ai7,Dev1/ai22","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk(DAQmxCfgSampClkTiming(taskHandle,"",1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,60000));
DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_Val_Acquired_Into_Buffer,50,0,EveryNCallback,NULL));// Every 50 samples the EveryNSamplesEvent will be trigured, to reduce time delay.
DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,NULL));
DAQmxErrChk (DAQmxStartTask(taskHandle));
int32 CVICALLBACK EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void *callbackData)
DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,50,10.0,DAQmx_Val_GroupByScanNumber,data,50*15,&read,NULL));
//memcpy(l_data,data,6000);
SetEvent(hEvent);
l_usstatus_e[0]=g_usstatus[0];// signals from other instruments that need to be corelated with the data from daq cards.
l_optstatus_e[0]=g_optstatus[0];
if( read>0 ) // write data into file
//indicator=1;
for (i=0;i<read;i++)
{ //fprintf(datafile,"%d\t",i);
fprintf(datafile,"%c\t",l_usstatus_s[0]);
fprintf(datafile,"%c\t",l_usstatus_e[0]);
fprintf(datafile,"%c\t",l_optstatus_s[0]);
fprintf(datafile,"%c\t",l_optstatus_e[0]);
fprintf(datafile,"%.2f\t",data[15*i]);
// sprintf( pszTemp, "%f", data[6*i]);
// pListCtrl->SetItemText(0, 2, pszTemp);
//pWnd->m_trackinglist.SetItemText(0, 2, pszTemp);
fprintf(datafile,"%.2f\t",data[15*i+1]);
fprintf(datafile,"%.2f\t",data[15*i+2]);Hello kgy,
It is a bit of a judgment call. You should just choose the board that you think has the most to do with your issue. For example, this issue was much more focused on setting up your data acquisition task than the Measurement Studio environment/tools, so the MultifunctionDAQ board would have been the best place for it. As for moving your post to another board, I do not believe that is possible.
Regards,
Dan King -
I have an app that can successfully get a list of a folders content. However, by default the list is limited to 200 entries. I luckily ran into this limit when getting the list on a folder that contained 226 entries and realized I needed to then request
a list of the next items but it wasn't obvious from the REST API document how to do that. I tried sending the skipToken query parameter and setting it to 0 initially and incrementing each time I sent the request but always got the same 200 items back. So,
how do I get the list of files and folders beyond the initial list?In SP2013 the skiptoken query parameter does not work with list items. You can look at the link below which discusses using the "__next" parameter.
http://stackoverflow.com/questions/18964936/using-skip-with-the-sharepoint-2013-rest-api
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer -
How do I get content back into itunes from ipod/iphone and ipad when old pc died and now have a blank itunes?
check out this post by Zevoneer.
-
Getting information from laptop to host and visa versa
Hi!
Here is the situation. I need to tranfer all the data that exits on the laptop to host and I also want the updated data back to laptop. what is the easy way to do that. I have already created the tables on the laptops which is also exactly the same in the host. the oracle that we are using is 8i. could anyone please help me what is real process to go about this and how I can do this process.
people who has a laptop they go out in the field and enters the information and comes back to office and they have to sync back to host all data.
Your help on this process would greatly appriciated. Thank you.
my personal e-mail address is [email protected]
Sincerely
BeshuBeshu,
I would think the best way to handle this is Snapshots, or Materialized Views. The master table would exist on the host, and each
laptop would have a replica of the master table. This would be an updatable snapshot/MView. Unfortunately, you would need to create
the snapshot/MV on each laptop, rather than use the existing tables you have already created.
With updatable snapshots/MViews, the laptop user can modify the snapshot table, and the changes are recorded in a log file.
When the laptop user goes back to the office, they can run a job which posts their changes to the master table, and then
receives updates from the master table as well. Since you would be using updatable snapshots, you would need to define
conflict resolution on the master table to resolve data conflicts.
Depending on the database versions involved, there are lots of things you could do to make your life simpler, such as using a single
deployment template to instantiate all the laptops.
Janet -
Suddenly the information at the bottom of the page that I'm reading is gone. Typically there is a progress bar and then the percentage of pages I've read and the numbrt of pages I've read. Now, all I have is the progress bar. I don't know how to get that information back. There does not seem to be a setting.
Thank to both of you....it worked! I also found a settings button where all that can be turned on or off. They just had a revision on the app and the information on the page has changed.
-
I had been trying to read from a plist to get file names of data files and it works fine when i run it in safari but after making its widget and putting it into iBooks it doesnot works. Please tell me any new method to read p list or correct my function if there is any correction. my function is following.
function plistread(n)
if (window.XMLHttpRequest)
xhttp = new XMLHttpRequest();
else
xhttp = new ActiveXObject("Microsoft.XMLHTTP");
xhttp.open("GET", "Spell_Check_3.plist", false);
xhttp.send();
xmlDoc = xhttp.responseXML;
var x = xmlDoc.getElementsByTagName("dict");
var imgnamex = x[n].getElementsByTagName("string")[0].childNodes[0].nodeValue;
xlength=x.length;
return imgnamex;See i need to access a plist file in my html5 widget, i implemented it in java script but it's not working so is there any other way to take out values from a plist file.
-
Read data from db and write it into the txt file
hi all
could anyone please help me regarding the following:
i would like to read the data from database using sql query and the write the data into a text file.
I am able to connect the db, run the query, create file...but not knowing how to write the data into the file.
could anyone please help me out.
thanks in advance
regards
sasasa
Edited by: sasasa on Sep 14, 2009 8:57 AMi would like to read the data from database using sql query and the write the data into a text file.
I am able to connect the db, run the query, create file...but not knowing how to write the data into the file.
There must be something that I am missing.
How is it possible to be able to navigate JDBC, run a query and create a file but not know how to write to it? -
I am creating a program to for Windows Media Player. This program will use external buttons connected to a PCI card to read when a user presses a particular button. I need the program to wait until the video is complete before doing anything else. Is there any way to read this information with a property node?
Help will be much appreciated.
Solved!
Go to Solution.Attached is a very simply example (LV 8.2) of using that event.
You need to head over to Microsoft to get the details on the Windows Media Player properties and methods: http://msdn.microsoft.com/en-us/library/windows/desktop/dd564680%28v=vs.85%29.aspx
Attachments:
main.vi 16 KB
callback.vi 12 KB -
How can I get text from a text field and display it in an alert?
Hello! I am BRAND NEW to Objective-C and Xcode and iOS, so PLEASE be forgiving of what is going to be a stupid question. I have a text field. I want to enter some text, click "return", and see my text in an alert. It doesn't serve any useful purpose, but this is how I learn. So far, I am unsuccessful. Here's my function from my HelloEarthViewController.m file:
-(IBAction)showInputMessageUITextField *)textField
if ([textField.text isEqualToString:@""])
return;
UIAlertView *helloEarthInputAlert = [[UIAlertView alloc]
initWithTitle:@"Name!" message:[NSString stringWithFormat:@"Message: %@", textField.text]
delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
// Display this message.
[helloEarthInputAlert show];
Then I go option+click the text field and drag it to File's Owner and connect it to "showInputMessage:" Then I run it and the build succeeds, but nothing happens when I click my "return" button on the iPhone simulator.
What have I missed? Where have I gone wrong?Okay, here's where I am. I have this in my view controller .h file:
@interface HelloEarthViewController : UIViewController <UITextFieldDelegate>
IBOutlet UITextField *textFieldTest;
@end
And this in my view controller .m file:
-(IBAction)showInputMessage
if ([textFieldTest.text isEqualToString:@""])
return;
UIAlertView *helloEarthInputAlert = [[UIAlertView alloc]
initWithTitle:@"Name!" message:[NSString stringWithFormat:@"Message: %@", textFieldTest.text]
delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
// Display this message.
[helloEarthInputAlert show];
And I have connected the text field to showInputMessage. When I hit "return", however, I still get nothing.
Is an "action button" a real button? From my limited understanding, the alert should launch when I click "return" since showInputMessage is attached to Editing Did End on the text field.
Thanks for the help. The transition from writing C# for web applications to writing Objective-C for iOS applications is not going as smoothly as I'd anticipated. -
How do I take data from a data grid and put it into a variable?
I am having problems taking data from a datagrid (guess you got that from the title) and setting it to a variable. I am tak
ing the data from 3 different rss feeds, depending on what button you press, and showing it in a grid. I would like to be able to do more with this data. Here is my code so far:
<mx:VBox id="vbox" x="70" y="150">
<mx:Label text="This Data Grid is doing nothing" />
<mx:DataGrid width="1000" dataProvider="{fullXML}">
<mx:columns>
<mx:DataGridColumn id="dataGrid" *dataField="channel.description" headerText="Feed"/>
</mx:columns>
</mx:DataGrid>
</mx:VBox>
<!-- from test 5 -->
<mx:Move id="moved" target="{hbox}" repeatCount="0" easingFunction="mx.effects.easing.Linear.easeIn" />
<mx:HBox id="hbox" fontSize="12" fontFamily="courier">
<mx:Label text="{website**}" />
</mx:HBox>
* this is the data I want to get out
** this is where I want to be able to put the variable.
I don't know if I can do it here or if I need a function or what.
I would like to be able to put it into an array, but step one is anything at all, so I'm trying just a variable.Where do I put that line of code? I see that it goes at the Script part near the top, but how can I use that, I am pretty new to this language. I am not familiar with this line, where does it bind the value from the datagrid to the variable?
fullXML[myDataGrid.selectedIndex].FIELD_NAME;
myDataGrid would be the id from the grid I am guessing?
and selected index would be the channel.description part?
and FIELD_NAME; is the variable name?
does this go into a funtion or is it placed at the top where the variables are declared? -
How can I take data from multiple pages documents and put them into a numbers table?
I produce invoices in pages, with dates, invoice numbers, references and amounts due. I want to take all this data from multiple documents and transfeer it to a single numbers table. Is this possible and if so, how do I do it. I know I can do it the other way round with mail merge but I can't figure out how to do it this way round?
Thanks,
KeithThe data is spread throughout a pages document in specific areas here's a copy of an invoice for you to have a look at.
-
Mac Mini Sever - Public Share - how enable read and write permissions for new remote files
Hi,
this Sunday a friend ask me to help hum with a problem on is Man Mini Server. He has a small office and uses the mini server to share a public folder to all his employees.
Everyone that creates a file, saves it to the public folder at the mini mac.
That problem is that, who creates the file owns it and remains with read-only permissions to everyone else. The owner has to change the file permission in order to the rest of the employees can work on it.
I do not know mac arquitecture, I only work with windows and linux, but i suspect the principles are the same.
We try to create another folder , and share it, but it happens the same. Have you any ideas on what is wrong?
I suspect it has anything to do with de file Sharing at the mini mac, but it has read and write permissions for everyone.
Thanks for your help.signed applet. You aren't going to find any easy way to distribute that policy file to users, and that policy file, if you asked me to put it on my PC, I'd tell you to take a flying leap. That would open any applet to access.
Maybe you are looking for
-
How to hide subtypes from standard infotype 21 in ECC6.0 ?
Hi All, I encounter the following problem : we've upgraded our customer's SAP HR system from 4.6c to ECC6.0 and new standard subtypes for infotype 21 appear (especially when you press F4 or use the entry help button in transaction PA30) ... And our c
-
FlexPMD maven plugin no longer useable with Maven due to imcompatible binaries?
I am using Maven 2.2.1 with FlexPMD 1.2 and Flexmojos 3.7.1, with the maven-site-plugin 3.0 I get the following error: [INFO] [site:site {execution: default-site}] [FATAL ERROR] org.apache.maven.plugins.site.SiteMojo#execute() caused a linkage error
-
what is Foreign trade and customs, kindly explain me detail? Thanks in advance Ponts would be rewardes,
-
You cannot switch to a movement type without ref. to a PO
I created a PO from a P.Rq. [ from MDO4] NOW WHEN i TRY TO DO GOODS RECEIPT .....MIGO i GET "you cannot switch to a movement type without ref. to a PO" {You have replaced the movement type suggested with another movement type that does not refer to
-
hi all, please let me know the prin program for contracts,and how do i attach the print program to my new script,plz let me know the procedure, thanks in adavance.points are awarded for all helpful answers