03-10-2020 02:00 AM - edited 03-10-2020 02:01 AM
Hi Laian,
@Laian wrote:
There is a problem they delete my post
its not me
I dont know why! maybe because I have attached it as a zip file!!
No, it's (most probably) not your fault. (I already reported the problem in the ForumFeedback thread.)
You didn't attach a ZIP file, but a RAR file. Don't do so in the future: always create regular ZIP files as are supported by Windows natively!
03-10-2020 02:05 AM
03-10-2020 02:10 AM
Also, to reassure you regarding your uploading skills, I think I've also had a file I uploaded dropped recently.
Just once you finish the dialogs to upload, wait a few seconds for it to appear at the bottom of your post before you click post - that might have helped me when I edited my post.
Not sure if it will help you or not but worth a shot.
Also the forums have a habit (already reported) of not showing attachments immediately after you post them, so refreshing the page if it looks like it went missing is worth checking before editing and reattaching.
03-10-2020 04:14 AM
03-10-2020 04:24 AM
Hi Laian,
@Laian wrote:
Hi I used termination char but it didn't solve my problem. Actually I just wanted a very very simple reading and writing about 700 bytes the same as a hyper terminal software does.
You should NOT use the TermChar, i.e. SWITCH IT OFF!
(Again you failed in attaching your VI or atleast a snippet of relevant code!)
03-10-2020 04:32 AM - edited 03-10-2020 04:35 AM
Hi Laian,
If you don't want the term char (and you're sure this isn't being added by default to Hyper Terminal) then you can simply toggle it off as GerdW mentioned.
If you're using VISA Configure Serial Port then the necessary option is manipulated using a boolean input to the top of the node, called "Enable Termination Char", which by default is true. Just wire a false constant, and no more term chars.
03-10-2020 04:48 AM
my VI attachment
hope not to be deleted
03-10-2020 04:55 AM
03-10-2020 05:09 AM
ohhh yes by switching off the termchar now it works correctly
Thanks Mr GredW sorry if bothering you
Thanks a lot
03-10-2020 05:15 AM - edited 03-10-2020 05:19 AM
Would something like the following be helpful?
Here all the values are 0, so it's not that illustrative (this is also why I use "OldVal" in the Event Structure) but it demonstrates you could have quite a bit less code necessary to initialize your setup.
You can also then use an Event Structure (with NewVal, not OldVal, or just directly read the control) to get the updated values without needing the polling system - you only have to update when something is changed.
Note with this arrangement (using arrays) you need to specifically wire a false to the "prepend array or string size?" input of flatten, or else you'll get extra bytes (which will presumably mess up your device/communication).
Edit: Of course you can use a Boolean Control to trigger the write, and not update every change if you want to make a set of changes then confirm all at once...