03-24-2016 10:09 PM
@RavensFan wrote:Put the Byte Array to String and VISA Write inside your subVI. Everything about how to formulate a message and the actual writing of the message should be encapsulated in the subVI.
Done, now writing part is moved to Sub VI.
(Why'd you change Enable Termination Character from False to True?)
Oh, That's done mistakenly, now corrected.
Updated VI and SUB VI
03-24-2016 10:48 PM
No No No.
You need to put a U8 bullet between the arrays size function and the Build Array.
(Remember what I said when you asked about all the red coercion dots?)
03-25-2016 12:15 AM
@RavensFan wrote:No No No.
You need to put a U8 bullet between the arrays size function and the Build Array.
(Remember what I said when you asked about all the red coercion dots?)
Okay i will put that. Thanks for pointing this.
Rest of the things is okay ??
Any other suggestions??
03-25-2016 01:08 AM
Yes, put the VISA Write inside of the case structure. You just wire the VISA Resource straight through in the false case.
1. That usually happens when you change the connector pane of the subVI. ( Got it, i tried to change the connnector terminals that's why this happen)
2. That is completely based on the connector pane and where you wire up the controls.
Thanks that works, and i modified the block diagram as per RavenFan and it is working properly.
03-25-2016 10:23 AM
I created it in the form of Sub VI, which is as follow:
Its working properly.
Now as i earlier mentioned that, i had already done the recption part and this is transmission part. Both are working fine individually.
But how to merge these both such that they both work without halting each other.
Like if place the Op Code Write Packet SubVi in the main loop, its execution is prevented due to Serial Read, i know LabVIEW only works when data is available at its terminal.
So canyone please suggest me how can i solve this issue.
03-25-2016 10:23 AM
I created it in the form of Sub VI, which is as follow:
Its working properly.
Now as i earlier mentioned that, i had already done the recption part and this is transmission part. Both are working fine individually.
But how to merge these both such that they both work without halting each other.
Like if place the Op Code Write Packet SubVi in the main loop, its execution is prevented due to Serial Read, i know LabVIEW only works when data is available at its terminal.
So canyone please suggest me how can i solve this issue.
03-25-2016 10:30 AM
Your state machine loop won't run until after your first while loop runs.
You have a data dependency there because of the VISA and error wires going from the first loop to the second loop.
(Have you taken those tutorials yet?)
03-25-2016 11:29 AM
03-25-2016 12:20 PM
You just let the two loops run in parallel. Branch the VISA reference and the error wire coming from the Configure Serial Port. Once branch goes to the receive loop, the other branch to the send loop. You should use Merge Errors after the loops and then to the VISA Close to make sure the port is not closed until after both loops have stopped.
03-25-2016 01:33 PM - edited 03-25-2016 01:34 PM
I did it like this way.
But still not working, write part not working.
Can you please check what is wrong.
I am also attaching my complete project.
Is there any good book from where i can read such things, right now i am reading book LabVIEW for engineers and following some of the channels on YouTube ti learn the LabVIEW.