) Was Unexpected At This Time

1 view
Skip to first unread message

Tiana Dubree

unread,
Aug 5, 2024, 7:07:43 AM8/5/24
to niapittiepuff
Whenparentheses are used, all the commands and variables within those parentheses are expanded. And at that time, param1 has no value making the if statements invalid. When using delayed expansion, the variables are only expanded when the command is actually called.

First, set/p will assign a user-input value to a variable. That's not news - but the gotcha is that pressing enter in response will leave the variable UNCHANGED - it will not ASSIGN a zero-length string to the variable (hence deleting the variable from the environment.) The safe method is:


Second issue is that on some Windows versions (although W7 appears to "fix" this issue) ANY label - including a :: comment (which is a broken-label) will terminate any 'block' - that is, parenthesised compound statement)


I was getting that same error using Netbeans as my IDE. I realized that my base folder in Windows had (1) imbedded in the path of my project, this happened when I copied the original zip file causing the (1) to be added to the file which in turn was blowing up the build process.


I have all the latest updates for windows - even optional ones, and I am running Windows 10.

This was not an issue for me till now. Now it happens all the time for all projects. Even if i create brand new Project without any script in it i get these two errors.


So the cause of the issue was faulty Autorun registry record which i had to erase and now i get no errors ! Details of this fix can be found at powershell - cmd.exe throws error "& was unexpected at this time." - Stack Overflow


We're currently testing our robot, and have had the code abort on us about half a dozen times in the last few hours with the same error every time. It will say that we lost connection while waiting for the target to respond, and when we deploy it again, it will say:


We have had this issue over radio and over USB. We use the CTRE libraries and have NavX MXP libraries in the project (although we've still encountered the issue when we use a diagram disable to disable all navX VIs). If anyone could help, that would be deeply appreciated. I can provide more information if needed.


I understand this is happening with your current robot code. Does it happen too with a fresh LabVIEW roboRIO project? I think the first step is to discard that it's the controller is working as expected (and the issue is not there).


You can start adding a disable diagram around parts of your code until you isolate what is causing the problems. I would look at different things that might be causing the issues like motors, encoder, etc.. You might put a disable diagram around your timed tasks vi and see if that makes the error go away. we need to isolate where is error is originating from.


We did not have the issue happen in the hour or so that we let a new project run. We have had the error on 3 different roboRIOs, but I'm pretty sure (although my memory is kinda fuzzy) we've only ever encountered the error on one of our several laptops (coincidentally the one we use most so that's why we've run into the error several times). Of course, it's hard to pinpoint exactly the problem without several hours testing, and that's tough to do with drive practice using the robot a lot.


We had a hunch that the issue was a bug resolved in the FRCUpdateSuite 2019.2 mandatory update, but we have since had the bug happen 3 times a few nights ago. Is that computer the culprit, or is it a coincidence and confirmation bias leading us astray and we need to look somewhere else?


Besides of it being a large block diagram, in a first glimpse I don't see an obvious reason why it would crash. I am intrigued however on the amount of RAM memory that it could be using, since we are dealing with some arrays that are re-written over and over.


Finally, disabling the drive and letting the roboRIO run for a while would be a good troubleshooting step to understand if this has to do with that code. I understand the drive team has to use it constantly, but perhaps during a meal or sometime when they're not practicing.


I consulted with one of our coding mentors from another team on several occasions about the issue, and our current best hypothesis is bandwidth issues. Even though we seem to only be using 2.6 Mbps (according to the dashboard), his guess is that the large amount of data being transferred when we are soft deployed (by clicking the run arrow in robot main) combined with the 2 cameras we're using is causing delays in the communications that are just long enough for the robot to temporarily disable and think it lost comms. Since hard deploying using less bandwidth we've been trying to use that as often as possible, and out of the (somewhat small) sample size of 6 or so hours hard deployed, we have not encountered the issue. Not a perfect solution by any means, but at the very least it seems like it won't be an issue on the field, so at least there's that.


I've seen similar behavior with my team when we use the interactive execution (clicking Run in Robot Main.vi). The fact it has to update everything back in the computer can overload the network connection and lose connection with the target eventually.


To be a journalist during a time of civil unrest is to be the eyes of the people when they are struggling to see. When they are unsure of the future and so weary of looking at the world, it seems as if turning a blind eye becomes a sort of protection mechanism.


I call myself an unexpected journalist, a term coined by a previous colleague of mine, Reagan Jackson, who, like me, found herself in the role because traditional media left our voices out. And while I may have ended up as a journalist unexpectedly, my decision to become managing editor was intentional: to help steer us through the blind spots; to encourage our writers to keep their eyes open so that they may assist our readers in staying informed, even when it feels like the news is grim.


The sins of this country, tied to the history Morgan mentions, are our collective burden, one that we must face together for democracy to endure. Please keep that in mind as we move forward into these uncertain times. And remember that every action we take contributes to shaping who we are as a nation.


Salish Current Managing Editor Patheresa Wells-Vick is a journalist with wide experience in nonprofit and for-profit organizations. She has reported, edited, and mentored other writers for South Seattle Emerald, the Seattle Times, literary journals and blogs.


I'm having trouble with unexpected Date Time conversion error. This error happened in the Input Data tool. I'm importing some data from an Excel spreadsheet. The warning reads: "Input Data (4) Conversion error on record: 2398 - Invalid date - Latest date supported is Dec 31, 9999".


The thing is that when I scrolled down to record 2398, I found no error at all in that record, but a few lines above it have some serious errors: The columns that are supposed to be strings like First Name and Last Name were all converted to 00:00:00. I didn't find the same error in other rows.


I DON'T want those columns to be converted to Date Time at the input stage. I can't see why this happened to those specific columns. I didn't see anything odd in the data source file. So I'm looking for help from the community.


To give you a little bit more context: the workflow starts with an input file which is also the output file. Data from other files will be read in and appended to this input file. The batch macro workflow goes on and on until data from all the files are imported and appended to the input file. Currently, I'm configuring the Output Data tool to overwrite sheet or range.


The warnings didn't happen when I first read in the original data but happened in the second attempt when I re-run the workflow to read in the updated input file. All the warnings disappear in rounds thereafter. Since I'm dealing with customer data; unfortunately, I'm not able to provide examples. Hope that this clarifies my problem!


Hi @Qiu, I've updated my post to include more details. The warnings occur when I read in the updated input file in the second run, but they disappear in runs thereafter. I'm unable to make this data public as it contains customer information. Hope that the updates help clarify my question and for you to diagnose the issue.


The 24th chapter of Matthew is a passage that is frequently used in discussions of the second coming of Christ. It contains a number of events and descriptions that we try to fit into our eschatological models. But it seems we often neglect the latter part of the chapter.


In verses 36-51, Jesus talked about the timing of his return. And he made it clear that his return would be at an unexpected time. In spite of our best efforts to discern the times and forecast his return, we will always fail. Life on the earth will continue as it has for hundreds and thousands of years. The Holy Spirit will not whisper in our ears that he is coming tomorrow. So we should always be ready.


When my children were younger and living at home we would occasionally leave them at home while we went out for a few hours, or even days. And invariably, they would want to know when we were returning. A certain amount of that was curiosity. But mixed in, there was also the desire to know when they needed to get busy and accomplish any assigned tasks. They knew it would not bode well for them if we came back and they were playing games or watching TV with their work unaccomplished.


You can take time away from work to deal with unexpected illnesses or life situations. Not every work issue, workplace, or type of work is covered by B.C. employment standards. Find out if the standards apply to you.


Illness or injury leave is sometimes referred to as sick leave. You can take up to 5 paid days and 3 unpaid days of job-protected leave. To qualify, you must have been employed for 90 calendar days.


You earn annual vacation during the first year you're employed. After 12 months, you get two weeks of vacation. After five years, you get three weeks of vacation. If you have not used all of your vacation, you can ask your employer to use your vacation to cover time off.

3a8082e126
Reply all
Reply to author
Forward
0 new messages